/* ============================================
   PRODE MUNDIAL 2026 — styles.css
   Paleta oficial + variables CSS + responsive
   ============================================ */

/* === CUSTOM PROPERTIES (Paleta oficial) === */
:root {
  --azul-profundo:  #890303;   /* Fondos principales, headers */
  --azul-electrico: #ce1111;   /* Botones secundarios, degradados */
  --cian-vibrante:  #ff0000;   /* CTA, cuotas, acentos clave */
  --blanco:         #FFFFFF;   /* Textos y lectura */
  --gris-plata:     #E0E1DD;   /* Detalles, líneas divisoras */
  --amarillo:       #ffd939;   /* Estrellas, highlights */
  --negro-suave:    #170303;   /* Fondo oscuro base */
  --negro-medio:    #280707;   /* Cards oscuras */

  /* Gradientes */
  --grad-hero: radial-gradient(ellipse at center, #D63030 0%, #A01515 55%, #7B0000 100%);
  --grad-cta: linear-gradient(90deg, var(--cian-vibrante), var(--azul-electrico));
  --grad-card: linear-gradient(145deg, rgba(255,255,255,.04), rgba(212, 31, 31, 0.01));

  /* Tipografía */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;

  /* Espaciado */
  --section-gap: 100px;
  --section-gaps: 20px;
  --container-max: 1180px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Sombras */
  --shadow-card: 0 4px 30px rgba(0,0,0,.35);
  --shadow-glow: 0 0 40px rgba(255, 0, 0, 0.15);

  /* Transición base */
  --transition: .25s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--negro-suave);
  color: var(--blanco);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === UTILIDADES === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-gap) 0; }
.sectiongap { padding: var(--section-gaps) 0; }
.hide-mobile { display: none; }

/* ==========================================================================
   1. CONFIGURACIÓN BASE (Unificada para todos los efectos)
   ========================================================================== */
.fade-up, .fade-down, .fade-left, .fade-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease; 
    will-change: opacity, transform;
    /* Quitamos el transition-delay de acá para que no pise a las clases de abajo */
}

/* Estado final unificado cuando se activa con JS (.visible) */
.fade-up.visible, .fade-down.visible, .fade-left.visible, .fade-right.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* ==========================================================================
   2. DIRECCIONES (Estado Inicial de desplazamiento)
   ========================================================================== */
.fade-up    { transform: translateY(30px);  } 
.fade-down  { transform: translateY(-30px); } 
.fade-left  { transform: translateX(-30px); } 
.fade-right { transform: translateX(30px);  } 

/* ==========================================================================
   3. SISTEMA DE DELAYS (Separados por método de uso)
   ========================================================================== */

/* Método A: Para cuando usás las clases fijas en HTML estático */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Método B: Para cuando usás estilos dinámicos por JS inline (style="--i: 1") 
   Afecta solo a los elementos que tengan declarada explícitamente la variable --i */
[style*="--i"] {
    transition-delay: calc(var(--i) * 0.15s);
}/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amarillo);
  color: #1a0000;
  box-shadow: 0 4px 20px rgba(255, 217, 57, 0.45);
  font-weight: 900;
}
.btn-primary:hover {
  background: #ffe55a;
  box-shadow: 0 6px 30px rgba(255, 217, 57, 0.65);
  filter: brightness(1.05);
}

.btn-ghost-simple {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-ghost-simple:hover {
  border-color: var(--cian-vibrante);
  color: var(--cian-vibrante);
}

/* Estilo Base del Botón */
.btn-ghost {
    position: relative;
    overflow: hidden;
    color: var(--btn-ghost-color);
    border: 2px solid var(--btn-ghost-border);
    background: transparent;
    transition: color 0.4s ease;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Movimiento continuo sutil */
    animation: pulse-attention 2s infinite ease-in-out;
}

/* El "Relleno" que sube */
.btn-ghost::before {
    content: "";
    position: absolute;
    top: 100%; /* Empieza abajo, fuera del botón */
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--btn-ghost-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1; /* Queda detrás del texto */
}

/* Hover: El fondo sube y el texto cambia a negro */
.btn-ghost:hover {
    color: #000;
    animation-play-state: paused; /* Se deja de mover cuando interactúas */
}

.btn-ghost:hover::before {
    top: 0; /* Sube hasta cubrir todo */
}

/* Animación de Atención (Pulso Sutil) */
@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
    50% {
        transform: scale(1.03); /* Crece un 3% */
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); /* Brilla un poco */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
}

.btn-cta {
  background: var(--amarillo);
  color: #1a0000;
  padding: 10px 24px;
  font-weight: 900;
}
.btn-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

