/* Leonidas Updates. Un panel de salidas de aeropuerto, de noche, en Vice City.
   Fondo casi negro, un rosa como único color fuerte y turquesa solo para lo ya desbloqueado. */

/* Tipografías alojadas aquí mismo: la web no carga nada de terceros. */
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #100D17;
  --band: #15111F;
  --panel: #0B0911;
  --line: #2B2440;
  --line-2: #332B45;
  --line-3: #241E36;
  --text: #F4EFEA;
  --muted: #B9B0C6;
  --dim: #9B92AD;
  --accent: #FF6FAE;
  --ok: #37D6C5;
  --ink: #1B0B14;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Piezas comunes */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn:hover { color: var(--ink); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--accent); filter: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* El sol a rayas: logotipo y motivo de la portada */
.sun { flex: none; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.sun span { background: var(--accent); }
.sun span:nth-child(1) { height: 44%; }
.sun span:nth-child(2) { height: 10%; }
.sun span:nth-child(3) { height: 8.5%; }
.sun span:nth-child(4) { height: 7%; }
.sun span:nth-child(5) { height: 5.5%; }
.sun span:nth-child(6) { height: 4%; }
.sun.small { width: 34px; }
.sun.small span:nth-child(1) { height: 41%; }
.sun.small span:nth-child(2) { height: 15%; }
.sun.small span:nth-child(3) { height: 12%; }
.sun.small span:nth-child(4) { height: 9%; }
.sun.small span:nth-child(n + 5) { display: none; }

/* Franja superior de las páginas interiores */
.strip { background: var(--band); border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.strip a { margin-left: 12px; color: var(--accent); white-space: nowrap; }
.strip a:hover { color: var(--text); }

/* Cabecera */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-inline: -12px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.top nav a[aria-current] { color: var(--accent); }

/* Portada */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 64px); }
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 9.2vw, 136px); line-height: 0.95; letter-spacing: 0.01em; }
.hero-art { flex: 1 1 280px; display: flex; justify-content: center; }

.countdown { border-block: 1px solid var(--line); background: var(--band); }
.countdown .wrap { display: flex; flex-direction: column; gap: 22px; padding-block: clamp(28px, 4vw, 44px); }
.countdown-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.countdown-head h2 { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.countdown-head p { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); }
.tile { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(14px, 2.4vw, 28px) 8px clamp(10px, 1.6vw, 18px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tile b { font-family: var(--display); font-weight: 400; font-size: clamp(50px, 11vw, 164px); line-height: 1; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.tile:last-child b { color: var(--accent); }
.tile small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.countdown .out { display: none; font-family: var(--display); font-size: clamp(44px, 8vw, 120px); line-height: 1; text-transform: uppercase; color: var(--accent); }
.countdown.done .tiles { display: none; }
.countdown.done .out { display: block; }

/* Secciones */
.section { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-top: 0; }
.band { border-block: 1px solid var(--line); background: var(--band); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.section-head h2, .section-title { font-size: clamp(34px, 4.4vw, 60px); }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.split-head > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.split-head h2 { font-size: clamp(38px, 5.6vw, 80px); line-height: 0.98; }
.split-head > p { flex: 1 1 320px; max-width: 46ch; color: var(--muted); text-wrap: pretty; }

/* Panel de salidas */
.board-box { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.board { width: 100%; min-width: 720px; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 14px 24px; border-top: 1px solid var(--line-3); vertical-align: middle; }
.board thead th { border-top: 0; padding-block: 15px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.board tbody th { font-weight: 600; font-size: 19px; line-height: 1.25; }
.board tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--dim); }
.board td { font-family: var(--mono); font-size: 16px; text-transform: uppercase; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid #4A4060; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.chip.open { background: var(--ok); border-color: var(--ok); color: #06201D; font-weight: 700; }
.mark { color: var(--accent); }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.board-foot p, .footnote { max-width: 80ch; font-size: 14px; color: var(--dim); }
.unlock-you { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.unlock-big { font-family: var(--display); font-size: clamp(28px, 4.6vw, 56px); line-height: 1.02; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.unlock-you small { color: var(--dim); }

/* Datos clave */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 40px; margin: 0; }
.facts div { border-top: 1px solid var(--line-2); padding: 22px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; text-transform: uppercase; }
.facts a { font-size: 14px; }

/* Novedades de portada */
.news { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.news-lead { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.news-lead .date { font-size: 13px; color: var(--accent); }
.news-lead h3 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; }
.news-lead .summary { max-width: 60ch; color: var(--muted); }
.news-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.news-item { border-top: 1px solid var(--line-2); padding: 22px 0 26px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.news-item h3 { font-weight: 600; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.news-item .summary { font-size: 16px; color: var(--muted); }

/* Filas: guías, listados y base de datos */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 26px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
.row-kicker { flex: none; min-width: 44px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.rows.dated .row-kicker { min-width: 124px; font-size: 13px; }
.row-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-title { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.row-summary { font-size: 16px; color: var(--muted); }
.row svg { flex: none; }

/* Personajes y lugares */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.person { min-height: 172px; padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--band); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; text-decoration: none; }
a.person:hover { border-color: var(--accent); }
.person small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.person strong { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; }
.person p { font-size: 15px; color: var(--muted); }
.place { justify-content: flex-start; gap: 14px; }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.video { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.yt { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel) center / cover no-repeat; color: var(--text); cursor: pointer; overflow: hidden; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.play { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; background: rgba(11, 9, 17, 0.72); }
.play::after { content: ""; position: absolute; left: 24px; top: 17px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.yt:hover .play { background: var(--accent); border-color: var(--accent); }
.yt-link { align-content: center; gap: 6px; padding: 20px; text-align: center; text-decoration: none; font-weight: 600; }
.yt-link small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.video figcaption { display: flex; flex-direction: column; gap: 4px; }
.video figcaption strong { font-weight: 600; font-size: 19px; line-height: 1.3; }
.video figcaption small { font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* Páginas interiores */
.page-head { display: flex; flex-direction: column; gap: 18px; padding-block: clamp(40px, 7vw, 80px) 0; }
.page-head h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 0.98; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent); }
.article { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
.article > * { max-width: 820px; }
.article h1 { font-size: clamp(36px, 5.4vw, 68px); }
.meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.prose { font-size: 1.06rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; text-transform: uppercase; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--text); }
.sources { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-block: 1px solid var(--line-2); }
.sources h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.sources ul { margin: 0; padding-left: 1.2em; }

/* Llamada final y pie */
.cta { border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px; padding-block: clamp(56px, 8vw, 104px); }
.cta .wrap > div { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.98; }
.cta p { max-width: 54ch; color: var(--muted); }
.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-block: 48px 28px; }
.foot-about { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-about strong { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.foot-about p { max-width: 46ch; font-size: 15px; color: var(--muted); }
.foot nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.disclaimer { padding-block: 20px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* En el móvil el sol grande empujaba la cuenta atrás fuera de la primera pantalla. */
@media (max-width: 720px) {
  .hero-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
