/* ============================================================
   El Viaje Mágico del Pequeño Explorador · China 2026
   Tema oscuro de lujo — esmeralda #1e4d40 · carbón #0a0f0d · oro #e5b364
   Cero recursos externos: pilas de fuentes de sistema, sin url(http…).
   ============================================================ */

:root {
  --charcoal: #0a0f0d;
  --charcoal-2: #101713;
  --charcoal-3: #16201b;
  --emerald: #1e4d40;
  --emerald-soft: #2a6a58;
  --emerald-glow: rgba(42, 106, 88, 0.35);
  --gold: #e5b364;
  --gold-soft: #f0cd93;
  --gold-glow: rgba(229, 179, 100, 0.25);
  --ink: #e8ede9;
  --ink-dim: #9fb0a6;
  --ink-faint: #8a9c91; /* ≥4.5:1 sobre carbón, siempre por debajo de --ink-dim */
  --line: rgba(159, 176, 166, 0.14);
  --danger: #e07856;
  --danger-soft: #f0a58c; /* tinte legible de --danger para texto sobre carbón */
  --good: #7ec8a9;
  --vuelo: #e5b364;
  --tren: #7ec8a9;
  --van: #9d8bd6;
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--charcoal);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg.ico { flex-shrink: 0; }

/* ---------- orbes ambientales ---------- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.orb--gold { width: 480px; height: 480px; background: var(--gold-glow); top: -180px; right: -140px; }
.orb--emerald { width: 560px; height: 560px; background: var(--emerald-glow); bottom: -220px; left: -180px; }

/* ---------- encabezado ---------- */
.site-header {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 26px clamp(16px, 4vw, 48px) 14px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 28px; border-radius: 16px;
  background: linear-gradient(145deg, var(--emerald), var(--charcoal-3));
  border: 1px solid rgba(229, 179, 100, 0.35);
  box-shadow: 0 0 24px var(--emerald-glow);
}
.brand-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.brand-title {
  font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700; line-height: 1.08; color: var(--ink);
}
.brand-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-dim);
  background: var(--charcoal-2); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: var(--gold); }
.chip--muted svg { color: var(--ink-faint); }

/* ---------- pestañas ---------- */
.tabbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(10, 15, 13, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--sans); letter-spacing: 0.02em;
  color: var(--ink-dim); background: transparent;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tab.is-active {
  color: var(--gold-soft);
  background: linear-gradient(145deg, rgba(30, 77, 64, 0.55), rgba(22, 32, 27, 0.9));
  border-color: rgba(229, 179, 100, 0.35);
  box-shadow: 0 0 18px rgba(30, 77, 64, 0.4);
}

