/* Alpineward: Ski Resort Simulator — web de la beta.
 * Paleta y tipografías de la UI del juego (src/ui/UITheme.gd y src/ui/menu/BrandLogo.gd):
 * cristal azul noche, hielo como acento principal, naranja telesilla para la llamada a la acción.
 * Fuentes OFL autoalojadas: Inter (texto), Outfit (títulos), Fredoka (logotipo), con latin-ext. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0d131d;          /* UITheme.INK */
  --ink-2: #111a27;
  --ink-3: #17212f;
  --glass: rgba(13, 19, 29, .64);
  --card: rgba(255, 255, 255, .045);
  --card-hover: rgba(255, 255, 255, .085);
  --hair: rgba(255, 255, 255, .08);
  --ice: #80ccff;          /* UITheme.ICE */
  --ice-deep: #3d8feb;     /* UITheme.ICE_DEEP */
  --orange: #ff8f33;       /* UITheme.ORANGE */
  --orange-deep: #e66b1a;
  --text: #f0f5fc;
  --dim: #abbacf;
  --muted: #8d9bb0;
  --good: #66de94;
  --gold: #ffcf66;
  --warn: #ffbd52;
  --radius: 16px;
  --radius-s: 10px;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Outfit", var(--f-body);
  --f-word: "Fredoka", var(--f-display);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip y NO hidden: «hidden» en html y body convierte el body en contenedor de scroll y en
   Safari de iPhone el desplazamiento con el dedo se quedaba clavado a media página */
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--f-body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--ice); text-underline-offset: 3px; text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ice); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.glass {
  background: var(--glass); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- tipografía de sección */
.eyebrow { font: 600 13px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--orange); flex: none; }
.h2 { font: 600 clamp(34px, 4.6vw, 60px)/1.05 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.h3 { font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.h3.big { font-size: clamp(28px, 3vw, 40px); }
.lead { font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--f-body); color: var(--dim); max-width: 640px; }
.body { font: 400 16px/1.65 var(--f-body); color: var(--dim); }
.note { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.alt { background: var(--ink-2); }
.head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); transition: background-color .2s; }
.card:hover { background: var(--card-hover); }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 29, 0) 55%, rgba(13, 19, 29, .55)); pointer-events: none; }
video.clip { opacity: 0; transition: opacity .8s ease; }
video.clip.playing { opacity: 1; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.pill.gold { color: var(--gold); background: rgba(255, 207, 102, .1); }
.pill.good { color: var(--good); background: rgba(102, 222, 148, .1); }
.pill.good i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.pill.ice { color: var(--ice); background: rgba(128, 204, 255, .1); }
.pill.orange { color: var(--orange); background: rgba(255, 143, 51, .1); }

/* ---------------------------------------------------------------- botones y formularios */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px;
  padding: 0 24px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer;
  font: 600 16px/1.2 var(--f-body); color: var(--text); white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); color: var(--ink); }
