/* ===========================================================
   FLYBO · mobile prototype
   Dark, editorial, with a Bolivian altitude twist.
   Fonts: Instrument Serif (display/italic), Geist, Geist Mono
   =========================================================== */

:root {
  /* surfaces */
  --bg-0: #07080B;
  --bg-1: #0E1015;
  --bg-2: #15181F;
  --bg-3: #1D2029;
  --bg-4: #252934;

  /* strokes */
  --line: rgba(255, 255, 255, 0.055);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);

  /* ink */
  --ink-0: #F5F1E8;
  --ink-1: #BFB9AB;
  --ink-2: #8F897C;
  --ink-3: #5B564C;
  --ink-4: #36332D;

  /* accents */
  --amber: #E8B86B;
  --amber-deep: #B6873E;
  --amber-soft: rgba(232, 184, 107, 0.14);

  --green: #6DE5A6;
  --green-soft: rgba(109, 229, 166, 0.13);

  --blue: #82B8E6;
  --blue-soft: rgba(130, 184, 230, 0.15);

  --red: #FF8B8B;
  --red-soft: rgba(255, 139, 139, 0.14);

  /* radii */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  /* type */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* device */
  --device-w: 393px;
  --device-h: 852px;
}

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

/* El atributo `hidden` tiene la misma especificidad que una clase (0,1,0).
   Como nuestras reglas vienen después del UA stylesheet, cualquier
   `.foo { display: grid }` pisa a `[hidden] { display: none }`, dejando
   elementos "ocultos" visibles. Con !important forzamos el hide. */
[hidden] { display: none !important; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: #05060A;
  color: var(--ink-0);
  font-family: var(--sans);
  font-feature-settings: 'ss01','ss02','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
em { font-style: italic; }

/* ================= STAGE ================= */

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  isolation: isolate;
}

.stage__bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 18% 10%, rgba(232,184,107,0.09), transparent 60%),
    radial-gradient(900px 600px at 85% 80%, rgba(130,184,230,0.08), transparent 65%),
    linear-gradient(180deg, #08090E 0%, #05060A 100%);
}
.stage__grain {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.84  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.stage__meta {
  position: fixed;
  top: 48px;
  max-width: 280px;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.55;
  display: none;
}
@media (min-width: 1180px) {
  .stage__meta { display: block; }
}
.stage__meta--left { left: 48px; }
.stage__meta--right { right: 48px; max-width: 340px; text-align: right; }

.stage__brand {
  display: flex; align-items: baseline; gap: 8px;
  color: var(--ink-0);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.stage__brand-mark {
  display: inline-block;
  color: var(--amber);
  font-size: 30px;
  line-height: 0.5;
  transform: translateY(-2px);
}
.stage__brand-name { font-style: italic; }
.stage__tag {
  color: var(--ink-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.stage__note { color: var(--ink-1); }
.stage__legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-1);
}
.stage__legend li { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot--amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot--blue  { background: var(--blue);  box-shadow: 0 0 10px var(--blue); }
.dot--red   { background: var(--red);   box-shadow: 0 0 10px var(--red); }

.stage__eyebrow {
  color: var(--ink-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.stage__h {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  font-weight: 400;
  margin-bottom: 18px;
}
.stage__h em { color: var(--amber); }
.stage__sub { font-size: 13.5px; color: var(--ink-1); }
.stage__stats {
  display: flex; justify-content: flex-end; gap: 28px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stage__stats div { text-align: right; }
.stage__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1;
}
.stage__stats span {
  font-size: 10.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 6px;
  display: block;
}

/* ================= DEVICE FRAME ================= */

.device {
  width: var(--device-w);
  height: var(--device-h);
  position: relative;
  filter: drop-shadow(0 60px 120px rgba(0,0,0,0.65)) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.device__shell {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a1c22, #0a0b0f 60%);
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 2.5px #000,
    inset 0 0 0 4px rgba(255,255,255,0.04);
}
.device__screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg-0);
  border-radius: 44px;
  overflow: hidden;
  display: flex; flex-direction: column;
  isolation: isolate;
}

/* ================= STATUS BAR ================= */

.statusbar {
  position: relative;
  height: 48px;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-0);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  z-index: 3;
}
.statusbar__time { font-variant-numeric: tabular-nums; }
.statusbar__island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 115px; height: 32px;
  background: #000;
  border-radius: 20px;
}
.statusbar__icons { display: flex; align-items: center; gap: 6px; }

/* ================= SCREENS CONTAINER ================= */

.screens {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}
.screen {
  position: absolute; inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 20px 110px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility .35s;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
}

/* ================= HOME SCREEN ================= */

.home-head {
  padding: 14px 4px 22px;
}
.home-head__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.home-head__date {
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}
.home-head__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.home-head__h em {
  color: var(--amber);
  font-style: italic;
  transition: opacity .5s ease;
}
.home-head__region {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 10px;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* Origin chip */
.origin-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-1);
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: background .2s, border-color .2s, transform .15s;
}
.origin-chip:hover { background: var(--bg-2); border-color: var(--line-3); }
.origin-chip:active { transform: scale(0.96); }
.origin-chip__k { color: var(--ink-2); font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: 0.14em; }
.origin-chip strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--amber);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.origin-chip svg { color: var(--ink-3); }

