/* Concepto: señalética de aeropuerto. Barra y paneles "noche" con amarillo de cartel de salidas,
   destinos como tarjetas de embarque y un recorrido horizontal fijado de 12 meses como momento estrella. */

/* Banderas emoji en Windows: solo se descarga si la página usa esos caracteres */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Color */
  --paper: #f2f4f7;         /* terminal: gris frío con sesgo azul */
  --surface: #ffffff;
  --surface-2: #e8edf3;
  --ink: #0c1626;
  --muted: #536074;
  --line: #d8dfe8;
  --link: #1546c4;          /* azul pasaporte */
  --lagoon: #0b7f7b;        /* turquesa laguna */
  --sunset: #e4572e;        /* atardecer, para "viajar solo" */
  --signal: #ffc628;        /* amarillo de cartel de salidas: solo como relleno */
  --signal-ink: #0a1628;
  --night: #0a1628;         /* secciones de "panel": oscuras en ambos temas */
  --night-2: #13233b;
  --night-ink: #e8eef6;
  --night-muted: #93a3b8;
  --solo-bg: #fdebe4;
  --group-bg: #def3f1;
  /* Tipografía */
  --f-display: "Twemoji Country Flags", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Twemoji Country Flags", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Forma */
  --r: 14px;
  --gutter: max(16px, 4vw);
  --shadow: 0 1px 2px rgb(10 22 40 / .06), 0 12px 32px -12px rgb(10 22 40 / .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08111e; --surface: #0f1b2c; --surface-2: #16253a; --ink: #e8eef6; --muted: #9aa8bb; --line: #22344d;
    --link: #8db4ff; --lagoon: #45d0c6; --sunset: #ff8a63; --night: #050c17; --night-2: #0e1b2e;
    --solo-bg: #2a1912; --group-bg: #0d2827;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #08111e; --surface: #0f1b2c; --surface-2: #16253a; --ink: #e8eef6; --muted: #9aa8bb; --line: #22344d;
  --link: #8db4ff; --lagoon: #45d0c6; --sunset: #ff8a63; --night: #050c17; --night-2: #0e1b2e;
  --solo-bg: #2a1912; --group-bg: #0d2827;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font: 600 .78rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.6em 0 .6em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.content { display: flex; flex-direction: column; gap: 56px; padding-block: 48px 96px; }
.content > section > h2, .content > section > header h2 { margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.label { font: 600 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--signal); color: var(--signal-ink); padding: 8px 12px; }

/* ---------- Cabecera: franja de señalética ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); color: var(--night-ink); border-bottom: 1px solid rgb(255 255 255 / .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; font: 800 1.2rem/1 var(--f-display); font-stretch: 118%; letter-spacing: -.01em; margin: 0; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--signal); color: var(--signal-ink); font-size: .95rem; }
.main-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { color: var(--night-ink); text-decoration: none; font: 600 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover { background: rgb(255 255 255 / .08); color: var(--signal); }
.flight-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.flight-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--signal); }
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 4px; padding-block: 10px 6px; }
  .main-nav { margin-inline: -12px; }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--signal); color: var(--signal-ink); font: 700 .95rem/1 var(--f-body); text-decoration: none; padding: 16px 22px; border-radius: 8px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 24px -10px rgb(255 198 40 / .7); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 12px 16px; font-size: .9rem; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 8px 0; align-self: flex-start; }
label { display: flex; flex-direction: column; gap: 6px; font: 600 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); min-width: 0; }
select, input { font: 500 1rem/1.2 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 48px; width: 100%; }

/* ---------- Hero de inicio: panel de salidas ---------- */
.hero-board { position: relative; isolation: isolate; background: var(--night); color: var(--night-ink); padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-board .hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-board .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1); }
.hero-board .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--night) 25%, rgb(10 22 40 / .55) 70%, rgb(10 22 40 / .2)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-board .eyebrow { color: var(--signal); margin-bottom: 18px; }
.hero-board h1 { color: #fff; }
.hero-board h1 em { font-style: normal; color: var(--signal); }
.hero-board .lead { color: var(--night-muted); font-size: 1.15rem; max-width: 46ch; margin: 22px 0 30px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.board { background: rgb(5 12 23 / .88); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r); padding: 18px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); backdrop-filter: blur(6px); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--signal); margin-bottom: 12px; }
.board-head strong { font: 800 1.15rem/1 var(--f-display); font-stretch: 120%; text-transform: uppercase; letter-spacing: .04em; }
.board-clock { font: 600 .9rem/1 var(--f-mono); color: var(--night-ink); font-variant-numeric: tabular-nums; }
.board-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.board-table th { font: 600 .66rem/1 var(--f-mono); color: var(--night-muted); text-transform: uppercase; letter-spacing: .14em; text-align: left; padding: 0 8px 4px; }
.board-table td { background: var(--night-2); padding: 10px 8px; font-size: .92rem; color: #f3f6fa; white-space: nowrap; }
.board-table td:first-child { border-radius: 6px 0 0 6px; }
.board-table td:last-child { border-radius: 0 6px 6px 0; }
.board-table a { color: inherit; text-decoration: none; }
.board-table tr:hover td { background: #1b3050; }
.board-table .code { color: var(--signal); font-weight: 600; }
.board-table .dest { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: rgb(69 208 198 / .15); color: #6fe3d8; }
.status.boarding { background: var(--signal); color: var(--signal-ink); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.flip-char { display: inline-block; min-width: .6em; }
@media (max-width: 560px) { .board-table .hide-sm { display: none; } .board { padding: 12px; } }

/* ---------- Un año en 12 vuelos (scroll horizontal fijado) ---------- */
.year { position: relative; background: var(--night); color: var(--night-ink); }
.year-pin { display: flex; flex-direction: column; gap: 24px; padding-block: 56px 40px; }
.year-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.year-head h2 { color: #fff; }
.year-head p { color: var(--night-muted); margin: 8px 0 0; max-width: 52ch; }
.route { position: relative; height: 34px; margin-inline: var(--gutter); }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route .track-line { stroke: rgb(255 255 255 / .25); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
.route .done-line { stroke: var(--signal); stroke-width: 2; fill: none; }
.route .plane { position: absolute; top: 50%; left: 0; font-size: 1.3rem; color: var(--signal); transform: translate(-50%, -50%) rotate(0deg); }
.route-ticks { display: flex; justify-content: space-between; margin: 6px var(--gutter) 0; font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; color: var(--night-muted); }
.route-ticks a { color: inherit; text-decoration: none; padding: 12px 2px; min-width: 24px; text-align: center; }
.route-ticks a:hover { color: var(--night-ink); }
.route-ticks a.is-active { color: var(--signal); }
.year-track { display: flex; gap: 20px; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.panel { position: relative; isolation: isolate; flex: 0 0 min(78vw, 560px); height: clamp(380px, 62vh, 560px); border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: var(--night-2); }
.panel-img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.panel-img img { width: 120%; max-width: none; height: 100%; object-fit: cover; transform: translateX(calc(var(--shift, 0) * 1%)) scale(1.04); will-change: transform; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(5 12 23 / .55) 0%, rgb(5 12 23 / 0) 35%, rgb(5 12 23 / .2) 55%, rgb(5 12 23 / .92) 100%); }
.panel-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel-num { font: 600 .8rem/1 var(--f-mono); letter-spacing: .14em; background: var(--signal); color: var(--signal-ink); padding: 6px 9px; border-radius: 4px; }
.panel-season { font: 600 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: rgb(5 12 23 / .55); padding: 6px 9px; border-radius: 4px; }
.panel { container-type: inline-size; }
.panel-name { display: block; font: 800 12cqi/.9 var(--f-display); font-stretch: 125%; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 14px; text-shadow: 0 4px 30px rgb(0 0 0 / .35); }
.panel-dests { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.panel-dests li { font: 500 .78rem/1 var(--f-mono); background: rgb(255 255 255 / .14); backdrop-filter: blur(6px); padding: 7px 9px; border-radius: 4px; }
.panel-dests b { color: var(--signal); font-weight: 600; margin-right: 6px; }
.panel-cta { font-weight: 700; color: var(--signal); }
.panel.is-current .panel-num::after { content: " · ESTE MES"; }
/* Modo fijado (lo activa app.js si el usuario no pide movimiento reducido) */
.year.is-pinned { height: var(--year-h, 400vh); }
.year.is-pinned .year-pin { position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center; overflow: hidden; padding-block: 72px 24px; }
.year.is-pinned .year-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-bottom: 0; }

/* ---------- Buscador ---------- */
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.planner h2 { margin-bottom: 6px; }
.planner-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 12px; }
.planner-count { font: 600 .8rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 8px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: 76px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--link); transform: translateY(-2px); }
.card-img { position: relative; background: var(--surface-2); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: .9rem; min-width: 0; }
.card-body strong { font-size: 1rem; }
.card-meta { font: 500 .76rem/1.4 var(--f-mono); color: var(--lagoon); margin-top: 4px; }

/* ---------- Solo / grupo ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.split-card { position: relative; isolation: isolate; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; }
.split-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.split-card:hover img { transform: scale(1.05); }
.split-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(5 12 23 / .88)); }
.split-card .label { color: var(--signal); }
.split-card p { color: rgb(255 255 255 / .85); margin: 0; max-width: 40ch; }
.link { font-weight: 700; color: var(--signal); margin-top: 6px; }

/* ---------- Hero de mes / guías ---------- */
.hero-photo { position: relative; isolation: isolate; min-height: clamp(420px, 66vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-photo .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-photo .hero-bg img { width: 100%; height: 115%; object-fit: cover; transform: translateY(calc(var(--py, 0) * 1px)) scale(calc(1 + var(--pz, 0))); will-change: transform; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(5 12 23 / .7) 0%, rgb(5 12 23 / .15) 70%), linear-gradient(180deg, rgb(5 12 23 / .35) 0%, rgb(5 12 23 / 0) 30%, rgb(5 12 23 / .9) 100%); }
.hero-photo .wrap { padding-block: 48px; }
.hero-photo .eyebrow { color: var(--signal); margin-bottom: 14px; }
.hero-photo h1 { color: #fff; max-width: 16ch; }
.hero-photo .lead { color: rgb(255 255 255 / .86); font-size: 1.12rem; max-width: 60ch; margin: 18px 0 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 .78rem/1.4 var(--f-mono); color: rgb(255 255 255 / .7); }
.hero-meta a { color: inherit; }
.hero-small { background: var(--night); color: var(--night-ink); padding-block: 48px 40px; }
.hero-small .eyebrow { color: var(--signal); margin-bottom: 12px; }
.hero-small h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.hero-small .lead { color: var(--night-muted); font-size: 1.1rem; max-width: 62ch; margin: 16px 0 0; }

/* ---------- Tabla tipo panel ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--night-muted); background: var(--night); }
.compare tbody th { font-weight: 600; }
.compare tbody th a { color: var(--ink); text-decoration: none; }
.compare tbody th a:hover { color: var(--link); }
.compare .code { font: 600 .85rem/1 var(--f-mono); color: var(--lagoon); }
.dots { color: var(--sunset); letter-spacing: 2px; font-size: .78rem; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pick .label { color: var(--muted); display: block; margin-bottom: 4px; }
.pick a { font-weight: 700; color: var(--ink); text-decoration: none; }
.pick a:hover { color: var(--link); }
.footnote { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Tarjeta de embarque ---------- */
.passes { display: flex; flex-direction: column; gap: 36px; }
.pass { --notch: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: 90px;
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 210px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 210px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at calc(100% - 210px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 210px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.pass-main { min-width: 0; }
.pass-photo { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-2); border-radius: var(--r) 0 0 0; }
.pass-photo img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); font: 500 .66rem/1.3 var(--f-mono); color: #fff; background: rgb(5 12 23 / .6); padding: 4px 7px; border-radius: 4px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit:hover { text-decoration: underline; }
.pass-body { padding: clamp(20px, 3vw, 32px); }
.pass-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 4px; }
.pass-country { font: 500 .78rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; border-block: 1px solid var(--line); }
.facts div { padding: 12px 12px 12px 0; min-width: 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font: 600 .66rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.tags li { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.checks { padding-left: 0; list-style: none; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--lagoon); font-weight: 700; }
.note { border-left: 3px solid var(--signal); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: .95rem; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 20px 0; }
.tip { border-radius: 10px; padding: 16px 18px; }
.tip p { margin: 0; font-size: .97rem; }
.tip .label { margin-bottom: 8px; }
.tip-solo { background: var(--solo-bg); }
.tip-solo .label { color: var(--sunset); }
.tip-group { background: var(--group-bg); }
.tip-group .label { color: var(--lagoon); }
.book { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.book .label { color: var(--muted); margin-right: 4px; }
.book a { padding: 9px 14px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.book a:hover { border-color: var(--link); color: var(--link); }

.pass-stub { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 22px; background: var(--night); color: var(--night-ink); border-left: 2px dashed rgb(255 255 255 / .25); }
.stub-route { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stub-route b { font: 800 1.65rem/1 var(--f-display); font-stretch: 100%; letter-spacing: .02em; }
.stub-route b.to { color: var(--signal); }
.stub-route span { color: var(--night-muted); }
.stub-row { display: grid; gap: 2px; }
.stub-row .label { color: var(--night-muted); font-size: .64rem; }
.stub-row strong { font: 600 .95rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.barcode { margin-top: auto; height: 46px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--night-ink) 0 2px, transparent 2px 4px, var(--night-ink) 4px 5px, transparent 5px 9px, var(--night-ink) 9px 12px, transparent 12px 13px, var(--night-ink) 13px 14px, transparent 14px 18px); opacity: .85; }
@media (max-width: 820px) {
  .pass { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; overflow: hidden; }
  .pass-photo { border-radius: var(--r) var(--r) 0 0; }
  .pass-stub { border-left: 0; border-top: 2px dashed rgb(255 255 255 / .25); display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
  .stub-route { grid-column: 1 / -1; justify-content: flex-start; gap: 16px; }
  .barcode { display: none; }
}

/* Aparición de tarjetas al hacer scroll (solo navegadores con scroll-driven animations) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .pass { animation: pass-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .pass-photo img { animation: photo-in linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes pass-in { from { opacity: 0; transform: translateY(80px) rotate(-1.2deg) scale(.97); } }
@keyframes photo-in { from { clip-path: inset(0 0 0 100%); transform: scale(1.25); } to { clip-path: inset(0); transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Bloques de contenido ---------- */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.box > h2:first-child { margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 600 1.3rem/1 var(--f-mono); color: var(--lagoon); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; }
.month-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.month-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 10px; background: var(--night); color: var(--night-ink); text-decoration: none; min-width: min(100%, 240px); }
.month-nav a[rel="next"] { text-align: right; margin-left: auto; }
.month-nav .label { color: var(--night-muted); }
.month-nav strong { font: 800 1.3rem/1.1 var(--f-display); font-stretch: 115%; color: var(--signal); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related-card span { color: var(--muted); font-size: .92rem; }
.related-card:hover { border-color: var(--link); }
.toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc-title { margin-bottom: 10px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.guide-section h2 { margin-bottom: 16px; }
.guide-section { max-width: 780px; }

/* Calculadora */
.calc { display: flex; flex-direction: column; gap: 14px; }
.calc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.calc-row label { flex: 1 1 130px; }
.calc-row .grow { flex: 2 1 200px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--group-bg); padding: 6px 8px 6px 14px; border-radius: 6px; font-weight: 600; }
.chips button, .expenses button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 6px; }
.expenses { list-style: none; padding: 0; margin: 0; }
.expenses li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.settle-list { list-style: none; padding: 0; }
.settle-list li { padding: 12px 14px; background: var(--surface-2); border-radius: 8px; margin: 6px 0; }
.example-note { font: 500 .76rem/1.4 var(--f-mono); color: var(--muted); }

/* Anuncios: altura reservada para evitar saltos (CLS) */
.ad { min-height: 280px; text-align: center; }
.ad-label { display: block; font: 600 .64rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: var(--night-ink); padding-block: 56px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.site-footer .muted { color: var(--night-muted); }
.footer-title { color: var(--signal); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-months { columns: 2; }
.legal-links { border-top: 1px solid rgb(255 255 255 / .1); margin: 36px 0 0; padding-top: 18px; color: var(--night-muted); font-size: .85rem; }
.legal-links a { color: var(--night-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
