/* ============================================================
   XUPERPARLEY · Landing styles
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--selection); color: var(--txt); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* fondo animado de partículas + contenido por encima */
#bgCanvas { position: fixed; inset: 0; z-index: 0; opacity: var(--canvas-opacity); pointer-events: none; }
.site-header { z-index: 50; }
main, .site-footer { position: relative; z-index: 1; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Animaciones ---------- */
/* aparición al hacer scroll (la clase .reveal la agrega el JS solo si hay motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* entrada del hero al cargar */
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .hero-visual { animation: hero-in .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-badge { animation-delay: .05s; }
.hero-title { animation-delay: .12s; }
.hero-sub { animation-delay: .20s; }
.hero-cta { animation-delay: .28s; }
.hero-stats { animation-delay: .36s; }
.hero-visual { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: var(--on-accent); font-weight: 700;
  box-shadow: var(--glow-green);
}
.btn-primary:hover { box-shadow: var(--glow-strong); transform: translateY(-1px); }
.btn-ghost {
  background: var(--ghost-bg); color: var(--txt);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green-line); color: var(--green); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: var(--r-lg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { background: var(--header-bg-scroll); border-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(62,242,160,.4)); display: flex; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: .5px; color: var(--txt);
}
.brand-word-alt { color: var(--green); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color .15s, background .15s;
  white-space: nowrap;   /* si no, "En vivo" se parte en dos líneas */
}
.nav a:hover { color: var(--txt); background: var(--hover-bg); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-toggle {
  display: flex; gap: 3px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.lang-toggle button {
  padding: 5px 11px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--muted); border-radius: 6px; transition: all .15s;
}
.lang-toggle button.is-active { background: var(--green-soft); color: var(--green); }

/* ---------- Botón de tema oscuro / claro ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }

/* En oscuro se ofrece pasar a claro (sol); en claro, pasar a oscuro (luna) */
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* ---------- Grupo de ingreso del header (Clásica / Moderna) ----------
   El cliente quiere acceso directo a las dos plataformas, sin abrir un
   modal. Las etiquetas van cortas porque si no el menú no entra. */
.login-group {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.login-group-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  margin-right: 4px;
}
.btn-plat {
  padding: 7px 13px; font-size: 13px; border-radius: 6px;
  background: transparent; color: var(--txt); border-color: transparent;
}
.btn-plat:hover { background: var(--hover-bg); color: var(--green); }
.btn-plat.is-recommended {
  background: var(--green-soft); color: var(--green);
  border-color: var(--green-line);
}
.btn-plat.is-recommended:hover { background: var(--grad-soft); box-shadow: var(--glow-green); }

/* mobile menu button */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--txt); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow-1 {
  width: 620px; height: 620px; top: -220px; left: -120px;
  background: radial-gradient(circle, rgba(62,242,160,.4), transparent 68%);
}
.hero-glow-2 {
  width: 560px; height: 560px; top: -120px; right: -140px;
  background: radial-gradient(circle, rgba(47,216,255,.32), transparent 68%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(62,242,160,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,242,160,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.hero-badge {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: var(--green); background: var(--green-soft);
  border: 1px solid var(--green-line); padding: 7px 16px; border-radius: var(--r-pill);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 7vw, 76px); line-height: 1.03; letter-spacing: -.02em;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 560px; font-size: clamp(15px, 2.2vw, 18px); color: var(--muted);
  line-height: 1.65; margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted-2); text-transform: uppercase;
}

/* glow orbs animados + grid con deriva */
.hero-glow-1 { animation: drift1 16s ease-in-out infinite; }
.hero-glow-2 { animation: drift2 20s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-36px,26px); } }

/* shimmer del texto con gradiente en movimiento */
.shimmer {
  background: linear-gradient(100deg, #3EF2A0, #2FD8FF, #3EF2A0);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------- Hero: visual (ruleta animada) ---------- */
.hero-visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-visual-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,242,160,.22), transparent 66%); filter: blur(30px);
}
.roulette {
  width: 300px; height: 300px; border-radius: 50%; position: relative;
  background: conic-gradient(
    #3EF2A0 0 30deg, #121a18 30deg 60deg, #2FD8FF 60deg 90deg, #121a18 90deg 120deg,
    #3EF2A0 120deg 150deg, #121a18 150deg 180deg, #2FD8FF 180deg 210deg, #121a18 210deg 240deg,
    #3EF2A0 240deg 270deg, #121a18 270deg 300deg, #2FD8FF 300deg 330deg, #121a18 330deg 360deg);
  box-shadow: 0 0 60px rgba(62,242,160,.4), inset 0 0 40px rgba(0,0,0,.6);
  border: 6px solid rgba(62,242,160,.35);
  animation: spin 14s linear infinite;
}
.roulette::before {
  content: ''; position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, var(--surface), var(--bg));
  border: 3px solid var(--cyan); box-shadow: 0 0 25px rgba(47,216,255,.5);
}
.roulette-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  font-size: 30px; font-weight: 800; animation: spin-rev 14s linear infinite;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.roulette-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rchip {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 4px dashed rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  animation: orbit 9s ease-in-out infinite;
}
.rchip.c1 { background: var(--green); color: #04231a; top: -6px; left: 62%; box-shadow: 0 0 18px var(--green); }
.rchip.c2 { background: var(--cyan); color: #042028; bottom: 4px; left: 10%; box-shadow: 0 0 18px var(--cyan); animation-delay: -3s; animation-direction: reverse; }
.rchip.c3 { background: #ffcf5c; color: #3a2a00; top: 42%; right: -8px; box-shadow: 0 0 18px #ffcf5c; animation-delay: -6s; }
@keyframes orbit { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.live-card {
  position: relative; z-index: 2; width: 320px; padding: 20px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--green-line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--glow-green);
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
.lc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lc-live { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--down); }
.lc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); box-shadow: 0 0 8px var(--down); animation: pulse 1.5s ease-in-out infinite; }
.lc-league { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .06em; }
.lc-teams { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lc-team { display: flex; align-items: center; justify-content: space-between; }
.lc-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.lc-score { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--green); }
.lc-odds { display: flex; gap: 10px; }
.lc-odd {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px;
  border-radius: var(--r-md); background: var(--surface-3); border: 1px solid var(--line); cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.lc-odd span { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.lc-odd b { font-family: var(--font-mono); font-size: 17px; color: var(--txt); transition: color .3s; }
.lc-odd.on { background: var(--green-soft); border-color: var(--green); }
.lc-odd.on b { color: var(--green); }
.odd-flash { color: var(--green) !important; }

.parlay-chip {
  position: absolute; z-index: 3; top: 30px; right: 4px;
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: var(--panel-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--green-line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  animation: floaty2 6s ease-in-out infinite;
}
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
.pc-ico { font-size: 20px; }
.pc-txt { display: flex; flex-direction: column; line-height: 1.2; }
.pc-txt span { font-size: 10px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; }
.pc-txt b { font-family: var(--font-display); font-size: 18px; color: var(--green); }

.cash-chip {
  position: absolute; z-index: 3; bottom: 34px; left: 0;
  display: flex; flex-direction: column; line-height: 1.25; padding: 11px 16px;
  background: var(--panel-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--cyan); border-radius: var(--r-md); box-shadow: var(--shadow-md), var(--glow-cyan);
  animation: floaty 6.5s ease-in-out infinite;
}
.cash-chip span { font-size: 10px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; }
.cash-chip b { font-family: var(--font-display); font-size: 18px; color: var(--cyan); }

/* ---------- Ticker de partidos ---------- */
.ticker {
  position: relative; margin-top: 60px; padding: 12px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tick-item b { font-family: var(--font-mono); color: var(--txt); }
.tick-odd { font-family: var(--font-mono); color: var(--green); font-weight: 600; }
.tick-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--down); }

/* ---------- Modales ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--scrim); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--green-line); border-radius: var(--r-xl); padding: 34px 30px 28px;
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(62,242,160,.4);
  transform: translateY(16px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.is-open .modal { transform: none; }
.modal-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 260px; height: 160px; background: radial-gradient(circle, rgba(62,242,160,.3), transparent 70%); filter: blur(30px); pointer-events: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 20px; line-height: 1;
  cursor: pointer; transition: all .15s; z-index: 2;
}
.modal-close:hover { color: var(--txt); border-color: var(--green-line); }
.modal-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 24px; }
.modal-head .brand-mark { filter: drop-shadow(0 0 12px rgba(62,242,160,.5)); margin-bottom: 4px; }
.modal-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.modal-sub { font-size: 14px; color: var(--muted); max-width: 320px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line); color: var(--txt);
  font-family: var(--font-body); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.robot-check {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; margin-top: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; color: var(--txt); cursor: pointer;
}
.robot-check input { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
.robot-badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .04em; }
.age-check {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.age-check input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--green); cursor: pointer; }
.modal-submit { margin-top: 8px; width: 100%; }
.modal-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.link-btn { background: none; border: none; color: var(--green); font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Acceso a la plataforma (banda bajo el hero) ---------- */
.platform-access { position: relative; z-index: 1; padding: 8px 0 28px; }
.platform-access-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px 32px; flex-wrap: wrap;
  padding: 24px 30px;
  border: 1px solid var(--green-line); border-radius: var(--r-xl);
  background: var(--grad-soft);
}
.platform-access-title {
  font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700; margin-bottom: 4px;
}
.platform-access-sub { font-size: 14px; color: var(--muted); }
.platform-access-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .platform-access-inner { padding: 22px; }
  .platform-access-btns { width: 100%; flex-direction: column; }
  .platform-access-btns .btn { width: 100%; }
}

/* login: elegir plataforma */
.platform-choice { display: flex; flex-direction: column; gap: 20px; margin-bottom: 18px; }
.platform-option { position: relative; display: flex; flex-direction: column; gap: 9px; }
.platform-btn { width: 100%; }
.platform-option .platform-desc { text-align: center; }
.platform-option .platform-badge { position: static; align-self: center; }

.platform-card {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 20px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2);
  transition: all .2s;
}
.platform-card:hover { transform: translateY(-2px); }
.platform-new { border-color: var(--green-line); background: var(--grad-soft); box-shadow: var(--glow-green); }
.platform-new:hover { box-shadow: var(--glow-strong); }
.platform-old:hover { border-color: var(--muted-2); }
.platform-badge {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; color: var(--on-accent); background: var(--grad); padding: 3px 8px; border-radius: var(--r-pill);
}
.platform-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.platform-new .platform-name { color: var(--green); }
.platform-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.platform-cta { margin-top: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--txt); }

