/* BonoStake async.css — generado por scripts/split-css.js. NO editar a mano: editá styles.css y corré el script. */
  .btn-primary::after { display: none; }
  .bonus-card,
  .guide-card { transform: none !important; transition: box-shadow 0.3s ease; }
  .bonus-card .code-box,
  .bonus-card .bonus-perks { transform: none; }
  /* Las partículas siguen visibles (solo se pausa animación pesada vía JS si hace falta) */
  /* Disable cinematic background animations */
  body::after { animation: none !important; opacity: 0.5; }
}

/* ==========================================================================
   Modo claro/oscuro + toggle de tema
   ========================================================================== */
:root {
  --header-bg: rgba(8, 12, 18, 0.82);
  /* Alineado al fondo limpio */
  --glow-top: rgba(0, 230, 118, 0.09);
  --glow-side: rgba(0, 160, 200, 0.05);
  --glow-bottom: rgba(0, 100, 80, 0.06);
  --purple-glow-strong: var(--glow-top);
  --purple-glow: var(--glow-side);
  --bg-gradient-start: #080c12;
  --bg-gradient-mid: #0a0f16;
  --bg-gradient-end: #070a10;
  --light-ray-color: transparent;
  --light-ray-color-strong: transparent;
}

/* Cabecera usa token para poder cambiar en claro */
.site-header {
  background: var(--header-bg);
}

/* Transición suave al cambiar de tema */
body {
  transition: background-color 0.35s ease, color 0.35s ease;
}

[data-theme="light"] {
  --bg: #f3f6fa;
  --bg-deep: #e7edf3;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-code: #eef2f6;
  --border: rgba(13, 27, 38, 0.10);
  --border-strong: rgba(13, 27, 38, 0.18);
  --text: #0d1b26;
  --text-2: #51637a;
  --accent: #00b85e;
  --accent-dim: #009951;
  --accent-soft: rgba(0, 184, 94, 0.14);
  --accent-border: rgba(0, 184, 94, 0.35);
  --on-accent: #06231a;
  --gradient-accent: linear-gradient(135deg, #00d468 0%, #00b85e 100%);
  --cyan: #0091c2;
  --cyan-soft: rgba(0, 145, 194, 0.10);
  --gold: #b8891f;
  --gold-soft: rgba(184, 137, 31, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow-1: 0 8px 24px -12px rgba(13, 27, 38, 0.20);
  --shadow-2: 0 24px 48px -20px rgba(13, 27, 38, 0.25);
  --glow-cta: 0 0 28px rgba(0, 184, 94, 0.30);
  /* Cinematic tokens — Light theme (verde sutil) */
  --purple-glow-strong: rgba(0, 184, 94, 0.1);
  --purple-glow: rgba(0, 145, 194, 0.06);
  --bg-gradient-start: #edf6f1;
  --bg-gradient-mid: #f3f6fa;
  --bg-gradient-end: #eef4f8;
  --light-ray-color: rgba(0, 145, 194, 0.02);
  --light-ray-color-strong: rgba(0, 184, 94, 0.03);
}

/* Logo blanco de Stake: en claro se invierte para seguir visible */
[data-theme="light"] .trust-logo {
  filter: invert(1) brightness(0.55);
}

/* Fondo global: el body::before/::after en el reset maneja el fondo cinematográfico.
   Aquí solo desactivamos el fondo anterior para el modo claro si se desea. */
[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0.5;
}

/* Botón flotante de tema (abajo-izquierda) */
.theme-toggle {
  position: fixed;
  left: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }

@media (max-width: 768px) {
  .theme-toggle {
    bottom: calc(76px + var(--sp-4) + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   Micro-interacciones en tarjetas de juego (guide-card)
   ========================================================================== */
.guide-grid {
  perspective: 1100px;
}
.guide-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.guide-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-2), 0 0 30px rgba(0, 230, 118, 0.16);
}
.guide-card .game-rtp {
  transform: translateZ(30px);
}
.guide-card h2,
.guide-card p {
  transform: translateZ(18px);
}
.guide-card .guide-cta {
  color: var(--accent);
  transition: letter-spacing 0.2s ease;
}
.guide-card:hover .guide-cta {
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Conversion pack — Hero 2.0, proof mocks, confetti, compare pro, steps fill
   ========================================================================== */

.section-lead {
  margin-top: var(--sp-3);
  max-width: 52ch;
  color: var(--text-2);
  font-size: 1rem;
}

/* Proof mocks */
.section-proof {
  border-bottom: 1px solid var(--border);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.proof-card h3 {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.proof-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
}
.proof-mock {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, var(--surface-2), var(--surface-code));
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.proof-mock-bar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}
.proof-mock-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.proof-mock-bar span:nth-child(1) { background: #ff5f57; }
.proof-mock-bar span:nth-child(2) { background: #febc2e; }
.proof-mock-bar span:nth-child(3) { background: #28c840; }
.proof-mock-body {
  padding: var(--sp-5);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proof-mock-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  max-width: none;
}
.proof-mock-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: none;
}
.proof-mock-amount.gold { color: var(--gold); }
.proof-mock-amount.green { color: var(--accent); }
.proof-mock-meta {
  font-size: 0.8125rem;
  color: var(--text-2);
  max-width: none;
}
.proof-mock-meter {
  height: 6px;
  margin: 0.35rem 0 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.proof-mock-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
.proof-mock-pill {
  align-self: flex-start;
  margin-top: 0.55rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}
.gold-pill {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--gold), #f5d98a);
}
.green-pill {
  color: var(--on-accent);
  background: var(--gradient-accent);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
}

/* Compare table pro polish */
.compare-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: auto;
  box-shadow: var(--shadow-1);
}
/* compare-table--pro inherits base min-width */
.compare-table--pro thead th.col-highlight {
  position: relative;
  background: rgba(0, 230, 118, 0.08);
}
.compare-table--pro tbody td.col-highlight {
  background: rgba(0, 230, 118, 0.06);
}
.compare-wrap.is-in .compare-table--pro tbody tr {
  animation: compare-row-in 0.45s ease both;
}
.compare-wrap.is-in .compare-table--pro tbody tr:nth-child(1) { animation-delay: 0.05s; }
.compare-wrap.is-in .compare-table--pro tbody tr:nth-child(2) { animation-delay: 0.1s; }
.compare-wrap.is-in .compare-table--pro tbody tr:nth-child(3) { animation-delay: 0.15s; }
.compare-wrap.is-in .compare-table--pro tbody tr:nth-child(4) { animation-delay: 0.2s; }
.compare-wrap.is-in .compare-table--pro tbody tr:nth-child(5) { animation-delay: 0.25s; }
@keyframes compare-row-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}

/* Toast con link a Stake */
.toast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  text-align: center;
}
.toast .toast-msg {
  color: var(--text);
}
.toast .toast-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--gradient-accent);
  border-radius: var(--r-full);
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.3);
}
.toast .toast-link:hover {
  filter: brightness(1.06);
}
.toast.is-rich {
  max-width: min(94vw, 480px);
  padding: var(--sp-4) var(--sp-5);
}

