/* ===== TOKENS ===== */
:root {
  --bg: #0A1024;
  --surface: #121A36;
  --text: #EAF0F6;
  --muted: #9AA7B4;
  --accent: #FF5A52;          /* rojo de la bandera, aclarado para leerse sobre el fondo */
  --rojo: #D52B1E;            /* rojo de la bandera: fondos de botones */
  --azul: #0039A6;            /* azul de la bandera */
  --on-accent: #FFFFFF;
  --border: rgba(255,255,255,.09);
  --border-strong: #5C6683;
  --glow: 0 0 0 1px var(--accent), 0 0 28px rgba(213,43,30,.22);
  --radius: 16px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --banner-h: 36px;
  --nav-h: 64px;
  --top: calc(var(--banner-h) + var(--nav-h)); /* banner + header fijos */
}

/* ===== RESET + BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.title { font-family: "Tektur", var(--font); font-weight: 600; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.08; letter-spacing: .005em; margin-bottom: 28px; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--rojo); color: var(--on-accent); padding: 12px 16px; z-index: 100; }
.demo-badge { display: inline-block; padding: 2px 10px; border: 1px dashed var(--accent); border-radius: 999px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ===== UTILIDADES: botón, tarjeta, reveal ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent; font: 700 .95rem var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--rojo); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(213,43,30,.35); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-3px); }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s, background .2s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-3px); }
.js .btn-primary.reveal.in:hover { transform: translateY(-2px); }
.js .mock.reveal.in:hover, .js .rank-card.reveal.in:hover { transform: none; }

/* ===== MOVIMIENTO REDUCIDO ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* En la portada se mantienen los fundidos (ver el final del archivo); en el resto, nada se mueve */
  html:not(:has(.a-hero)) *, html:not(:has(.a-hero)) *::before, html:not(:has(.a-hero)) *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .fstep { opacity: 1; transform: none; }
}

/* ===== BANNER SUPERIOR FIJO ===== */
.banner { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--banner-h); display: grid; place-items: center; padding: 0 8px; background: var(--azul); color: #fff; font-size: .82rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; }

/* ===== HEADER / NAV ===== */
.nav { position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 50; height: var(--nav-h); background: rgba(10,16,36,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: 800; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); cursor: pointer; }
.nav-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; gap: 4px; padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border); max-height: calc(100dvh - var(--top)); overflow: auto; }
.nav-menu.open { display: flex; }
.nav-menu a { white-space: nowrap; }
.nav-menu a:not(.btn) { padding: 12px 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: var(--accent); }
@media (min-width: 700px) {
  .nav-toggle { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav-menu a:not(.btn) { padding: 0; font-size: .95rem; }
}

/* ===== LAYOUT PRINCIPAL ===== */
main { padding-top: var(--top); }

/* ===== HERO ===== */
.hero { padding: 56px 0 72px; background: radial-gradient(60% 50% at 70% 0%, rgba(213,43,30,.14), transparent 70%); }
.hero h1 { font-size: clamp(2.4rem, 10vw, 4.8rem); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; max-width: 14ch; }
.hero h1 span { color: var(--accent); }
.hero .sub { max-width: 560px; margin: 20px 0 32px; color: var(--muted); font-size: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); flex: none; }

/* ===== CÓMO FUNCIONA ===== */
.steps { display: grid; gap: 16px; }
.step b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ===== EJEMPLO DEL FLUJO (mockup animado) ===== */
.flow-wrap { display: grid; gap: 32px; align-items: start; }
.flow-wrap p.lead { color: var(--muted); margin-bottom: 16px; }
.mock { padding: 0; overflow: hidden; }
.mock:hover { transform: none; }
.mock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.mock-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.fstep { max-width: 92%; padding: 10px 14px; border-radius: 14px; background: #1C2647; font-size: .95rem; }
.fstep small { display: block; color: var(--accent); font-weight: 700; font-size: .75rem; }
.fstep.me { align-self: flex-end; background: var(--rojo); color: var(--on-accent); }
.fstep.me small { color: var(--on-accent); }
.fstep.sys { align-self: center; max-width: 100%; text-align: center; background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }
.fstep.win { align-self: center; max-width: 100%; text-align: center; border: 1px solid var(--accent); background: rgba(213,43,30,.1); font-weight: 700; }
.js .fstep { opacity: 1; }

@media (min-width: 900px) { .flow-wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ===== SEGURIDAD ===== */

/* ===== RANKING ===== */
.rank-list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--border); }
.rank-list li:first-child { border-top: 0; }
.rank-list .pos { color: var(--accent); font-weight: 800; }
.rank-list .name { font-weight: 700; overflow-wrap: anywhere; }
.rank-list .wins { grid-column: 2; color: var(--muted); font-size: .85rem; }
.rank-list b { grid-row: 1; grid-column: 3; font-variant-numeric: tabular-nums; }
.rank-card { max-width: 640px; }
.rank-card:hover { transform: none; }
.rank-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.faq-list details:hover, .faq-list details[open] { border-color: var(--accent); box-shadow: var(--glow); }
.faq-list summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212" / ""; }
.faq-list details p { padding: 0 20px 18px; color: var(--muted); }