/* Hero empty / error / skeleton states */
.hero-empty, .hero-error {
  padding: 40px 24px 30px;
  text-align: center;
  background: var(--bg-1);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  margin-bottom: 4px;
}
.hero-empty__icon {
  font-size: 32px;
  color: var(--amber);
  opacity: 0.3;
  margin-bottom: 10px;
}
.hero-empty__h, .hero-error__h {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hero-empty__s, .hero-error__s {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}
.hero-empty__s strong, .hero-error__s strong { color: var(--amber); font-weight: 500; }
.hero-error { border-color: rgba(255,139,139,0.2); }
.hero-error__h { color: var(--red); }

.hero-skel {
  height: 220px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--line);
}

.flights--skel .flight-skel {
  height: 82px;
  background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: shimmer 1.6s linear infinite;
}

/* Closing marker below flight list */
.list-closer {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 8px 4px;
}
.list-closer__dash {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.list-closer__t {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-1);
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

/* Disclaimer card */
.disclaimer {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber-deep);
  border-radius: 8px;
}
.disclaimer__t {
  font-size: 11.5px;
  color: var(--ink-1);
  line-height: 1.55;
  letter-spacing: 0.005em;
}
.disclaimer__t strong {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.disclaimer__t em {
  font-style: italic;
  color: var(--ink-0);
}

.home-foot {
  text-align: center;
  color: var(--ink-2);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 0 8px;
}

/* Pinned badge on hero */
.hero--pinned::after {
  content: '★ fijado';
  position: absolute;
  top: 14px; right: -6px;
  background: var(--amber);
  color: #1A1200;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: 4px 0 0 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(232,184,107,0.3);
}

/* ---------- Hero card (next flight) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  background:
    linear-gradient(170deg, #1B1D24 0%, #121319 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 50px -20px rgba(0,0,0,0.7);
  cursor: pointer;
  isolation: isolate;
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.hero__glow {
  position: absolute;
  top: -60px; right: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(232,184,107,0.35), transparent);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.55;
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.9;
  border-radius: inherit;
}

.hero__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.hero__airline { display: flex; align-items: center; gap: 11px; }
.hero__logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--logo);
  color: var(--logo-ink);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.hero__carrier {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-0);
  line-height: 1.1;
}
.hero__flightno {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ---- Route inside hero ---- */
.hero__route {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: start;
  margin: 22px 0 16px;
  gap: 8px;
}
.hero__side--right { text-align: right; }
.hero__code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink-0);
}
.hero__city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-1);
  margin-top: 4px;
  line-height: 1;
}
.hero__meta {
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}
.hero__arc {
  position: relative;
  padding-top: 8px;
  height: 78px;
}
.hero__arc svg {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 60px;
  overflow: visible;
}
.hero__arc-track {
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1.3;
  fill: none;
  stroke-dasharray: 2 3;
}
.hero__arc-fill {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 40;
  animation: arcGlide 3.5s ease-in-out infinite;
}
@keyframes arcGlide {
  0%, 100% { stroke-dashoffset: 40; }
  50% { stroke-dashoffset: 10; }
}
.hero__plane {
  position: absolute;
  top: -2px; left: 50%;
  transform: translate(-50%, 0) rotate(-6deg);
  color: var(--amber);
  filter: drop-shadow(0 4px 8px rgba(232,184,107,0.5));
  animation: planeFloat 3.5s ease-in-out infinite;
}
@keyframes planeFloat {
  0%, 100% { transform: translate(-50%, 0) rotate(-6deg); }
  50% { transform: translate(-50%, -4px) rotate(0deg); }
}
.hero__duration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.hero__times { display: flex; gap: 22px; }
.hero__times-k {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}
.hero__times-v {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  margin-top: 2px;
  line-height: 1;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
}
.hero__cta { text-align: right; }
.hero__cta-k {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}
.hero__cta-v {
  display: block;
  font-size: 14px;
  color: var(--amber);
  margin-top: 2px;
  font-weight: 500;
  line-height: 1;
}
.hero__cta-v em {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  margin-right: 2px;
  letter-spacing: -0.01em;
}