/* ---------- escenario / paneles ---------- */
.stage { position: relative; z-index: 1; padding: 22px clamp(16px, 4vw, 48px) 60px; max-width: 1200px; margin: 0 auto; }
.panel { display: none; animation: fadeUp 0.35s ease; }
.panel.is-active { display: block; }
.panel:focus { outline: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section-title { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.section-sub { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.story-intro { margin-bottom: 22px; }

/* ---------- mapa ---------- */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#map { width: 100%; background: var(--charcoal-2); overflow-x: auto; }
#map svg.journey { display: block; width: 100%; height: auto; min-width: 680px; }

.jchina { fill: rgba(30, 77, 64, 0.18); stroke: rgba(126, 200, 169, 0.28); stroke-width: 1.5; stroke-linejoin: round; }
.jzh { font: 700 88px var(--serif); fill: rgba(126, 200, 169, 0.07); letter-spacing: 0.1em; }
.jriver { fill: none; stroke: rgba(100, 150, 220, 0.12); stroke-width: 2; }

/* Rutas: el glow lo dan los <filter feDropShadow> del SVG,
   con flood-color explícito por modo (nunca currentColor). */
.jroute { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.jroute--tren { stroke: var(--tren); }
.jroute--van { stroke: var(--van); stroke-dasharray: 2 7; }
.jroute--vuelo { stroke: var(--vuelo); }
.jroute--gap { stroke: var(--danger); stroke-dasharray: 7 9; stroke-width: 2; opacity: 0.9; }

.jlabel { font: 600 12px var(--sans); fill: var(--ink-dim); }
.jlabel--tren { fill: var(--tren); }
.jlabel--van { fill: var(--van); }
.jlabel--vuelo { fill: var(--gold-soft); }
.jlabel--gap { fill: var(--danger-soft); font-size: 11.5px; }

.jnode { cursor: pointer; }
.jnode:focus { outline: none; }
.jpin-halo { fill: rgba(229, 179, 100, 0.14); transition: fill 0.2s; }
.jpin-dot { fill: var(--gold); stroke: rgba(240, 205, 147, 0.8); stroke-width: 1.5; transition: fill 0.2s; }
.jnode:hover .jpin-dot, .jnode:focus-visible .jpin-dot { fill: var(--gold-soft); }
.jnode:hover .jpin-halo, .jnode:focus-visible .jpin-halo { fill: rgba(229, 179, 100, 0.3); }
.jnode:focus-visible .jpin-dot { stroke: var(--ink); stroke-width: 2.5; }
.jpin-num { font: 700 12px var(--sans); fill: var(--charcoal); pointer-events: none; }
.jpin-name { font: 700 15px var(--serif); fill: var(--ink); letter-spacing: 0.02em; }
.jpin-sub { font: 500 10.5px var(--sans); fill: var(--ink-dim); }

.map-legend {
  position: absolute; z-index: 5; left: 12px; top: 12px;
  background: rgba(10, 15, 13, 0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; display: flex; flex-direction: column; gap: 5px;
}
.legend-title { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
@media (max-width: 640px) {
  .map-legend { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; border: none; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 14px; }
  .legend-title { width: 100%; }
}
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.swatch { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch--tren { background: var(--tren); box-shadow: 0 0 8px var(--tren); }
.swatch--van { background: var(--van); box-shadow: 0 0 8px var(--van); }
.swatch--vuelo { background: var(--vuelo); box-shadow: 0 0 8px var(--vuelo); }
.swatch--gap { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ---------- alertas ---------- */
.alert-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 18px 0 28px; }
.alert {
  display: flex; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius-sm); border: 1px solid;
  background: var(--charcoal-2);
}
.alert svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.alert h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.alert p { font-size: 13px; color: var(--ink-dim); }
.alert a { color: var(--gold); text-decoration: none; font-weight: 600; }
.alert a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.alert--warn { border-color: rgba(224, 120, 86, 0.4); }
.alert--warn svg, .alert--warn h3 { color: var(--danger); }
.alert--good { border-color: rgba(126, 200, 169, 0.35); }
.alert--good svg, .alert--good h3 { color: var(--good); }
.alert-label {
  display: inline-block; margin-bottom: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px dashed rgba(229, 179, 100, 0.45);
  border-radius: 999px; padding: 3px 10px;
}

/* ---------- filtros por ciudad ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.filter-btn {
  font: 600 12px/1 var(--sans); letter-spacing: 0.04em;
  color: var(--ink-dim); background: var(--charcoal-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--emerald-soft); }
.filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-btn.is-active, .filter-btn[aria-pressed="true"] {
  color: var(--charcoal); background: var(--gold);
  border-color: var(--gold); font-weight: 700;
  box-shadow: 0 0 14px var(--gold-glow);
}

/* ---------- tarjetas de día ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.day-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal-3));
  overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s;
}
.day-card:hover { border-color: rgba(229, 179, 100, 0.3); }
.day-card[open] { border-color: rgba(229, 179, 100, 0.4); box-shadow: 0 0 26px rgba(30, 77, 64, 0.35); }
.day-card.is-hidden { display: none; }

.day-head {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none; user-select: none;
}
.day-head::-webkit-details-marker { display: none; }
.day-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--radius); }
.day-num {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, var(--emerald), var(--charcoal-3));
  border: 1px solid rgba(229, 179, 100, 0.3);
}
.day-num b { font-family: var(--serif); font-size: 19px; color: var(--gold-soft); line-height: 1; }
.day-num span { display: block; font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.day-headtext { flex: 1; min-width: 0; }
.day-title { font-size: 15px; font-weight: 700; }
.day-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 3px; font-size: 12px; color: var(--ink-dim); }
.day-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.day-meta svg { width: 13px; height: 13px; color: var(--gold); }
.day-chev { color: var(--ink-faint); transition: transform 0.25s; flex-shrink: 0; font-size: 15px; }
.day-chev::before { content: "▾"; }
.day-card[open] .day-chev { transform: rotate(180deg); }

.day-body { padding: 4px 20px 20px 82px; }
.day-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; }
.day-line svg { width: 15px; height: 15px; color: var(--gold); margin-top: 2px; }
.day-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.day-body li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-dim); }
.day-body li::before { content: "◆"; color: var(--emerald-soft); font-size: 9px; margin-top: 5px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim);
}
.tag--gold { color: var(--gold); border-color: rgba(229, 179, 100, 0.45); }
.tag--alert { color: var(--danger); border-color: rgba(224, 120, 86, 0.45); }

.day-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 12.5px; border: 1px dashed;
}
.day-note-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.day-note-label svg { width: 13px; height: 13px; }
.day-note--bebe { color: var(--good); border-color: rgba(126, 200, 169, 0.35); background: rgba(126, 200, 169, 0.05); }
.day-note--propuesta { color: var(--gold-soft); border-color: rgba(229, 179, 100, 0.4); background: rgba(229, 179, 100, 0.06); }
.day-note--alerta { color: var(--danger-soft); border-color: rgba(224, 120, 86, 0.4); background: rgba(224, 120, 86, 0.06); }

@media (max-width: 640px) {
  .day-body { padding-left: 20px; }
}

/* ---------- hoteles · tarjetas de taxi ---------- */
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.hotel-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, var(--charcoal-2), var(--charcoal-3)); padding: 18px 20px; }
.hotel-city { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.hotel-city svg { width: 13px; height: 13px; color: var(--gold); }
.hotel-name { font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.hotel-zh { font-family: var(--serif); font-size: 24px; color: var(--gold-soft); margin: 8px 0 4px; line-height: 1.25; }
.hotel-zh--unsure { font-size: 13.5px; color: var(--ink-dim); font-family: var(--sans); font-style: italic; }
.hotel-frase { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 6px; }
.hotel-frase span[lang="zh"] { font-family: var(--serif); color: var(--gold-soft); }
.hotel-hint { font-size: 11.5px; color: var(--ink-faint); }

/* ---------- el cuento ---------- */
.storybook { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.story-page {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--charcoal-2), var(--charcoal-3));
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.story-page:hover { transform: translateY(-4px); border-color: rgba(229, 179, 100, 0.35); box-shadow: var(--shadow); }
.story-art {
  height: 150px; display: grid; place-items: center; font-size: 58px;
  position: relative; overflow: hidden;
}
.story-art::before {
  content: ""; position: absolute; inset: 0; opacity: 0.3;
  background: radial-gradient(circle at 50% 120%, var(--art-glow, var(--emerald-soft)), transparent 70%);
}
.story-art span { position: relative; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.story-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-day { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.story-title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.15; }
.story-text { font-size: 13.5px; color: var(--ink-dim); flex: 1; }
.story-mission {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 4px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px dashed rgba(229, 179, 100, 0.35); background: rgba(229, 179, 100, 0.05);
  font-size: 12.5px; color: var(--ink-dim);
}
.story-mission svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.story-mission strong { color: var(--gold-soft); }

/* ---------- riesgos ---------- */
.risklist { display: flex; flex-direction: column; gap: 14px; }
.risk-card { border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius); background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal-3)); padding: 18px 20px; }
.risk--rojo { border-left-color: var(--danger); }
.risk--ambar { border-left-color: var(--gold); }
.risk--verde { border-left-color: var(--good); }
.risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.risk-head svg { width: 19px; height: 19px; flex-shrink: 0; }
.risk--rojo .risk-head svg { color: var(--danger); }
.risk--ambar .risk-head svg { color: var(--gold); }
.risk--verde .risk-head svg { color: var(--good); }
.risk-head h3 { font-size: 14.5px; font-weight: 700; flex: 1; }
.risk-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.risk--rojo .risk-badge { color: var(--danger); border-color: rgba(224, 120, 86, 0.5); background: rgba(224, 120, 86, 0.08); }
.risk--ambar .risk-badge { color: var(--gold); border-color: rgba(229, 179, 100, 0.5); background: rgba(229, 179, 100, 0.07); }
.risk--verde .risk-badge { color: var(--good); border-color: rgba(126, 200, 169, 0.45); background: rgba(126, 200, 169, 0.07); }
.risk-why { font-size: 13px; color: var(--ink-dim); margin-bottom: 12px; }
.risk-mit { border-top: 1px dashed var(--line); padding-top: 10px; }
.risk-mit-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--good); margin-bottom: 5px; }
.risk-mit-tag svg { width: 13px; height: 13px; }
.risk-mit p { font-size: 13px; color: var(--ink-dim); }

/* ---------- guía digital ---------- */
.techlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
@media (max-width: 720px) { .techlist { grid-template-columns: 1fr; } }
.phase-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--charcoal-2); padding: 20px; }
.phase-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.phase-head svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.phase-when { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.phase-head h3 { font-size: 15px; font-weight: 700; }
.phase-steps { list-style: none; counter-reset: paso; display: flex; flex-direction: column; gap: 10px; }
.phase-steps li { counter-increment: paso; display: flex; gap: 12px; font-size: 13px; color: var(--ink-dim); }
.phase-steps li::before { content: counter(paso); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: var(--gold-soft); border: 1px solid rgba(229, 179, 100, 0.4); margin-top: 1px; }
.phase-steps strong { color: var(--ink); }

/* ---------- maletas ---------- */
.progress-wrap { margin-bottom: 22px; }
.progress-bar {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--charcoal-3); border: 1px solid var(--line);
}
.progress-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--emerald-soft), var(--gold));
  border-radius: 999px; transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--gold-glow);
}
.progress-text { font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; }
.linkbtn { background: none; border: none; color: var(--gold); font: 600 12.5px var(--sans); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.linkbtn svg { width: 12px; height: 12px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.check-group {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--charcoal-2); padding: 20px;
}
.check-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.check-group-head svg { width: 18px; height: 18px; color: var(--gold); }
.check-group-head h3 { font-size: 14px; font-weight: 700; flex: 1; }
.check-count { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.check-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 8px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.check-item:hover { background: rgba(159, 176, 166, 0.06); }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px;
  border-radius: 6px; border: 1.5px solid var(--ink-faint);
  display: grid; place-items: center; transition: all 0.2s;
}
.check-box svg { width: 12px; height: 12px; color: var(--charcoal); opacity: 0; transform: scale(0.5); transition: all 0.15s; }
.check-item input:checked + .check-box { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.check-item input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check-label { font-size: 13.5px; color: var(--ink); }
.check-label small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }
.check-item input:checked ~ .check-label { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: rgba(229, 179, 100, 0.5); }
.check-item input:checked ~ .check-label small { text-decoration: none; }
.check-item input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- agencia ---------- */
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 24px; }
.cost-card {
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--charcoal-2);
}
.cost-card--gold { border-color: rgba(229, 179, 100, 0.45); background: linear-gradient(160deg, rgba(229, 179, 100, 0.08), var(--charcoal-2)); }
.cost-card--delta { border-style: dashed; }
.cost-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.cost-value { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--gold-soft); margin-top: 4px; }
.cost-value span { font-size: 19px; }
.cost-unit { font-size: 12px; color: var(--ink-dim); }