/* Confetti canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: calc(var(--z-header) + 5);
  pointer-events: none;
  opacity: 0;
}
.confetti-canvas.is-active {
  opacity: 1;
}

/* Steps mobile: línea vertical */
@media (max-width: 768px) {
  .steps-animated::before,
  .steps-animated::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    height: auto;
    right: auto;
  }
  .steps-animated::after {
    width: 2px;
    height: var(--steps-progress, 0%);
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .hero-stat-divider {
    display: none;
  }
  .trust-inner--chips {
    flex-direction: column;
    text-align: center;
  }
  .trust-chips {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-shimmer { animation: none !important; -webkit-text-fill-color: var(--text); color: var(--text); }
  .steps-animated::after { transition: none; }
  .compare-wrap.is-in .compare-table--pro tbody tr { animation: none; }
  .confetti-canvas { display: none; }
  .bg-grain { opacity: 0.02; }
}

[data-theme="light"] .bg-grain {
  opacity: 0.03;
  mix-blend-mode: multiply;
}
[data-theme="light"] .proof-mock-bar {
  background: rgba(13, 27, 38, 0.06);
}

/* ==========================================================================
   Páginas internas + polish móvil (pack A+C)
   ========================================================================== */

.page-hero-actions {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  max-width: 40rem;
}
.page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-hero .page-hero-actions .btn {
  min-height: 48px;
}
.band-actions {
  flex-shrink: 0;
}
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.band-inner .band-text {
  flex: 1 1 16rem;
  margin: 0;
  max-width: 48ch;
}
.page-hero::after {
  background:
    radial-gradient(480px 320px at 50% 0%, rgba(0, 230, 118, 0.07), transparent 70%),
    radial-gradient(360px 240px at 90% 40%, rgba(0, 212, 255, 0.05), transparent 70%);
}

/* Sticky code label */
.sticky-code-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.sticky-code.is-copied .sticky-code-label {
  color: var(--on-accent);
}
.sticky-code {
  min-width: 0;
}

/* Code cards en /codigos: más —oferta— */
.code-card.is-featured {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.08), var(--shadow-1);
}
.code-value-big {
  letter-spacing: 0.06em;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
  .container {
    padding-inline: max(var(--sp-4), env(safe-area-inset-left));
    padding-inline-end: max(var(--sp-4), env(safe-area-inset-right));
  }

  .page-hero {
    padding-block: var(--sp-6) var(--sp-5);
  }
  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    max-width: none;
  }
  .page-hero .page-sub {
    font-size: 0.975rem;
  }
  .page-hero-actions {
    max-width: none;
  }
  .page-hero-actions .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero-actions .btn,
  .section-cta .hero-cta-row .btn,
  .band-actions .btn {
    width: 100%;
  }
  .section-cta .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .band-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .band-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Hero home: stats mas compactos */
  .hero {
    padding-block: var(--sp-6) var(--sp-7);
  }
  .hero-stat-value {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }
  .hero-urgency {
    font-size: 0.8125rem;
    padding: 0.55rem 0.75rem;
  }
  .hero-urgency a {
    width: 100%;
    margin-left: 0;
  }
  .bonus-card {
    width: 100%;
    justify-self: stretch;
    transform: none;
  }
  .bonus-card:hover {
    transform: translateY(-2px);
  }
  .code-box {
    flex-wrap: wrap;
  }
  .code-box .btn-copy {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Sticky bar mas usable */
  .sticky-cta {
    gap: 0.55rem;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-left))
      calc(0.65rem + env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-right));
    background: rgba(8, 14, 18, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--accent-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  }
  .sticky-code {
    flex: 1 1 auto;
    min-height: 46px;
    padding-inline: 0.7rem;
    justify-content: center;
    gap: 0.4rem;
  }
  .sticky-code code {
    font-size: 0.9rem;
  }
  .sticky-cta .btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding-inline: 0.9rem;
    white-space: nowrap;
  }
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  /* Toast sobre sticky */
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: min(94vw, 420px);
    max-width: none;
  }
  .toast.is-rich {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
  }
  .toast .toast-link {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  /* Theme toggle / to-top no chocan con sticky */
  .theme-toggle {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    left: max(var(--sp-3), env(safe-area-inset-left));
    width: 42px;
    height: 42px;
  }
  .to-top {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: max(var(--sp-3), env(safe-area-inset-right));
    width: 42px;
    height: 42px;
  }

  /* Proof / compare / steps */
  .proof-mock-body { min-height: 148px; padding: var(--sp-4); }
  .proof-mock-amount { font-size: 1.85rem; }
  .compare-table {
    min-width: 480px;
    font-size: 0.875rem;
  }
  .compare-table th,
  .compare-table td {
    padding: var(--sp-3);
  }

  /* Header compacto */
  .header-cta {
    min-height: 40px;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }
  .brand-name {
    font-size: 1rem;
  }

  /* Nav abierto: full height y scroll */
  .site-header.nav-open .site-nav {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Leaderboard podio en móvil */
  .lb-count-boxes {
    gap: 0.45rem;
  }
  .lb-count-box {
    min-width: 4.2rem;
    padding: 0.55rem 0.4rem;
  }
  .lb-count-box strong {
    font-size: 1.25rem;
  }

  /* Calculadora: resultados mas legibles */
  .calc-results-grid {
    grid-template-columns: 1fr;
  }

  /* Grain mas sutil en pantallas chicas (rendimiento) */
  .bg-grain { opacity: 0.03; }
  .bg-particles { opacity: 1; }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: var(--sp-3);
  }
  .hero-cta .micro-copy {
    font-size: 0.8125rem;
  }
  .sticky-code-label {
    display: none; /* en pantallas muy chicas solo código + icono */
  }
  .sticky-cta .btn-sm {
    font-size: 0.875rem;
  }
  .trust-chip {
    font-size: 0.75rem;
    min-height: 28px;
    padding: 0.22rem 0.6rem;
  }
  .code-value {
    font-size: 1.15rem;
  }
}

/* Safe area en notch devices */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ==========================================================================
   PREMIUM 2.0 — salto visual / conversion / motion
   ========================================================================== */

html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

/* Mejor suavizado y scroll */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  text-rendering: optimizeLegibility;
  /* no clip en body: puede romper position:fixed del canvas de partículas */
}

/* Header premium */
.site-header {
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  background: rgba(8, 14, 18, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Live pulse dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
  vertical-align: 1px;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Hero orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.28;
  animation: orb-float 22s ease-in-out infinite;
}
.hero-orb--a {
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  top: -12%;
  left: 10%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.22), transparent 70%);
}
.hero-orb--b {
  width: min(32vw, 280px);
  height: min(32vw, 280px);
  top: 30%;
  right: -6%;
  background: radial-gradient(circle, rgba(0, 180, 220, 0.14), transparent 70%);
  animation-delay: -6s;
}
.hero-orb--c {
  width: min(26vw, 220px);
  height: min(26vw, 220px);
  bottom: -8%;
  left: 40%;
  background: radial-gradient(circle, rgba(232, 193, 90, 0.08), transparent 70%);
  animation-delay: -11s;
}
@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, 3%, 0) scale(1.08); }
}