/* ---------- Section head ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 30px 4px 14px;
}
.section-head--tight { padding: 22px 4px 10px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.section-head__link {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* ---------- Flight list ---------- */
.flights { display: flex; flex-direction: column; gap: 10px; }
.flight {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}
.flight:hover { background: var(--bg-2); border-color: var(--line-2); }
.flight:active { transform: scale(0.985); }
.flights > :nth-child(1) { animation-delay: 0.05s; }
.flights > :nth-child(2) { animation-delay: 0.1s; }
.flights > :nth-child(3) { animation-delay: 0.15s; }
.flights > :nth-child(4) { animation-delay: 0.2s; }

.flight--live { border-color: rgba(130,184,230,0.25); background: linear-gradient(170deg, rgba(130,184,230,0.06), transparent), var(--bg-1); }

.flight__left { display: flex; align-items: flex-start; padding-top: 2px; }
.flight__logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--logo);
  color: var(--logo-ink);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.flight__body { flex: 1; min-width: 0; }
.flight__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.flight__row--status { margin-top: 8px; }
.flight__carrier { font-size: 12.5px; color: var(--ink-0); font-weight: 500; }
.flight__date { font-size: 11px; color: var(--ink-2); font-family: var(--mono); letter-spacing: 0.02em; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-transform: uppercase; font-size: 10px; letter-spacing: 0.14em; }
.live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(130,184,230,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(130,184,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(130,184,230,0); }
}

.flight__route {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 2px;
}
.flight__code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.flight__line {
  flex: 1;
  height: 1px;
  background: var(--line-2);
  position: relative;
}
.flight__line i {
  display: block;
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 3px, transparent 3px 7px);
}
.flight__line--progress::before {
  content: '';
  position: absolute;
  left: 0;
  height: 100%;
  width: calc(var(--p) * 100%);
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.flight__line--progress b {
  position: absolute;
  left: calc(var(--p) * 100%);
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--blue);
  font-size: 13px;
  font-style: normal;
  line-height: 0;
  filter: drop-shadow(0 0 6px rgba(130,184,230,0.6));
}
.flight__dur {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flight__meta { font-size: 11px; color: var(--ink-2); font-family: var(--mono); letter-spacing: 0.01em; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.pill__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--amber { background: var(--amber-soft); color: var(--amber); }
.pill--red   { background: var(--red-soft);   color: var(--red); }
.pill--blue  { background: var(--blue-soft);  color: var(--blue); }
.pill--sm { padding: 4px 8px; font-size: 10.5px; }
.pill--xs { padding: 3px 7px; font-size: 10px; gap: 5px; }
.pill--xs .pill__dot { width: 4px; height: 4px; }
.pill--lg { padding: 7px 14px; font-size: 12.5px; }

/* ---------- Insight card ---------- */
.insight {
  display: flex; gap: 12px;
  margin-top: 18px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.insight__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid; place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.insight__h { font-size: 12.5px; font-weight: 500; color: var(--ink-0); }
.insight__t { font-size: 11.5px; color: var(--ink-1); margin-top: 3px; line-height: 1.45; }

/* ================= DETAIL SCREEN ================= */

.detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 12px;
}
.detail-head__center { text-align: center; }
.detail-head__eyebrow {
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.detail-head__h {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-0);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.iconbtn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink-0);
  display: grid; place-items: center;
  transition: background .2s;
}
.iconbtn:hover { background: var(--bg-2); }

.detail-status {
  text-align: center;
  padding: 6px 0 18px;
}
.detail-status__note {
  font-size: 11.5px;
  color: var(--ink-1);
  margin-top: 10px;
  line-height: 1.5;
}
.detail-status__note strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: 0.01em;
}

