/* Atajo GG · sistema visual del rediseño (18/11/2026)
   Mobile-first. Tema oscuro único sobre #120826. Un solo color de acción (--acento).
   El degradado rosa-naranja queda reservado al logo y a las cifras de la cuenta atrás. */

@font-face {
  font-family: "Russo One";
  src: url("fuentes/russo-one-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Color */
  --noche: #120826;        /* fondo de página (no se toca) */
  --sup-1: #1B0E38;        /* tarjetas, barras */
  --sup-2: #26154D;        /* tarjeta pulsada, campos */
  --linea: #3D2A6B;        /* bordes */
  --texto: #F6F0FF;        /* 16,9:1 sobre --noche */
  --texto-2: #C4B5E3;      /* 9,6:1 sobre --noche, 8,4:1 sobre --sup-1 */
  --acento: #FFD23F;       /* acción: botones, enlaces, foco. 13,2:1 sobre --noche */
  --acento-pulsado: #E8B91F;
  --sobre-acento: #1A0B00; /* texto encima del acento */
  --ok: #5BE37D;           /* confirmado */
  --aviso: #FFB347;        /* sin confirmar, rumor */
  --spoiler: #FF8FB0;      /* avisos de spoiler */
  --marca: linear-gradient(90deg, #FF2E88, #FF8A00);
  /* Letra */
  --rotulo: "Russo One", "Bahnschrift", "Arial Black", sans-serif;
  --lectura: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --etiqueta: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --t-xs: .8125rem;  /* 13 */
  --t-s: .9375rem;   /* 15 */
  --t-m: 1.0625rem;  /* 17, cuerpo */
  --t-l: 1.25rem;    /* 20 */
  --t-xl: 1.5rem;    /* 24 */
  --t-2xl: clamp(1.75rem, 6.4vw, 2.5rem);
  --t-3xl: clamp(2rem, 8.4vw, 3.5rem);
  /* Espacio (base 4) */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px;
  /* Forma */
  --r-s: 8px;     /* campos, chips */
  --r-m: 14px;    /* tarjetas, botones */
  --r-pill: 999px;
  --sombra: 0 10px 28px rgba(6, 2, 16, .55);
  --alto-cabecera: 56px;
  --alto-barra: 60px;
  --mov: 160ms cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cabecera) + 64px); }
body {
  margin: 0; background: var(--noche); color: var(--texto);
  font: 400 var(--t-m)/1.6 var(--lectura);
  padding-bottom: calc(var(--alto-barra) + env(safe-area-inset-bottom));
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--rotulo); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); }
p { margin: 0 0 var(--e4); max-width: 65ch; }
a { color: var(--acento); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
.ancho { width: min(100% - 32px, 1080px); margin-inline: auto; }
.seccion { padding-block: var(--e7); }
.seccion > .ancho > h2 { margin-bottom: var(--e4); }
.entrada { color: var(--texto-2); }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 8px; top: -60px; background: var(--acento); color: var(--sobre-acento); padding: 10px 14px; border-radius: var(--r-s); z-index: 50; font-weight: 600; }
.saltar:focus { top: 8px; }

