/* Coco Volare · Monitor de viaje · misma paleta Noir + oro de cocovolare.com */
@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url('/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 300; font-display: swap; src: url('/fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
/* Tablero: B612 Mono (tipografía diseñada para pantallas de cabina) + Oswald para el rótulo */
@font-face { font-family: 'Board'; font-weight: 400; font-display: swap; src: url('/fonts/b612-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Board'; font-weight: 700; font-display: swap; src: url('/fonts/b612-mono-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0d0c0a; --bg-2: #131110; --surface: #1a1816; --surface-2: #211e1b;
  --ink: #f2efe8; --sub: #b9b2a5; --mute: #8a8478;
  --gold: #c4a84f; --gold-deep: #d9be61; --gold-soft: rgba(196, 168, 79, .14);
  --line: rgba(196, 168, 79, .2); --line-2: rgba(255, 255, 255, .07);
  --ok: #c4a84f; --go: #7fb6d9; --live: #6fd39b; --warn: #f0a845; --bad: #ef6b5e; --done: #8a8478;
  /* Colores del tablero (tipo aeropuerto) */
  --b-amber: #ffc93c; --b-green: #3ee07a; --b-cyan: #4fd1ff; --b-orange: #ff9f1c; --b-red: #ff4d4d; --b-white: #ecebe6; --b-grey: #8d8d8d;
  --f-disp: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Aptos', 'Inter', system-ui, -apple-system, sans-serif;
  --f-board: 'Board', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 14px; --r-lg: 20px;
  --ease: cubic-bezier(.25, 1, .35, 1);
  --sh: 0 1px 3px rgba(0,0,0,.2), 0 18px 40px -18px rgba(0,0,0,.6);
  --dock-h: 62px;
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 44px);
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .7rem; }
.kicker::before { content: ''; width: 1.6rem; height: 1px; background: var(--gold); }
.kicker--sm { font-size: .6rem; letter-spacing: .24em; margin-bottom: .35rem; }
.kicker--sm::before { width: 1rem; }

/* ── Header con menú ── */
.top {
  position: fixed; z-index: 50; top: calc(10px + env(safe-area-inset-top)); left: 0; right: 0; margin-inline: auto;
  width: min(100% - 20px, 980px); height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,12,10,.62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--sh);
}
.top__brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.top__brand img { width: 22px; height: auto; }
.top__brand span { display: none; line-height: 1.1; }
.top__brand b { font: 600 .82rem var(--f-disp); letter-spacing: .14em; text-transform: uppercase; }
.top__brand small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.tabs { display: flex; gap: 2px; height: 44px; }
.tabs a { display: flex; align-items: center; gap: .35rem; padding: 0 .7rem; border-radius: 999px; font-size: .78rem; font-weight: 400; color: var(--sub); transition: background .3s, color .3s; }
.tabs a svg { font-size: 1rem; }
.tabs a.is-on { background: var(--gold); color: #2b2412; font-weight: 500; }
@media (max-width: 440px) { .tabs a { flex-direction: column; justify-content: center; gap: 1px; padding: 0 .55rem; font-size: .62rem; } .tabs a svg { font-size: 1.05rem; } .top { padding-left: 10px; } }

/* ── Barra inferior: Seguro + Contactos ── */
.dock {
  position: fixed; z-index: 55; left: 0; right: 0; margin-inline: auto; bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(100% - 20px, 520px); height: var(--dock-h); padding: 6px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(13,12,10,.8); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
}
.dock button { display: flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 999px; font-size: .84rem; font-weight: 400; color: var(--ink); transition: background .3s, color .3s; }
.dock button svg { font-size: 1.15rem; color: var(--gold-deep); }
.dock button:first-child { background: var(--gold); color: #2b2412; font-weight: 500; }
.dock button:first-child svg { color: #2b2412; }
.dock button:last-child { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.dock button.is-on { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.dock .dock__sos { width: 64px; flex-direction: column; gap: 0; background: rgba(239,107,94,.14); border: 1px solid rgba(239,107,94,.45); color: #ff8a7e; font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.dock .dock__sos svg { color: #ff6b5e; font-size: 1.05rem; }
.dock .dock__sos.is-on { outline-color: #ff6b5e; }

/* ── Hoja inferior ── */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; width: min(100%, 560px);
  max-height: 86svh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #1f1c19, #141210); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6);
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 0 auto 14px; cursor: pointer; }
.sheet__x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--sub); background: rgba(255,255,255,.06); }
.sheet h2 { font-size: 1.45rem; margin-bottom: .6rem; padding-right: 40px; }
.sheet__sub { font-size: .86rem; color: var(--sub); margin-bottom: 1rem; }
.sheet__btns { display: grid; gap: 10px; margin-top: 16px; }
.sheet__btns .btn { width: 100%; }

.ins { display: grid; gap: 12px; }
.ins--pending { padding: 14px; border-radius: var(--r); border: 1px dashed var(--line); background: rgba(196,168,79,.05); font-size: .9rem; color: var(--sub); }
.ins__plan { color: var(--sub); font-size: .9rem; }
.ins__num { position: relative; padding: 14px; border-radius: var(--r); background: rgba(0,0,0,.3); border: 1px dashed var(--line); }
.ins__num small, .ins__row small { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.ins__num b { font: 700 1.3rem var(--f-board); color: var(--b-amber); letter-spacing: .06em; overflow-wrap: anywhere; }
.ins__copy { position: absolute; top: 12px; right: 12px; font-size: .72rem; color: var(--gold-deep); padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; }
.ins__row { display: flex; gap: 16px; flex-wrap: wrap; }
.ins__row b { font-weight: 400; text-transform: capitalize; }
.ins__cov { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.ins__cov li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); font-size: .86rem; }
.ins__cov b { font-weight: 500; color: var(--gold-deep); }
.ins__how { font-size: .84rem; color: var(--sub); }

.cg { margin-top: 14px; }
.cg h4 { font: 500 .62rem var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.cc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 8px; }
.cc--main { border-color: var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(196,168,79,.12), transparent 60%), var(--surface); }
.cc__who { display: grid; min-width: 0; }
.cc__who b { font-weight: 500; font-size: .95rem; }
.cc__who small { font-size: .76rem; color: var(--sub); line-height: 1.35; }
.cc__num { font: 400 .8rem var(--f-board); color: var(--mute); margin-top: 2px; }
.cc__act { display: flex; gap: 6px; flex: none; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink); }
.ib--gold { background: var(--gold); color: #2b2412; border-color: transparent; }

/* ── Dots ── */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(111,211,155,.6); animation: pulse 2s infinite; display: inline-block; flex: none; }
.dot--off { background: var(--mute); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(111,211,155,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,155,0); } }

/* ── Boot / empty ── */
.boot, .empty { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 2rem var(--gut); color: var(--sub); }
.boot__ring { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty h1 { font-size: 1.5rem; color: var(--ink); }
.empty .kicker { margin: .4rem 0 0; }
.empty p:not(.kicker) { max-width: 34ch; }

/* ── Hero ── */
.hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 70% 10%, #3a2f1a 0%, var(--bg) 70%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kb 24s var(--ease) both; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,10,.35) 0%, rgba(13,12,10,.15) 30%, rgba(13,12,10,.85) 72%, var(--bg) 100%); }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__in { width: min(100% - 2 * var(--gut), 980px); margin: 0 auto; padding: 84px 0 14px; }
.hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero__top .kicker { margin-bottom: .25rem; }
.hero__top .chip { margin-bottom: 4px; }
.hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.8rem); text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero__route { margin-top: .45rem; font: 600 clamp(.8rem, 3.4vw, 1rem) var(--f-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--sub); display: flex; flex-wrap: wrap; gap: .1rem .55rem; }
.hero__route i { color: var(--gold); font-style: normal; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1rem; }
.chip { padding: .42rem .9rem; border-radius: 999px; font-size: .74rem; font-weight: 400; letter-spacing: .03em; background: rgba(12,11,9,.45); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip--gold { background: var(--gold); color: #2b2412; border-color: transparent; font-weight: 500; }
.next {
  width: 100%; text-align: left; display: flex; align-items: flex-start; gap: .75rem; padding: .8rem .95rem; border-radius: var(--r-lg);
  background: rgba(26,24,22,.6); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sh); transition: transform .3s var(--ease), border-color .3s;
}
.next:hover { transform: translateY(-2px); border-color: rgba(196,168,79,.45); }
.next__k { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.next__x { font-size: .94rem; font-weight: 400; line-height: 1.35; }
.next__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); flex: none; font-size: 1.05rem; }
.next__body { display: grid; gap: .2rem; min-width: 0; }
.next__live { display: flex; align-items: center; gap: .7rem; margin-top: .3rem; font-size: .85rem; color: var(--sub); }
.next__gate b { color: var(--ink); font-weight: 500; font-size: 1.05rem; }

/* ── Relojes y clima ── */
@media (max-width: 420px) { .hero .kicker { letter-spacing: .18em; } .cty small { font-size: .52rem; letter-spacing: .02em; } }
.cities { margin: .8rem 0 .7rem; }
.cities__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cty {
  display: grid; justify-items: center; gap: 1px; padding: 8px 2px 7px; border-radius: 14px; min-width: 0;
  background: rgba(12,11,9,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .3s, transform .3s var(--ease);
}
.cty small { font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cty b { font: 500 clamp(.95rem, 4.4vw, 1.2rem)/1.3 var(--f-body); color: var(--b-amber); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cty__wx { display: flex; align-items: center; gap: 3px; font-size: .78rem; }
.cty__wx svg { font-size: 1.05rem; }
.cty__wx em { font-style: normal; font-weight: 500; color: var(--ink); }
.cty__wx em.na { color: var(--mute); }
.cty.is-here { background: rgba(196,168,79,.24); }
.cty.is-here small { color: var(--gold-deep); font-weight: 500; }
.cty.is-open { transform: translateY(-2px); background: rgba(40,36,30,.75); }
.cty.is-here.is-open { background: rgba(196,168,79,.32); }
.cty__det { display: flex; align-items: flex-start; gap: .55rem; margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(12,11,9,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .8rem; color: var(--sub); animation: fade .3s var(--ease); }
.cty__det svg { font-size: 1.2rem; margin-top: .1rem; }
.cty__det b { color: var(--ink); font-weight: 500; }
.wx--sun, .wx--sun * { color: #ffc93c; fill: #ffc93c; }
.wx--moon { fill: #e9e3c9; }
.wx--cloud { fill: #cfd3d8; color: #cfd3d8; }
.legal a { color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }

/* ── Panels ── */
.panel { display: none; width: min(100% - 2 * var(--gut), 980px); margin: 0 auto; padding: 22px 0 10px; animation: fade .45s var(--ease); scroll-margin-top: 80px; }
.panel.is-on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.ph { margin-bottom: 1.2rem; }
.ph h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); margin-bottom: .45rem; }
.ph__sub { color: var(--sub); font-size: .92rem; max-width: 62ch; }
.fineprint { margin: 1rem 0 0; font-size: .75rem; color: var(--mute); }

/* ── Pills ── */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; font-style: normal; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.pill--ok { color: var(--ok); } .pill--go { color: var(--go); } .pill--live { color: var(--live); }
.pill--warn { color: var(--warn); } .pill--bad { color: var(--bad); } .pill--done, .pill--muted { color: var(--mute); }
.pill--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

/* ════════ Tablero de salidas ════════ */
.board {
  /* 23 fichas por fila en móvil (2 líneas), 42 en escritorio (1 línea) */
  --cols: 23; --gap-c: 7px; --pad: 10px;
  --tw: min(24px, calc((min(100vw, 980px + 2 * var(--gut)) - 2 * var(--gut) - 2 * var(--pad) - 2 * var(--gap-c) - var(--cols) * 1.5px) / var(--cols)));
  --th: calc(var(--tw) * 1.42);
  position: relative; padding: var(--pad); border-radius: 16px;
  background: linear-gradient(180deg, #121212, #070707); border: 1px solid #2a2a2a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -20px rgba(0,0,0,.9);
  font-family: var(--f-board);
}
.board::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px); }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 12px; border-bottom: 1px solid #262626; margin-bottom: 8px; }
.board__title { display: flex; align-items: center; gap: 10px; font: 600 clamp(1.4rem, 7vw, 2rem)/1 'Oswald', var(--f-body); letter-spacing: .06em; color: var(--b-white); }
.board__ico { width: 1.25em; height: 1.25em; border-radius: 5px; display: grid; place-items: center; background: var(--b-amber); color: #111; font-size: .8em; }
.board__clock { text-align: right; display: grid; line-height: 1.1; }
.board__clock small { font-size: .55rem; letter-spacing: .16em; color: var(--b-grey); }
.board__clock b { font: 500 1.4rem var(--f-body); color: var(--b-amber); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.board__head, .bgrid {
  display: grid; column-gap: var(--gap-c); row-gap: 5px;
  grid-template-columns: calc(6 * (var(--tw) + 1.5px)) calc(6 * (var(--tw) + 1.5px)) 1fr;
  grid-template-areas: 'time flight dest' 'date gate status';
}
.board__head { padding: 0 2px 6px; font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; color: var(--b-grey); }
.bh--date, .bh--gate, .bh--status { display: none; }
.bh--time, .bc--time { grid-area: time; } .bh--flight, .bc--flight { grid-area: flight; } .bh--dest, .bc--dest { grid-area: dest; }
.bc--date { grid-area: date; } .bc--gate { grid-area: gate; } .bc--status { grid-area: status; }
.board__head::after { content: 'Fecha · Puerta · Estado en la 2.ª línea'; grid-column: 1 / -1; font-size: .5rem; letter-spacing: .08em; text-transform: none; color: #5d5d5d; }

.brow { border-top: 1px solid #1d1d1d; transition: background .6s; }
.brow:first-child { border-top: 0; }
.brow.is-new { background: rgba(255,201,60,.06); }
.bgrid { width: 100%; padding: 9px 2px; text-align: left; border-radius: 8px; }
.bgrid:hover { background: rgba(255,255,255,.025); }
.bc { display: flex; gap: 1.5px; color: var(--b-amber); min-width: 0; }
.bc--date, .bc--gate { color: var(--b-white); }
.t {
  position: relative; flex: none; width: var(--tw); height: var(--th);
  display: grid; place-items: center; font: 700 calc(var(--tw) * .78)/1 var(--f-board); font-style: normal;
  background: linear-gradient(180deg, #303030 0%, #232323 49%, #151515 51%, #1d1d1d 100%);
  border-radius: 2.5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.04);
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 35%, transparent);
  transform-origin: 50% 50%;
}
.t::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.85); }
.t--sp { color: transparent; text-shadow: none; }
.t.is-flip { animation: flip .055s linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); filter: brightness(1.6); } 100% { transform: scaleY(1); } }

.tone-ok { color: var(--b-green); } .tone-live { color: var(--b-amber); } .tone-go { color: var(--b-cyan); }
.tone-warn { color: var(--b-orange); } .tone-bad { color: var(--b-red); } .tone-done { color: var(--b-grey); } .tone-muted { color: var(--b-white); }
.bc--status.tone-live .t:not(.t--sp), .bc--status.tone-bad .t:not(.t--sp) { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.bgrid.tone-done .bc { opacity: .55; }

.bdet { margin: 0 2px 10px; padding: 12px; border-radius: 10px; background: #0f0f0f; border: 1px solid #262626; font-size: .78rem; color: var(--b-grey); animation: fade .3s var(--ease); }
.bdet__route { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--b-white); margin-bottom: 10px; }
.bdet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bdet__side > p { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--b-amber); margin-bottom: 6px; }
.bdet dl { margin: 0; display: grid; gap: 6px; }
.bdet dl div { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.025); }
.bdet dt { font-size: .66rem; }
.bdet dd { margin: 0; text-align: right; }
.bdet b { color: var(--b-white); font-weight: 700; }
.bdet b.na { color: #5d5d5d; font-weight: 400; font-size: .64rem; }
.bdet s { color: #6a6a6a; }
.bdet__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .68rem; }
.bdet__foot > span:first-child { display: flex; align-items: center; gap: .45rem; }
.board__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 2px 2px; margin-top: 6px; border-top: 1px solid #262626; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--b-grey); }
.board__live { display: flex; align-items: center; gap: .45rem; color: var(--b-white); }

/* ── Hotels ── */
.hotels { display: grid; gap: 16px; }
.ht { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh); }
.ht--done { opacity: .62; }
.ht--live { border-color: rgba(111,211,155,.35); }
.ht__img { position: relative; aspect-ratio: 16 / 8; background: var(--surface-2); }
.ht__img img { width: 100%; height: 100%; object-fit: cover; }
.ht__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,24,22,.9)); }
.ht__img--art, .day__head--art { background: radial-gradient(90% 120% at 20% 0%, #2c4a55 0%, transparent 60%), radial-gradient(80% 100% at 100% 100%, #5a4520 0%, transparent 60%), #15201f; display: grid; place-items: center; }
.ht__img--art span { font: 600 clamp(1.6rem, 8vw, 2.4rem) var(--f-disp); letter-spacing: .3em; color: rgba(242,239,232,.18); text-transform: uppercase; }
.ht__img .pill { position: absolute; z-index: 1; top: 12px; right: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(13,12,10,.6); }
.ht__img .pill--muted { color: #e4ddcf; border-color: rgba(228,221,207,.45); }
.ht__body { padding: 4px 16px 16px; margin-top: -26px; position: relative; z-index: 1; }
.ht h3 { font-size: 1.3rem; margin-bottom: .9rem; }
.ht__dates { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 10px 12px; border-radius: var(--r); background: rgba(0,0,0,.25); border: 1px solid var(--line-2); }
.ht__dates div { display: grid; }
.ht__dates div:last-child { text-align: right; }
.ht__dates small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ht__dates b { font-weight: 400; font-size: .95rem; text-transform: capitalize; }
.ht__n { font-size: .72rem; color: var(--gold-deep); padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.ht__note { margin: .8rem 0 1rem; font-size: .86rem; color: var(--sub); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.3rem; border-radius: 999px; font-size: .85rem; font-weight: 400; border: 1px solid transparent; transition: transform .3s var(--ease), background .3s, border-color .3s; min-height: 46px; }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: #2b2412; font-weight: 500; box-shadow: 0 8px 26px -10px rgba(196,168,79,.6); }
.btn--line { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--gold); }
.btn--line:disabled { opacity: .3; cursor: default; }
.btn--sm { padding: .55rem 1rem; min-height: 38px; font-size: .8rem; }
.btn svg { font-size: 1.05em; }

/* ── Itinerary ── */
.days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)) 16px; padding: 4px var(--gut) 10px;
  scrollbar-width: none; position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: 10;
  background: linear-gradient(180deg, var(--bg) 80%, transparent);
}
.days::-webkit-scrollbar { display: none; }
.dchip { flex: none; scroll-snap-align: center; width: 62px; padding: 8px 0 9px; border-radius: 16px; display: grid; justify-items: center; background: var(--surface); border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.dchip small { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.dchip b { font: 600 1.35rem/1.15 var(--f-disp); }
.dchip span { font-size: .66rem; color: var(--sub); text-transform: capitalize; }
.dchip.is-past { opacity: .55; }
.dchip.is-today { border-color: var(--live); }
.dchip.is-today small { color: var(--live); }
.dchip.is-on { background: var(--gold); border-color: var(--gold); color: #2b2412; opacity: 1; transform: translateY(-2px); }
.dchip.is-on small, .dchip.is-on span { color: #4a3e1d; }
.day { animation: fade .4s var(--ease); }
.day__head { position: relative; height: 150px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; margin-bottom: 14px; }
.day__head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day__head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(13,12,10,.88)); }
.day__head > div { position: relative; z-index: 1; padding: 14px 16px; width: 100%; }
.day__head h3 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
.alert { display: flex; gap: .7rem; padding: 12px 14px; border-radius: var(--r); background: rgba(240,168,69,.08); border: 1px solid rgba(240,168,69,.35); color: #f4d3a3; font-size: .86rem; margin-bottom: 14px; }
.alert svg { color: var(--warn); font-size: 1.15rem; margin-top: .1rem; }
.blk { margin-bottom: 8px; }
.blk h4 { font: 500 .62rem var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); padding: 10px 0 8px; display: flex; align-items: center; gap: .6rem; }
.blk h4::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.tl { list-style: none; margin: 0; padding: 0; }
.ti { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.ti::before { content: ''; position: absolute; left: 54px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--mute); }
.ti--key::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.ti > time { font-size: .86rem; font-weight: 400; color: var(--gold-deep); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ti > div { padding-left: 18px; min-width: 0; }
.ti p { font-size: .93rem; line-height: 1.5; }
.ti--key p { font-weight: 400; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mute); }
.tag--n { color: var(--warn); border-color: rgba(240,168,69,.35); }
.flink { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: .8rem; color: var(--sub); width: 100%; text-align: left; }
.flink b { color: var(--ink); font-weight: 500; }
.flink__go { margin-left: auto; color: var(--gold-deep); }
.bk { margin-top: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.bk summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: 9px 12px; font-size: .8rem; color: var(--sub); }
.bk summary::-webkit-details-marker { display: none; }
.bk summary::after { content: '+'; margin-left: auto; font-size: 1.1rem; color: var(--gold-deep); transition: transform .3s; }
.bk[open] summary::after { transform: rotate(45deg); }
.bk__ok { color: var(--live); font-weight: 500; font-size: .72rem; letter-spacing: .04em; }
.bk__in { padding: 2px 12px 14px; display: grid; gap: 10px; font-size: .85rem; color: var(--sub); }
.bk__ref { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px dashed var(--line); }
.bk__ref small { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.bk__ref b { font: 600 1.05rem var(--f-disp); letter-spacing: .06em; color: var(--gold-deep); overflow-wrap: anywhere; }
.bk__prov { font-size: .78rem; }
.bk__place { display: flex; gap: .5rem; color: var(--ink); }
.bk__place svg { color: var(--gold); margin-top: .2rem; }
.bk ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.bk .btn { justify-self: start; }
.day__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

/* ── Footer ── */
.foot { width: min(100% - 2 * var(--gut), 980px); margin: 28px auto 0; padding-bottom: 10px; }
.legal { margin-top: 8px; text-align: center; font-size: .66rem; letter-spacing: .08em; color: var(--mute); }
.legal--priv { color: var(--sub); letter-spacing: .02em; }

/* ── Escritorio ── */
@media (min-width: 640px) { .top__brand span { display: grid; } }
@media (min-width: 860px) {
  :root { --gut: 24px; }
  .tabs a { padding: 0 1.15rem; font-size: .86rem; }
  .cty { padding: 10px 4px 9px; }
  .hotels { grid-template-columns: repeat(2, 1fr); }
  .days { top: 80px; margin-inline: 0; padding-inline: 0; }
  .day__head { height: 220px; }
  .sheet__panel { bottom: 50%; border-radius: 24px; border-bottom: 1px solid var(--line); transform: translateY(calc(50% + 40px)); opacity: 0; transition: transform .32s var(--ease), opacity .25s; }
  .sheet.is-open .sheet__panel { transform: translateY(50%); opacity: 1; }
  .sheet__grip { display: none; }

  /* Tablero en una sola línea */
  .board { --cols: 42; --gap-c: 12px; --pad: 18px; --tw: min(19px, calc((min(100vw, 980px + 2 * var(--gut)) - 2 * var(--gut) - 2 * var(--pad) - 5 * var(--gap-c) - var(--cols) * 1.5px) / var(--cols))); }
  .board__head, .bgrid {
    grid-template-columns: calc(6 * (var(--tw) + 1.5px)) calc(5 * (var(--tw) + 1.5px)) calc(6 * (var(--tw) + 1.5px)) calc(10 * (var(--tw) + 1.5px)) calc(4 * (var(--tw) + 1.5px)) 1fr;
    grid-template-areas: 'date time flight dest gate status';
  }
  .bh--date, .bh--gate, .bh--status { display: block; }
  .bh--date { grid-area: date; } .bh--gate { grid-area: gate; } .bh--status { grid-area: status; }
  .board__head::after { display: none; }
  .board__head { font-size: .62rem; }
}
@media (min-width: 1100px) { .hotels { grid-template-columns: repeat(3, 1fr); } }

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

/* ════════ Pantalla del código ════════ */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 90px var(--gut) 40px; isolation: isolate; overflow: hidden; }
.gate__bg { position: absolute; inset: 0; z-index: -1; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); animation: kb 30s var(--ease) both; }
.gate__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 40%, rgba(13,12,10,.55), rgba(13,12,10,.92) 70%, var(--bg)); }
.gate__card {
  width: min(100%, 420px); text-align: center; display: grid; justify-items: center; gap: 0;
  padding: 30px 22px 24px; border-radius: 26px;
  background: rgba(20,18,16,.62); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.gate__card.is-shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate__logo { width: 40px; height: auto; margin-bottom: 14px; }
.gate .kicker { margin-bottom: .5rem; }
.gate h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); margin-bottom: .5rem; }
.gate__sub { color: var(--sub); font-size: .92rem; max-width: 30ch; margin-bottom: 22px; }
.pin { position: relative; display: block; cursor: text; }
.pin input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; background: transparent; }
.pin__tiles { display: flex; gap: 8px; pointer-events: none; }
.pin .t {
  --tw: clamp(40px, 12vw, 50px); width: var(--tw); height: calc(var(--tw) * 1.32); font: 700 calc(var(--tw) * .6)/1 var(--f-board);
  color: var(--b-amber); border-radius: 8px;
}
.pin .t:nth-child(3) { margin-right: 10px; }
.pin .t.is-on { box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(196,168,79,.35); animation: blink 1.1s steps(1) infinite; }
.pin .t.has { animation: flip .14s linear; }
.gate__msg { min-height: 1.4em; margin: 14px 0 6px; font-size: .86rem; color: var(--b-red); }
.gate__btn { width: 100%; }
.gate__btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.gate__help { margin-top: 16px; font-size: .8rem; color: var(--mute); }
.gate__help a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.lnk-out { font-size: .7rem; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }

/* ════════ v3 · Detalles, hoteles, itinerario, documentos, SOS ════════ */
.mono { font-family: var(--f-board); letter-spacing: .04em; }
.na { color: var(--mute); font-weight: 300; font-size: .82rem; }
.cpy { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 999px; font-size: .7rem; color: var(--gold-deep); background: rgba(196,168,79,.1); border: 1px solid var(--line); flex: none; }
.cpy svg { font-size: .85rem; }
.cpy.is-ok { color: var(--live); border-color: rgba(111,211,155,.4); background: rgba(111,211,155,.1); }
.chipbtn { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.chipbtn svg { color: var(--gold-deep); font-size: .85rem; }

/* Tablero: meta por vuelo */
.brow__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 9px; font-family: var(--f-body); }
.brow__upd { display: flex; align-items: center; gap: .4rem; font-size: .66rem; color: var(--b-grey); font-variant-numeric: tabular-nums; }
.brow__more { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; color: var(--b-amber); background: rgba(255,201,60,.08); border: 1px solid rgba(255,201,60,.28); flex: none; }
.brow__more svg { transition: transform .3s; }
.brow.is-open .brow__more svg { transform: rotate(180deg); }
.bdet { font-family: var(--f-body); }
.bdet__pnr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 8px; background: rgba(255,201,60,.06); }
.bdet__pnr small { display: block; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--b-grey); }
.bdet__pnr b { font: 700 1.15rem var(--f-board); color: var(--b-amber); letter-spacing: .08em; }
.bdet__side .chipbtn { margin-top: 8px; }
.bdet__note { margin-top: 8px; font-size: .74rem; color: var(--b-grey); }
.board__clock b { font-size: 1.25rem; }