.route-big {
  padding: 12px 4px 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.route-big__top {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: start;
  gap: 6px;
}
.route-big__side--right { text-align: right; }
.route-big__code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 46px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink-0);
}
.route-big__city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-1);
  margin-top: 6px;
  line-height: 1;
}
.route-big__full {
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-big__arc {
  position: relative;
  height: 90px;
  padding-top: 6px;
}
.route-big__arc svg {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; height: 70px;
  overflow: visible;
}
.route-big__track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}
.route-big__progress {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
}
.route-big__plane {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  color: var(--amber);
  filter: drop-shadow(0 4px 10px rgba(232,184,107,0.5));
}
.route-big__dur,
.route-big__dist {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.3;
}
.route-big__dist { bottom: -14px; color: var(--ink-3); }

.route-big__times {
  display: flex; justify-content: space-between;
  margin-top: 30px;
  padding-top: 16px;
}
.rtime--right { text-align: right; }
.rtime__k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  font-family: var(--mono);
}
.rtime__v {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  margin-top: 4px;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
}
.rtime__sub {
  font-size: 11px;
  color: var(--amber);
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ---------- Cards (boards, altitude, timeline, aircraft) ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
}
.card__head { margin-bottom: 14px; }
.card__eyebrow {
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--mono);
}
.card__h {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-0);
  margin-top: 4px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- Altitude graph ---------- */
.altitude__graph {
  position: relative;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  padding: 10px 10px 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.altitude__graph svg {
  width: 100%;
  height: 120px;
  display: block;
}
.altitude__axis {
  display: flex; justify-content: space-between;
  font-size: 9.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.altitude__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 4px;
}
.altitude__stats > div {
  text-align: left;
}
.altitude__k {
  font-size: 9.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}
.altitude__v {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-0);
  margin-top: 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Board grid (departure / arrival) ---------- */
.board__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.board__grid > div { display: flex; flex-direction: column; gap: 4px; }
.board__grid span {
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}
.board__grid strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 6px; }
.tl__item {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--ink-2);
}
.tl__item::before {
  content: '';
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.tl__item:last-child::before { height: 14px; }
.tl__item:first-child::before { top: 14px; }
.tl__dot {
  position: absolute;
  left: 0; top: 13px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink-4);
  background: var(--bg-1);
  box-sizing: border-box;
}
.tl__item--done .tl__dot { border-color: var(--green); background: var(--green); }
.tl__item--now .tl__dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  animation: nowPulse 1.8s ease-out infinite;
}
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--amber-soft); }
  50% { box-shadow: 0 0 0 8px rgba(232,184,107,0.08); }
}
.tl__item--done .tl__t { color: var(--ink-1); }
.tl__item--now .tl__t { color: var(--amber); }
.tl__t {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.1;
}
.tl__s {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

/* ---------- Aircraft ---------- */
.aircraft__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}
.aircraft__grid span {
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}
.aircraft__grid strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.detail-spacer { height: 20px; }

/* ================= SEARCH SCREEN ================= */

.search-head { padding: 14px 4px 18px; }
.search-head__eyebrow {
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.search-head__h {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  font-weight: 400;
}
.search-head__h em { color: var(--amber); }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--ink-0);
  margin-bottom: 14px;
}
.searchbar svg { color: var(--ink-2); flex: 0 0 auto; }
.searchbar input {
  flex: 1;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-0);
}

.segmented {
  display: flex;
  padding: 3px;
  gap: 3px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 6px;
}
.segmented__seg {
  flex: 1;
  font-size: 11.5px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  transition: background .2s, color .2s;
}
.segmented__seg.is-active {
  background: var(--bg-3);
  color: var(--ink-0);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.routes { display: flex; flex-direction: column; gap: 8px; }
.route-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.route-item:hover { background: var(--bg-2); border-color: var(--line-2); }
.route-item__codes {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-0);
  font-size: 14px;
}
.route-item__codes i {
  color: var(--amber);
  font-style: normal;
  font-size: 12px;
}
.route-item__body { flex: 1; min-width: 0; }
.route-item__t { font-size: 13px; font-weight: 500; color: var(--ink-0); }
.route-item__s { font-size: 11px; color: var(--ink-2); margin-top: 3px; font-family: var(--mono); }
.route-item__go {
  color: var(--ink-3);
  font-size: 16px;
  transform: rotate(0deg);
}

.recents {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.recents li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-1);
  letter-spacing: 0.02em;
}
.recents svg { color: var(--ink-3); }

/* ================= AIRPORTS SCREEN ================= */