.btn-glass { background: rgba(13, 19, 29, .45); border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(13, 19, 29, .62); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn[disabled] { cursor: progress; opacity: .7; transform: none; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.field {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(13, 19, 29, .55); color: var(--text); font: 400 16px var(--f-body);
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: 2px solid var(--ice); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: #ff7575; }
.signup.big .field, .signup.big .btn { min-height: 56px; font-size: 17px; }
.signup.big .btn { padding: 0 28px; }
.signup.inline { padding: 8px; border-radius: 14px; }
.signup.inline .field { border: 0; background: transparent; }
.form-status { flex-basis: 100%; font-size: 15px; line-height: 1.45; color: var(--dim); text-align: left; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--good); }
.form-status.err { color: #ff9d9d; }
.signup.inline .form-status { padding: 4px 8px 6px; }

/* ---------------------------------------------------------------- cabecera */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.topbar.scrolled { background: rgba(10, 15, 23, .82); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--hair); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand .emblem { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.brand-name { font: 600 19px/1 var(--f-word); letter-spacing: .02em; white-space: nowrap; display: flex; flex-direction: column; gap: 3px; }
.brand-sub { font: 700 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--card-hover); }
.lang { display: flex; background: rgba(13, 19, 29, .5); border: 1px solid var(--hair); border-radius: 10px; padding: 3px; }
.lang a { font: 700 13px/1 var(--f-body); letter-spacing: .06em; color: var(--dim); border-radius: 7px; padding: 0 10px; min-width: 40px; min-height: 36px; display: grid; place-items: center; }
.lang a:hover { color: #fff; }
.lang a[aria-current="page"] { background: rgba(128, 204, 255, .16); color: var(--ice); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) {
  .topbar { gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8.5px; letter-spacing: .16em; }
  .brand .emblem { width: 42px; height: 42px; }
  .topbar-cta { display: none; }
}

/* ---------------------------------------------------------------- 1. hero (el de la web actual) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-video { opacity: .01; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(8, 12, 19, .55) 0%, rgba(8, 12, 19, 0) 22%),
    linear-gradient(90deg, rgba(8, 12, 19, .72) 0%, rgba(8, 12, 19, .35) 40%, rgba(8, 12, 19, 0) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(13, 19, 29, .6) 18%, rgba(13, 19, 29, 0) 45%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--pad) clamp(72px, 12vh, 130px); }
.wordmark {
  font: 600 clamp(48px, 7.4vw, 112px)/.86 var(--f-word); letter-spacing: .01em; margin-top: 0;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #b3d9ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 10, 26, .55));
}
.wordmark span { display: block; }
.wordmark .wordmark-sub {
  font: 700 clamp(13px, 1.25vw, 19px)/1.2 var(--f-body); letter-spacing: .32em; margin-top: 14px;
  background: none; -webkit-text-fill-color: var(--ice); color: var(--ice);
}
.bar { display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin: 22px 0; }
.headline { font: 600 clamp(28px, 3.6vw, 54px)/1.08 var(--f-display); letter-spacing: -.015em; max-width: 18ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hook { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 44ch; color: #e2ecf7; margin-top: 16px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chips a { color: inherit; }
.chips a:hover { color: #fff; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dim); padding: 6px 12px; border-radius: 999px; background: rgba(13, 19, 29, .5); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero-pause {
  position: absolute; right: var(--pad); bottom: 28px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(13, 19, 29, .5); color: #fff; cursor: pointer;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-pause svg { width: 18px; height: 18px; fill: currentColor; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 700px) {
  .hero-poster, .hero-video { object-position: 62% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 12, 19, .5) 0%, rgba(8, 12, 19, .05) 30%, rgba(13, 19, 29, .75) 62%, var(--ink) 100%); }
  .hero-inner { padding-bottom: 84px; }
  .cta-row .btn { width: 100%; }
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------------- 2. intro y estados de la nieve */
.mega { font: 600 clamp(44px, 7.4vw, 104px)/.98 var(--f-display); letter-spacing: -.02em; color: var(--text); }
.grad { background: linear-gradient(90deg, var(--ice), #c9e9ff 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.snow { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.snow-media { aspect-ratio: 21 / 9; min-height: 300px; }
.snow-tint { display: none; position: absolute; inset: 0; mix-blend-mode: color; transition: background-color .5s ease; pointer-events: none; }
.snow-tint[data-s="0"] { background: rgba(200, 230, 255, .10); }
.snow-tint[data-s="1"] { background: rgba(160, 200, 240, .18); }
.snow-tint[data-s="2"] { background: rgba(120, 140, 170, .35); }
.snow-tint[data-s="3"] { background: rgba(60, 150, 235, .40); }
.snow-tint[data-s="4"] { background: rgba(255, 190, 110, .32); }
.snow-tint[data-s="5"] { background: rgba(120, 90, 60, .45); }
.snow-caption { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 460px; z-index: 2; padding: 20px 22px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.snow-name { font: 600 24px/1.1 var(--f-display); color: var(--text); }
.snow-text { font-size: 15px; line-height: 1.55; color: var(--dim); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-s);
  font: 500 15px var(--f-body); cursor: pointer; background: var(--card); color: var(--dim); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--text); border-color: rgba(128, 204, 255, .4); }
.tab[aria-selected="true"] { background: rgba(128, 204, 255, .16); color: var(--text); border-color: var(--ice); }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); }
.sw0 { background: #f7fbff; }
.sw1 { background: repeating-linear-gradient(90deg, #dcebf8 0 3px, #b9d2ea 3px 6px); }
.sw2 { background: #b9c6d6; }
.sw3 { background: var(--ice); }
.sw4 { background: #e9d9b0; }
.sw5 { background: #6b5a45; }
.statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.stat { padding: 28px; }
.stat dt { font: 600 56px/1 var(--f-display); color: var(--ice); }
.stat dt.orange { color: var(--orange); }
.stat dd { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--dim); }

/* ---------------------------------------------------------------- 3. temporada */
.tl { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 57px; height: 2px; background: linear-gradient(90deg, var(--ice), var(--ice-deep) 45%, var(--orange) 85%, rgba(255, 207, 102, .4)); }
.tl li { position: relative; }
.tl-month { font: 600 13px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: 26px; }
.tl-dot { display: block; position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--ice); margin-bottom: 22px; }
.tl h3 { font: 600 20px/1.2 var(--f-display); margin-bottom: 8px; }
.tl li > p:last-child { font-size: 14px; line-height: 1.55; color: var(--dim); }
.tl .peak .tl-dot { background: var(--ice); box-shadow: 0 0 16px var(--ice); }
.tl .storm .tl-dot { border-color: var(--ice-deep); }
.tl .spring .tl-month { color: var(--warn); } .tl .spring .tl-dot { border-color: var(--warn); }
.tl .close .tl-month { color: var(--orange); } .tl .close .tl-dot { border-color: var(--orange); }
.tl .summer { opacity: .85; } .tl .summer .tl-month { color: var(--gold); } .tl .summer .tl-dot { border: 3px dashed var(--gold); }

/* ---------------------------------------------------------------- 4. mecánicas */
.mech { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); }
.scene { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.scene .media { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 16 / 9; }
.scene .scard { grid-column: 7 / span 6; grid-row: 1; z-index: 2; }
.scene.r .media { grid-column: 5 / span 8; }
.scene.r .scard { grid-column: 1 / span 6; }
.scard { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.kick { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kick > span:first-child { color: var(--orange); font-weight: 600; }
.fact { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ice); }
.fact::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); flex: none; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { overflow: hidden; display: flex; flex-direction: column; }
.tile .media { aspect-ratio: 16 / 9; border-radius: 0; }
.tile-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.diff { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--dim); }
.diff li { display: inline-flex; align-items: center; gap: 6px; }
.diff i { width: 12px; height: 12px; border-radius: 50%; }
.d-green { background: #4dc76b; } .d-blue { background: #428ff5; } .d-red { background: #ed4540; } .d-black { background: #1a1c21; border: 1px solid var(--muted); }
.cta-band {
  border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(110deg, rgba(61, 143, 235, .18), rgba(255, 143, 51, .12)); border: 1px solid rgba(128, 204, 255, .22);
}
.cta-band-copy { display: flex; flex-direction: column; gap: 8px; }
.cta-band .signup { max-width: 480px; }

/* ---------------------------------------------------------------- 5. estrategia */
.dil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dil li { padding: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- 6. galería */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shots li { min-width: 0; }
.shots .big { grid-column: span 2; grid-row: span 2; }
.shots a { display: block; height: 100%; aspect-ratio: 16 / 10; }
.shots .big a { min-height: 240px; aspect-ratio: auto; }
.shots img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shots a:hover img { transform: scale(1.04); }
.shots a:focus-visible { outline-offset: 3px; }

/* visor */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 8, 13, .94); color: var(--text); }
.lightbox::backdrop { background: rgba(5, 8, 13, .7); }
.lightbox[open] { display: grid; place-items: center; animation: lbin .22s ease; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; padding: 64px clamp(12px, 6vw, 96px) 24px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: var(--dim); font-size: 15px; text-align: center; max-width: 70ch; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(13, 19, 29, .7); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(128, 204, 255, .2); border-color: var(--ice); }
.lb-close { top: 14px; right: 14px; font-size: 18px; }
.lb-prev { left: 14px; top: 50%; margin-top: -26px; font-size: 34px; padding-bottom: 4px; }
.lb-next { right: 14px; top: 50%; margin-top: -26px; font-size: 34px; padding-bottom: 4px; }
.lb-count { position: absolute; top: 28px; left: 24px; margin: 0; font: 600 14px/1 var(--f-body); color: var(--muted); letter-spacing: .08em; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; } .lightbox figure { padding-bottom: 84px; } .lightbox img { max-height: calc(100dvh - 220px); } }

/* ---------------------------------------------------------------- 7. idiomas y accesibilidad */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.panel-ice { background: linear-gradient(160deg, rgba(128, 204, 255, .10), rgba(255, 255, 255, .03)); }
.lang-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-list li { padding: 10px 14px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .06); font-size: 15px; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366de94' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.checks.orange li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8f33' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); width: 16px; background-size: 16px; }

/* ---------------------------------------------------------------- nieve animada (beta y cierre) */
.snowfx {
  position: absolute; inset: -20% 0 0 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 120px 80px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(2.5px 2.5px at 200px 150px, #fff, transparent), radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(2px 2px at 260px 40px, rgba(255, 255, 255, .9), transparent);
  background-size: 300px 220px; animation: fall 14s linear infinite; animation-play-state: paused;
}
.snowfx.b { background-size: 420px 300px; animation-duration: 22s; opacity: .5; filter: blur(1px); }
.snowfx.run { animation-play-state: running; }
@keyframes fall { from { background-position: 0 0; } to { background-position: -120px 660px; } }
@media (prefers-reduced-motion: reduce) { .snowfx { display: none; } }

/* ---------------------------------------------------------------- 8. beta */
.beta { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 180px) 0; isolation: isolate; }
.beta > .cover { z-index: -2; }
.beta-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink-2) 0%, rgba(13, 19, 29, .35) 30%, rgba(13, 19, 29, .35) 70%, var(--ink-2) 100%); }
.beta .snowfx { z-index: -1; }
.beta-card { max-width: 680px; margin: 0 auto; border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; text-align: center; align-items: center; }
.beta-card .checks { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text); }
.beta-card .signup { max-width: 520px; }
.beta-card .form-status { text-align: center; }
.beta-title { font: 600 clamp(40px, 5.6vw, 72px)/1 var(--f-display); letter-spacing: -.02em; }
.privacy { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- 9. desarrollo */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.phase { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.phase.now { border-color: rgba(102, 222, 148, .35); }
.phase ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--dim); }