.hero .container,
.hero-grid { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--accent-border);
  width: fit-content;
}

/* Bonus card pro */
.bonus-card {
  overflow: hidden;
}
.bonus-card-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 230, 118, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.bonus-card > *:not(.bonus-card-glow) { position: relative; z-index: 1; }
.bonus-card-head {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.bonus-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  padding: 0.2rem 0.55rem;
}
.perk-cyan { color: var(--cyan); }
.bonus-card-cta {
  display: block;
  margin-top: var(--sp-5);
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--on-accent);
  background: var(--gradient-accent);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  box-shadow: var(--glow-cta);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.bonus-card-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Value marquee */
.value-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.06), rgba(0, 212, 255, 0.04), rgba(0, 230, 118, 0.06));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.value-marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  animation: marquee 32s linear infinite;
}
.value-marquee__track span:nth-child(odd) {
  color: var(--text);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Trust chips con check */
.chip-ico {
  color: var(--accent);
  font-weight: 800;
  margin-right: 0.2rem;
}
.trust-chip {
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.trust-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Cards glass + hover lift global */
.benefit-card,
.guide-card,
.proof-card .proof-mock,
.code-card,
.calc-card,
.lb-panel {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover,
.guide-card:hover,
.code-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-2), 0 0 28px rgba(0, 230, 118, 0.12);
}
.benefit-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.benefit-card:hover::before { opacity: 1; }
.benefit-ico {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover .benefit-ico {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
}

/* Button shine */
.btn-shine,
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.btn-primary:hover::before {
  animation: shine-sweep 0.75s ease;
}
@keyframes shine-sweep {
  to { left: 140%; }
}

/* Ripple effect */
.btn, .btn-copy, .code-pill, .sticky-code {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: ripple-out 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(3.2); opacity: 0; }
}

/* Final CTA wow */
.section-final {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.final-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(0, 230, 118, 0.14), transparent 65%),
    radial-gradient(420px 280px at 20% 100%, rgba(0, 212, 255, 0.08), transparent 70%),
    radial-gradient(420px 280px at 80% 100%, rgba(232, 193, 90, 0.06), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 1; text-align: center; }
.final-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
}
.final-points li {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.875rem;
  color: var(--text-2);
}
.final-points strong { color: var(--accent); font-weight: 700; }
.final-micro {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--text-2);
}
.final-actions {
  justify-content: center;
  margin-top: var(--sp-6);
}

/* Activity toast (notificaciones suaves) */
.activity-toast {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: calc(var(--z-sticky) - 1);
  max-width: min(92vw, 320px);
  padding: 0.75rem 0.95rem;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.activity-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}
.activity-toast strong { color: var(--accent); }
@media (max-width: 768px) {
  .activity-toast {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

/* Section titles accent line */
.section-head h2 {
  position: relative;
}
.section-head[data-reveal].is-in h2::after,
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

/* FAQ nicer */
.faq-item {
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--accent-border);
  background: rgba(0, 230, 118, 0.03);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* Links en body (solo texto, no botones) */
.article-body a:not(.btn),
.rakeback-body a:not(.btn),
.final-sub a:not(.btn),
.band-text a:not(.btn) {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.article-body a:not(.btn):hover,
.rakeback-body a:not(.btn):hover {
  color: var(--cyan);
}
.article-body a.btn-primary,
.rakeback-body a.btn-primary,
.section-cta a.btn-primary {
  color: var(--on-accent) !important;
  -webkit-text-fill-color: var(--on-accent);
  text-decoration: none;
}

/* Footer pro */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}
.footer-brand .brand-name em {
  color: var(--accent);
  font-style: normal;
}

/* Steps active glow stronger */
.steps-animated .step.is-active .step-num,
.steps-animated .step.is-in .step-num {
  -webkit-text-stroke-color: rgba(0, 230, 118, 0.45);
  color: rgba(0, 230, 118, 0.12);
}

/* Proof mock polish */
.proof-mock {
  position: relative;
}
.proof-mock::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 230, 118, 0.05));
  pointer-events: none;
}

/* Code card featured pulse border */
.code-card.is-featured {
  position: relative;
}
.code-card.is-featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.55), rgba(0, 212, 255, 0.25), rgba(0, 230, 118, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

/* Page hero internal stronger */
.page-hero {
  background:
    radial-gradient(520px 280px at 10% -20%, rgba(0, 230, 118, 0.08), transparent 60%),
    radial-gradient(420px 240px at 90% 0%, rgba(0, 212, 255, 0.06), transparent 60%);
}

/* Sticky CTA desktop soft (wide but optional small) */
@media (min-width: 769px) {
  .sticky-cta {
    display: none;
  }
}

/* Desktop floating mini bar bottom-right for conversion */
@media (min-width: 769px) {
  .desktop-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: var(--z-sticky);
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .desktop-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .desktop-cta .btn { min-height: 42px; }
  .desktop-cta .btn-copy-mini {
    min-height: 42px;
    padding: 0 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
  }
}

/* Mobile refinements v2 */
@media (max-width: 768px) {
  .value-marquee__track {
    animation-duration: 22s;
    font-size: 0.72rem;
    gap: 0.9rem;
  }
  .hero-orb { filter: blur(40px); opacity: 0.4; }
  .bonus-card-cta { min-height: 48px; display: grid; place-items: center; }
  .final-points { flex-direction: column; align-items: stretch; }
  .final-points li { text-align: center; }
  .section-beneficios .section-head,
  .section-pasos .section-head,
  .section-comparativa .section-head,
  .section-proof .section-head,
  .section-final .final-inner {
    text-align: center;
  }
  .section-beneficios .section-head h2::after,
  .section-pasos .section-head h2::after,
  .section-comparativa .section-head h2::after,
  .section-proof .section-head h2::after {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .value-marquee__track,
  .hero-orb,
  .btn-primary:hover::before { animation: none !important; }
  .site-header { transition: none; }
  .activity-toast { transition: none; }
}
/* Mini desktop CTA states */
.desktop-cta .btn-copy-mini.is-copied {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.desktop-cta .btn-copy-mini:hover {
  filter: brightness(1.05);
}

/* Giant stat glow */
.giant-stat {
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.25);
}

/* Code pill premium */
.code-pill {
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.code-pill:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
  transform: translateY(-1px);
}

/* Stronger selection feel */
::selection {
  background: rgba(0, 230, 118, 0.35);
  color: #fff;
}
/* ==========================================================================
   A/B test — hero message (H1 + CTA)
   ========================================================================== */
.ab-var-b { display: none !important; }
html[data-ab-hero="B"] .ab-var-a { display: none !important; }
html[data-ab-hero="B"] .ab-var-b { display: inline !important; }
html[data-ab-hero="A"] .ab-var-a { display: inline !important; }
html[data-ab-hero="A"] .ab-var-b { display: none !important; }

/* Si el atributo no llegó a pintar, default A (SEO / no-JS parcial) */
html:not([data-ab-hero]) .ab-var-b { display: none !important; }

.ab-debug-badge {
  position: fixed;
  top: calc(var(--header-h, 64px) + 8px);
  right: 12px;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(8, 14, 18, 0.92);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
}
.ab-debug-badge a { color: var(--cyan); }
.ab-debug-badge button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.ab-debug-badge button:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}
/* ==========================================================================
   PREMIUM FINAL PASS — look & feel unificado (v11)
   Menos ruido, mas profundidad, jerarquia tipografica y superficies pro.
   ========================================================================== */

:root {
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --surface: #121c26;
  --surface-2: #182430;
  --surface-code: #0c141c;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(14, 22, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-1: 0 10px 30px -14px rgba(0, 0, 0, 0.65);
  --shadow-2: 0 28px 60px -24px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 0 0 1px rgba(0, 230, 118, 0.12), 0 20px 50px -20px rgba(0, 230, 118, 0.25);
  --text: #eef5fb;
  --text-2: #93a7bb;
  --header-h: 68px;
}

/* Tipografia mas editorial */
body {
  letter-spacing: -0.011em;
  font-feature-settings: "ss01" on, "cv11" on;
}
h1, h2, h3 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 4.4vw + 0.85rem, 3.65rem);
  line-height: 1.05;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 2.3vw + 0.7rem, 2.45rem);
  line-height: 1.12;
}
p {
  text-wrap: pretty;
}