.air-head { padding: 14px 4px 18px; }
.air-head__eyebrow {
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.air-head__h {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  font-weight: 400;
}
.air-head__h em { color: var(--amber); }

.airports {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.airport {
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: rise 0.55s cubic-bezier(.2,.8,.2,1) both;
}
.airports > :nth-child(1) { animation-delay: 0.04s; }
.airports > :nth-child(2) { animation-delay: 0.08s; }
.airports > :nth-child(3) { animation-delay: 0.12s; }
.airports > :nth-child(4) { animation-delay: 0.16s; }
.airports > :nth-child(5) { animation-delay: 0.20s; }
.airports > :nth-child(6) { animation-delay: 0.24s; }
.airports > :nth-child(7) { animation-delay: 0.28s; }
.airports > :nth-child(8) { animation-delay: 0.32s; }
.airports > :nth-child(9) { animation-delay: 0.36s; }

.airport__head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.airport__code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1;
}
.airport__city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-1);
  margin-top: 6px;
  line-height: 1;
}
.airport__weather {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px;
}
.airport__wx { font-size: 22px; opacity: 0.75; }
.airport__t {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.02em;
}
.airport__name {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 14px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.airport__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.airport__alt {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-1);
  letter-spacing: 0.02em;
}
.airport__alt svg { color: var(--ink-2); }
.airport__alt--high { color: var(--amber); }
.airport__alt--high svg { color: var(--amber); }
.airport__live {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ================= AIRPORT DETAIL SCREEN ================= */

.adet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 12px;
}
.adet-head__center { text-align: center; min-width: 0; flex: 1; padding: 0 8px; }
.adet-head__eyebrow {
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.adet-head__h {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-0);
  margin-top: 2px;
  letter-spacing: -0.005em;
  line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.adet-hero {
  text-align: center;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  position: relative;
}
.adet-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 1px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.adet-hero__code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  text-shadow: 0 0 40px rgba(232,184,107,0.25);
}
.adet-hero__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-1);
  margin-top: 8px;
  line-height: 1;
}
.adet-hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.adet-hero__meta .sep { color: var(--ink-3); font-style: normal; }
.adet-hero__alt { display: inline-flex; align-items: center; gap: 4px; }
.adet-hero__alt svg { color: var(--amber); }

/* ---------- Toggle: Salidas / Llegadas ---------- */
.toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
  isolation: isolate;
}
.toggle__thumb {
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  left: 4px;
  background: linear-gradient(170deg, var(--bg-3), var(--bg-2));
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 4px 12px rgba(0,0,0,0.4),
    0 0 0 1px rgba(232,184,107,0.1);
  z-index: 0;
  transition: transform 0.4s cubic-bezier(.25,1.4,.55,1);
}
.toggle[data-active="L"] .toggle__thumb {
  transform: translateX(100%);
}
.toggle__btn {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  transition: color .35s ease;
  border-radius: 999px;
}
.toggle__btn svg { opacity: 0.6; transition: opacity .35s ease, color .35s ease; }
.toggle__btn.is-active {
  color: var(--amber);
}
.toggle__btn.is-active svg { opacity: 1; color: var(--amber); }

/* ---------- Status strip ---------- */
.adet-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px 14px;
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.adet-status__left { display: flex; align-items: center; gap: 12px; }
.adet-status__refresh { color: var(--ink-2); }
.adet-status__count { color: var(--ink-1); }

/* ---------- Vuelos list ---------- */
.vuelos { display: flex; flex-direction: column; gap: 8px; }

.vuelo {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: rise 0.45s cubic-bezier(.2,.8,.2,1) both;
}
.vuelo--delayed { border-color: rgba(255,139,139,0.18); }
.vuelo--boarding { border-color: rgba(232,184,107,0.25); background: linear-gradient(170deg, rgba(232,184,107,0.05), transparent), var(--bg-1); }
.vuelo--cancelled { opacity: 0.7; }
.vuelo--cancelled .vuelo__time-main { text-decoration: line-through; color: var(--ink-3); }

.vuelo__time { display: flex; flex-direction: column; align-items: flex-start; border-right: 1px dashed var(--line-2); padding-right: 6px; }
.vuelo__time-main {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink-0);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vuelo__time-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vuelo__time-sub--diff { color: var(--red); }