/* ---------------------------------------------------------------- 10. FAQ */
.faqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
.faqgrid details { padding: 0 24px; }
.faqgrid summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font: 600 18px/1.3 var(--f-display); }
.faqgrid summary::-webkit-details-marker { display: none; }
.faqgrid summary:focus-visible { outline-offset: 4px; }
.plus { font-size: 24px; color: var(--ice); transition: transform .2s; flex: none; }
details[open] .plus { transform: rotate(45deg); }
.faqgrid details p { padding-bottom: 22px; }

/* ---------------------------------------------------------------- 11. cierre */
.closer { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; isolation: isolate; }
.closer > .cover { z-index: -2; transform: scale(1.1) translateY(4%); }
.closer-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(13, 19, 29, .2) 35%, rgba(13, 19, 29, .4) 70%, var(--ink) 100%); }
.closer .snowfx { z-index: -1; }
.closer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.closer-logo { width: clamp(260px, 28vw, 360px); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45)); }
.closer-title { font: 600 clamp(44px, 7vw, 96px)/1 var(--f-display); letter-spacing: -.02em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.closer .lead { color: var(--text); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.closer .signup { max-width: 520px; }

/* ---------------------------------------------------------------- pie */
.footer { position: relative; margin-top: 40px; padding: 0 0 36px; background: linear-gradient(180deg, #0b1830 0%, #0a121e 38%, var(--ink) 100%); overflow: hidden; }
.foot-ridge { display: block; width: 100%; height: 80px; margin-top: -1px; transform: scaleY(-1); }
.foot-ridge path { fill: var(--ink); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(60% 100% at 80% 0%, rgba(128, 204, 255, .10), transparent 70%), radial-gradient(40% 80% at 10% 10%, rgba(255, 143, 51, .07), transparent 70%); }
.footer .wrap { position: relative; display: flex; flex-direction: column; gap: 48px; }
.foot-hero { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; padding: 32px 0 40px; border-bottom: 1px solid var(--hair); }
.foot-kicker { margin: 0 0 10px; font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.foot-big { margin: 0; font: 600 clamp(30px, 4vw, 52px)/1.05 var(--f-display); letter-spacing: -.015em; color: var(--text); max-width: 16ch; }
.foot-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col > a, .foot-co { color: var(--text); opacity: .8; width: fit-content; transition: color .2s, opacity .2s, transform .2s; }
.foot-col > a:hover { opacity: 1; color: var(--orange); transform: translateX(3px); }
.foot-co { opacity: 1; font-weight: 600; }
.foot-h { font: 600 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.foot-about { gap: 18px; max-width: 360px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.foot-brand:hover { color: var(--text); }
.foot-logo { width: min(300px, 100%); height: auto; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35)); }
.foot-brand > span { display: flex; flex-direction: column; gap: 4px; }
.foot-word { font: 600 20px/1 var(--f-word); letter-spacing: .04em; text-transform: uppercase; }
.foot-sub { font-size: 12px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot-tag { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.socials { display: flex; gap: 10px; }
.soc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hair); transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.soc svg { width: 20px; height: 20px; }
.soc:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-3px); }
.soc.soon { opacity: .45; pointer-events: none; }
.foot-soon { margin: -6px 0 0; font-size: 13px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-top: 22px; border-top: 1px solid var(--hair); }
.legal { font-size: 13px; color: var(--muted); margin: 0; }
.legal-note { margin-right: auto; opacity: .75; }
.foot-lang { display: flex; background: rgba(13, 19, 29, .6); border: 1px solid var(--hair); border-radius: 10px; padding: 3px; }
.foot-lang a { font: 600 13px/1 var(--f-body); padding: 7px 11px; border-radius: 7px; color: var(--muted); }
.foot-lang a.on { background: rgba(128, 204, 255, .16); color: var(--ice); }
.foot-lang a:hover { color: var(--text); }
@media (max-width: 900px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } .foot-hero { align-items: flex-start; }
  .foot-ctas, .foot-ctas .btn { width: 100%; } .foot-ctas .btn { justify-content: center; } .legal-note { margin-right: 0; } }

/* CTA fijo en móvil */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transition: transform .3s ease, opacity .3s ease;
  }
  .sticky-cta.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .footer { padding-bottom: 96px; }
}

/* ---------------------------------------------------------------- aparición suave (solo con JS y movimiento) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- móvil y tableta */
@media (max-width: 900px) {
  .statgrid { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 28px; }
  .tl::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ice), var(--ice-deep) 45%, var(--orange) 85%, rgba(255, 207, 102, .4)); }
  .tl-dot { position: absolute; left: -28px; top: 2px; margin: 0; }
  .tl-month { margin-bottom: 6px; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .scene .media, .scene.r .media { grid-column: 1; grid-row: 1; }
  .scene .scard, .scene.r .scard { grid-column: 1; grid-row: 2; margin: -48px 14px 0; }
  .bento, .dil, .two, .faqgrid { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-band .signup { max-width: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl { gap: 10px; } }
@media (max-width: 560px) {
  .snow-media { aspect-ratio: 4 / 5; min-height: 0; }
  .snow-caption { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .tab { flex: 1 1 calc(50% - 5px); justify-content: flex-start; }
  .signup .btn { width: 100%; }
  .stat dt { font-size: 48px; }
}

/* ============================================================ animación (solo transform/opacity; nada con movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero, escalonada */
  .js .hero-inner > * { opacity: 0; transform: translateY(26px); animation: heroin 1s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .hero-inner > :nth-child(1) { animation-delay: .15s; }
  .js .hero-inner > :nth-child(2) { animation-delay: .35s; }
  .js .hero-inner > :nth-child(3) { animation-delay: .5s; }
  .js .hero-inner > :nth-child(4) { animation-delay: .65s; }
  .js .hero-inner > :nth-child(5) { animation-delay: .8s; }
  .js .hero-inner > :nth-child(6) { animation-delay: .95s; }
  .js .hero-inner .bar { transform-origin: left center; }
  @keyframes heroin { to { opacity: 1; transform: none; } }
  /* Zoom lento del fondo (Ken Burns) y paralaje del hero con el scroll (--hp lo pone main.js) */
  .hero-media { transform: translate3d(0, calc(var(--hp, 0) * 30vh), 0); will-change: transform; }
  /* Solo el póster: el vídeo ya trae su propio movimiento de cámara y escalarlo encima lo hacía temblar */
  .hero-poster { animation: kenburns 28s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
  .hero-inner { opacity: calc(1 - var(--hp, 0) * 1.4); transform: translate3d(0, calc(var(--hp, 0) * -12vh), 0); }
  /* Brillo que cruza los botones naranjas */
  .btn-orange { position: relative; overflow: hidden; isolation: isolate; }
  .btn-orange::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg);
    animation: shine 5.5s ease-in-out 2.2s infinite; }
  @keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
  .btn { transition: transform .2s ease, background-color .2s, box-shadow .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-orange:hover { box-shadow: 0 10px 30px -8px rgba(255, 140, 50, .55); }
  /* Tarjetas: se elevan al pasar el ratón */
  .card { transition: background-color .2s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .8); border-color: rgba(255, 255, 255, .16); }
  .tile video, .tile img, .shots img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .tile:hover video, .tile:hover img, .shots li:hover img { transform: scale(1.05); }
  .shots li { overflow: hidden; border-radius: var(--radius); }
  /* Aparición escalonada: cada hermano llega un poco después (--i lo pone main.js) */
  .js .reveal { transition-delay: calc(var(--i, 0) * 90ms); }
  /* Encabezados: la barra de acento crece al aparecer */
  .head .bar, .head .eyebrow { transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s, opacity .9s; }
  .js .head.reveal .bar { transform: scaleX(0); transform-origin: left center; }
  .js .head.reveal.in .bar { transform: scaleX(1); }
  /* Línea de la temporada: se dibuja y los puntos laten */
  .js .tl::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1) .2s; }
  .js .tl.drawn::before { transform: scaleX(1); }
  .tl .peak .tl-dot { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 10px var(--ice); } 50% { box-shadow: 0 0 26px 4px var(--ice); } }
  /* Punto «en directo» de la beta */
  .live { animation: live 1.8s ease-in-out infinite; }
  @keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}