.btn-result {
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  font-family: var(--font-cond);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.btn-result:hover { background: rgba(255, 0, 0, 0.12); color: var(--cian-vibrante); border-color: rgba(255, 0, 0, 0.3); }
.btn-result.selected-home { background: rgba(255, 0, 0, 0.2); color: var(--cian-vibrante); border-color: var(--cian-vibrante); }
.btn-result.selected-draw { background: rgba(255,217,57,.15); color: var(--amarillo); border-color: var(--amarillo); }
.btn-result.selected-away { background: rgba(255,80,80,.15); color: #ff8888; border-color: #ff5555; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-footer { text-align: center; margin-top: 56px; }
.section-title {
  font-family: "Contempora Sans Condensed", var(--font-oswald), Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 16px;
}
.section-title span { color: var(--cian-vibrante); }
.section-sub {
  font-family: var(--font-nunito), sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--azul-profundo);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: var(--azul-profundo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  padding: 10px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
}
.logo-svg {
  height: 44px;
  width: auto;
  transition: transform var(--transition);
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  display: block;
  height: 44px;          /* altura fija: SVGs sin dimensiones intrínsecas necesitan valor explícito */
  width: auto;
  max-width: 160px;      /* tope en desktop */
  object-fit: contain;
}

@media (max-width: 767px) {
  .nav-logo-img {
    height: 34px;        /* un poco más chico en mobile para no chocar con el hamburger */
    max-width: clamp(80px, 28vw, 140px);
  }
}
.nav-logo:hover .logo-svg { transform: scale(1.04); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
/* Links desktop: ocultos en mobile, visibles desde 768px */
.nav-links-desktop {
  display: none;
  list-style: none;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cian-vibrante);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--blanco); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay (elemento hermano del navbar, z-index global) ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(80, 0, 0, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 2000; /* global: por encima de todo, sin estar atrapado en navbar */
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu .nav-link { font-size: 1.5rem; }
.mobile-menu .nav-cta  { font-size: 1.1rem; }

/* Botón ✕ dentro del overlay mobile */
.nav-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-close-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Bloquear scroll del body cuando el menú mobile está abierto */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Orbs de fondo */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: var(--azul-electrico);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: var(--cian-vibrante);
  bottom: -100px; left: -80px;
  opacity: .2;
  animation-delay: 3s;
}
@keyframes orbFloat {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.12) translate(20px, -30px); }
}

/* Grid lines decorativas — desactivada */
.hero-grid {
  /* background-image removido para evitar efecto de grilla */
}

/* Canvas de pelotas animadas */
.hero-balls-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 0;        /* el padding-top lo maneja .hero para compensar el navbar */
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 217, 57, 0.12);
  border: 1px solid rgba(255, 217, 57, 0.4);
  color: var(--amarillo);
  font-family: var(--font-cond);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
}
.hero-title-top {
  font-family: var(--font-cond);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 16vw, 5rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--blanco);
}
.hero-title-main em {
  font-style: normal;
  color: var(--amarillo);
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  font-family: var(--font-anton), Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255,255,255,.90);
  max-width: 620px;
  margin-bottom: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-subtitleV1 {
  font-size: clamp(2rem, 4vw, 2.2rem);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--amarillo);
}
.hero-stat-label {
  font-family: var(--font-cond);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-family: var(--font-cond);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: scrollHintPulse 2s ease-in-out infinite;
}
.scroll-arrow {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--cian-vibrante), transparent);
  border-radius: 2px;
}
@keyframes scrollHintPulse {
  0%, 100% { opacity: .3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: .8; transform: translateX(-50%) translateY(6px); }
}


/**/
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centra horizontalmente */
    text-align: center;     /* Centra el texto */
    justify-content: center;
}

/* Ajuste para que el subtítulo no se estire demasiado */
.hero-centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Centrado de los botones */
.hero-centered .hero-actions {
    justify-content: center;
}

/* Centrado de las estadísticas */
.hero-centered .hero-stats {
    justify-content: center;
}

/* Logo responsivo del hero */
.hero-logo {
    /*width: clamp(140px, 35vw, 280px); /* más visible en mobile, tope razonable en desktop */
    width: clamp(140px, 35vw, 180px);
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/*============================================
MARQUEE 
============================================*/
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    font-family: 'Barlow', sans-serif;
    cursor: default;
    box-sizing: border-box;

    /* Posicionamiento fijo, fondo de puntos y líneas de destello */
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
    background-color: #4e0606 !important; 
    background-image: 
      radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
      radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px) !important;
    background-size: 30px 30px !important; 
    background-position: 0 0, 15px 15px !important; 
    background-repeat: repeat !important;
    backdrop-filter: blur(8px);
}

/* Líneas de destello doradas */
#marquee-precios::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1.5px;
    background: linear-gradient(to right, transparent 0%, rgba(255,153,0,0.6) 20%, #ffd700 50%, rgba(255,153,0,0.6) 80%, transparent 100%);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.6); z-index: 10;
}
#marquee-precios::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255,153,0,0.6) 20%, #ffd700 50%, rgba(255,153,0,0.6) 80%, transparent 100%);
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5); z-index: 10;
}

.marquee-hidden {
    transform: translateY(100%); opacity: 0; pointer-events: none;
}

/* El carril donde corren los dos bloques idénticos */
.marquee-track {
    display: flex;
    width: max-content;
    /* VELOCIDAD: 30s es lento y elegante. Bajalo a 20s si lo preferís un poco más rápido */
    animation: marquee-animation 80s linear infinite; 
}

/* Pausa al pasar el mouse */
#marquee-precios:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: inline-flex; 
    align-items: center;
    white-space: nowrap;
}