.vuelo__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vuelo__row-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.vuelo__ident { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vuelo__airline {
  width: 30px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.vuelo__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink-0);
  letter-spacing: 0.02em;
}
.vuelo__carrier {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.vuelo__route {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.vuelo__route-arrow { color: var(--amber); font-style: normal; font-size: 13px; }
.vuelo__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.vuelo__gate {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vuelo__gate b { color: var(--ink-1); font-weight: 500; }

/* empty/error/skeleton states */
.vuelos-state {
  text-align: center;
  padding: 50px 24px;
}
.vuelos-state__icon {
  font-size: 40px;
  color: var(--amber);
  opacity: 0.4;
  margin-bottom: 14px;
}
.vuelos-state__h {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.vuelos-state__s {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}
.vuelos-state--error .vuelos-state__icon { color: var(--red); }

.vuelos-skeleton { display: flex; flex-direction: column; gap: 8px; }
.vskel {
  height: 82px;
  background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.adet-foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 24px 0 8px;
}

/* subtle affordance on airport cards */
.airport { cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.airport:hover { background: var(--bg-2); border-color: var(--line-2); }

/* ================= PROFILE SCREEN ================= */

.profile-head {
  text-align: center;
  padding: 30px 0 24px;
}
.profile-head__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(145deg, var(--amber), var(--amber-deep));
  color: #1A1200;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(232,184,107,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.profile-head__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.profile-head__h em { color: var(--amber); }
.profile-head__s {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.profile-stats > div {
  padding: 16px 14px;
  background: var(--bg-1);
}
.profile-stats__k {
  font-size: 10.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}
.profile-stats__v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-0);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}

.plist {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.plist li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.plist li:last-child { border-bottom: 0; }
.plist li span { color: var(--ink-0); }
.plist li em {
  color: var(--ink-2);
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* ================= TAB BAR ================= */

.tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 92px;
  padding: 10px 14px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,11,14,0) 0%, rgba(10,11,14,0.85) 40%, rgba(10,11,14,1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.04);
  z-index: 4;
}
.tabbar--2 { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 60px 28px; }
.tabbar--3 { grid-template-columns: 1fr 1fr 1fr; gap: 2px; padding: 10px 18px 28px; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px;
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: color .2s;
  position: relative;
}
.tab.is-active { color: var(--amber); }
.tab.is-active::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--amber);
}
.tab--primary {
  color: #1A1200;
}
.tab--primary svg {
  padding: 10px;
  background: linear-gradient(145deg, var(--amber), var(--amber-deep));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(232,184,107,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  width: 38px; height: 38px;
}
.tab--primary::before { display: none !important; }
.tab--primary span { display: none; }

.home-indicator {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
  z-index: 5;
  pointer-events: none;
}

/* ================= ANIMATIONS ================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= PIN BUTTON ================= */
.iconbtn--pin .pin-svg { transition: color .3s ease, transform .3s cubic-bezier(.3,1.6,.4,1); }
.iconbtn--pin[aria-pressed="true"] { background: var(--amber-soft); border-color: rgba(232,184,107,0.35); }
.iconbtn--pin[aria-pressed="true"] .pin-svg { color: var(--amber); transform: rotate(-8deg) scale(1.08); }
.iconbtn--pin[aria-pressed="true"] [data-pin-path] { fill: var(--amber); stroke: var(--amber); }

/* ================= STOPS LIST (flight detail) ================= */
.stops { display: flex; flex-direction: column; position: relative; padding-left: 2px; }
.stops li {
  position: relative;
  padding: 8px 0 8px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
}
.stops li:last-child { border-bottom: 0; }
.stops li::before {
  content: '';
  position: absolute;
  left: 4px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.stops li:first-child::before { top: 50%; }
.stops li:last-child::before { bottom: 50%; }
.stops li::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  background: var(--bg-1);
  transform: translateY(-50%);
}
.stops li.stops-item--here::after {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.stops-item__city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-0);
  line-height: 1.1;
}
.stops-item--here .stops-item__city { color: var(--amber); }
.stops-item__code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* ================= FIDS META ================= */
.fmeta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}
.fmeta__grid > div { display: flex; flex-direction: column; gap: 4px; }
.fmeta__grid span {
  font-size: 9.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}
.fmeta__grid strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-0);
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

/* ================= LIVE TRACKING CARD — rediseño limpio ================= */
/* Diseño: single column top-to-bottom, sin grids/flex al top-level que
   puedan interpretarse como row. Resumen de estado del vuelo con
   progress entre origen y destino. */