/* Header cristal premium */
.site-header {
  background: rgba(7, 12, 16, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.site-header.is-scrolled {
  background: rgba(6, 10, 14, 0.9);
  border-bottom-color: rgba(0, 230, 118, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.brand-mark {
  filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.35));
}
.brand-name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.site-nav a {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.header-cta {
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.2), 0 8px 20px rgba(0, 230, 118, 0.18);
}

/* Botones mas caros */
.btn {
  border-radius: 12px;
  letter-spacing: -0.015em;
}
.btn-primary {
  background: linear-gradient(135deg, #14f38b 0%, #00e676 42%, #00c853 100%);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(0, 230, 118, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn-lg {
  min-height: 58px;
  border-radius: 14px;
  padding-inline: 1.6rem;
}

/* Hero editorial */
.hero {
  padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(2.5rem, 7vw, 5.5rem);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(8px);
}
.hero-stat-value {
  background: linear-gradient(180deg, #fff 10%, #b8f5d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat:last-child .hero-stat-value {
  background: linear-gradient(180deg, #d8ffe9 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #a3b6c9;
}
.hero-urgency {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.1), rgba(0, 212, 255, 0.05));
  border-color: rgba(0, 230, 118, 0.28);
  backdrop-filter: blur(10px);
}

/* Bonus card: panel premium */
.bonus-card {
  border-radius: var(--r-xl);
  background:
    linear-gradient(165deg, rgba(24, 36, 48, 0.95), rgba(10, 16, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    var(--shadow-2),
    0 0 0 1px rgba(0, 230, 118, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.5rem 1.4rem;
}
.code-box {
  border-radius: 14px;
  border-style: solid;
  border-color: rgba(0, 230, 118, 0.22);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.9rem 1rem;
}
.code-value {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.btn-copy {
  border-radius: 10px;
  font-weight: 700;
}
.bonus-card-cta {
  border-radius: 12px;
  letter-spacing: -0.02em;
}

/* Marquee mas sutil y premium */
.value-marquee {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.04), rgba(0, 212, 255, 0.03), rgba(0, 230, 118, 0.04));
  border-color: rgba(255, 255, 255, 0.06);
}
.value-marquee__track {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.9;
}

/* Secciones: mas aire y separadores elegantes */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head .kicker {
  margin-bottom: 0.65rem;
}
.section-head h2::after {
  width: 56px;
  height: 3px;
  margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Cards unificadas glass-lite */
.benefit-card,
.guide-card,
.calc-card,
.lb-panel,
.code-card,
.proof-mock,
.faq-item,
.article-note {
  border-radius: var(--r-lg);
}
.benefit-card,
.guide-card,
.calc-card,
.code-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.benefit-card:hover,
.guide-card:hover,
.code-card:hover {
  border-color: rgba(0, 230, 118, 0.28);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px rgba(0, 230, 118, 0.08),
    0 20px 40px -24px rgba(0, 230, 118, 0.2);
}
.benefit-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.08);
}
.guide-card {
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.guide-cta {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Trust bar */
.trust-bar {
  background: rgba(10, 16, 22, 0.55);
  backdrop-filter: blur(8px);
}
.trust-chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.01em;
}

/* Proof mocks */
.proof-mock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.proof-mock-amount {
  letter-spacing: -0.04em;
}

/* Steps */
.steps-animated::before {
  background: rgba(255, 255, 255, 0.08);
}
.step-num {
  font-size: 2.75rem;
  opacity: 0.9;
}

/* Compare table */
.compare-wrap,
.table-wrap {
  border-radius: var(--r-lg);
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--surface);
  overflow: hidden;
}
.compare-table thead th.col-highlight {
  background: rgba(0, 230, 118, 0.1);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.65rem;
  padding: 0.15rem 0.35rem;
  overflow: hidden;
}
.faq-item[open] {
  background: rgba(0, 230, 118, 0.04);
  border-color: rgba(0, 230, 118, 0.28);
  box-shadow: 0 10px 30px -18px rgba(0, 230, 118, 0.25);
}

/* Final CTA */
.section-final {
  padding-block: clamp(4rem, 9vw, 7rem);
}
.final-points li {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.code-pill {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 0.75rem 1rem;
}

/* Page heroes internas */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 {
  max-width: 18ch;
  line-height: 1.08;
}
.page-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
}
.breadcrumbs {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-bottom: 1.1rem;
}

/* Calculadora / leaderboard / codigos */
.calc-card {
  padding: 1.5rem;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}
.lb-panel {
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(232, 193, 90, 0.05), transparent 35%),
    var(--surface);
  padding: 1.5rem;
}
.lb-count-box {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.code-card.is-featured {
  border-radius: var(--r-xl);
  padding: 1.25rem;
}

/* Footer premium */
.site-footer {
  padding-block: 2.75rem 2rem;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(0, 230, 118, 0.06), transparent 70%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-top {
  align-items: center;
  gap: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.65;
  max-width: 72ch;
}
.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(143, 163, 184, 0.75);
}

/* Sticky / desktop CTA mas premium */
.sticky-cta {
  background: rgba(6, 10, 14, 0.94) !important;
  border-top: 1px solid rgba(0, 230, 118, 0.22) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}
.sticky-code {
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.08);
}
.desktop-cta {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 230, 118, 0.22) !important;
  background: rgba(8, 14, 18, 0.88) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04) !important;
}

/* Toast premium */
.toast {
  border-radius: 14px;
  background: rgba(12, 20, 28, 0.94);
  border: 1px solid rgba(0, 230, 118, 0.3);
  backdrop-filter: blur(16px);
}
.activity-toast {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(12, 20, 28, 0.9);
}

/* Theme toggle */
.theme-toggle {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 22, 30, 0.85);
  backdrop-filter: blur(10px);
}