/* ============================================================ selector de idioma (15 idiomas, sin JS: <details>) */
.langsel { position: relative; }
.langsel summary { list-style: none; display: flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px;
  background: rgba(13, 19, 29, .5); border: 1px solid var(--hair); cursor: pointer; font: 700 13px/1 var(--f-body); letter-spacing: .06em; color: var(--dim); }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover, .langsel[open] summary { color: var(--ice); }
.langsel summary svg { width: 18px; height: 18px; }
.langsel-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 14px;
  background: rgba(13, 19, 29, .97); border: 1px solid var(--hair); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); }
.langsel-list a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.langsel-list a:hover { background: var(--card-hover); color: var(--text); }
.langsel-list a[aria-current="page"] { background: rgba(128, 204, 255, .16); color: var(--ice); font-weight: 600; }
.foot-lang { flex-wrap: wrap; gap: 2px; max-width: 100%; }
.foot-lang a { white-space: nowrap; }

/* ============================================================ lista de espera: consentimiento, campos opcionales y trampa */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.signup { position: relative; }
.consent { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--ice); text-decoration: underline; }
.consent input[aria-invalid="true"] { outline: 2px solid #ff7575; outline-offset: 2px; }
.signup.inline .consent { padding: 2px 8px 4px; }
.more { flex-basis: 100%; text-align: left; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; font-size: 14px; color: var(--dim); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 20px; color: var(--ice); transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 2px 16px 16px; }
.more-grid label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.signup .more-grid .field, .signup.big .more-grid .field { width: 100%; min-height: 44px; font-size: 14px; padding: 0 10px; background-color: var(--ink-3); }
.more-grid option { background: var(--ink-3); color: var(--text); }
@media (max-width: 700px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ aviso de confirmación / baja */
.notice { position: fixed; z-index: 70; left: 50%; top: 88px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  padding: 18px 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
  background: rgba(13, 19, 29, .94); }
.notice-text { font-size: 16px; line-height: 1.5; color: var(--text); }
.notice.ok .notice-text { color: var(--good); }
.notice.err .notice-text { color: #ff9d9d; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ============================================================ páginas sueltas: legales, 404 y raíz */
.page .topbar { position: sticky; }
.page-main { min-height: 60vh; padding: clamp(40px, 7vw, 90px) 0; }
.page-wrap { max-width: 860px; }
.page-legal h1 { font: 600 clamp(32px, 4.4vw, 52px)/1.1 var(--f-display); margin-bottom: 10px; }
.page-legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.page-legal h2 { font: 600 clamp(21px, 2.2vw, 26px)/1.25 var(--f-display); margin: 40px 0 12px; color: var(--text); }
.page-legal h3 { font: 600 18px/1.3 var(--f-display); margin: 24px 0 8px; }
.page-legal p, .page-legal li { color: var(--dim); font-size: 16px; line-height: 1.7; }
.page-legal p + p { margin-top: 12px; }
.page-legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.page-legal a { text-decoration: underline; }
.page-legal strong { color: var(--text); }
.page-legal .todo { background: rgba(255, 189, 82, .16); color: var(--warn); padding: 0 6px; border-radius: 5px; font-weight: 600; }
.page-legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.page-legal th, .page-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); color: var(--dim); vertical-align: top; }
.page-legal th { color: var(--text); font-weight: 600; }
.page-legal .table-wrap { overflow-x: auto; }
.footer-mini { margin-top: 0; padding-top: 28px; }
.footer-mini .wrap { gap: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-right: auto; }
.foot-legal a { color: var(--dim); }
.foot-legal a:hover { color: var(--text); }
.e404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 20px 0 40px; }
.e404-ridge { width: 220px; height: auto; }
.e404-code { font: 700 clamp(90px, 16vw, 160px)/1 var(--f-word); letter-spacing: .02em;
  background: linear-gradient(180deg, var(--text), var(--ice) 60%, var(--ice-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: -30px; }
.e404 .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.root-choose { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.root-choose .lang-list { justify-content: center; }
.root-choose .lang-list a { color: var(--text); }
/* Los nombres de idioma (Čeština, Русский, 日本語...) con la fuente del sistema: así el selector no obliga a
   descargar Inter latin-ext (85 KB) en todas las páginas */
.langsel-list a, .foot-lang a, .root-choose .lang-list li { font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