.live-card {
  display: block;
  position: relative;
  background: linear-gradient(170deg, rgba(130,184,230,0.06) 0%, var(--bg-1) 55%);
  border: 1px solid rgba(130,184,230,0.2);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.live-card > * { display: block; }

/* Header: dot+label a la izquierda, "hace Xs" a la derecha */
.live-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.live-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.live-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(130,184,230,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(130,184,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(130,184,230,0); }
}
.live-card__updated {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Callsign grande */
.live-card__callsign {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-0);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
  word-break: break-word;
}

/* Map — más bajo para que no domine el card */
.live-card__map {
  height: 240px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0a0d14;
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
  position: relative;
  z-index: 0;
}
.live-card__map .leaflet-container { background: #0a0d14; font-family: var(--sans); }
.live-card__map .leaflet-pane,
.live-card__map .leaflet-tile-pane { filter: saturate(0.8) brightness(0.95); }
.live-card__map .leaflet-control { display: none !important; }

/* Marker del avión (usado por Leaflet divIcon) */
.live-plane {
  width: 28px; height: 28px;
  color: var(--amber);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 6px rgba(232,184,107,0.4));
  transform-origin: center;
  transition: transform 0.6s ease;
}
.live-airport-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-0);
  box-shadow: 0 0 0 3px rgba(245,241,232,0.15), 0 2px 6px rgba(0,0,0,0.6);
}
.live-airport-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,184,107,0.2), 0 0 12px rgba(232,184,107,0.5);
}

/* Progress — IATA origen, barra, IATA destino en una sola fila */
.live-card__progress { margin-bottom: 16px; }
.live-card__progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.live-card__airport {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1;
}
.live-card__progress-bar {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  background: var(--bg-3);
  border-radius: 4px;
  position: relative;
}
.live-card__progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: 4px;
  transition: width 0.9s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.live-card__progress-bar i::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber), 0 0 0 3px rgba(232,184,107,0.2);
}
.live-card__progress-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}
.live-card__progress-caption [data-live-dist],
.live-card__progress-caption [data-live-eta-inline] {
  color: var(--amber);
  font-weight: 500;
}
.live-card__sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--ink-3);
}