/* Fases: pre (antes del 19/11), dia (primera semana), post. Sin JS manda el atributo del <html>. */
html[data-fase="pre"] [data-solo]:not([data-solo~="pre"]),
html[data-fase="dia"] [data-solo]:not([data-solo~="dia"]),
html[data-fase="post"] [data-solo]:not([data-solo~="post"]) { display: none !important; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(18, 8, 38, .94); border-bottom: 1px solid var(--linea); }
@supports (backdrop-filter: blur(8px)) { .cabecera { background: rgba(18, 8, 38, .78); backdrop-filter: blur(12px); } }
.cabecera .ancho { display: flex; align-items: center; gap: var(--e3); height: var(--alto-cabecera); }
.marca { min-height: 44px; display: flex; align-items: center; gap: var(--e2); color: var(--texto); text-decoration: none; font: 400 1.125rem/1 var(--rotulo); }
.marca img { width: 20px; height: 25px; }
.marca em { font-style: normal; background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.juego { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--linea); border-radius: var(--r-pill); color: var(--texto-2); text-decoration: none; font: 600 var(--t-s)/1 var(--etiqueta); letter-spacing: .04em; text-transform: uppercase; }
.cabecera nav { display: none; }
.cabecera .ir-buscar { margin-left: auto; }
.cabecera .ir-app { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--acento); color: var(--sobre-acento); text-decoration: none; font: 700 var(--t-s)/1 var(--etiqueta); }
.cabecera .ir-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cabecera .ir-app + .ir-buscar { margin-left: 0; }
.cabecera .juego, .cabecera .ir-app { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 360px) { .cabecera .juego { display: none; } }
.icono-boton { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-m); color: var(--texto); background: none; border: 0; }
.icono-boton svg, .barra svg, .fila svg, .tarjeta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra inferior (pulgar) ---------- */
.barra { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--sup-1); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.barra a { display: grid; justify-items: center; align-content: center; gap: 2px; height: var(--alto-barra); color: var(--texto-2); text-decoration: none; font: 600 var(--t-xs)/1 var(--etiqueta); letter-spacing: .03em; }
.barra a[aria-current="page"] { color: var(--acento); }
.barra a:active { background: var(--sup-2); }
/* La app destacada en los menús (19/11/2026) */
.barra a.barra-app { color: var(--acento); }
.barra a.barra-app svg { stroke-width: 2.2; }
.nav-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e2); min-height: 52px; padding: 0 22px; border-radius: var(--r-m); border: 0; background: var(--acento); color: var(--sobre-acento); font: 600 var(--t-m)/1 var(--lectura); text-decoration: none; cursor: pointer; transition: transform var(--mov), background var(--mov); }
.boton:hover { background: #FFDC66; }
.boton:active { transform: scale(.98); background: var(--acento-pulsado); }
.boton.secundario { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton.secundario:hover { box-shadow: inset 0 0 0 1.5px var(--texto-2); background: transparent; }
.boton.ancho-total { width: 100%; }

/* ---------- Portada: arranque ---------- */
.arranque { position: relative; isolation: isolate; padding: var(--e6) 0 var(--e5); }
.arranque picture, .arranque picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.arranque::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 8, 38, .55) 0%, rgba(18, 8, 38, .86) 55%, var(--noche) 100%); }
.arranque h1 { max-width: 14ch; }
.arranque .entrada { margin-top: var(--e3); color: var(--texto); }

/* Buscador */
.buscador { position: relative; margin-top: var(--e5); max-width: 560px; }
.buscador label { display: block; font: 600 var(--t-s)/1 var(--etiqueta); letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); margin-bottom: var(--e2); }
.buscador input { width: 100%; min-height: 56px; padding: 0 16px 0 48px; border-radius: var(--r-m); border: 1.5px solid var(--linea); background: var(--sup-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4B5E3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px 50% / 22px no-repeat; color: var(--texto); font: 400 var(--t-m)/1 var(--lectura); }
.buscador input::placeholder { color: var(--texto-2); }
.buscador input:focus { outline: none; border-color: var(--acento); }
.resultados { list-style: none; margin: var(--e2) 0 0; padding: var(--e1); background: var(--sup-1); border: 1px solid var(--linea); border-radius: var(--r-m); box-shadow: var(--sombra); }
.resultados:empty { display: none; }
.resultados a { display: block; padding: 12px; border-radius: var(--r-s); color: var(--texto); text-decoration: none; }
.resultados a:hover, .resultados a:focus-visible { background: var(--sup-2); }
.resultados small { display: block; color: var(--texto-2); font-size: var(--t-s); }
.resultados .vacio { padding: 12px; color: var(--texto-2); }

/* Cuenta atrás */
.cuenta { margin-top: var(--e5); padding: var(--e4); background: var(--sup-1); border: 1px solid var(--linea); border-radius: var(--r-m); max-width: 560px; }
.cuenta-titulo { margin: 0; font-weight: 600; }
.cuenta-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--e2); margin-top: var(--e3); }
.cuenta-cifras[hidden] { display: none; }
.cuenta-cifras div { background: var(--noche); border-radius: var(--r-s); padding: 10px 4px 8px; text-align: center; }
.cuenta-cifras b { display: block; font: 400 clamp(1.75rem, 9vw, 2.5rem)/1 var(--rotulo); font-variant-numeric: tabular-nums; background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cuenta-cifras span { font: 600 var(--t-xs)/1 var(--etiqueta); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2); }
.cuenta details { margin-top: var(--e3); }
.cuenta summary { min-height: 44px; display: flex; align-items: center; color: var(--acento); cursor: pointer; font-weight: 500; }
.cuenta-zonas { list-style: none; margin: 0; padding: 0; }
.cuenta-zonas li { display: flex; justify-content: space-between; gap: var(--e3); padding: 8px 0; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.cuenta-zonas b { color: var(--texto); font-weight: 500; }

/* ---------- Tarjetas y filas ---------- */
.destacadas { display: grid; gap: var(--e3); }
.tarjeta { display: grid; gap: var(--e2); padding: var(--e4); background: var(--sup-1); border: 1px solid var(--linea); border-radius: var(--r-m); color: var(--texto); text-decoration: none; transition: transform var(--mov), border-color var(--mov), background var(--mov); }
.tarjeta b { font: 400 var(--t-l)/1.15 var(--rotulo); }
.tarjeta span { color: var(--texto-2); font-size: var(--t-s); }
.tarjeta svg { color: var(--acento); }
.tarjeta.principal { padding: var(--e5); background: linear-gradient(140deg, #2B1458 0%, var(--sup-1) 70%); }
.tarjeta.principal b { font-size: var(--t-xl); }
.tarjeta:hover { border-color: var(--texto-2); }
.tarjeta:active, .fila:active { transform: scale(.985); background: var(--sup-2); }

.filas { display: grid; gap: var(--e2); list-style: none; margin: 0; padding: 0; }
.fila { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: var(--e3); min-height: 64px; padding: 10px var(--e4); background: var(--sup-1); border-radius: var(--r-m); color: var(--texto); text-decoration: none; transition: transform var(--mov), background var(--mov); }
.fila svg:first-child { color: var(--acento); }
.fila b { display: block; font-weight: 600; line-height: 1.2; }
.fila small { color: var(--texto-2); font-size: var(--t-s); }
.fila .va { width: 16px; height: 16px; color: var(--texto-2); }

/* ---------- Vídeos ---------- */
.videos { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--e3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--e2); margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.video { scroll-snap-align: start; display: grid; gap: var(--e2); padding: 0; border: 0; background: none; color: var(--texto); text-align: left; cursor: pointer; font: inherit; }
.video .portada { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--sup-2); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .portada::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%231A0B00'/%3E%3C/svg%3E") center / 28px no-repeat; }
.video b { font-weight: 600; line-height: 1.25; }
.video time { color: var(--texto-2); font-size: var(--t-s); }
.video iframe { width: 100%; height: 100%; border: 0; }
.nota { color: var(--texto-2); font-size: var(--t-s); }

/* ---------- Método, app, pie ---------- */
.metodo { margin: 0; display: grid; gap: var(--e4); }
.metodo dt { font-weight: 600; }
.metodo dd { margin: 2px 0 0; color: var(--texto-2); }
.app { padding: var(--e5); background: var(--sup-1); border: 1px solid var(--linea); border-radius: var(--r-m); }
.app h2 { font-size: var(--t-xl); }
.app p { margin-top: var(--e3); color: var(--texto-2); }
.pie { border-top: 1px solid var(--linea); padding-block: var(--e6); color: var(--texto-2); font-size: var(--t-s); }
.redes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); margin: var(--e3) 0 var(--e5); }
.redes a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--texto); text-decoration: none; font-weight: 500; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 4px var(--e4); margin-bottom: var(--e4); }
.pie-enlaces a { color: var(--texto-2); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Publicidad: hueco reservado, sin saltos ---------- */
.anuncio { margin-block: var(--e6); min-height: 300px; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-m); background: var(--sup-1); }
.anuncio > span { padding: 6px 10px; font: 600 var(--t-xs)/1 var(--etiqueta); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }

/* ---------- Página de guía ---------- */
.migas { padding-top: var(--e4); font-size: var(--t-s); }
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--texto-2); }
.migas li + li::before { content: "/"; margin-right: 8px; color: var(--linea); }
.migas a { color: var(--texto-2); }
.guia-cab { padding: var(--e4) 0 var(--e5); }
.guia-cab h1 { font-size: var(--t-2xl); }
.ficha { display: flex; flex-wrap: wrap; gap: var(--e2); margin: var(--e4) 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--sup-1); color: var(--texto-2); font: 600 var(--t-s)/1 var(--etiqueta); letter-spacing: .02em; white-space: nowrap; }
.chip.ok { color: var(--ok); }
.chip.aviso { color: var(--aviso); }
.chip.spoiler { color: var(--spoiler); }
.rapida { padding: var(--e4) var(--e4) var(--e2); background: var(--sup-1); border-left: 4px solid var(--acento); border-radius: 0 var(--r-m) var(--r-m) 0; }
.rapida h2 { font: 600 var(--t-s)/1 var(--etiqueta); letter-spacing: .08em; text-transform: uppercase; color: var(--acento); margin-bottom: var(--e3); }
.rapida ol { margin: 0 0 var(--e3); padding-left: 1.3em; }
.rapida li { margin-bottom: 6px; }

.indice { position: sticky; top: var(--alto-cabecera); z-index: 20; background: var(--noche); border-bottom: 1px solid var(--linea); }
.indice ol { list-style: none; display: flex; gap: var(--e2); margin: 0; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.indice a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--sup-1); color: var(--texto-2); text-decoration: none; white-space: nowrap; font-size: var(--t-s); font-weight: 500; }
.indice a[aria-current="true"] { background: var(--acento); color: var(--sobre-acento); }