/* Cada repetición interna de logo + texto */
.marquee-content span {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    padding-right: 60px; /* Separación de seguridad entre repeticiones */
}

.marquee-content .precio {
    color: #ffd700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
    margin-left: 5px;
}

.marquee-logo {
    height: 1.3rem;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 15px;
}

/* BUCLE INFINITO INVISIBLE */
@keyframes marquee-animation {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); /* Al ser el clon idéntico, el reinicio al 0% no se percibe */
    }
}
/* ============================================
SHUFFLE
============================================= */
/* ========================================================
   MÓDULO: GENERADOR DE JUGADA ALEATORIA
   ======================================================== */
.generador-container {
    background-color: #8b1414;
    border: 1.5px solid #ffcc00;
    border-radius: 20px;
    padding: 40px 20px;
    max-width: 750px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-family: 'Barlow', sans-serif;
}

.generador-titulo {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.btn-generar {
    background-color: #ffff00;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-generar:hover:not(:disabled) {
    background-color: #ffea00;
    transform: scale(1.03);
}

.btn-generar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icon-shuffle { width: 18px; height: 18px; }

.esferas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 35px 0;
}

/* ========================================================
   ESTADOS DE LAS BOLILLAS (Iconos vs Números)
   ======================================================== */
.esfera {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background-color 0.4s, border-color 0.4s, transform 0.3s;
}

/* Iconos de línea finos del mockup */
.icono-bolilla {
    width: 26px;
    height: 26px;
    stroke: rgba(255, 255, 255, 0.4);
    transition: opacity 0.2s, transform 0.2s;
}

.numero-texto {
    position: absolute;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

/* Bolilla Normal Revelada -> Fondo Blanco */
.esfera.revelada[data-tipo="normal"] {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Bolilla Bonus Base -> Borde Naranja */
.esfera.esfera-bonus {
    border-color: #ff9900;
}
.esfera.esfera-bonus .icono-bolilla {
    stroke: #ff9900;
}

/* Bolilla Bonus Revelada -> Fondo Amarillo Flúor */
.esfera.revelada[data-tipo="bonus"] {
    background-color: #ffff00;
    border-color: #ffff00;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.4);
}

/* Al revelarse: se va el icono, entra el texto */
.esfera.revelada .icono-bolilla {
    opacity: 0;
    transform: scale(0.5);
}
.esfera.revelada .numero-texto {
    opacity: 1;
    transform: scale(1);
}

.esfera-plus {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.6rem;
    font-weight: bold;
}

.generador-subtexto {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ========================================================
   ANIMACIÓN DE GIRO DE TÓMBOLA / EFECTO MEZCLA
   ======================================================== */
@keyframes giroTombola {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-2px, 3px) rotate(-8deg); }
    40% { transform: translate(3px, -2px) rotate(10deg); }
    60% { transform: translate(-3px, -1px) rotate(-12deg); }
    80% { transform: translate(2px, 2px) rotate(8deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.giro-activo {
    animation: giroTombola 0.18s linear infinite;
    border-color: #ffff00 !important; /* Destello de mezcla */
}
/*=========================================
AGENICA AMIGA
======================================*/
.btnMapa{
    background:#ff9800;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
}

/* modal */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.modal-content{
    width:90%;
    max-width:1100px;
    height:50vh;
    background:white;
    color:black !important;
    border-radius:12px;
    overflow:hidden;
    position:relative;
	padding:20px;
}

.cerrar{
    position:absolute;
    top:15px;
    right:20px;
    font-size:32px;
    cursor:pointer;
    z-index:2;
}

#mapContainer{
    width:100%;
    height:100%;
}

/* ============================================
   EFECTO BAJADA
   ====================================== */

/* Contenedor principal — centra y anima */
.tagline-shake {
    display: inline-block;
    animation: tagline-shake 4s ease-in-out infinite;
}

/* Glow difuso detrás del SVG */
.tagline-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(40px);
    background: radial-gradient(ellipse 70% 80% at 50% 50%,
        rgba(255, 220, 80, 0.65) 0%,
        rgba(255, 80,  60, 0.35) 45%,
        transparent 75%);
    animation: tagline-glow 3s ease-in-out infinite alternate;
}

/* Wrapper relativo para el mask */
.tagline-wrapper {
    position: relative;
    display: inline-block;
    margin: auto;
}

/* Imagen principal */
.tagline-img {
    display: block;
   /* width: min(86vw, 520px);*/
   width: min(86vw, 450px);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

/* Máscara con la forma del SVG — recorta el destello */
.tagline-shine-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: url(../images/te_cambia_la_vida.svg);
            mask-image: url(../images/te_cambia_la_vida.svg);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
}

/* Haz de luz que barre de izquierda a derecha */
.tagline-shine-beam {
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 33.333%;
    mix-blend-mode: screen;
    background: linear-gradient(90deg,
        transparent                   0%,
        rgba(255, 255, 255, 0.05)    25%,
        rgba(255, 245, 180, 0.90)    50%,
        rgba(255, 255, 255, 0.05)    75%,
        transparent                  100%);
    animation: tagline-shine 3s ease-in-out infinite;
}

@keyframes tagline-shake {
    0%, 100% { transform: rotate(0deg)    scale(1);    }
    25%       { transform: rotate(-0.5deg) scale(1.01); }
    75%       { transform: rotate(0.5deg)  scale(0.99); }
}

@keyframes tagline-glow {
    0%, 100% { opacity: 0.8; transform: scale(1);    }
    50%       { opacity: 1;   transform: scale(1.05); }
}

@keyframes tagline-shine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%);  }
}