/* ===== CTA FINAL ===== */
.cta-final { text-align: center; background: radial-gradient(50% 70% at 50% 100%, rgba(213,43,30,.16), transparent 70%); }
.cta-final .title { margin-bottom: 28px; }

/* ===== PÁGINAS LEGALES / RANKING ===== */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.page-head p { color: var(--muted); }
.notice { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(213,43,30,.08); font-weight: 700; }
.legal { padding: 32px 0 72px; max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }

/* ===== FOOTER ===== */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.footer-nav a { display: inline-block; padding: 10px 2px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer p + p { margin-top: 8px; }
.footer .resp { color: var(--text); font-weight: 600; }

/* ===== AJUSTES PARA LA WEB REAL ===== */
.nav-menu form { margin: 0; }
.nav-menu .btn-link { background: none; border: 0; padding: 12px 8px; color: var(--muted); font: 600 .95rem var(--font); cursor: pointer; }
.nav-menu .btn-link:hover { color: var(--accent); }
@media (min-width: 700px) { .nav-menu .btn-link { padding: 0; } }
.rank-list .name a { text-decoration: none; }
.rank-list .name a:hover { color: var(--accent); }
.rank-empty { color: var(--muted); }
.tramos { margin-top: 12px; display: grid; gap: 4px; color: var(--muted); font-size: .92rem; }
.tramos li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 4px; }
.tramos b { color: var(--text); font-variant-numeric: tabular-nums; }
.nota { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.sin-banner { --banner-h: 0px; }
.cta-final .cta-row { justify-content: center; }

/* Franja con los colores de la bandera bajo la cabecera */
.nav { border-bottom: 0; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--rojo) 20%, var(--rojo) 80%, transparent); }