/* Scroll progress mas sutil y premium */
.scroll-progress { height: 2px; }
.scroll-progress__bar {
  background: linear-gradient(90deg, #00e676, #00d4ff, #e8c15a);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.45);
}

/* Light theme adjustments for premium pass */
[data-theme="light"] {
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --surface-code: #e9eef4;
  --text: #0c1822;
  --text-2: #4d6278;
  --glass-bg: rgba(255, 255, 255, 0.82);
}
[data-theme="light"] .site-header,
[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
}
[data-theme="light"] .bonus-card {
  background: linear-gradient(165deg, #fff, #f3f7fb);
}
[data-theme="light"] .hero-stat-value,
[data-theme="light"] .hero-stat:last-child .hero-stat-value {
  -webkit-text-fill-color: unset;
  background: none;
  color: var(--text);
}
[data-theme="light"] .hero-stat:last-child .hero-stat-value { color: var(--accent); }
[data-theme="light"] .benefit-card,
[data-theme="light"] .guide-card,
[data-theme="light"] .calc-card,
[data-theme="light"] .code-card {
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(13, 27, 38, 0.18);
}

/* Mobile: compacto pero premium */
@media (max-width: 768px) {
  h1 { font-size: clamp(1.85rem, 8.2vw, 2.35rem); }
  .hero { padding-block: 2.5rem 2.25rem; }
  .bonus-card { border-radius: 18px; }
  .page-hero h1 { max-width: none; }
  .section { padding-block: 3rem; }
  .footer-nav { gap: 0.5rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card:hover,
  .guide-card:hover,
  .code-card:hover {
    transform: none;
  }
}
/* page ready fade removed: avoid blank page if JS fails */

/* Age badge premium */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--on-accent);
  background: linear-gradient(135deg, #14f38b, #00c853);
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.25);
}

/* Article notes */
.article-note {
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(0, 230, 118, 0.05);
  padding: 1rem 1.1rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
/* Proof product shots */
.proof-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1016;
  box-shadow: var(--shadow-1);
}
.proof-shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.proof-card h3 {
  margin-top: var(--sp-4);
}
/* ==========================================================================
   Promo visual Stake — integrado al flujo (sin “galería de banners”)
   ========================================================================== */
.promo-strip {
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.promo-strip-inner {
  display: flex;
  justify-content: center;
}
.promo-strip-link {
  display: block;
  line-height: 0;
  width: min(728px, 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-strip-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), 0 0 20px rgba(0, 230, 118, 0.12);
}
.promo-strip-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 728 / 90;
}

/* 300x250 al final del bloque rakeback, natural */
.rakeback-promo {
  display: block;
  width: min(300px, 100%);
  margin-top: var(--sp-6);
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rakeback-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.rakeback-promo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 250;
}
.trust-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
/* ==========================================================================
   Animaciones sutiles globales (no saturan)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .guide-card,
  .benefit-card,
  .proof-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.28s ease, border-color 0.28s ease;
  }
  .promo-strip-link,
  .rakeback-promo {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  }
  .btn-primary {
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
  }
  .js [data-reveal] {
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .kicker {
    animation: kicker-soft 4s ease-in-out infinite;
  }
  @keyframes kicker-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
  }
  .nav-fixture {
    position: relative;
  }
  .nav-fixture::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    right: 0.15rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
    animation: live-dot-nav 2s ease-out infinite;
  }
  @keyframes live-dot-nav {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
  }
  .lb-count-box strong {
    transition: color 0.3s ease;
  }
}
/* ==========================================================================
   Game simulations (/juegos) — demos premium + plinko path
   ========================================================================== */
.sim-disclaimer {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  margin-bottom: var(--sp-5);
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(0, 230, 118, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 230, 118, 0.05));
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.sim-disclaimer strong { color: var(--text); }
.sim-disclaimer code {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sim-disclaimer__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.25);
  font-size: 1.15rem;
}