/*===================
subrrayado
=====================*/
.subrrayado {
  line-height: 1.5;
  display: inline;
  background-image: linear-gradient(
        transparent 50%,
        #000000 50%,
        #000000 85%,
        transparent 85%,
        transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 0% 100%;
    animation: animatedBackground 2s cubic-bezier(0.645, 0.045, 0.355, 1) 0.5s forwards;
}

@keyframes animatedBackground {
    to {
        background-size: 100% 100%;
    }
}
/* ========================================
BOTON HACE TU JUGADA
==========================================*/
.floating-btn-jugada {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #ffff00;
    padding: 12px 30px;
    border: 3px solid #ffff00;
    border-radius: 50px;
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    text-decoration: none;
    font-size: 1.1rem;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    
    /* Necesario para el efecto de relleno */
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Estado inicial: oculto */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    
    /* Agregamos la animación de pulso constante */
    animation: pulse-yellow 2s infinite ease-in-out;
    
    /* Transiciones suaves */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease, 
                color 0.4s ease;
}

/* El "Relleno" que sube al hacer hover */
.floating-btn-jugada::before {
    content: "";
    position: absolute;
    top: 100%; /* Empieza abajo */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffff00;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Cuando el Observer lo activa */
.floating-btn-jugada.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Efecto Hover: Relleno y cambio de color de texto */
.floating-btn-jugada:hover {
    color: #000;
    transform: scale(1.1); /* Un poco más de escala en hover */
    animation-play-state: paused; /* Se detiene el pulso al interactuar */
}

.floating-btn-jugada:hover::before {
    top: 0; /* El color sube */
}

/* ── Botón flotante centrado en mobile ── */
@media (max-width: 767px) {
  .floating-btn-jugada {
    /* Centrado con left+right en vez de translateX para no conflictuar con la animación */
    left: 10%;
    right: 10%;
    width: auto;
    bottom: 16px;
    text-align: center;
    /* Redefinimos los estados de transform sin translateX */
    transform: scale(0.8) translateY(20px);
  }
  .floating-btn-jugada.visible {
    transform: scale(1) translateY(0);
  }
  .floating-btn-jugada:hover {
    transform: scale(1.05);
  }
}

/* Animación de Pulso (Atención) */
@keyframes pulse-yellow {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.6); /* Brillo neón */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
}

/* ============================================
   CONTADOR
   ============================================ */
  /* Contenedor específico para el Hero */
.countdown-mini-section {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--cian-vibrante); /* Usando tus variables */
    margin-bottom: 10px;
    opacity: 0.8;
}

.countdown-container {
    display: flex;
    gap: 12px;
}

.time-block {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}

.time-block span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
    display: block;
}

.time-block p {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin: 0;
    color: var(--cian-vibrante);
}




/* ============================================
   WHY SECTION
   ============================================ */
.why-section { background: var(--negro-suave);background-image: radial-gradient(65% 55% at 50% 0, #c7181a8c, #0000 70%); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--grad-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow:visible;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--amarillo);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-family: "Contempora Sans Condensed", var(--font-oswald), Impact, "Arial Narrow", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--blanco);
}
.feature-card p {
  font-family: var(--font-nunito), sans-serif;
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  line-height: 1.65;
}

/* ============================================
   FIXTURE
   ============================================ */
.fixture-section { background: var(--negro-suave); }

.fixture-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}
.fixture-tab {
  font-family: var(--font-cond);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  transition: all var(--transition);
}
.fixture-tab:hover { border-color: rgba(255, 0, 0, 0.4); color: var(--blanco); }
.fixture-tab.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: var(--azul-profundo);
}

/* Grupos */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.grupo-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.grupo-card:hover { border-color: rgba(255, 0, 0, 0.2); }
.grupo-header {
  background: var(--azul-profundo);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--cian-vibrante);
}
.grupo-teams { padding: 0; }
.grupo-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .9rem;
  transition: background var(--transition);
}
.grupo-team:last-child { border-bottom: none; }
.grupo-team:hover { background: rgba(255, 0, 0, 0.05); }
.team-flag { font-size: 1.4rem; }
.team-name { flex: 1; font-weight: 500; }
.team-pts {
  font-family: var(--font-cond);
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
}