.fineprint { font-size: 11.5px; color: var(--ink-faint); margin: -8px 0 20px; line-height: 1.6; }

.notes { display: flex; flex-direction: column; gap: 14px; }
.note-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--charcoal-2); overflow: hidden;
}
.note-card--alert { border-color: rgba(224, 120, 86, 0.4); }
.note-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.note-head svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.note-card--alert .note-head svg { color: var(--danger); }
.note-head h3 { font-size: 14px; font-weight: 700; flex: 1; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--sans); color: var(--gold);
  background: transparent; border: 1px solid rgba(229, 179, 100, 0.4);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { background: rgba(229, 179, 100, 0.12); }
.copy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.copy-btn svg { width: 13px; height: 13px; color: inherit; }
.note-body { padding: 16px 20px; }
.note-body pre {
  white-space: pre-wrap; font: 400 13px/1.65 var(--sans);
  color: var(--ink-dim);
}
.copy-all-wrap { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 14px/1 var(--sans); letter-spacing: 0.03em;
  border-radius: 999px; padding: 15px 28px; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn--gold { background: linear-gradient(145deg, var(--gold-soft), var(--gold)); color: var(--charcoal); box-shadow: 0 0 26px var(--gold-glow); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 6px 34px rgba(229, 179, 100, 0.4); }
.btn--ghost { background: transparent; color: var(--gold-soft); border: 1px solid rgba(229, 179, 100, 0.45); }
.btn--ghost:hover { background: rgba(229, 179, 100, 0.1); transform: translateY(-2px); }

/* ---------- pie / toast ---------- */
.site-footer { position: relative; z-index: 1; padding: 26px clamp(16px, 4vw, 48px) 42px; text-align: center; }
.site-footer p { font-size: 11.5px; color: var(--ink-faint); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px);
  z-index: 100; background: var(--charcoal-3); color: var(--gold-soft);
  border: 1px solid rgba(229, 179, 100, 0.4); border-radius: 999px;
  padding: 12px 22px; font: 600 13px var(--sans);
  box-shadow: var(--shadow); opacity: 0; transition: all 0.3s ease;
  pointer-events: none; max-width: min(92vw, 480px); text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- notas de la familia + reporte ---------- */
.unote { margin-top: 12px; }
.unote-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); color: var(--ink-faint); background: transparent; border: 1px dashed var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.unote-toggle:hover { color: var(--gold); border-color: rgba(229, 179, 100, .4); }
.unote-toggle svg { width: 13px; height: 13px; }
.unote.has-note .unote-toggle { color: var(--gold-soft); border-color: rgba(229, 179, 100, .45); border-style: solid; }
.unote-text { display: none; width: 100%; margin-top: 8px; background: var(--charcoal-3); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: 400 13px/1.55 var(--sans); padding: 10px 12px; resize: vertical; min-height: 44px; }
.unote-text:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.unote.open .unote-text, .unote.has-note .unote-text { display: block; }

.report-card { border: 1px solid rgba(229, 179, 100, .35); border-radius: var(--radius); background: linear-gradient(160deg, rgba(229, 179, 100, .05), var(--charcoal-2)); padding: 22px; }
.report-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.report-head svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.report-head h3 { font-size: 16px; font-weight: 700; }
.report-hint { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 16px; }
.report-sec { padding: 14px 0; border-top: 1px solid var(--line); }
.report-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.report-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--sans); color: var(--charcoal); background: var(--gold); }
.report-sec-head h4 { font-size: 14px; font-weight: 700; }
.report-punto { font-size: 13px; color: var(--ink-dim); }
.report-out { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.report-out-label { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
#report-preview { white-space: pre-wrap; font: 400 12.5px/1.6 var(--sans); color: var(--ink-dim); background: var(--charcoal); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; max-height: 420px; overflow: auto; }