/* Hoteles */
.ht__data { margin: 12px 0 0; display: grid; gap: 6px; }
.ht__data div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.2); }
.ht__data dt { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ht__data dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; min-width: 0; }
.ht__data dd span, .ht__data dd a { min-width: 0; overflow-wrap: anywhere; }
.ht__data dd a { color: var(--gold-deep); }
.ht__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ht__btns .btn { flex: 1 1 auto; }

/* Itinerario */
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: -6px 0 14px; font-size: .68rem; color: var(--mute); }
.legend .k { display: inline-flex; align-items: center; gap: .3rem; }
.legend svg { font-size: .9rem; }
.k--flight svg, .ti--flight .ti__ico, .ti--train .ti__ico { color: var(--go); }
.k--transfer svg, .ti--transfer .ti__ico { color: #c8a6f0; }
.k--hotel svg, .ti--hotel .ti__ico { color: #e7b98a; }
.k--activity svg, .ti--activity .ti__ico { color: var(--gold-deep); }
.k--free svg, .ti--free .ti__ico { color: var(--live); }
.ti--prep .ti__ico, .ti--bag .ti__ico, .ti--info .ti__ico { color: var(--sub); }
.ti { grid-template-columns: 44px 30px 1fr; gap: 8px; }
.ti::before { display: none; }
.ti > div { padding-left: 0; }
.ti__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-size: 1rem; }
.ti--key .ti__ico { background: rgba(196,168,79,.14); }
.ti__cat { display: block; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1px; font-weight: 500; }
.ti__chk { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; margin: 0; }
.ti.is-done p { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.tags { align-items: center; }
.bk summary { flex-wrap: wrap; }
.bk__ref1 { font: 700 .74rem var(--f-board); color: var(--gold-deep); letter-spacing: .04em; }
.bk__open { margin-left: auto; color: var(--sub); }
.bk__ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip { position: relative; }
.dchip__hoy { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: var(--live); color: #08130c; font: 700 .5rem var(--f-body); letter-spacing: .1em; font-style: normal; }
.dchip.is-today { background: rgba(111,211,155,.16); border-color: rgba(111,211,155,.55); }
.dchip.is-today.is-on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(111,211,155,.6); }
.days { padding-top: 10px; }
.day__hoy { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--live); color: #08130c; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.day--today .day__head { box-shadow: 0 0 0 2px rgba(111,211,155,.55); }
.day__head { height: 120px; }

/* Documentos */
.docs { display: grid; gap: 8px; }
.docs__h { font: 500 .62rem var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin: 10px 0 2px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); text-align: left; width: 100%; transition: border-color .3s, background .3s; }
.doc:hover { border-color: var(--line); background: var(--surface-2); }
.doc__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); font-size: 1.15rem; flex: none; }
.doc__txt { display: grid; min-width: 0; flex: 1; }
.doc__txt b { font-weight: 500; font-size: .92rem; }
.doc__txt small { font-size: .74rem; color: var(--sub); overflow-wrap: anywhere; }
.doc__go { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; color: var(--gold-deep); flex: none; }
.doc--pending { border-style: dashed; }