.game-sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (min-width: 900px) {
  .game-sim-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.game-sim {
  --sim-accent: var(--accent);
  --sim-glow: rgba(0, 230, 118, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(90% 70% at 100% 0%, var(--sim-glow), transparent 50%),
    linear-gradient(165deg, rgba(28, 40, 54, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow:
    var(--shadow-2),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 50px -28px rgba(0, 0, 0, 0.75);
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.game-sim::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sim-accent), var(--cyan), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.game-sim:hover {
  border-color: rgba(0, 230, 118, 0.28);
  box-shadow:
    var(--shadow-2),
    0 0 40px -12px var(--sim-glow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.game-sim--plinko { --sim-accent: #00e676; --sim-glow: rgba(0, 230, 118, 0.28); }
.game-sim--mines  { --sim-accent: #5b8cff; --sim-glow: rgba(91, 140, 255, 0.22); }
.game-sim--crash  { --sim-accent: #ff6b6b; --sim-glow: rgba(255, 107, 107, 0.2); }
.game-sim--limbo  { --sim-accent: #00d4ff; --sim-glow: rgba(0, 212, 255, 0.22); }
.game-sim--dice   { --sim-accent: #c084fc; --sim-glow: rgba(192, 132, 252, 0.2); }
.game-sim--keno   { --sim-accent: #e8c15a; --sim-glow: rgba(232, 193, 90, 0.22); }

.game-sim.is-win-flash {
  animation: sim-win-pulse 0.65s ease;
}
.game-sim.is-lose-flash {
  animation: sim-lose-pulse 0.65s ease;
}
@keyframes sim-win-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.45); }
  100% { box-shadow: var(--shadow-2), 0 0 0 1px rgba(255,255,255,0.03) inset; }
}
@keyframes sim-lose-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 80, 80, 0.4); }
  100% { box-shadow: var(--shadow-2), 0 0 0 1px rgba(255,255,255,0.03) inset; }
}

.game-sim__head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.game-sim__illu {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), transparent 50%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.game-sim__illu svg {
  width: 48px;
  height: 48px;
  display: block;
}
.game-sim__titles { min-width: 0; flex: 1; }
.game-sim__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.game-sim__titles h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.game-sim__titles > p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.game-sim__demo {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.game-sim__board {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(0, 230, 118, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.35);
  padding: 0.75rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-sim__board--plinko {
  padding: 0.35rem;
  background: #0f212e;
  border-color: rgba(255, 255, 255, 0.06);
}
.game-sim__board--plinko .sim-plinko-canvas {
  max-width: 460px;
  border-radius: 12px;
}
.game-sim__board--glow {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 230, 118, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.35);
}
.game-sim__board--crash {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 80, 80, 0.08), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(0, 230, 118, 0.08), transparent 50%),
    rgba(0, 0, 0, 0.35);
}

.game-sim__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
}
.game-sim__controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
}
.game-sim__controls select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
}
.game-sim__controls input[type="range"] {
  accent-color: var(--sim-accent, var(--accent));
  width: 100%;
}
.game-sim__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.game-sim__meta strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.game-sim__result {
  min-height: 1.45em;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-2);
}
.game-sim__result.is-win { color: var(--accent); text-shadow: 0 0 18px rgba(0, 230, 118, 0.25); }
.game-sim__result.is-lose { color: #ff8a80; }
.game-sim__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.15rem;
}
.game-sim .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.sim-seg {
  display: inline-flex;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}
.sim-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.42rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sim-seg button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Plinko canvas */
.sim-plinko-canvas {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* Mines */
.sim-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  width: min(100%, 280px);
  margin: 0 auto;
}
.sim-mines-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sim-mines-cell:hover:not(:disabled) {
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(0, 230, 118, 0.5);
}
.sim-mines-cell:disabled { cursor: default; }
.sim-mines-cell.is-idle { opacity: 0.85; }
.sim-mines-cell.is-gem {
  background: radial-gradient(circle at 40% 30%, rgba(0,230,118,0.35), rgba(0,230,118,0.12));
  border-color: rgba(0, 230, 118, 0.55);
  box-shadow: 0 0 16px -4px rgba(0, 230, 118, 0.45);
}
.sim-mines-cell.is-mine {
  background: radial-gradient(circle at 40% 30%, rgba(255,100,100,0.35), rgba(255,60,60,0.12));
  border-color: rgba(255, 100, 100, 0.5);
}
.sim-emoji { display: block; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }

/* Crash */
.sim-crash-display {
  text-align: center;
  padding: 0.6rem 0.4rem 0.5rem;
  width: 100%;
}
.sim-crash-mult {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.sim-crash-mult.is-hot {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(0, 230, 118, 0.45);
}
.sim-crash-mult.is-crash {
  color: #ff6b6b;
  text-shadow: 0 0 24px rgba(255, 80, 80, 0.45);
}
.sim-crash-graph {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 80px;
  margin: 0.65rem auto 0.35rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.sim-crash-track {
  height: 8px;
  margin: 0.55rem auto 0;
  width: min(100%, 280px);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sim-crash-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}
.sim-crash-bar.is-crash {
  background: linear-gradient(90deg, #ff8a80, #ff5252);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.45);
}

/* Limbo / Dice rolls */
.sim-limbo-roll,
.sim-dice-roll {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: center;
  padding: 0.85rem 0.5rem;
}
.sim-dice-roll.is-win,
.sim-limbo-roll.is-win { color: var(--accent); text-shadow: 0 0 22px rgba(0,230,118,.35); }
.sim-dice-roll.is-lose,
.sim-limbo-roll.is-lose { color: #ff8a80; }
.sim-limbo-roll.is-spin,
.sim-dice-roll.is-spin {
  animation: sim-roll-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sim-roll-pop {
  0% { transform: scale(0.7); opacity: 0.3; filter: blur(4px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.sim-dice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 0.4rem 0;
}
.sim-dice-face {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a2430, #0c1218);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 18px -8px rgba(0, 212, 255, 0.4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
}
.sim-dice-face span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  margin: auto;
}
.sim-dice-face span:nth-child(1) { background: #eef2f7; grid-column: 1; grid-row: 1; }
.sim-dice-face span:nth-child(2) { background: #eef2f7; grid-column: 3; grid-row: 1; }
.sim-dice-face span:nth-child(3) { background: #00e676; grid-column: 2; grid-row: 2; box-shadow: 0 0 8px #00e676; }
.sim-dice-face span:nth-child(4) { background: #eef2f7; grid-column: 1; grid-row: 3; }
.sim-dice-face span:nth-child(5) { background: #eef2f7; grid-column: 3; grid-row: 3; }
.sim-dice-face span:nth-child(6) { display: none; }

.sim-dice-gauge {
  position: relative;
  width: min(100%, 280px);
  height: 10px;
  margin: 0.35rem auto 0.15rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sim-dice-gauge-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
  transition: left 0.15s ease, width 0.15s ease;
}

.sim-range { width: 100%; max-width: 280px; }

/* Keno */
.sim-keno-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.sim-keno-num {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.sim-keno-num:hover:not(:disabled) {
  border-color: rgba(232, 193, 90, 0.5);
  color: var(--text);
  transform: translateY(-1px);
}
.sim-keno-num.is-picked {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 12px -4px rgba(0, 212, 255, 0.5);
}
.sim-keno-num.is-drawn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.sim-keno-num.is-hit {
  background: rgba(0, 230, 118, 0.28);
  border-color: rgba(0, 230, 118, 0.65);
  color: var(--accent);
  box-shadow: 0 0 14px -2px rgba(0, 230, 118, 0.55);
  animation: sim-keno-hit 0.4s ease;
}
@keyframes sim-keno-hit {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .game-sim { padding: 1rem; }
  .game-sim__illu { width: 52px; height: 52px; border-radius: 14px; }
  .game-sim__illu svg { width: 40px; height: 40px; }
  .sim-keno-num { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .game-sim,
  .sim-mines-cell,
  .sim-keno-num,
  .sim-crash-bar,
  .sim-dice-gauge-fill,
  .sim-limbo-roll,
  .sim-dice-roll {
    transition: none !important;
    animation: none !important;
  }
  .game-sim.is-win-flash,
  .game-sim.is-lose-flash { animation: none; }
}

[data-theme="light"] .game-sim {
  background:
    radial-gradient(90% 70% at 100% 0%, var(--sim-glow), transparent 50%),
    linear-gradient(165deg, #ffffff, #f2f6fb);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .game-sim__board {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .game-sim__board--plinko {
  background:
    radial-gradient(70% 50% at 50% 20%, rgba(0, 160, 200, 0.08), transparent 60%),
    #eef3f8;
}
[data-theme="light"] .game-sim__illu {
  background: linear-gradient(145deg, #fff, #eef3f8);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .sim-disclaimer {
  background: linear-gradient(135deg, rgba(0, 160, 200, 0.08), rgba(0, 180, 100, 0.06));
}
[data-theme="light"] .sim-mines-cell,
[data-theme="light"] .sim-keno-num {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .sim-dice-face {
  background: linear-gradient(145deg, #fff, #e8eef5);
}

/* Plinko featured — full width on desktop, more impact */
@media (min-width: 900px) {
  .game-sim--plinko {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr);
    grid-template-areas:
      "head head"
      "board side"
      "result result"
      "footer footer";
    gap: 0.85rem 1.25rem;
    align-items: start;
  }
  .game-sim--plinko .game-sim__head { grid-area: head; }
  .game-sim--plinko .game-sim__board { grid-area: board; }
  .game-sim--plinko .game-sim__controls {
    grid-area: side;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .game-sim--plinko .game-sim__controls .btn { width: 100%; justify-content: center; }
  .game-sim--plinko .game-sim__result { grid-area: result; }
  .game-sim--plinko .game-sim__footer { grid-area: footer; }
  .game-sim--plinko .sim-plinko-canvas { max-width: 440px; }
}

/* ==========================================================================
   Mejoras Leaderboard + Códigos + Guías hub
   ========================================================================== */

/* --- Leaderboard --- */
.lb-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--sp-4);
}
.lb-badge--soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text-2);
}
.lb-badge--soft .lb-badge-dot { display: none; }

.lb-prizes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: var(--sp-6) 0 var(--sp-5);
}
.lb-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-code);
  text-align: center;
}
.lb-prize strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.lb-prize-rank {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.lb-prize--1 {
  border-color: rgba(232, 193, 90, 0.45);
  background: linear-gradient(180deg, var(--gold-soft), var(--surface-code));
}
.lb-prize--2 { border-color: rgba(192, 200, 220, 0.35); }
.lb-prize--3 { border-color: rgba(205, 127, 50, 0.35); }

.lb-steps {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.lb-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.lb-step-n {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}
.lb-step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.lb-step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
}
.lb-step code {
  color: var(--accent);
  font-weight: 700;
}
.lb-demo-note {
  margin: var(--sp-4) 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
}
.lb-cta-links {
  margin-top: var(--sp-4) !important;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-align: center;
}

@media (max-width: 768px) {
  .lb-prizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lb-prizes .lb-prize:nth-child(4),
  .lb-prizes .lb-prize:nth-child(5) {
    grid-column: span 1;
  }
  .lb-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .lb-prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lb-prize--1 {
    grid-column: 1 / -1;
  }
}

/* --- Códigos --- */
.code-perks {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.code-perks li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.code-card-actions {
  grid-area: accion;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
  justify-self: end;
  width: 100%;
  min-width: 11rem;
  max-width: 16rem;
}
.code-card-actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  grid-area: unset;
  opacity: 1;
  visibility: visible;
}
/* Botón verde principal: no mezclar con .btn-copy (ese es soft) */
.code-card-actions .code-main-copy,
.code-card-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #14f38b 0%, #00c853 100%) !important;
  color: #06100a !important;
  border: 1px solid rgba(0, 230, 118, 0.55) !important;
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.28);
  font-weight: 700;
}
.code-card-actions .code-main-copy:hover,
.code-card-actions .btn-primary:hover {
  filter: brightness(1.06);
  color: #06100a !important;
}
.code-card-actions .code-main-copy.is-copied {
  background: #00e676 !important;
  color: #06100a !important;
}
.code-card-actions .code-main-copy svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}
.code-card-actions .code-main-cta {
  display: inline-flex;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.code-howto {
  list-style: none;
  margin: var(--sp-6) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.code-howto > li {
  display: flex;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-code);
}
.code-howto-n {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.85rem;
}
.code-howto strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.code-howto p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
}
.code-howto code {
  color: var(--accent);
  font-weight: 700;
}
.code-extra-ctas {
  text-align: center;
}
@media (max-width: 768px) {
  .code-howto {
    grid-template-columns: 1fr;
  }
}

/* --- Guías hub --- */
.guides-path {
  margin-bottom: var(--sp-5);
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 118, 0.22);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(0, 212, 255, 0.05));
}
.guides-path-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.guides-path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}
.guides-path-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.guides-path-list li:not(:last-child)::after {
  content: "?";
  color: var(--text-2);
  opacity: 0.55;
  font-weight: 700;
}
.guides-path-list a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.guides-path-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-border);
}

.guide-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.guide-card-meta .kicker {
  margin: 0;
}
.guide-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.guide-card--featured {
  border-color: rgba(0, 230, 118, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.08), var(--shadow-1);
}

.guides-tools {
  margin-top: var(--sp-7);
}
.guides-tools-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
}
.guides-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.guides-tool {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-code);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.guides-tool:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.guides-tool strong {
  font-size: 0.95rem;
  color: var(--text);
}
.guides-tool span {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .guides-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .guides-tools-grid {
    grid-template-columns: 1fr;
  }
  .guides-path-list li:not(:last-child)::after {
    display: none;
  }
}

[data-theme="light"] .lb-step,
[data-theme="light"] .code-howto > li,
[data-theme="light"] .guides-tool {
  background: #fff;
}
[data-theme="light"] .guides-path {
  background: linear-gradient(135deg, rgba(0, 160, 100, 0.08), rgba(0, 140, 180, 0.06));
}

/* ==========================================================================
   Welcome bar — primera visita (no modal bloqueante)
   ========================================================================== */
.welcome-bar {
  position: fixed;
  z-index: calc(var(--z-header) + 5);
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  max-width: 26rem;
  margin-inline: auto;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(0, 230, 118, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(18, 32, 28, 0.98), rgba(8, 14, 18, 0.98));
  box-shadow:
    0 18px 48px -16px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.welcome-bar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.welcome-bar__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  cursor: pointer;
}
.welcome-bar__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.welcome-bar__close svg {
  width: 16px;
  height: 16px;
}
.welcome-bar__body {
  padding-right: 1.5rem;
}
.welcome-bar__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.welcome-bar__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.welcome-bar__title strong {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.welcome-bar__text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
}
.welcome-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.welcome-bar__actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}
.welcome-bar__copy {
  background: linear-gradient(135deg, #14f38b 0%, #00c853 100%) !important;
  color: #06100a !important;
  border-color: rgba(0, 230, 118, 0.5) !important;
  font-weight: 700;
}

@media (min-width: 769px) {
  .welcome-bar {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    margin-inline: 0;
    max-width: 22.5rem;
  }
  /* si hay desktop-cta, subir un poco */
  body:has(.desktop-cta.is-visible) .welcome-bar {
    bottom: 5.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-bar {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
}

[data-theme="light"] .welcome-bar {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(0, 180, 100, 0.12), transparent 55%),
    linear-gradient(165deg, #ffffff, #f0f7f3);
  border-color: rgba(0, 160, 90, 0.28);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Exit-intent — desktop, 1 vez / 7 días
   ========================================================================== */
.exit-intent {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) + 20);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.exit-intent.is-visible {
  opacity: 1;
  visibility: visible;
}
.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.exit-intent__card {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 230, 118, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(20, 32, 28, 0.99), rgba(8, 12, 16, 0.99));
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  outline: none;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.exit-intent.is-visible .exit-intent__card {
  transform: none;
}
.exit-intent__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  cursor: pointer;
}
.exit-intent__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.exit-intent__close svg {
  width: 16px;
  height: 16px;
}
.exit-intent__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.exit-intent__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.exit-intent__code {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.exit-intent__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-2);
}
.exit-intent__text strong {
  color: var(--text);
}
.exit-intent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exit-intent__actions .btn {
  flex: 1 1 auto;
  min-width: 8rem;
  justify-content: center;
}
.exit-intent__copy {
  background: linear-gradient(135deg, #14f38b 0%, #00c853 100%) !important;
  color: #06100a !important;
  border-color: rgba(0, 230, 118, 0.5) !important;
  font-weight: 700;
}
.exit-intent__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--text-2);
  opacity: 0.9;
}

body.exit-intent-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .exit-intent,
  .exit-intent__card {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none !important;
  }
}

[data-theme="light"] .exit-intent__backdrop {
  background: rgba(10, 16, 22, 0.45);
}
[data-theme="light"] .exit-intent__card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 180, 100, 0.1), transparent 55%),
    linear-gradient(165deg, #ffffff, #f2f7f4);
  border-color: rgba(0, 160, 90, 0.28);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Fixture Mundial — match header, stats, pitch lineups
   ========================================================================== */
.match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: var(--sp-5);
  padding: 1.25rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(116, 172, 223, 0.12), transparent 55%),
    radial-gradient(80% 120% at 100% 50%, rgba(255, 0, 0, 0.08), transparent 55%),
    linear-gradient(165deg, rgba(18, 28, 38, 0.95), rgba(8, 12, 18, 0.98));
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.match-team strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: -0.02em;
}
.match-team-sub {
  font-size: 0.75rem;
  color: var(--text-2);
}
.match-flag {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.match-vs-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.match-vs-x {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  opacity: 0.85;
}
.match-vs-meta {
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: center;
}

.match-block-title {
  margin: var(--sp-7) 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.match-block-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Stats bars */
.match-stats {
  margin-top: var(--sp-6);
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.stat-rows {
  display: grid;
  gap: 0.85rem;
}
.stat-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  gap: 0.65rem;
  align-items: center;
}
.stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.stat-val--l { color: #74acdf; text-align: right; }
.stat-val--r { color: #ff3b3b; text-align: left; }
.stat-mid { min-width: 0; }
.stat-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.3rem;
}
.stat-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.stat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #74acdf 0%,
    #74acdf var(--l, 50%),
    #ff3b3b var(--l, 50%),
    #ff3b3b 100%
  );
  width: 100%;
}
.stat-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 600;
}