/* Eliminatorias */
.bracket-list { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin: 0 auto; }
.bracket-match {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.bracket-match:hover { border-color: rgba(255, 0, 0, 0.2); transform: translateX(4px); }
.bracket-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.bracket-team.right { flex-direction: row-reverse; text-align: right; }
.bracket-vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .1em;
  min-width: 32px;
  text-align: center;
}
.bracket-date {
  font-family: var(--font-cond);
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bracket-tbd {
  color: rgba(255,255,255,.3);
  font-style: italic;
  font-size: .9rem;
}

/* Mensaje coming soon en fase */
.phase-coming {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,.35);
  font-family: var(--font-cond);
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.phase-coming span { display: block; font-size: 2.5rem; margin-bottom: 16px; }

/* ============================================
   Loto
   ============================================ */
.donde-section { background: var(--negro-medio); }

.donde-progress { margin-bottom: 40px; max-width: 480px; }
.donde-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-cond);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}
#progressCount { color: var(--cian-vibrante); }
.donde-progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.donde-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-cta);
  border-radius: 3px;
  transition: width .5s ease;
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.prediction-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}
.prediction-card.has-pick { border-color: rgba(255, 0, 0, 0.2); }
.prediction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.prediction-date {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.prediction-group {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cian-vibrante);
  background: rgba(255, 0, 0, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
}
.prediction-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.prediction-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.prediction-flag { font-size: 2rem; }
.prediction-team-name {
  font-family: var(--font-cond);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-align: center;
}
.prediction-vs {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(255,255,255,.2);
}
.prediction-btns { display: flex; gap: 8px; }
.prediction-btns .btn-result { font-size: .8rem; padding: 10px 4px; }

.prode-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(40, 7, 7, 0.95);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: var(--cian-vibrante);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  padding: 14px 28px;
  border-radius: 50px;
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  opacity: 0;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* ========================================================
   CLASE REUTILIZABLE: 
   ======================================================== */
.fondo-puntos-premium {
  position: relative;
  /* Forzamos el color de fondo base */
  background-color: #5c0202 !important; 
  
  /* Capas de degradado: los dos patrones de puntos */
  background-image: 
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px) !important;
  
  /* Ajuste de tamaño para la cuadrícula alternada */
  background-size: 30px 30px !important; 
  
  /* Desfase para lograr el efecto patrón en diagonal */
  background-position: 0 0, 15px 15px !important; 
  
  background-repeat: repeat !important;
  
  /* Asegura que el contenido y fondos hijos no bloqueen el patrón */
  z-index: 1; 
}
/* ==========================================
   1. LÍNEA DEGRADADA SUPERIOR (Usa ::before)
   ========================================== */
.borde-degradado-top {
  position: relative;
}

.borde-degradado-top::before {
  content: "";
  position: absolute;
  top: 0; /* Al tope */
  left: 0;
  width: 100%;
  height: 1px;
  
  background: linear-gradient(
    to right, 
    transparent 0%, 
    rgba(255, 153, 0, 0.6) 20%, 
    #ffd700 50%, 
    rgba(255, 153, 0, 0.6) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.5); 
  pointer-events: none;
  z-index: 10;
}

/* ==========================================
   2. LÍNEA DEGRADADA INFERIOR (Usa ::after)
   ========================================== */
.borde-degradado-bottom {
  position: relative;
}

.borde-degradado-bottom::after {
  content: "";
  position: absolute;
  bottom: 0; /* Al fondo */
  left: 0;
  width: 100%;
  height: 1px;
  
  background: linear-gradient(
    to right, 
    transparent 0%, 
    rgba(255, 153, 0, 0.6) 20%, 
    #ffd700 50%, 
    rgba(255, 153, 0, 0.6) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.5); 
  pointer-events: none;
  z-index: 10;
}
/* ============================================
   CÓMO JUGAR
   ============================================ */