/* ---------- Secciones (genérico) ---------- */
.section { padding: 60px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.section-title { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.section-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--muted); white-space: nowrap; transition: color .15s;
}
.section-link:hover { color: var(--green); }

/* ---------- Categorías (nav circular) ---------- */
.cats-section { padding: 8px 0 44px; }
.cats-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 14px;
  scrollbar-width: none;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: pointer; width: 88px; background: none; border: none; color: inherit;
}
.cat-circle {
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); transition: all .2s ease;
}
.cat-circle svg { width: 26px; height: 26px; }
.cat:hover .cat-circle {
  border-color: var(--green-line); color: var(--green);
  background: var(--green-soft); box-shadow: var(--glow-green); transform: translateY(-2px);
}
.cat.is-active .cat-circle {
  border-color: var(--green); color: #04231a; background: var(--grad); box-shadow: var(--glow-green);
}
.cat-label { font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; }
.cat:hover .cat-label, .cat.is-active .cat-label { color: var(--txt); }

/* ---------- Deportes (cards + cuotas) ---------- */
.sports-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px;
}
.event {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s;
}
.event:hover { border-color: var(--green-line); }
.event-top { display: flex; align-items: center; justify-content: space-between; }
.event-meta { display: flex; align-items: center; gap: 9px; }
.event-code {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--green);
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px;
  padding: 3px 7px; letter-spacing: .04em;
}
.event-league { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.event-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.event-teams { display: flex; flex-direction: column; gap: 6px; }
.event-team { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.event-team.away { color: var(--muted); }
.odds { display: flex; gap: 8px; }
.odd {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: all .15s; font-family: inherit;
}
.odd:hover:not(:disabled) { border-color: var(--green-line); }
.odd:disabled { opacity: .4; cursor: default; }
.odd.is-active { background: var(--green-soft); border-color: var(--green); }
.odd-label { font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; }
.odd-val { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--txt); }
.odd.is-active .odd-val { color: var(--green); }

/* ---------- Preguntas frecuentes ----------
   Las tarjetas (.faq, .faq-item, .faq-q…) viven en css/pages.css, que la home
   también carga. Acá solo va el ancho de la lista dentro de la home. */
.faq-section .faq { max-width: 860px; }

/* ---------- Jackpot / bote ---------- */
.jackpot-section { padding: 30px 0; }
.jackpot {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--green-line); border-radius: var(--r-xl);
  padding: 26px 30px;
  background: linear-gradient(100deg, var(--surface-2), var(--surface));
}
.jackpot-glow {
  position: absolute; width: 400px; height: 400px; right: -120px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,242,160,.22), transparent 70%); filter: blur(40px);
}
.jackpot-left { position: relative; display: flex; flex-direction: column; gap: 6px; }
.jackpot-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted);
}
.jackpot-num {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.jackpot-right { position: relative; display: flex; align-items: center; gap: 20px; }
.online { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.online-num { font-family: var(--font-mono); font-weight: 600; color: var(--txt); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.7s ease-in-out infinite; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }

/* ---------- Casino (carrusel) ---------- */
.casino-row {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 16px; scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.casino-row::-webkit-scrollbar { height: 8px; }
.casino-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.game {
  flex: 0 0 auto; width: 190px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game:hover { transform: translateY(-4px); border-color: var(--green-line); box-shadow: var(--shadow-md); }
.game-thumb {
  height: 150px; display: flex; align-items: flex-end; padding: 12px; position: relative;
}
.game-thumb::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.game-thumb span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.game-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; }
.game-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.game-play { font-size: 11px; font-weight: 600; color: var(--green); }

/* ---------- Boleta flotante ---------- */
.betbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--panel-bg); backdrop-filter: blur(14px);
  border-top: 1px solid var(--green-line);
  transform: translateY(120%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6);
}
.betbar.is-open { transform: translateY(0); }
.betbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.betbar-info { display: flex; align-items: center; gap: 14px; }
.betbar-badge {
  width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--grad); color: #04231a;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 15px;
}
.betbar-txt { display: flex; flex-direction: column; line-height: 1.3; }
.betbar-title { font-size: 14px; font-weight: 600; }
.betbar-odds { font-size: 12px; color: var(--muted); }
.betbar-odds b { font-family: var(--font-mono); color: var(--green); }
.betbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Confianza ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
}
.trust-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  background: var(--surface); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.trust-card:hover { border-color: var(--green-line); transform: translateY(-3px); }
.trust-icon {
  width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--green-line); color: var(--green);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.trust-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