/* Lineup tabs + pitch */
.lineups {
  margin-top: var(--sp-6);
}
.lineup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.lineup-tab {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface-code);
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lineup-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.lineup-tab:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.pitch-wrap {
  display: none;
}
.pitch-wrap.is-active {
  display: block;
}
.pitch {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0 50%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      #1a6b3c 0,
      #1a6b3c 12.5%,
      #1f7a45 12.5%,
      #1f7a45 25%
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 40px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.pitch-half--top {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-box {
  position: absolute;
  left: 50%;
  width: 44%;
  height: 14%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}
.pitch-box--top { top: 0; border-top: 0; }
.pitch-box--bot { bottom: 0; border-bottom: 0; }

.player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 3.4rem;
  z-index: 2;
}
.player-num {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #74acdf, #3d7eb8);
  border: 2px solid #fff;
  color: #061018;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.player--gk .player-num {
  background: linear-gradient(145deg, #f0c14b, #d4a017);
}
.player--sui .player-num,
.pitch--sui .player-num {
  background: linear-gradient(145deg, #ff5a5a, #c62828);
  color: #fff;
}
.player-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  text-align: center;
  line-height: 1.15;
  max-width: 4.2rem;
}
.pitch-cap {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.45;
}

.match-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--sp-6);
}
.match-key-card {
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-code);
}
.match-key-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.match-key-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
  display: grid;
  gap: 0.4rem;
}
.match-key-card li strong { color: var(--text); }
.match-key-card--bet {
  border-color: rgba(0, 230, 118, 0.28);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(0, 230, 118, 0.1), transparent 55%),
    var(--surface-code);
}
.match-key-card--bet .btn {
  margin-top: 0.9rem;
  width: 100%;
  justify-content: center;
}
.path-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
}