/* Stats — 3 columnas iguales, sin grid, solo flex. Siempre una fila */
.live-card__stats {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  margin-bottom: 12px;
}
.live-card__stat {
  flex: 1 1 0;
  min-width: 0;
}
.live-card__k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card__v {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-0);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card__v b {
  font-family: var(--serif);
  font-weight: 400;
}
.live-card__v em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  margin-left: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Foot */
.live-card__foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================= SHEET MODAL ================= */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.sheet:not([hidden]) { pointer-events: auto; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__body {
  position: relative;
  width: 100%;
  max-height: 78%;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-radius: 26px 26px 0 0;
  padding: 10px 0 32px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -30px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sheet.is-open .sheet__body { transform: translateY(0); }
.sheet__handle {
  width: 40px; height: 4px;
  background: var(--line-3);
  border-radius: 2px;
  margin: 4px auto 14px;
  flex: 0 0 auto;
}
.sheet__head {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.sheet__eyebrow {
  font-size: 10.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  font-family: var(--mono);
}
.sheet__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.sheet__h em { color: var(--amber); }
.sheet__s {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.4;
}
.sheet__list {
  overflow-y: auto;
  padding: 8px 16px 16px;
  flex: 1 1 auto;
  scrollbar-width: none;
}
.sheet__list::-webkit-scrollbar { display: none; }
.sheet__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
}
.sheet__item:hover { background: var(--bg-2); }
.sheet__item.is-selected { background: var(--amber-soft); }
.sheet__item-code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  flex: 0 0 44px;
}
.sheet__item.is-selected .sheet__item-code { color: var(--amber); }
.sheet__item-body { flex: 1; min-width: 0; }
.sheet__item-city {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-0);
  line-height: 1;
}
.sheet__item-meta {
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.sheet__item-check {
  color: var(--amber);
  font-size: 18px;
  opacity: 0;
  transition: opacity .15s;
}
.sheet__item.is-selected .sheet__item-check { opacity: 1; }

/* ================= SKYWATCH (En el aire) ================= */

.sw-head { padding: 14px 4px 18px; }
.sw-head__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--mono);
  margin-bottom: 12px;
}
.sw-head__eyebrow .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue);
  animation: livePulse 1.8s ease-out infinite;
}
.sw-head__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.sw-head__h em { color: var(--amber); }
.sw-head__s {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 12px;
  line-height: 1.55;
}
.sw-head__s em {
  font-style: italic;
  color: var(--ink-1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.sw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.sw-stats > div {
  padding: 14px 10px;
  background: var(--bg-1);
  text-align: center;
}
.sw-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.sw-stats span {
  display: block;
  font-size: 9.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  font-family: var(--mono);
}

.sw-filters {
  display: flex;
  gap: 6px;
  padding: 3px;
  margin-bottom: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.sw-filter {
  flex: 1;
  padding: 8px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.sw-filter.is-active {
  background: var(--bg-3);
  color: var(--ink-0);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.aircraft-list {
  display: flex; flex-direction: column;
  gap: 8px;
}

/* Map view within skywatch */
.sw-map {
  height: 480px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0a0d14;
  border: 1px solid var(--line);
  position: relative;
  z-index: 0;
}
.sw-map .leaflet-container { background: #0a0d14; font-family: var(--sans); }
.sw-map .leaflet-pane,
.sw-map .leaflet-tile-pane { filter: saturate(0.8) brightness(0.95); }
.sw-map .leaflet-control { display: none !important; }

.ac-marker-wrap { pointer-events: auto; }
.ac-marker {
  display: grid;
  place-items: center;
  transform-origin: center;
  transition: transform 0.6s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
  cursor: pointer;
}
.ac-marker--bolivian {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8)) drop-shadow(0 0 8px rgba(232,184,107,0.5));
}
.ac-marker--over {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7)) drop-shadow(0 0 6px rgba(130,184,230,0.4));
}

.sw-map-legend {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex; gap: 10px;
  padding: 7px 10px;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 500;
  pointer-events: none;
}
.sw-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw-map-legend i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sw-map-legend i.bo { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.sw-map-legend i.over { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.sw-map-legend i.other { background: var(--ink-1); opacity: 0.65; }

/* Tooltip dark-theme para marcadores de avión */
.leaflet-tooltip.ac-tooltip {
  background: rgba(15, 17, 22, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.3);
  font-family: var(--sans);
  color: var(--ink-0);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}
.leaflet-tooltip.ac-tooltip::before {
  display: none; /* Leaflet dibuja una flechita blanca por defecto, quitarla */
}
.ac-tip__cs {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-0);
}
.ac-tip__al {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-1);
  margin-top: 2px;
  line-height: 1;
}
.ac-tip__route {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.ac-tip__route em { font-style: normal; opacity: 0.7; margin: 0 3px; }
.ac-tip__stats {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.aircraft-list--skel .ac-skel {
  height: 72px;
  background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: shimmer 1.6s linear infinite;
}

.aircraft {
  display: grid;
  grid-template-columns: 62px 1fr 30px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  animation: rise 0.4s cubic-bezier(.2,.8,.2,1) both;
}
.aircraft:hover { background: var(--bg-2); border-color: var(--line-2); }
.aircraft--bolivian {
  border-color: rgba(232,184,107,0.25);
  background: linear-gradient(170deg, rgba(232,184,107,0.06), transparent), var(--bg-1);
}
.aircraft--over { border-left: 2px solid var(--blue); }

.ac__callsign {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: -0.005em;
}
.aircraft--bolivian .ac__callsign { color: var(--amber); }
.ac__flightno {
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ac__body { min-width: 0; }
.ac__carrier {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-0);
  line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac__country {
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 3px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.ac__route {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.ac__route-code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.aircraft--bolivian .ac__route-code { color: var(--amber); }
.ac__route-arrow {
  color: var(--amber);
  font-size: 11px;
  font-weight: 500;
}
.ac__route-cities {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-left: 2px;
  line-height: 1;
}
.ac__stats {
  display: flex; gap: 6px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.ac__stats b {
  font-weight: 500;
  color: var(--ink-1);
}
.ac__stats .sep { color: var(--ink-4); }

.ac__hdg {
  display: grid;
  place-items: center;
  color: var(--amber);
  opacity: 0.75;
}
.ac__hdg svg { transform-origin: center; transition: transform 0.5s ease; }

.ac__source {
  position: absolute;
  display: none; /* toggle con data-attr si quisiéramos mostrarlo */
}

.sw-empty {
  text-align: center;
  padding: 50px 24px;
}
.sw-empty__icon {
  font-size: 34px;
  color: var(--blue);
  opacity: 0.5;
  margin-bottom: 12px;
}
.sw-empty__h {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.sw-empty__s {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.5;
}
.sw-empty__s em { color: var(--amber); font-style: italic; }

.sw-foot {
  text-align: center;
  color: var(--ink-2);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 20px 0 8px;
}

/* ================= MOBILE (actual phone) ================= */

@media (max-width: 900px) {
  .stage { padding: 0; }
  .stage__meta { display: none !important; }
  .device {
    width: 100%; height: 100vh;
    filter: none;
  }
  .device__shell {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .device__screen {
    border-radius: 0;
  }
  .home-indicator { display: none; }
}