.payments {
  margin-top: 26px; padding: 20px 24px; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--bg-2); display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.payments-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted-2); white-space: nowrap; }
.payments-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-pill {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 7px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 30px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px;
  padding: 54px 24px 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.social:hover { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-h { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--green); }

.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner { display: flex; align-items: center; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.age-badge {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--down);
  border: 1.5px solid var(--down); border-radius: 6px; padding: 3px 8px; flex-shrink: 0;
}
.footer-legal { flex: 1; min-width: 220px; font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--on-accent);
  background: linear-gradient(135deg, #3EF2A0, #22c55e);
  box-shadow: 0 8px 26px -6px rgba(62,242,160,.6), var(--glow-green);
  transition: transform .2s, bottom .3s;
}
.wa-fab:hover { transform: scale(1.08); }
body.betbar-open .wa-fab { bottom: 92px; }  /* sube cuando aparece la boleta */

/* ---------- Menú mobile ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 45;
  background: var(--panel-bg); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 30px; padding: 34px 24px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--txt);
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:active { color: var(--green); }
.mobile-actions { display: flex; flex-direction: column; gap: 12px; }
.mobile-actions .lang-toggle { display: flex; align-self: flex-start; }
.mobile-actions .btn { width: 100%; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 340px; order: 2; margin-top: 20px; }
  .hero { padding: 60px 0 80px; }
}
/* El grupo Clásica/Moderna ocupa ancho, así que el menú pasa a hamburguesa antes */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 900px) {
  .header-actions .login-group { display: none; }
  .header-actions .btn-primary { display: none; }
  .header-actions .lang-toggle { display: none; }
  .menu-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  .lang-toggle { display: none; }
  .hero-stats { gap: 30px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .sports-grid { grid-template-columns: 1fr; }
  .jackpot { padding: 20px; }
  .jackpot-right { width: 100%; justify-content: space-between; }
  .betbar-inner { padding: 12px 16px; }
  .betbar-clear { display: none; }
  .section { padding: 44px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 30px 20px 24px; }
}