.cuerpo { padding-block: var(--e5); }
.cuerpo section { padding-block: var(--e5); border-top: 1px solid var(--linea); }
.cuerpo section:first-child { border-top: 0; padding-top: 0; }
.cuerpo h2 { font-size: var(--t-xl); margin-bottom: var(--e3); display: flex; gap: var(--e3); align-items: baseline; }
.cuerpo h2 .n { color: var(--acento); font-variant-numeric: tabular-nums; }
.cuerpo ul { margin: 0 0 var(--e4); padding-left: 1.2em; max-width: 65ch; }
.cuerpo li { margin-bottom: var(--e2); }
.cuerpo li::marker { color: var(--acento); }
.ref { font-size: .75em; vertical-align: super; line-height: 0; text-decoration: none; padding: 0 2px; }
.pendiente { padding: var(--e4); border: 1px dashed var(--aviso); border-radius: var(--r-m); }
.pendiente h2 { font-size: var(--t-l); color: var(--aviso); }

.fuentes ol { padding-left: 1.4em; margin: 0; color: var(--texto-2); font-size: var(--t-s); }
.fuentes li { margin-bottom: var(--e3); }
.fuentes li:target { color: var(--texto); }
.fuentes b { color: var(--texto); font-weight: 600; }
.cambios { margin: 0; padding: 0; list-style: none; font-size: var(--t-s); color: var(--texto-2); }
.cambios li { display: grid; grid-template-columns: 96px 1fr; gap: var(--e3); padding: 6px 0; }
.cambios time { color: var(--texto); font-variant-numeric: tabular-nums; }
.independencia { margin-top: var(--e4); font-size: var(--t-s); color: var(--texto-2); }

.paso-a-paso { display: grid; gap: var(--e2); margin-block: var(--e5); }
.paso-a-paso a { display: grid; gap: 2px; padding: var(--e4); border-radius: var(--r-m); background: var(--sup-1); color: var(--texto); text-decoration: none; }
.paso-a-paso small { font: 600 var(--t-xs)/1 var(--etiqueta); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.paso-a-paso .sig { background: var(--acento); color: var(--sobre-acento); }
.paso-a-paso .sig small { color: var(--sobre-acento); }
.paso-a-paso b { font: 400 var(--t-l)/1.2 var(--rotulo); }

.arriba { position: fixed; right: 16px; bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); z-index: 25; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sup-2); border: 1px solid var(--linea); color: var(--texto); box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity var(--mov); }
.arriba.visible { opacity: 1; pointer-events: auto; }
.arriba svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .barra { display: none; }
  .cabecera nav { display: flex; gap: var(--e5); margin-left: var(--e5); }
  .cabecera nav a { color: var(--texto-2); text-decoration: none; font-weight: 500; }
  .cabecera nav a:hover, .cabecera nav a[aria-current="page"] { color: var(--texto); }
  .cabecera nav a.nav-app { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--acento); color: var(--sobre-acento); font-weight: 700; }
  .cabecera .ir-app { display: none; }
  .cabecera .ir-app + .ir-buscar { margin-left: auto; }
  .cabecera nav a.nav-app:hover { background: var(--acento-pulsado); color: var(--sobre-acento); }
  .arranque { padding-block: var(--e8) var(--e7); }
  .destacadas { grid-template-columns: 1.4fr 1fr; }
  .destacadas .principal { grid-row: span 2; align-content: end; }
  .filas { grid-template-columns: 1fr 1fr; }
  .videos { grid-auto-columns: 31%; margin-inline: 0; padding-inline: 0; }
  .redes { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .dos { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--e7); align-items: start; }
  .guia { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: var(--e7); align-items: start; }
  .indice { top: calc(var(--alto-cabecera) + 24px); border: 0; background: none; }
  .indice ol { flex-direction: column; padding: 0; }
  .indice a { background: none; padding: 0 12px; }
  .paso-a-paso { grid-template-columns: 1fr 1fr; }
  .arriba { bottom: 24px; }
}

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

/* ---------- Ajustes de la portada publicada (18/11/2026) ---------- */
.sin-arriba { padding-top: 0; }
.video .portada { display: block; background: var(--sup-2) var(--portada) center / cover no-repeat; }
.video .portada.con-video::after { display: none; }
.video .fecha { color: var(--texto-2); font-size: var(--t-s); }
.cuenta [hidden] { display: none; }
.cuenta .boton { margin-top: var(--e4); }
.credito { margin: var(--e4) 0 0; font-size: var(--t-xs); color: var(--texto-2); }
.pie-titulo { margin: 0; color: var(--texto); font-weight: 600; }
.pie .legal { margin: 0; }
.app { margin-top: var(--e6); }
@media (min-width: 900px) { .app { margin-top: 0; } }