/* Contenedor general de toda la sección (Fondo rojo con textura de puntos si la usás) */
.seccion-pasos {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ========================================================
   CONTENEDOR DE TARJETAS (FLEXBOX HORIZONTAL)
   ======================================================== */
.steps-container {
    display: flex;
    flex-direction: row; /* En PC van de izquierda a derecha */
    justify-content: center;
    align-items: stretch; /* Fuerza a que todas midan lo mismo de alto */
    gap: 30px;
    margin-bottom: 35px;
}

/* La tarjeta con el fondo tinto de la imagen */
.step-card {
    background: linear-gradient(160deg, #8b1414 0%, #8b1414 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px 24px 30px 24px;
    flex: 1;
    max-width: 360px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    margin-top: 35px; /* espacio para el badge flotante */
    cursor: pointer;

    /* Transición suave zoom + borde */
    transition:
        transform      0.28s cubic-bezier(.34, 1.56, .64, 1),
        border-color   0.28s ease,
        box-shadow     0.28s ease;
}

/* Tarjeta destacada por defecto (ej: paso 2 como en la imagen) */
.step-card--active {
    border-color: #ffff00;
    box-shadow:
        0 0 0 1px #ffff00,
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── HOVER: zoom + borde amarillo ── */
.step-card:hover {
    transform: scale(1.04);
    border-color: #ffff00;
    box-shadow:
        0 0 0 2px #ffff00,
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(255, 255, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* El badge acompaña el hover */
.step-card:hover .step-badge {
    transform: translateX(-50%) scale(1.08);
    box-shadow:
        0 6px 20px rgba(255, 255, 0, 0.5),
        0 0 0 3px rgba(255, 255, 0, 0.2);
}

/* Círculo Amarillo con el número */
.step-badge {
    width: 62px;
    height: 62px;
    background-color: #ffff00;
    color: #000000;
    font-family: 'Barlow Condensed', 'Barlow', 'Arial Black', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);

    box-shadow: 0 4px 16px rgba(255, 255, 0, 0.4);

    transition:
        transform  0.28s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow 0.28s ease;
}

.step-body {
    margin-top: 20px;
}

/* Títulos principales: Condensados, Blancos y en Mayúsculas */
.step-body h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

/* Texto descriptivo secundario */
.step-body p {
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ========================================================
   DIV AMARILLO DESTACADO
   ======================================================== */
.banner-destacado {
    background-color: #ffff00; /* Amarillo brillante */
    color: #000000;
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 16px 20px;
    border-radius: 14px; /* Esquinas ligeramente suavizadas */
    max-width: 1140px; /* Alineado al ancho total de las 3 tarjetas combinadas */
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.2);
    letter-spacing: 0.5px;
}

/* ========================================================
   RESPONSIVE: MODO MOBILE (COLUMNA)
   ======================================================== */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column; /* Cambia a vertical en celulares */
        align-items: center;
        gap: 45px; /* Más espacio entre tarjetas para que no se pisen las esferas */
    }

    .step-card {
        width: 100%;
        max-width: 100%; /* Toma todo el ancho del celular disponible */
        margin-top: 25px;
    }

    .banner-destacado {
        font-size: 1.1rem; /* Texto un poco más chico en mobile para que no quiebre feo */
        padding: 14px 15px;
        line-height: 1.3;
    }
    .modal-content{
height: 70vh;}

}
/* ── Wrapper de sección ── */
  .seccion-modalidades {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;        /* sin padding lateral: .container ya lo provee */
    background: var(--negro-suave);background-image: radial-gradient(65% 55% at 50% 0, #c7181a8c, #0000 70%);
    box-sizing: border-box;
    /* sin overflow:hidden para que sombras y bordes de hover no queden cortados */
  }

  /* ── Banner superior tipo pill ── */
  .modalidades-pill {
    display: block;
    width: fit-content;
    margin: 0 auto 48px;
    padding: 8px 18px;
    border: 2px solid #ffff00;
    border-radius: 50px;
    background: transparent;
    color: #ffff00;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }

   .modalidades-pill-bottom {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 40px;
    border: 2px solid #ffff00;
    border-radius: 50px;
    background: #ffff00;
    color: var(--azul-profundo);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }

  /* ── Grid de tarjetas — siempre CSS Grid para control total ── */
  .modalidades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 4 columnas en desktop */
    gap: 20px;
    align-items: stretch;
    margin-bottom: 0;
  }

  /* ── Las tarjetas dentro del grid ── */
  .modalidades-grid .step-card {
    flex: none;             /* anula el flex:1 heredado de .step-card */
    min-width: 0;           /* clave: permite que el grid comprima la columna sin que el contenido la fuerce a crecer */
    margin-top: 0;          /* no hay badge flotante */
    padding: 32px 24px 28px;
    max-width: none;        /* el grid controla el ancho */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
  }

  /* ── Ícono cuadrado redondeado ── */
  .modalidades-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    flex-shrink: 0;
  }

  /* ── Chip / etiqueta inferior ── */
  .modalidades-chip {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 2px solid #ffff00;
    background: #ffff00;
    border-radius: 50px;
    color: #000;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
  }

  .step-card:hover .modalidades-chip {
    background: transparent;
    color: #ffff00;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .modalidades-grid {
      grid-template-columns: 1fr 1fr;  /* 2 columnas: 2 arriba + 2 abajo */
      gap: 14px;
    }
    .modalidades-pill {
      font-size: 1rem;
      padding: 14px 24px;
    }
       
    .modalidades-pill-bottom {
      font-size: 1rem;
      padding: 14px 24px;
    }
  }
/* ============================================
   RESULTADOS 
   ============================================ */
.resultados-section {     background-color: #5c0202;
    background-image: radial-gradient(65% 55% at 50% 0, #c7181a8c, #0000 70%);}
    
.coming-soon-card {
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.coming-soon-icon { font-size: 3rem; margin-bottom: 24px; display: block; }
.coming-soon-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.coming-soon-card > p {
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}
.coming-soon-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: var(--cian-vibrante);
  font-family: var(--font-cond);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
}
.coming-soon-date {
  font-family: var(--font-cond);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--amarillo);
  text-transform: uppercase;
}

/* ============================================
   FAQ - Estilo Loto Plus Actualizado
   ============================================ */
:root {
  --lp-accent: #fcc000; /* Amarillo Loto Plus */
}

.faq-section { 
  background: var(--negro-m); 
}

.faq-list { 
  max-width: 720px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; /* Separación limpia entre tarjetas */
}

/* El contenedor principal maneja el borde amarillo si está abierto */
.faq-item {
  background-color: #ffffff0d; /* Fondo base sutil para todo el item */
  border: 2px solid transparent; /* Evita saltos de layout al abrirse */
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* ESTADO ABIERTO: El contenedor completo se tiñe y se le asigna el borde */
.faq-item.open {
  border-color: var(--lp-accent);
  background-color: #ffffff14; /* Un toque más claro cuando está abierto */
}

/* El botón de la pregunta */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanco);
  text-align: left;
  gap: 19px;
  background-color: transparent; /* Fondo controlado por el item o el hover */
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* HOVER: Fondo blanco translúcido como en la tercera imagen */
.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Si la tarjeta ya está abierta, podemos quitar el hover de la pregunta o mantenerlo sutil */
.faq-item.open .faq-question:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Ícono de flecha/chevron */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Rotación exacta del Chevron al abrir */
.faq-item.open .faq-icon { 
  transform: rotate(180deg); 
}

/* Animación fluida de apertura de la respuesta */

.faq-answer p { 
  color: rgba(255, 255, 255, 0.75); 
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* Enlaces dentro de la respuesta */
.faq-answer a {
  color: var(--lp-accent);
  text-decoration: underline;
}

/* Animación fluida usando CSS Grid */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr; /* Empieza en 0 filas (completamente cerrado) */
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer { 
  grid-template-rows: 1fr; /* Se expande exactamente al tamaño de su contenido */
}

/* El contenedor interno ahora maneja el desbordamiento y el padding de forma segura */
.faq-answer-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0.35s step-end, padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px 0px 24px; /* Padding inferior en 0 cuando está cerrado */
}

.faq-item.open .faq-answer-inner {
  visibility: visible;
  transition: visibility 0.35s step-start, padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px 20px 24px; /* Agrega el padding suavemente al abrirse */
}
/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;

}
.footer-brand { max-width: 380px; }
.footer-logo {
  height: 50px;
  width: auto;
  opacity: .8;
}
/* Fila contenedora — ancho completo del container */
.footer-legal-row {
    width: 100%;
   
}

/* Imagen de advertencia de juego responsable */
.footer-legal {
    display: block;
    width: 100%;
    max-width: 640px;          /* tope cómodo para que no quede gigante en wide-screens */
    height: auto;
        position: relative;
    top: -30px;
}

.linkLegal:hover{
opacity:0.5;
} 

@media (max-width: 640px) {
    .footer-legal {    position: relative;
    top: -30px;
        max-width: 100%;       /* ocupa todo el ancho en mobile */
    }
}
.footer-brand p {
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  line-height: 1.65;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--cian-vibrante); }
.footer-bottom {
  border-top: 1px solid var(--blanco);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.25);
  font-family: var(--font-cond);
  letter-spacing: .05em;
}
/*=================*/
/*TAB JUEGOS*/
/*=================*/
/* Botón disparador a la izquierda */
.tab-trigger.left-side {
    left: 20px;
    transform: none;
    position: fixed;
    bottom: 0;
    background: #1a1a1a;
    color: white;
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    z-index: 10000; /* Igual o superior al marquee para no quedar debajo */
    border: 1px solid #333;
    transition: opacity 0.3s ease;
}