@media (max-width: 700px) {
  .match-header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 0.85rem;
  }
  .match-vs { order: -1; }
  .match-team {
    min-width: 0;
    width: 100%;
    padding: 0 0.25rem;
  }
  .match-team strong {
    font-size: 1.05rem;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .match-team-sub {
    font-size: 0.7rem;
    line-height: 1.3;
    max-width: 16rem;
  }
  .match-flag { font-size: 2rem; }
  .match-vs-meta {
    font-size: 0.7rem;
    line-height: 1.35;
    max-width: 14rem;
  }
  .match-keys { grid-template-columns: 1fr; }
  .match-block-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .match-block-note {
    font-size: 0.8125rem;
  }

  /* Stats: evita que números y labels se pisen */
  .stat-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
    gap: 0.4rem;
  }
  .stat-val { font-size: 0.95rem; }
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: normal;
  }

  /* Tabs de alineación */
  .lineup-tabs {
    gap: 0.35rem;
  }
  .lineup-tab {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  /* Cancha: nombres más chicos y con ellipsis (no se superponen) */
  .pitch {
    max-width: 100%;
  }
  .player {
    width: 2.55rem;
    gap: 1px;
  }
  .player-name {
    font-size: 0.5rem;
    max-width: 2.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
  }
  .player-num {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.58rem;
    border-width: 1.5px;
  }
  .pitch-cap {
    font-size: 0.72rem;
    padding-inline: 0.35rem;
    line-height: 1.4;
  }

  .match-key-card {
    padding: 1rem 0.9rem;
  }
  .match-key-card h3 {
    font-size: 1rem;
  }
  .match-key-card ul {
    font-size: 0.84rem;
    padding-left: 1rem;
    gap: 0.35rem;
  }

  /* Hub cuartos: títulos con banderas sin desborde */
  .qf-hub-grid .guide-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  /* Pantallas muy chicas: solo dorsal en la cancha */
  .player-name { display: none; }
  .player { width: 2rem; }
  .player-num {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.55rem;
  }
  .stat-row {
    grid-template-columns: 1.9rem minmax(0, 1fr) 1.9rem;
  }
}

[data-theme="light"] .match-header,
[data-theme="light"] .match-stats,
[data-theme="light"] .match-key-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Hub cuartos — 2x2 y card actual resaltada */
.qf-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-card.is-current-match {
  border-color: var(--accent-border, rgba(0, 255, 163, 0.45));
  box-shadow: 0 0 0 1px var(--accent-border, rgba(0, 255, 163, 0.25));
}
@media (max-width: 768px) {
  .qf-hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Performance pack — fluidez (scroll, paint, mobile)
   ========================================================================== */
/* particles: no contain/transform acá — rompía el paint del canvas en algunos browsers */

/* Secciones bajo el fold: no layout/paint hasta acercarse */
main > .section:not(:first-of-type),
main > section.section:nth-of-type(n+3) {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Menos blur en móvil (backdrop-filter es carísimo en GPU low-end) */
@media (max-width: 768px) {
  .site-header {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .bg-grain {
    opacity: 0.012;
  }
  .sticky-cta,
  .desktop-cta,
  .welcome-bar,
  .exit-intent__card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  /* Menos sombras animadas en touch */
  .guide-card:hover,
  .bonus-card:hover {
    transform: none;
  }
}

/* reduced-motion: particles.js se apaga solo; no forzar display:none acá */

/* Imágenes: evita CLS + paint más barato */
img {
  max-width: 100%;
  height: auto;
}
img[data-gif] {
  background: var(--surface, #121a22);
}

/* Botones: transform en GPU */
.btn,
.guide-card,
.bonus-card {
  transform: translateZ(0);
}


/* Proof videos (reemplazan GIFs de 3MB) */
.proof-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  background: #0a1016;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.proof-shot .proof-video {
  max-width: 100%;
}