/* Hojas: SOS */
.btn--sos { background: rgba(239,107,94,.14); border-color: rgba(239,107,94,.5); color: #ff8a7e; font-weight: 500; }
.kicker--sos { color: #ff8a7e; }
.kicker--sos::before { background: #ff6b5e; }
.sheet--sos .sheet__panel { background: linear-gradient(180deg, #2a1715, #141210 40%); }
.sos__ins { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: rgba(239,107,94,.1); border: 1px solid rgba(239,107,94,.35); margin-bottom: 14px; }
.sos__ins > div { display: grid; flex: 1; min-width: 0; }
.sos__ins small { font-size: .7rem; color: var(--sub); }
.sos__ins b { font-weight: 500; font-size: 1rem; }
.sos__ins span { font-size: .72rem; color: var(--mute); }
.sos__ins--cv { background: var(--surface); border-color: var(--line-2); margin-top: 14px; }
.sos__c { margin-bottom: 12px; }
.sos__c h4 { font: 500 .66rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--sub); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.sos__c h4 em { font-style: normal; letter-spacing: .06em; text-transform: none; font-size: .68rem; color: #08130c; background: var(--live); padding: 1px 7px; border-radius: 999px; }
.sos__c.is-here h4 { color: var(--ink); }
.sos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.sos__n { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.sos__n b { font: 700 1.3rem var(--f-board); color: #ff8a7e; }
.sos__n small { font-size: .72rem; color: var(--sub); line-height: 1.3; }
.sos__c.is-here .sos__n { background: rgba(239,107,94,.08); border-color: rgba(239,107,94,.3); }
.ib--sos { background: #e0574a; color: #fff; border-color: transparent; }
.cg__note { font-size: .74rem; color: var(--mute); margin: -4px 0 8px; }

@media (min-width: 860px) {
  .hero__in { display: block; padding: 96px 0 20px; }
  .hero__in > :not(#nextUp) { grid-column: auto; }
  #nextUp { max-width: 560px; }
  .day__head { height: 160px; }
}

/* ════════════════════════════════════════════════════════════
   Tema Grafito (v4): negro y gris, simple, letras blancas en
   Century Gothic, dorado solo en detalles, llamadas en verde.
   ════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Didact Gothic'; font-weight: 400; font-display: swap; src: url('/fonts/didact-gothic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Didact Gothic'; font-weight: 400; font-display: swap; src: url('/fonts/didact-gothic-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #131416; --bg-2: #18191c; --surface: #222428; --surface-2: #2b2e33; --surface-3: #34373d;
  --ink: #f6f6f5; --sub: #a9adb3; --mute: #7d8288;
  --gold: #c9a85b; --gold-deep: #d8b968; --gold-soft: rgba(201, 168, 91, .14);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06);
  --call: #22c55e; --wa: #25d366;
  --f-disp: 'Century Gothic', 'CenturyGothic', 'Didact Gothic', 'AppleGothic', 'Avenir Next', sans-serif;
  --f-body: 'Century Gothic', 'CenturyGothic', 'Didact Gothic', 'AppleGothic', 'Avenir Next', sans-serif;
  --r: 18px; --r-lg: 26px;
  --sh: 0 1px 2px rgba(0,0,0,.25), 0 18px 40px -22px rgba(0,0,0,.7);
}
body { background: radial-gradient(120% 60% at 50% 0%, #2a2c30 0%, var(--bg) 55%) fixed, var(--bg); font-size: .97rem; line-height: 1.55; font-weight: 400; letter-spacing: .005em; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.01em; text-transform: none; }
strong, b { font-weight: 700; }
.kicker { font-size: .62rem; letter-spacing: .2em; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.kicker::before { width: 1.1rem; }

/* Header y barra inferior */
.top { background: rgba(26, 27, 30, .86); border-color: var(--line); height: 58px; }
.tabs a { color: var(--sub); }
.tabs a.is-on { background: var(--surface-3); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(201,168,91,.55); }
.tabs a.is-on svg { color: var(--gold-deep); }
.dock { background: rgba(26, 27, 30, .92); border-color: var(--line); }
.dock button { font-weight: 700; }
.dock button:first-child, .dock button:last-child { background: var(--surface-2); color: var(--ink); border: 0; }
.dock button:first-child svg { color: var(--gold-deep); }
.dock button:last-child svg { color: var(--call); }

/* Hero: tarjeta gris simple */
.hero { display: block; padding: 82px var(--gut) 6px; }
.hero__in { width: 100%; max-width: 980px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, #2a2c31, #222428); box-shadow: var(--sh); }
.hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); text-shadow: none; }
.hero__top { align-items: center; }
.hero__top .chip { margin: 0; }
.chip { background: var(--surface-3); border: 0; backdrop-filter: none; }
.chip--gold { background: var(--gold); color: #1d1a12; font-weight: 700; }
.cities { margin: 14px 0 12px; }
.cty { background: var(--surface-2); backdrop-filter: none; border-radius: 16px; padding: 9px 2px 8px; }
.cty.is-here { background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(201,168,91,.6); }
.cty b { color: var(--ink); font-weight: 700; }
.cty.is-here b { color: var(--gold-deep); }
.cty__det { background: var(--surface-2); backdrop-filter: none; }
.next { background: var(--surface-2); border: 0; backdrop-filter: none; box-shadow: none; border-radius: 20px; }
.next__ico { background: var(--surface-3); border-radius: 14px; width: 40px; height: 40px; }

/* Secciones */
.panel { padding: 18px 0 8px; }
.ph { margin-bottom: 14px; }
.ph h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); margin-bottom: .3rem; }
.ph__sub { font-size: .88rem; }

/* Botones */
.btn { font-weight: 700; border-radius: 16px; min-height: 48px; }
.btn--sm { border-radius: 14px; min-height: 42px; }
.btn--gold { background: var(--gold); color: #1d1a12; box-shadow: none; }
.btn--line { background: var(--surface-2); border-color: transparent; }
.btn--line:hover { border-color: transparent; background: var(--surface-3); }
.btn--call { background: var(--call); color: #fff; box-shadow: 0 10px 24px -12px rgba(34,197,94,.8); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px rgba(37,211,102,.8); }
.btn--call svg, .btn--wa svg { color: #fff; font-size: 1.15em; }
.ib { width: 46px; height: 46px; background: var(--surface-3); border: 0; }
.ib--call { background: var(--call); color: #fff; box-shadow: 0 8px 20px -10px rgba(34,197,94,.9); }
.ib--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -10px rgba(37,211,102,.9); }
.ib--gold { background: var(--gold); color: #1d1a12; }
.cpy { background: var(--surface-3); border: 0; color: var(--ink); font-weight: 700; }
.cpy svg { color: var(--gold-deep); }
.chipbtn { background: var(--surface-3); border: 0; font-weight: 700; padding: .3rem .7rem; }

/* Tablero integrado en gris */
.board { background: linear-gradient(180deg, #1d1e21, #151618); border: 0; border-radius: var(--r-lg); box-shadow: var(--sh); }
.board__top, .board__foot { border-color: rgba(255,255,255,.06); }
.brow { border-color: rgba(255,255,255,.05); }
.t { background: linear-gradient(180deg, #34373c 0%, #2b2d32 49%, #1f2125 51%, #26282c 100%); }
.bdet { background: var(--surface); border: 0; border-radius: 16px; }
.bdet__pnr { background: var(--surface-2); border-radius: 14px; }
.bdet__refs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 10px; font-size: .74rem; color: var(--sub); }
.bdet__refs b { color: var(--ink); font-family: var(--f-board); }
.bdet dl div { background: var(--surface-2); border-radius: 10px; }
.brow__more { background: var(--surface-2); border: 0; color: var(--ink); font-weight: 700; }
.brow__more svg { color: var(--gold-deep); }

/* Hoteles */
.ht { background: var(--surface); border: 0; border-radius: var(--r-lg); }
.ht--live { box-shadow: inset 0 0 0 1px rgba(34,197,94,.45), var(--sh); }
.ht__img { aspect-ratio: 16 / 7; }
.ht__img::after { background: linear-gradient(180deg, transparent 45%, var(--surface)); }
.ht__body { padding: 2px 16px 16px; margin-top: -20px; }
.ht h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ht__dates { background: var(--surface-2); border: 0; border-radius: 16px; }
.ht__dates b { text-transform: none; }
.ht__n { border: 0; background: var(--surface-3); color: var(--ink); font-weight: 700; }
.ht__data div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.ht__data dd a { color: var(--ink); font-weight: 700; }
.ht__note { margin: 12px 0 14px; }
.ht__btns { display: grid; grid-template-columns: 1fr 1fr; }
.ht__btns .btn:first-child { grid-column: 1 / -1; }
.ht__img .pill { background: rgba(20,21,23,.75); }

/* Itinerario */
.days { background: linear-gradient(180deg, var(--bg) 82%, transparent); }
.dchip { background: var(--surface); border: 0; border-radius: 18px; }
.dchip b { font-family: var(--f-disp); font-weight: 700; }
.dchip.is-on { background: var(--ink); color: #121315; }
.dchip.is-on small, .dchip.is-on span { color: #4b4e54; }
.dchip.is-today { background: rgba(34,197,94,.14); box-shadow: inset 0 0 0 1px rgba(34,197,94,.6); }
.dchip.is-today.is-on { background: var(--ink); box-shadow: 0 0 0 2px var(--call); }
.dchip__hoy, .day__hoy, .sos__c h4 em { background: var(--call); color: #fff; }
.day__head { border-radius: var(--r-lg); }
.day--today .day__head { box-shadow: 0 0 0 2px var(--call); }
.blk h4 { font-family: var(--f-body); font-weight: 700; color: var(--sub); letter-spacing: .18em; }
.ti { padding: 10px 0; }
.ti > time { color: var(--ink); font-weight: 700; }
.ti__ico { background: var(--surface-2); border-radius: 10px; }
.ti--key .ti__ico { background: var(--surface-3); }
.ti__cat { color: var(--mute); font-weight: 700; }
.ti p { font-size: .92rem; }
.flink, .bk { background: var(--surface); border: 0; border-radius: 16px; }
.bk__ref { background: var(--surface-2); border: 0; border-radius: 12px; }
.bk__ref b { font-family: var(--f-board); color: var(--ink); }
.bk__ref1 { color: var(--ink); }
.tag { border: 0; background: var(--surface-2); }
.alert { border: 0; background: rgba(240,168,69,.12); border-radius: 16px; }
.legend { gap: 6px 14px; }

/* Documentos y hojas */
.doc { background: var(--surface); border: 0; border-radius: 18px; }
.doc:hover { background: var(--surface-2); }
.doc__ico { background: var(--surface-2); border-radius: 12px; }
.doc--pending { box-shadow: inset 0 0 0 1px var(--line); }
.sheet__panel { background: #1c1d20; border: 0; border-radius: 28px 28px 0 0; }
.cc { background: var(--surface); border: 0; border-radius: 18px; }
.cc--main { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(201,168,91,.35); }
.cc__num { font-family: var(--f-body); color: var(--sub); font-weight: 700; }
.ins--pending, .ins__num { background: var(--surface); border: 0; border-radius: 18px; }
.ins__num b { color: var(--ink); }
.sos__ins { border: 0; border-radius: 18px; }
.sos__ins--cv { background: var(--surface); }
.sos__n { position: relative; background: var(--surface); border: 0; border-radius: 16px; padding: 12px 12px 10px 52px; }
.sos__ph { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--call); color: #fff; font-size: .95rem; }
.sos__n b { font-family: var(--f-body); color: var(--ink); font-size: 1.25rem; }
.sos__c.is-here .sos__n { background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px rgba(239,107,94,.45); }

/* Pantalla del código */
.gate__bg img { opacity: .35; filter: grayscale(.6); }
.gate__card { background: rgba(34,36,40,.9); border-radius: 28px; }
.gate h1 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }

@media (min-width: 860px) {
  .sheet__panel { border-radius: 28px; }
  .hero { padding: 92px var(--gut) 6px; }
  .hero__in { margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: 1fr 380px; gap: 16px 24px; align-items: start; }
  .hero__top { grid-column: 1 / -1; }
  .cities { margin: 0; }
  #nextUp { max-width: none; }
}
body { word-spacing: -.06em; }
.day__head::after { background: linear-gradient(180deg, rgba(19,20,22,.15) 0%, rgba(19,20,22,.92) 75%); }
.day__head .kicker { color: var(--gold-deep); text-shadow: 0 1px 8px rgba(0,0,0,.6); }

.ins__num { display: grid; gap: 4px; padding: 14px 16px; }
.ins__num b { font-family: var(--f-board); font-size: 1.05rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.ins__acts { position: static; display: flex; gap: 8px; margin-top: 6px; }
.ins__acts .cpy { position: static; }
.ins__plan { color: var(--gold-deep); font-weight: 700; font-size: .86rem; }
.ins__how a { color: var(--ink); text-decoration: underline; }
.ins__cov li span { color: var(--sub); }
.sos__ins span { display: block; }
.sos__ins { flex-wrap: wrap; }
.sos__ins > div { flex: 1 1 100%; order: -1; }
.sos__ins span { font-size: .7rem; }

/* Tablero en celular: 3 líneas por vuelo y fichas más grandes */
.board { --cols: 15; --gap-c: 8px; --pad: 12px; --tw: min(26px, calc((min(100vw, 980px + 2 * var(--gut)) - 2 * var(--gut) - 2 * var(--pad) - 2 * var(--gap-c) - var(--cols) * 1.5px) / var(--cols))); }
.board__head, .bgrid {
  grid-template-columns: calc(5 * (var(--tw) + 1.5px)) calc(6 * (var(--tw) + 1.5px)) 1fr;
  grid-template-areas: 'time flight gate' 'dest dest dest' 'status status status';
  row-gap: 6px;
}
.bc--date { display: none; }
.bh--gate { display: block; grid-area: gate; }
.bh--date, .bh--dest, .bh--status { display: none; }
.board__head::after { display: none; }
.board__head { font-size: .64rem; padding-bottom: 8px; }
.bgrid { padding: 12px 2px 8px; }
.brow__meta { align-items: flex-start; padding-bottom: 12px; }
.brow__upd { display: grid; gap: 2px; font-size: .76rem; line-height: 1.35; color: var(--sub); }
.brow__upd > span { display: flex; align-items: center; gap: .4rem; }
.brow__date { color: var(--ink); font-weight: 700; font-size: .82rem; text-transform: capitalize; }
.brow__more { font-size: .8rem; padding: .45rem .85rem; margin-top: 2px; }
.board__clock b { font-size: 1.3rem; }
.board__title { font-size: clamp(1.5rem, 7vw, 2rem); }

@media (min-width: 860px) {
  .board { --cols: 42; --gap-c: 12px; --pad: 18px; --tw: min(19px, calc((min(100vw, 980px + 2 * var(--gut)) - 2 * var(--gut) - 2 * var(--pad) - 5 * var(--gap-c) - var(--cols) * 1.5px) / var(--cols))); }
  .board__head, .bgrid {
    grid-template-columns: calc(6 * (var(--tw) + 1.5px)) calc(5 * (var(--tw) + 1.5px)) calc(6 * (var(--tw) + 1.5px)) calc(10 * (var(--tw) + 1.5px)) calc(4 * (var(--tw) + 1.5px)) 1fr;
    grid-template-areas: 'date time flight dest gate status';
  }
  .bc--date { display: flex; }
  .bh--date, .bh--dest, .bh--status { display: block; }
  .brow__date { display: none; }
  .brow__meta { align-items: center; }
}