/* El panel debe tener un z-index superior a todo */
.games-panel-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Ajusta según el tamaño de logos */
    background: #2c0303;
    border-top: 2px solid var(--cian-vibrante);
    z-index: 10001; /* El más alto */
    
    /* SOLUCIÓN AL BOTÓN VISIBLE: Totalmente oculto */
    transform: translateY(100%); 
    opacity: 0;
    visibility: hidden; 
    
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
}

/* Estado activo: Visible y arriba */
.games-panel-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Botón de cerrar: centrado */
.btn-close {
    background: #1a1a1a;
    border: 1px solid var(--cian-vibrante);
    color:  var(--cian-vibrante);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    position: absolute;
    top: -16px; /* Lo asomamos sobre el borde superior */
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* select*/
/* 1. El contenedor principal pasa a ser una caja flexible para controlar el bloque */
.custom-select-wrapper {
position:relative;
    overflow:visible;
  max-width: 720px;
  width: 100%;
  margin: 20px auto;
  user-select: none;
  display: flex;
  flex-direction: column; /* Alinea el botón y la lista uno abajo del otro */
   z-index: 10;
}

/* El botón principal (Se mantiene centrado e idéntico) */
.custom-select-trigger {
  width: 100%;
  color: #ffffff;
  font-family: var(--font-body), sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px 55px 20px 55px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
  z-index: 2; /* Se mantiene arriba del borde superior de la lista */
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcc000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

.custom-select-trigger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Estado abierto */
.custom-select-wrapper.open .custom-select-trigger {
  border-color: #fcc000;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

/* La lista desplegable translúcida */
.custom-options {
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    z-index: 50;

    background-color:#611111;
    border:2px solid #fcc000;
    border-top:none;
    border-radius:0 0 12px 12px;

    margin:0;
    padding:0;
    list-style:none;

    max-height:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;

    transition:
        max-height .3s ease-out,
        opacity .2s ease,
        visibility .2s ease;
}

/* CAMBIO CLAVE: Cuando se despliega, se adapta exactamente al tamaño de los elementos */
.custom-select-wrapper.open .custom-options {
  max-height: 1000px; /* Un techo alto para permitir la animación fluida de CSS */
  height: auto;       /* Se encoge o estira según la cantidad exacta de <li> que traiga PHP */
  overflow: visible;  /* Eliminamos el scrollbar interno molesto */
  opacity: 1;
  visibility: visible;
}

/* Cada opción de la lista */
.custom-option {
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.custom-option.selected {
  color: #fcc000;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.03);
}
/* SOLUCIÓN ALINEACIÓN: Contenedor de logos horizontal y centrado */
/* Contenedor principal de logos */
.panel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Por defecto en Desktop van en una línea */
    gap: 40px;
    height: 100%;
    padding: 20px;
}

.game-logo-item a img {
    height: 60px;
    width: auto;
    filter: grayscale(1); /* 100% blanco y negro */
    opacity: 0.6;         /* Un poco transparente para resaltar el fondo oscuro */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto HOVER: Color y brillo */
.game-logo-item a:hover img {
    filter: grayscale(0); /* Vuelve el color original */
    opacity: 1;           /* Opacidad total */
    transform: scale(1.15) translateY(-5px); /* Se agranda y sube un poquito */
}

/* --- AJUSTES PARA MOBILE --- */
@media (max-width: 768px) {
    .games-panel-container {
        height: auto; /* Permite que el panel crezca según el contenido */
        min-height: 250px; 
        padding-bottom: 30px;
        padding-top: 40px;
    }

    .panel-content {
        flex-wrap: wrap; /* LOS LOGOS BAJAN SI NO CABEN */
        justify-content: space-evenly;
        gap: 20px; /* Espacio más ajustado entre logos */
    }

    .game-logo-item {
        flex: 0 1 25%; /* Esto pone aprox 3 o 4 logos por fila */
        display: flex;
        justify-content: center;
    }

    .game-logo-item img {
        height: 75px; /* LOGOS MÁS GRANDES EN MOBILE */
        max-width: 100px;
        filter: grayscale(0); /* En mobile mejor que se vean con color de una */
        opacity: 1;
    }
        .footer-bottom {
  border-top: 0px solid var(--qp-bg);
    }
    .footer-legal{
      top: 16px;
    }
}

/* Ajuste extra para celulares muy pequeños */
@media (max-width: 480px) {
    .game-logo-item {
        flex: 0 1 40%; /* 2 logos por fila */
    }
    
    .game-logo-item img {
        height: 85px; /* Aún más grandes para que sean fáciles de tocar */
    }
}
/* ==========================
   HERO BASE
========================== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--grad-hero);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
    /* Desplaza el contenido para que nunca quede detrás del navbar fijo */
    padding-top: 80px;
    box-sizing: border-box;
}

/* ==========================
   CONTENIDO
========================== */
.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}
/*===========================
fondo degrade
============================*/
.fondoGradiente {
    border: 2px solid #fcc000;
    border-radius: 18px;

    background: linear-gradient(
        90deg,
        #611111 0%,
        #7b1b1b 50%,
        #611111 100%
    );

    box-shadow: 0 0 40px rgba(252,192,0,.25);

    overflow: visible;
}
/* ==========================
   LUCES
========================== */
.stadium-lights {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 65%),
        radial-gradient(ellipse at bottom, rgba(100, 0, 0, 0.25), transparent 70%);
    animation: pulseLights 6s infinite alternate;
}

/* ==========================
   PARTICULAS
========================== */
.particles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0%   { transform: translateY(0);      opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* ==========================
   BALLS CONTAINER
========================== */
.balls-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ==========================
   BALLS DEFINIDAS (FIX FINAL)
========================== */
.ball {
    position: absolute;

    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
        url('images/ballonFootball.svg');

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.4;

    /* 🔥 CLAVE: recorte perfecto */
    border-radius: 50%;
    overflow: hidden;

    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}
/* profundidad */
.ball.layer-1 {
    opacity: 0.18;
    filter: blur(1px);
}

.ball.layer-2 {
    opacity: 0.35;
    filter: blur(0.4px);
}

.ball.layer-3 {
    opacity: 0.65;
    filter: none;
}

/* ==========================
   NIEBLA SUAVE (FONDO)
========================== */
.balls-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.8) 100%
    );
    pointer-events: none;
}

/* ==========================
   SPOTLIGHT SUAVE
========================== */
.spotlight {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* ==========================
   OPTIMIZACIÓN
========================== */
.stadium-lights,
.particles,
.balls-container,
.hero-content {
    will-change: transform;
}
.stadium-lights,
.particles,
.balls-container,
.spotlight {
    width: 120%;
    height: 120%;

    top: -10%;
    left: -10%;
}

/* ==========================
   ANIMACIÓN LUCES
========================== */
@keyframes pulseLights {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  /* footer-legal ya tiene su propio bloque independiente */
}

@media (min-width: 768px) {
  .navbar .hamburger { display: none; }
  .mobile-menu { display: none !important; } /* nunca en desktop */
  .nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .steps-container { flex-direction: row; align-items: stretch; gap: 28px; }
  .step { flex-direction: column; align-items: center; text-align: center; flex: 1; }
  .step-connector {
    width: 80px;
    height: 2px;
    margin: 60px 0 0;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.05));
  }
}

@media (min-width: 1024px) {
  .grupos-grid { grid-template-columns: repeat(3, 1fr); }
}