/* ===== CHILE: bandera, cordillera y estrella ===== */
.bandera-mini { display: inline-block; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); flex: none; vertical-align: -2px; }
.banner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero { position: relative; overflow: hidden; padding-bottom: 150px;
  background:
    radial-gradient(45% 55% at 85% 20%, rgba(0,57,166,.35), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(213,43,30,.18), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.chip-chile { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 14px 6px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; font-size: .9rem; }
.andes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; display: block; max-width: none; }
.andes-fondo { fill: #1A2448; }
.andes-nieve { fill: #E9EEF7; opacity: .85; }
.andes-frente { fill: var(--surface); }
#como-funciona { background: var(--surface); }
#como-funciona .card { background: var(--bg); }

.step b { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--azul); color: #fff; font-size: 1.5rem; }
.cta-final { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(0,57,166,.22)); }
.cta-final .wrap { position: relative; z-index: 1; }
.estrella-fondo { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); fill: #fff; opacity: .05; }
.hecho { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; margin-bottom: 12px; }
@media (min-width: 900px) {
  .hero-grid.con-logo { grid-template-columns: 1.15fr .85fr; }
  .andes { height: 160px; }
}

/* ===== CÓMO FUNCIONA: número fijo que cambia al bajar + línea de tiempo ===== */
.pasos-scroll { background: var(--surface); }
.pasos-grid { display: grid; gap: 48px; }
.ceja { display: flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ceja::before { content: ""; width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--rojo)); }
.pasos-fijo .title { margin-bottom: 16px; }
.pasos-bajada { color: var(--muted); font-size: 1.1rem; max-width: 30rem; }
.contador { display: none; }
.linea { position: relative; display: flex; flex-direction: column; }
.linea-base, .linea-progreso { position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; }
.linea-base { background: rgba(255,255,255,.08); }
.linea-progreso { background: linear-gradient(180deg, var(--azul), #fff 50%, var(--rojo)); transform-origin: top; }
.paso-l { position: relative; display: flex; gap: 24px; padding-bottom: 56px; }
.paso-l:last-child { padding-bottom: 0; }
.paso-punto { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--rojo); color: #fff; transition: background .5s, color .5s, box-shadow .5s; }
.paso-texto { padding-top: 2px; transition: opacity .5s; }
.paso-etq { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.paso-texto h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 8px 0 8px; }
.paso-texto p:last-child { color: var(--muted); font-size: 1.05rem; max-width: 28rem; }
/* Con JS: lo que aún no llega se ve apagado y la línea se llena al bajar */
.js .linea-progreso { transform: scaleY(0); }
.js .paso-l .paso-punto { background: #1C2647; color: var(--muted); }
.js .paso-l .paso-texto { opacity: .78; }
.js .paso-l:not(.activo) .paso-texto h3 { color: #C9D1DB; }
.js .paso-l.activo .paso-punto { background: var(--rojo); color: #fff; box-shadow: 0 0 0 6px rgba(213,43,30,.18); }
.js .paso-l.activo .paso-texto { opacity: 1; }
@media (min-width: 1000px) {
  .pasos-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .pasos-fijo { position: sticky; top: calc(var(--top) + 40px); align-self: start; }
  .paso-l { min-height: 15rem; padding-bottom: 0; }
  .paso-l:last-child { min-height: 0; }
  .contador { display: flex; align-items: flex-end; gap: 20px; margin-top: 56px; }
  .contador-ventana { display: block; height: 7.5rem; overflow: hidden; }
  .contador-num { display: block; font-size: 7.5rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 55%, rgba(255,255,255,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .contador-num.sale { animation: num-sale .25s ease-in forwards; }
  .contador-num.entra { animation: num-entra .3s ease-out; }
  .contador-lado { position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
  .contador-ico { display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(213,43,30,.14); color: var(--accent); }
  .contador-ico.activo { display: grid; }
  .contador-total { color: var(--muted); font-weight: 700; letter-spacing: .14em; font-size: .85rem; }
}
@keyframes num-sale { to { transform: translateY(-100%); opacity: 0; } }
@keyframes num-entra { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bandera translúcida de fondo en el hero */
.hero-fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .13;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%); }
.bandera-fondo { width: 100%; height: 100%; max-width: none; display: block; }
.hero .andes { z-index: 0; }

/* Logo translúcido a la derecha del título (cuando exista) */
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(100%, 480px); height: auto; opacity: .22; }
@media (max-width: 899px) { .hero-logo { display: none; } }

.logo-img { display: block; height: 50px; width: auto; }

/* ===== HERO ESTILO ESPORTS (marca gigante de fondo, título cuadrado) ===== */
.hero-br { position: relative; overflow: hidden; padding: 96px 0 0; min-height: calc(100svh - var(--top));
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 16px),
    radial-gradient(50% 60% at 88% 30%, rgba(0,57,166,.38), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(213,43,30,.22), transparent 70%),
    var(--bg); }
.hero-marca { position: absolute; z-index: 0; right: -6%; top: 50%; transform: translateY(-55%); width: min(70vw, 1050px); max-width: none; height: auto; opacity: .07; pointer-events: none; user-select: none; }
.hero-contenido { position: relative; z-index: 1; }
.hero-br .ceja { gap: 10px; color: var(--muted); letter-spacing: .22em; font-size: .78rem; margin-bottom: 26px; }
.hero-br .ceja::before { width: 48px; }
.hero .hero-titulo { max-width: none; font-family: "Tektur", var(--font); font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 5.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.01em; }
.hero .hero-titulo span { color: var(--accent); }
.hero-br .sub { margin: 28px 0 32px; max-width: 34rem; font-size: 1.12rem; }
.btn-mayus { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; border-radius: 6px; min-height: 52px; padding: 0 26px; gap: 10px; }
.btn-ghost.btn-mayus { background: rgba(255,255,255,.03); }
.hero-nota { margin-top: 18px; color: var(--muted); font-size: .85rem; opacity: .8; }
@media (max-width: 799px) { .hero-marca { right: -30%; top: 30%; width: 130vw; opacity: .06; } }

/* Aparición suave */
.js .aparece { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .aparece.rapido { transition-duration: .5s, .6s; }
.js .aparece.in { will-change: auto; }
.js .aparece.in { opacity: 1; transform: none; }
/* Con "reducir movimiento" no se desliza, solo aparece con un desvanecido corto */
@media (prefers-reduced-motion: reduce) { .js .aparece { transform: none !important; transition-property: opacity !important; transition-duration: .7s !important; transition-timing-function: ease !important; transition-delay: var(--d, 0ms) !important; } }
/* Transiciones suaves al pasar el mouse */
.hist-fila, .hist-tarjeta, .card, .btn, .boton, .nav-menu a, .hist-filtros a { transition: border-color .25s, background-color .25s, color .25s, transform .25s, box-shadow .25s; }
.hist-fila:hover { border-color: rgba(213,43,30,.45); transform: translateX(3px); }
.hist-tarjeta:hover { border-color: rgba(213,43,30,.4); transform: translateY(-2px); }

.cargando main, .cargando .hero-contenido, .cargando .hero-franja { opacity: 0; }
.js .aparece.sin-trans { transition: none !important; }

/* Botón de la cuenta: foto de Discord que se abre con el nombre al pasar el cursor */
.nav-menu a.nav-yo, a.nav-yo { display: inline-flex; align-items: center; gap: 0; padding: 3px !important; border-radius: 999px; background: linear-gradient(135deg, #E0352A, #A3170E); color: #fff !important; text-decoration: none; box-shadow: 0 0 0 0 rgba(213, 43, 30, 0); transition: gap .35s ease, padding .35s ease, box-shadow .35s ease; }
.nav-yo-foto { display: block; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); object-fit: cover; background: #121A36; }
.nav-yo-in { display: flex; flex-direction: column; max-width: 0; overflow: hidden; white-space: nowrap; line-height: 1.15; opacity: 0; transform: translateX(-4px); transition: max-width .35s ease, opacity .3s ease, transform .35s ease; }
.nav-yo-nombre { font-weight: 800; font-size: .92rem; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.nav-yo-sub { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.nav-menu a.nav-yo:hover, .nav-menu a.nav-yo:focus-visible, a.nav-yo:hover, a.nav-yo:focus-visible { gap: 10px; padding: 3px 18px 3px 3px !important; color: #fff !important; box-shadow: 0 4px 14px rgba(213, 43, 30, .25); }
.nav-yo:hover .nav-yo-in, .nav-yo:focus-visible .nav-yo-in { max-width: 190px; opacity: 1; transform: none; transition-delay: 0s, .06s, 0s; }
.nav-yo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* En el celular (menú desplegado) se ve siempre abierto */
@media (max-width: 699px) {
  .nav-menu a.nav-yo, a.nav-yo { gap: 10px; padding: 3px 18px 3px 3px !important; align-self: flex-start; margin-top: 8px; }
  .nav-yo-in { max-width: 190px; opacity: 1; transform: none; }
}
/* Con "reducir animaciones" el botón igual se abre suave (solo ancho y fundido, sin desplazamientos):
   le gana a la regla general que apaga todas las transiciones. */
@media (prefers-reduced-motion: reduce) {
  html .nav-menu a.nav-yo, html a.nav-yo { transition: gap .3s ease, padding .3s ease, box-shadow .3s ease !important; }
  html .nav-yo .nav-yo-in { transform: none !important; transition: max-width .3s ease, opacity .3s ease !important; }
}

/* Cierre: la línea bajo el título va centrada como el título. */
.cta-final .title::after { margin-left: auto; margin-right: auto; }

/* Top 5 y preguntas frecuentes lado a lado en pantallas anchas. */
.duo { display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
  .duo .rank-card, .duo .faq-list { max-width: none; }
}
#faq { scroll-margin-top: calc(var(--banner-h, 0px) + 90px); }
/* Comisiones: franja propia bajo las tarjetas de seguridad. */
.tramos-franja { margin-top: 16px; display: grid; gap: 14px; padding: 20px 24px; }
.tramos-franja h3 { margin: 0; font-size: 1rem; }
.tramos-franja .tramos { margin: 0; grid-template-columns: repeat(2, 1fr); gap: 14px 0; font-size: .92rem; }
.tramos-franja .tramos li { display: grid; gap: 4px; justify-content: start; border-top: 0; padding: 0 16px; border-left: 1px solid var(--border); }
.tramos-franja .tramos li:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (min-width: 900px) {
  .tramos-franja { grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
  .tramos-franja .tramos { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .tramos-franja .tramos li:nth-child(odd) { border-left: 1px solid var(--border); padding-left: 16px; }
  .tramos-franja .tramos li:first-child { border-left: 0; padding-left: 0; }
}

/* Clip de una partida en la portada. En celular va bajo los botones; en pantallas anchas, a la derecha del título. */
.hero-clip { margin: 32px 0 0; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #121a36; box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 6px rgba(213,43,30,.12); }
.hero-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1100px) {
  .hero-clip { position: absolute; right: 0; bottom: 0; width: 440px; margin: 0; transform: rotate(-1.5deg); }
}

/* ===== SEGURIDAD (lista + comisión) ===== */
.seg { display: grid; gap: 40px; align-items: start; }
.seg-lista { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.seg-lista li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.seg-lista li:last-child { border-bottom: 1px solid var(--border); }
.seg-lista h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.seg-lista p { margin: 0; color: var(--muted); }
.seg-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(213,43,30,.12); color: var(--accent); }
.seg-comision { padding: 28px; }
.seg-com-etq { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.seg-comision h3 { margin: 0 0 8px; font-family: "Tektur", var(--font); font-weight: 600; text-transform: uppercase; font-size: 1.35rem; }
.seg-com-texto { margin: 0 0 18px; color: var(--muted); }
.seg-comision .tramos { margin: 0 0 18px; gap: 0; font-size: 1rem; }
.seg-comision .tramos li { padding: 12px 0; }
.seg-comision .tramos b { font-size: 1.05rem; }
.seg-com-ej { margin: 0; padding: 14px 16px; border-radius: 10px; background: rgba(0,57,166,.18); border: 1px solid rgba(0,57,166,.45); font-size: .95rem; }
@media (min-width: 960px) { .seg { grid-template-columns: 1.15fr .85fr; gap: 64px; } .seg-comision { position: sticky; top: 120px; } }

/* Hero sin franja inferior: aire abajo y contenido centrado en la altura */
.hero-br { padding-bottom: 96px; justify-content: center; }
@media (max-width: 799px) { .hero-br { padding: 56px 0 64px; min-height: 0; } }

/* Ceja del hero en texto normal, sin mayúsculas espaciadas */
.hero-br .ceja-hero { text-transform: none; letter-spacing: .01em; font-size: 1rem; font-weight: 600; color: var(--text); }
.hero-br .ceja-hero::before { display: none; }
.nav .btn-link, .btn-link { min-height: 32px; padding-inline: 6px; }

/* ===================================================================== */
/* ===== PORTADA AUDAZ (2026-10) ======================================= */
/* ===================================================================== */
.a-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--top)); display: flex; align-items: center; border-bottom: 8px solid var(--rojo); }
.a-hero-fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.a-hero-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,16,36,.97) 0%, rgba(10,16,36,.88) 42%, rgba(10,16,36,.45) 100%), linear-gradient(0deg, rgba(10,16,36,.9), transparent 35%); }
.a-hero-grid { display: grid; gap: 40px; align-items: end; padding-block: 72px 80px; }
.a-hero-pais { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-weight: 600; color: var(--text); }
.a-titular { margin: 0; font-family: "Tektur", var(--font); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 9vw, 7rem); line-height: .9; letter-spacing: -.01em; }
.a-titular span { color: var(--accent); }
.a-hero-sub { margin: 26px 0 0; max-width: 34rem; font-size: 1.15rem; color: #C9D1DB; }
.a-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.a-btn-grande { min-height: 56px; padding: 0 30px; font-size: .9rem; }
.a-hero .btn-ghost { background: rgba(10,16,36,.55); }
.a-confianza { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #C9D1DB; font-size: .92rem; font-weight: 600; }
.a-confianza li { display: flex; align-items: center; gap: 8px; }
.a-confianza svg { color: var(--accent); }
.a-filas { background: rgba(18,26,54,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 22px; max-width: 440px; width: 100%; }
.a-filas-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.a-filas-cab h2 { margin: 0; font-family: "Tektur", var(--font); font-weight: 600; text-transform: uppercase; font-size: 1.15rem; }
.a-envivo { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: #7EE2A8; }
.a-envivo span { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
.a-filas-lista { margin: 0; padding: 0; list-style: none; }
.a-filas-lista li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.a-fila-modo { flex: 1; font-weight: 700; }
.a-fila-n { color: var(--muted); font-size: .9rem; }
.a-filas-lista b { min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.a-filas-vacio { margin: 8px 0 0; padding: 14px 0; border-top: 1px solid var(--border); color: var(--text); }
.a-filas-pie { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
@media (min-width: 960px) { .a-hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-block: 96px 104px; } }
@media (max-width: 959px) { .a-hero { min-height: 0; } .a-hero-velo { background: linear-gradient(180deg, rgba(10,16,36,.8), rgba(10,16,36,.96) 55%); } }

.a-cifras { border-bottom: 1px solid var(--border); background: var(--surface); }
.a-cifras ul { display: flex; flex-wrap: wrap; gap: 12px 48px; margin: 0; padding: 22px 0; list-style: none; color: var(--muted); }
.a-cifras b { display: block; font-family: "Tektur", var(--font); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }

.a-seccion { padding: 72px 0; }
@media (min-width: 900px) { .a-seccion { padding: 104px 0; } }
.a-seccion + .a-seccion { padding-top: 0; }
.a-h2 { margin: 0; font-family: "Tektur", var(--font); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .95; letter-spacing: -.005em; text-wrap: balance; }
.a-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.a-cab p { margin: 0; max-width: 28rem; color: var(--muted); }

.a-modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.a-modo { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 230px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.a-modo:hover { border-color: rgba(255,90,82,.55); }
.a-modo h3 { margin: 0; font-family: "Tektur", var(--font); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: .95; }
.a-modo p { margin: 0; color: var(--muted); }
.a-formatos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; }
.a-formatos span { padding: 3px 10px; border-radius: 6px; background: rgba(213,43,30,.16); color: #FF8A84; font-weight: 700; font-size: .85rem; }

.a-pozo { padding: clamp(28px, 4vw, 56px); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.a-pozo-bajada { margin: 10px 0 36px; max-width: 36rem; color: var(--muted); }
.a-ecuacion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.a-ec-caja { flex: 1 1 200px; min-width: 0; padding: 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.a-ec-caja p { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.a-ec-caja b { display: block; margin-top: 6px; font-family: "Tektur", var(--font); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.a-ec-caja small { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.a-ec-signo { font-family: "Tektur", var(--font); font-weight: 800; font-size: 2.6rem; color: var(--border-strong); }
.a-ec-pozo { flex-grow: 1.3; background: var(--rojo); border-color: var(--rojo); }
.a-ec-pozo p, .a-ec-pozo small { color: #fff; }
.a-ec-pozo b { font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; }
.a-tramos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.a-tramos li { display: flex; flex-direction: column; padding: 16px 0; color: var(--muted); }
.a-tramos b { color: var(--text); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.a-pasos-t { margin-top: 88px; margin-bottom: 32px; }
.a-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--rojo); }
.a-pasos li { padding: 24px 24px 8px 0; }
.a-paso-n { display: block; font-family: "Tektur", var(--font); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--accent); }
.a-pasos h3 { margin: 12px 0 6px; font-size: 1.2rem; font-weight: 700; }
.a-pasos p { margin: 0; color: var(--muted); }

.a-podio { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 0; padding: 0; list-style: none; }
.a-podio li { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 170px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.a-podio-1 { min-height: 240px !important; border: 2px solid var(--rojo) !important; }
.a-podio-3 { min-height: 150px !important; }
.a-podio-pos { font-family: "Tektur", var(--font); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--muted); }
.a-podio-1 .a-podio-pos { font-size: 3.4rem; color: var(--accent); }
.a-podio a { margin-top: 8px; color: var(--text); font-weight: 700; font-size: 1.25rem; text-decoration: none; overflow-wrap: anywhere; }
.a-podio a:hover { color: var(--accent); }
.a-podio-dato { color: var(--muted); }
.a-rank-resto { margin: 16px 0 0; padding: 0; list-style: none; }
.a-rank-resto li { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.a-rank-resto span { width: 24px; color: var(--accent); font-weight: 700; }
.a-rank-resto a { flex: 1; color: var(--text); font-weight: 600; text-decoration: none; }
.a-vacio { color: var(--muted); }

.a-seg .a-h2, .a-faq .a-h2 { margin-bottom: 28px; }
@media (min-width: 960px) {
  .a-seg, .a-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .a-seg .a-h2, .a-faq .a-h2 { position: sticky; top: calc(var(--top) + 32px); }
}

.a-cierre { background: var(--rojo); }
.a-cierre-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 72px; }
.a-cierre h2 { margin: 0; max-width: 46rem; font-family: "Tektur", var(--font); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: .95; color: #fff; }
.a-btn-oscuro { background: var(--bg); color: #fff; border-color: var(--bg); }
.a-btn-oscuro:hover { background: #000; }


.a-cierre { padding: 0; }
@media (max-width: 699px) {
  .a-podio-1 { order: -1; }
  .a-podio li { min-height: 0 !important; }
  .a-ec-signo { flex-basis: 100%; text-align: center; line-height: 1; font-size: 2rem; }
}

/* ===== Proporciones más equilibradas (2026-10-31) ===== */
.a-titular { font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .95; max-width: 14ch; }
.a-hero-sub { font-size: 1.08rem; }
.a-h2 { font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
.a-modo h3 { font-weight: 600; font-size: 1.6rem; }
.a-ec-caja b { font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.4rem); }
.a-ec-pozo b { font-size: clamp(2.2rem, 4vw, 3rem); }
.a-paso-n { font-weight: 600; font-size: 2.6rem; }
.a-podio-pos { font-weight: 600; font-size: 2rem; }
.a-podio-1 .a-podio-pos { font-size: 2.8rem; }
.a-cierre h2 { font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3rem); }
.a-cifras b { font-weight: 600; }
/* Ritmo: las secciones alternan dos tonos de fondo y tienen menos aire vertical */
.a-seccion { padding: 56px 0; }
.a-seccion + .a-seccion { padding-top: 56px; }
@media (min-width: 900px) { .a-seccion, .a-seccion + .a-seccion { padding: 80px 0; } }
#modos, #ranking, #faq { background: var(--bg); }
#como-funciona, #seguridad { background: var(--surface); }
#como-funciona .a-pozo { background: var(--bg); }
#seguridad .seg-ico { background: rgba(213,43,30,.16); }
.a-pasos-t { margin-top: 64px; }
/* Menú más compacto */
.nav-menu a, .nav-links a { font-size: .9rem; }

/* Botón para pausar el video del hero (accesibilidad: todo video que se mueve solo se puede detener) */
.a-video-btn { position: absolute; right: 16px; bottom: 20px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,16,36,.6); color: #fff; cursor: pointer; }
.a-video-btn:hover { background: rgba(10,16,36,.85); }
.a-video-btn .ico-play { display: none; }
.a-video-btn[aria-pressed="true"] .ico-play { display: block; }
.a-video-btn[aria-pressed="true"] .ico-pausa { display: none; }

/* ===================================================================== */
/* ===== ANIMACIONES DE LA PORTADA ===================================== */
/* ===================================================================== */
.a-titular span { color: inherit; }
.a-titular .a-linea { display: block; overflow: hidden; padding-bottom: .04em; }
.a-titular .a-linea > span { display: inline-block; }
.a-titular .a-rojo { color: var(--accent); }

@keyframes a-sube-linea { from { transform: translateY(105%); } to { transform: none; } }
@keyframes a-aparece { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes a-desde-derecha { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes a-zoom-lento { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes a-latido { 0%, 100% { box-shadow: 0 0 0 4px rgba(61,220,151,.18); } 50% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } }
@keyframes a-pozo-pop { 0% { transform: scale(.92); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes a-brillo { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Entrada del hero: una secuencia al cargar */
.js .a-hero-fondo { animation: a-zoom-lento 2.4s cubic-bezier(.22,1,.36,1) both; }
.js .a-titular .a-linea > span { animation: a-sube-linea .9s cubic-bezier(.22,1,.36,1) both; }
.js .a-titular .a-linea:nth-of-type(2) > span { animation-delay: .1s; }
.js .a-titular .a-linea:nth-of-type(3) > span { animation-delay: .2s; }
.js .a-titular .a-linea:nth-of-type(4) > span { animation-delay: .3s; }
.js .a-hero-pais { animation: a-aparece .7s .05s cubic-bezier(.22,1,.36,1) both; }
.js .a-hero-sub { animation: a-aparece .8s .45s cubic-bezier(.22,1,.36,1) both; }
.js .a-cta { animation: a-aparece .8s .58s cubic-bezier(.22,1,.36,1) both; }
.js .a-confianza { animation: a-aparece .8s .7s cubic-bezier(.22,1,.36,1) both; }
.a-envivo span { animation: a-latido 1.8s ease-in-out infinite; }

/* Al bajar: cada bloque aparece cuando entra en pantalla */
.anim [data-anim] { transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.anim [data-anim="sube"]:not(.visto) { opacity: 0; transform: translateY(24px); }
.anim [data-anim="derecha"]:not(.visto) { opacity: 0; transform: translateX(40px); }
.anim [data-anim="derecha"]:not(.fin) { transition-delay: .5s; }
/* Grupos: los hijos entran escalonados */
.anim [data-anim="grupo"] > *, .anim [data-anim="pasos"] > li, .anim [data-anim="podio"] > li { transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s, background .25s; }
.anim [data-anim="grupo"]:not(.visto) > *, .anim [data-anim="pasos"]:not(.visto) > li { opacity: 0; transform: translateY(28px); }
.anim [data-anim]:not(.fin) > *:nth-child(2) { transition-delay: .08s; }
.anim [data-anim]:not(.fin) > *:nth-child(3) { transition-delay: .16s; }
.anim [data-anim]:not(.fin) > *:nth-child(4) { transition-delay: .24s; }
.anim [data-anim]:not(.fin) > *:nth-child(5) { transition-delay: .32s; }
.anim [data-anim]:not(.fin) > *:nth-child(6) { transition-delay: .4s; }
.anim [data-anim]:not(.fin) > *:nth-child(7) { transition-delay: .48s; }
.anim [data-anim]:not(.fin) > *:nth-child(n+8) { transition-delay: .56s; }
/* Pasos: la línea roja se dibuja de izquierda a derecha */
.a-pasos { position: relative; border-top-color: transparent; }
.a-pasos::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--rojo); transform-origin: left; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.anim .a-pasos:not(.visto)::before { transform: scaleX(0); }
/* Podio: suben desde abajo; el #1 al final */
.anim [data-anim="podio"]:not(.visto) > li { opacity: 0; transform: translateY(60px); }
.anim [data-anim="podio"]:not(.fin) > li:nth-child(1) { transition-delay: .1s; }
.anim [data-anim="podio"]:not(.fin) > li:nth-child(2) { transition-delay: .35s; }
.anim [data-anim="podio"]:not(.fin) > li:nth-child(3) { transition-delay: .2s; }
/* Pozo: entran los jugadores, después los signos y al final el pozo con un golpe */
.anim .a-pozo .a-ec-caja, .anim .a-pozo .a-ec-signo { transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.anim .a-pozo:not(.visto) .a-ec-caja:not(.a-ec-pozo) { opacity: 0; transform: translateY(20px); }
.anim .a-pozo:not(.visto) .a-ec-signo { opacity: 0; transform: scale(.5); }
.anim .a-pozo .a-ec-caja:nth-of-type(2) { transition-delay: .15s; }
.anim .a-pozo .a-ec-signo { transition-delay: .3s; }
.anim .a-pozo:not(.visto) .a-ec-pozo { opacity: 0; }
.anim .a-pozo.visto .a-ec-pozo { animation: a-pozo-pop .7s .55s cubic-bezier(.22,1,.36,1) both; }
.a-ec-pozo { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); background-size: 200% 100%; }
.anim .a-pozo.visto .a-ec-pozo { animation: a-pozo-pop .7s .55s cubic-bezier(.22,1,.36,1) both, a-brillo 2.2s 1.3s ease-in-out 1; }

/* Al pasar el mouse */
.a-modo { transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s; }
.a-modo:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,90,82,.35); }
.a-modo:hover .a-formatos span { background: rgba(213,43,30,.3); color: #fff; }
.a-formatos span { transition: background .25s, color .25s; }
.a-podio li { transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s; }
.a-podio li:hover { transform: translateY(-4px); }
.seg-lista li { transition: background .25s; }
.seg-lista li:hover .seg-ico { background: var(--rojo); color: #fff; }
.seg-ico { transition: background .25s, color .25s; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; background-position: 150% 0; transition: background-position .7s ease; pointer-events: none; }
.btn-primary:hover::after { background-position: -50% 0; }

/* Con "reducir movimiento" (Windows: Efectos de animación apagados): sin desplazamientos ni zoom,
   pero se mantienen los fundidos, que no marean. */
@keyframes a-funde { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .a-hero-fondo { animation: none !important; }
  .js .a-titular .a-linea > span { animation: a-funde .8s ease both; }
  .js .a-hero-pais, .js .a-hero-sub, .js .a-cta, .js .a-confianza { animation-name: a-funde !important; }
  .anim .a-pozo.visto .a-ec-pozo { animation: a-funde .7s .5s ease both !important; }
  .a-envivo span { animation: none !important; }
  .anim [data-anim], .anim [data-anim] > *, .anim .a-pozo .a-ec-caja, .anim .a-pozo .a-ec-signo { transform: none !important; }
  .a-pasos::before { transform: none !important; }
  .a-modo:hover, .a-podio li:hover { transform: none; }
}
/* El zoom del video y el panel que entra desde la derecha no deben crear scroll lateral */
.a-hero { overflow: hidden; }
html, body { overflow-x: clip; }

/* ===== Premio de la ronda en la portada (revisión de diseño, nov. 2026) ===== */
/* El premio de la ronda, encima del podio. */
.a-rank-premio { margin: -16px 0 32px; color: var(--muted); }
.a-rank-premio b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ===== Revisión de diseño (nov. 2026): celular ===== */
@media (max-width: 699px) {
  .a-hero-grid { gap: 28px; padding-block: 48px 56px; }
  .a-modo { min-height: 0; gap: 12px; padding: 22px; }
  .a-modo h3 { font-size: 1.6rem; }
  .a-podio a { display: inline-flex; align-items: center; min-height: 44px; }
}
.a-video-btn { width: 44px; height: 44px; }

/* Portada: título de la lista de comisiones y código del mapa en una línea. */
.a-tramos-t { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: #EAF0F6; font-weight: 700; font-size: 15px; }
.a-tramos-t + .a-tramos { margin-top: 10px; }
.a-tramos-t + .a-tramos { border-top: 0; padding-top: 0; }
.sin-corte { white-space: nowrap; }
/* El borde de arriba del video trae textos de otro mapa: el video es más alto que el hero y se ancla abajo, así esa franja queda fuera. */
.a-hero-fondo { inset: auto 0 0 0; height: 122%; object-position: 70% bottom; }
