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

/* === CUSTOM PROPERTIES (Paleta oficial) === */
:root {
  --amarillo-profundo:  #f4f198;   /* Fondos principales, headers */
  --amarillo-electrico:  #ffff99;/* Botones secundarios, degradados */
  --amarillo-vibrante:  #ff0;   /* 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:    #282607;   /* Cards oscuras */

    --qp-bg: #000000;
 --qp-yellow-bright: #ff0;
    --qp-yellow-light: #ff9;
    --qp-gold: #ead93f;
    --qp-black: #000;
    --qp-white: #fff;
	--qp-red: #f30000;

    --background: var(--qp-bg);
    --foreground: var(--qp-black);
  /* Gradientes */
  --grad-hero: radial-gradient(ellipse at center, #d3d630 0%, #a09715 55%, #7b7900 100%);
  --grad-cta: linear-gradient(90deg, var(--amarillo-vibrante), var(--amarillo-electrico));
  --grad-card: linear-gradient(145deg, rgba(0, 0, 0, 0.04), rgba(209, 212, 31, 0.01));

  /* Tipografía */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Anton', 'Anton Fallback', Impact, 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;
}

/* ============================================
   FUENTE FALLBACK — Anton Fallback
   Evita layout shift (CLS) mientras carga Anton desde Google Fonts.
   Usa Arial local con métricas ajustadas para coincidir con Anton.
   ============================================ */
@font-face {
  font-family: 'Anton Fallback';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Arial Black'), local('Impact');
  ascent-override:   109.38%;
  descent-override:   27.34%;
  line-gap-override:   0.00%;
  size-adjust:        90.91%;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--qp-bg);
  color: var(--qp-black);
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}
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: var(--qp-white);
  color: var(--qp-black);
  border: 2px solid rgba(0,0,0,.3);
}
.btn-ghost-simple:hover {
  border-color: var(--qp-white);
  color: var(--qp-white);
  background-color: var(--qp-black);
}

/* Estilo Base del Botón */
.btn-ghost {
    position: relative;
    overflow: hidden;
    color: var(--qp-gold);
    border: 2px solid var(--qp-gold);
    background: var(--qp-black);
    transition: color 0.4s ease;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 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, 251, 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(0,0,0,.06);
  color: rgba(0,0,0,.6);
  transition: all var(--transition);
}
.btn-result:hover { background: rgba(255, 230, 0, 0.12); color: var(--amarillo-vibrante); border-color: rgba(255, 230, 0, 0.3); }
.btn-result.selected-home { background: rgba(255, 251, 0, 0.2); color: var(--amarillo-vibrante); border-color: var(--amarillo-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, 252, 80, 0.15); color: #fdff88; border-color: #eeff55; }

/* === 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(--amarillo-vibrante); }
.section-sub {
  font-family: var(--font-anton), sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.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(--qp-bg);
  box-shadow: 0 2px 12px rgba(22, 1, 1, 0.35);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: var(--qp-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(22, 1, 1, 0.35);
  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, 0.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(--qp-gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--qp-gold); }
.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(--qp-white);
  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: var(--qp-bg);
  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: var(--qp-black);
  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);
}*/
/*=============================
fondo ever
==============================*/
.hero {
  position: relative;
 height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra la composición si la pantalla es muy ancha */
  overflow: hidden;
  background: var(--qp-bg);
}

/* Imagen de fondo adaptada a tu Hero */
.hero .bg-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 0px);
  object-fit: cover;          /* cover garantiza que siempre cubra ancho Y alto */
  object-position: center top;
  z-index: 1;
  background-color:var(--qp-bg);
}

/* El contenedor interno que encierra los elementos del sorteo */
.hero-composition {
  position: relative;
  width: 60%;
  max-width: 800px;
  height: 100vh;
  z-index: 5;
  left:-20vh;
  pointer-events: none; 
}

/* --- Elementos Absolutos (Escalados para pantalla completa) --- */
  #contenedor-pozo{
     position:relative;
     top:20px;
    left:155px;
    transform: rotate(-10deg);
    }
/* Texto superior: ¡LO SENTÍS, LO JUGÁS! */
.hero-composition .title-top {
  position: absolute;
  top: 15vh; /* Posición basada en el alto de la pantalla */
  left: 50vh;
  transform: translateX(-50%);
  color: #000;
  font-size: clamp(1.8rem, 4.5vh, 3.5rem); /* Se adapta dinámicamente al alto */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  font-family: 'Arial Black', sans-serif;
  width: 100%;
}

/* Personaje: Éber Ludueña */
.hero-composition .character-eber {
  position: absolute;
  bottom: 54px;
    left: -35vh;
    height: 60vh;
  object-fit: contain;
  z-index: 5;
}

/* ── Animación de entrada/salida de Éber según slide activo ── */

/* Estado oculto por defecto: fuera de pantalla a la izquierda */
.hero-composition .character-eber {
  opacity: 0;
  transform: translateX(-120px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.45s ease;
  pointer-events: none;
}

/* Entra: slide hacia su posición natural */
.hero-composition .character-eber.poceada-enter {
  opacity: 1;
  transform: translateX(0);
  pointer-events: none;
}

/* Sale: vuelve a irse hacia la izquierda */
.hero-composition .character-eber.poceada-exit {
  opacity: 0;
  transform: translateX(-120px);
  pointer-events: none;
}

/* Cartel: Sumamos 160 Millones */
.hero-composition .text-promo {
  position: absolute;
  bottom: 45vh;/*25vh*/
  left: 45vh;/*30%*/
  width: 52vh;
  max-width: 680px;
  object-fit: contain;
  z-index: 3;
  display:none;
}


/* Botón: ¡JUGÁ AHORA! */
.hero-composition .btn-jugatela {
  position: absolute;
  /*bottom: -30vh*/;
  left: 30%; /* Alineado más hacia la derecha del personaje, cerca del pozo */
  transform: translateX(-50%);
  
}

.hero-composition .btn-jugatela:hover {
  transform: translateX(-50%) scale(1.05);
}

/*===========================================
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;
  /* orbFloat removido: el scale 1→1.12 contribuía al breathing del fondo */
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: var(--amarillo-electrico);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: var(--amarillo-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;
  position: relative;
  left:350px;
  top:-20px;
}
.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(0,0,0,.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(255, 255, 255, 0.4);
}
.hero-subtitle {
  font-family: var(--font-anton), Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(0,0,0,.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(0,0,0,.65);
  max-width: 560px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-subtitle-frase {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 30px;
  background-color: transparent; /* sin caja de fondo */
font-family: var(--font-cond);

  /* Gradiente ancho: texto oscuro a ambos lados + banda brillante en el centro */
  background-image: linear-gradient(
    105deg,
    #0d0d0d  0%,
    #0d0d0d  30%,
    #505050  42%,
    #eeeeee  50%,
    #505050  58%,
    #0d0d0d  70%,
    #0d0d0d  100%
  );
  background-size: 260% 100%;
  background-position: 120% center; /* banda fuera de escena al inicio */

  /* El relleno de las letras viene del gradiente */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* Sombra 3D usando ::text-shadow (usa la propiedad color aunque fill sea transparent) */
  /* Necesitamos una sombra visible: usamos filter drop-shadow en su lugar */
  filter:
    drop-shadow(1px 2px 0px var(--qp-white))
    drop-shadow(2px 4px 4px var(--qp-white));

  /* El brillo se anima moviendo la posición del background */
  animation: frase-brillo 3.5s ease-in-out infinite;
}

/* El ::after ya no se necesita — el brillo está dentro del texto */
.hero-subtitle-frase::after {
  display: none;
}

@keyframes frase-brillo {
  0%        { background-position: 120% center; }  /* banda fuera (derecha) */
  40%, 100% { background-position: -30% center; }  /* banda fuera (izquierda) */
}

/* --- 4. DEFINICIÓN DE LA ANIMACIÓN --- */
/* Esta animación hace que el texto se agrande y el brillo se intensifique a la vez */
@keyframes respiracionYBrillo {
  0%, 100% {
    transform: scale(1);
    /* Sombras base en reposo */
    text-shadow:
      -1.5px -1.5px 0 #010409, 1.5px -1.5px 0 #010409, -1.5px  1.5px 0 #010409, 1.5px  1.5px 0 #010409,
      0 0 10px #00d2ff, 0 0 20px #00d2ff, 0 0 40px #00a0e0, 0 0 70px #005c73;
  }
  50% {
    /* El texto crece un 4% sutilmente */
    transform: scale(1.04);
    
    /* El resplandor se vuelve más intenso y expansivo al 'inspirar' */
    text-shadow:
      -1.5px -1.5px 0 #010409, 1.5px -1.5px 0 #010409, -1.5px  1.5px 0 #010409, 1.5px  1.5px 0 #010409,
      0 0 15px #00e5ff,   /* Más brillante */
      0 0 30px #00d2ff,   /* Más expansivo */
      0 0 60px #00a0e0,   /* Mucho más expansivo */
      0 0 100px #00d2ff;  /* Aura ultra difuminada */
  }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 75px; }/*100px*/

/* 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(0,0,0,.5);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,.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(0,0,0,.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(--amarillo-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, 55vw, 280px);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/*============================================
MARQUEE 
============================================*/
.marquee-container {
    /* ancho: left+right=0 garantiza 100% del viewport en position:fixed */
	display:block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;                        /* ancla el borde derecho al viewport */
    width: 100%;                     /* fallback por compatibilidad */
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    /* padding extra para el notch inferior de iOS */
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-family: 'Barlow', sans-serif;
    cursor: default;
    box-sizing: border-box;
    z-index: 9999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
    background-color: var(--qp-black) !important;
    background-image:
      radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px),
      radial-gradient(circle at center, rgba(0, 0, 0, 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;
	  background-color: #000000 !important;
}

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

.marquee-content .precio {
    color: var(--qp-gold);
    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 */
    }
}
/*=========================================
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, 252, 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(0, 0, 0, 0.05)    25%,
        rgba(255, 245, 180, 0.90)    50%,
        rgba(0, 0, 0, 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
=====================*/
.subrayado {
    position: relative;
    display: inline-block;
    font-weight: 900;
    color: var(--qp-gold)!important;
    line-height: 1;
    z-index: 1;
}

/* Fondo amarillo */
.subrayado::before {
    content: "";
    position: absolute;
    left: -12px;
    bottom: 8px;
    width: 0;
    height: 40%;
    background: var(--qp-white);
    border-radius: 999px;
    z-index: -2;
    animation: highlight 1.8s cubic-bezier(.645,.045,.355,1) .4s forwards;
}

/* Sombra negra abajo */
.subrayado::after {
    content: "";
    position: absolute;
    left: -12px;
    bottom: 2px;
    width: 0;
    height: 10px;
    background: rgba(255,255,255,.75);
    border-radius: 999px;
    z-index: -1;
    animation: highlight 1.8s cubic-bezier(.645,.045,.355,1) .4s forwards;
}

@keyframes highlight {
    to {
        width: calc(100% + 24px);
    }
}
/* ========================================
BOTON HACE TU JUGADA
==========================================*/
.floating-btn-jugada {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--qp-black);
    color: #ffff00;
    padding: 12px 30px;
    border: 3px solid var(--qp-black);
    border-radius: 50px;
    font-family: var(--font-anton);
    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: var(--font-anton);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--qp-black); /*do tus variables */
    margin-bottom: 10px;
    opacity: 0.8;
}

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

.time-block {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    animation: none;
}

.time-block span {
    font-family: var(--font-anton);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--qp-black);
    display: block;
}

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




/* ============================================
   WHY SECTION
   ============================================ */
/* Reducimos el padding-top de la primera sección post-hero */
.howto-section {
    padding-top: 60px;
}
.why-section { }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--qp-white);
  border: 1px solid var(--qp-black);
  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-anton) sans-serif;
  color: rgba(0,0,0,.65);
  font-size: .95rem;
  line-height: 1.65;
}

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

.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(0,0,0,.12);
  color: rgba(0,0,0,.55);
  transition: all var(--transition);
}
.fixture-tab:hover { border-color: rgba(255, 251, 0, 0.4); color: var(--blanco); }
.fixture-tab.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: var(--amarillo-profundo);
}

/* Grupos */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.grupo-card {
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.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(--amarillo-profundo);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--amarillo-vibrante);
}
.grupo-teams { padding: 0; }
.grupo-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,0,0,.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(0,0,0,.35);
  letter-spacing: .05em;
}

/* Eliminatorias */
.bracket-list { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin: 0 auto; }
.bracket-match {
  background: rgba(0,0,0255,.03);
  border: 1px solid rgba(0,0,0,.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(0,0,0,.2);
  letter-spacing: .1em;
  min-width: 32px;
  text-align: center;
}
.bracket-date {
  font-family: var(--font-cond);
  font-size: .8rem;
  color: rgba(0,0,0,.35);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bracket-tbd {
  color: rgba(0,0,0,.3);
  font-style: italic;
  font-size: .9rem;
}

/* Mensaje coming soon en fase */
.phase-coming {
  text-align: center;
  padding: 60px 20px;
  color: rgba(0,0,0,.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(--qp-bg); }

.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(0,0,0,.5);
  margin-bottom: 10px;
}
#progressCount { color: var(--amarillo-vibrante); }
.donde-progress-bar {
  height: 6px;
  background: rgba(0,0,0,.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(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.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(0,0,0,.35);
}
.prediction-group {
  font-family: var(--font-cond);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--amarillo-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(0,0,0,.8);
  text-align: center;
}
.prediction-vs {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(0,0,0,.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(--amarillo-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: var(--qp-bg) !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%, 
    var(--qp-black) 20%, 
    var(--qp-gold)50%, 
    var(--qp-black) 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%, 
     var(--qp-black) 20%, 
    var(--qp-gold)50%, 
    var(--qp-black) 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: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
    margin-bottom: 35px;
}

/* La tarjeta con el fondo tinto de la imagen */
.step-card {
    background: var(--qp-white);
    border: 1px solid var(--qp-black);
    border-radius: 20px;
    padding: 20px;
   height: 80%;
    overflow: hidden;
    flex: 1;
    max-width: 520px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(0, 0, 0, 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: var(--qp-black);
    box-shadow:
        0 0 0 1px var(--qp-black),
        0 12px 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* ── HOVER: zoom + borde amarillo ── */
.step-card:hover {
    transform: scale(1.04);
    border-color: var(--qp-white);
    background-color: var(--qp-white);
    box-shadow:
        0 0 0 2px var(--qp-black),
        0 20px 50px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 255, 0, 0.10),
        inset 0 1px 0 rgba(0, 0, 0, 0.45);
    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.925),
        0 0 0 3px rgba(255, 255, 0, 0.2);
}

.step-body a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* imagen visible al inicio */
.step-body img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .45s ease;
    opacity: 1;
    transform: scale(1);
    border-radius: 10px;
}

/* texto oculto al inicio */
.step-card .tiptext{
    position:absolute;
    top:30%;
    left:50%;
    transform:translate(-50%,-50%) scale(.85);
    opacity:0;
    width:98%;
    font-size:20px;
	line-height:25px;
    font-weight:700;
    color:var(--qp-black);
    transition:.45s ease;
    text-align:center;
    pointer-events:none;
}

/* al hover: desaparece imagen */
.step-card:hover img{
    opacity:0;
    transform:scale(.85);
}

/* al hover: aparece texto */
.step-card:hover .tiptext{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
}

/* Círculo Amarillo con el número */
.step-badge {
    width: 62px;
    height: 62px;
    background-color: var(--qp-black);
    color: #ffffff;
    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;
}


/* 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: #000000;
    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: rgb(0, 0, 0);
    margin: 0;
}

/* ========================================================
   DIV AMARILLO DESTACADO
   ======================================================== */
.banner-destacado {
    background-color: var(--qp-gold); /* Amarillo brillante */
    color: var(--qp-black);
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    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;
}

.banner-destacado a{text-decoration:underline;}
.banner-destacado a:hover{text-decoration:none;}

/* ========================================================
   RESPONSIVE: MODO MOBILE (COLUMNA)
   ======================================================== */
@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .step-card {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        height: 100%;
    }

    .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;
    }

    /* Fondo: llena todo el ancho y alto del hero en mobile */
    .hero .bg-hero {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    .hero-composition {
        left: 0;
    }
    /* Personaje: pies alineados al borde inferior de bg-hero */
    .hero-composition .character-eber {
        bottom: 0;
        left: -105px;
        height: 60vh;
        object-fit: cover;
    }

    /* Cartel de millones: ajustado a la derecha del personaje en mobile */
    .hero-composition .text-promo {
        bottom: 49vh;
        left: 38%;
        width: 58%;
        max-width: 340px;
    }

    /* Marquee: sin backdrop-filter en mobile (causa glitches en iOS/Android) */
    .marquee-container {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
  #contenedor-pozo{
    left:80px;
    }
    

.micrositio{
    
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:180px;
    padding:10px;
    background:white;
    border-radius:8px;
    box-shadow:0 4px 15px rgba(0,0,0,.2);
    text-align:center;
    z-index:1111;
}

.modal-content{
height: 70vh;}

.marquee-container {display:none;}
.hero-title {
  left:0px;
  top:0px;
}
.hero-composition .hero-content .btn-jugatela {top: 10vh;}
.footer{
    padding-bottom: 100px !important;}
}
/* ── 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, #c7bb188c, #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 var(--qp-black);
    border-radius: 50px;
    background: var(--qp-black);
    color: var(--qp-gold);
    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 var(--qp-black);
    border-radius: 50px;
    background: var(--qp-black);
    color: var(--amarillo-profundo);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }

/* ── Card ocupa todo el ancho ── */
.modalidades-grid .step-card {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    flex: none;

    margin: 0;
    padding: 32px 24px 28px;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}

  /* ── Ícono cuadrado redondeado ── */
  .modalidades-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 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 var(--qp-red);
    background: var(--qp-red);
    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: var(--qp-red);
  }

  /* ── 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: var(--qp-bg);
   }
    
.coming-soon-card {
  background: rgba(0,0,0,.02);
  border: 1px dashed rgba(0,0,0,.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(0,0,0,.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, 251, 0, 0.2);
  color: var(--amarillo-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: var(--qp-white); /* 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(--gp-back);
  background-color: var(--qp-yellow-light); /* 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-cond);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--qp-black);
  text-align: left;
  text-transform: uppercase;
  gap: 19px;
  background-color: var(--qp-white); /* 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: var(--qp-yellow-light);
}

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


/* Ícono de flecha/chevron */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qp-black);
  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); 
  background-color: var(--qp-white); 
}

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

.faq-answer p { 
  color: rgba(0, 0, 0, 0.75); 
  line-height: 1.5;
  font-size: 1.2rem;
  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 */
  background-color: var(--qp-white); 
}

.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: rgba(255,255,255,.06);
  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: var(--qp-bg);
  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: var(--qp-white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--qp-white);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--amarillo-vibrante); }
.footer-bottom {
  border-top: 1px solid var(--qp-gold);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--qp-white);
  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: var(--qp-black);
    border-top: 2px solid var(--qp-white);
    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(--qp-white);
    color:  var(--qp-white);
    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: var(--qp-black);
  font-family: var(--font-body), sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 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='%23000000' 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(0, 0, 0, 0.08);
}

/* Estado abierto */
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--qp-black);
  background-color: rgba(0, 0, 0, 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:var(--qp-black);
    border:2px solid var(--qp-black);
    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: var(--qp-white);
  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(0, 0, 0, 0.08);
  color: var(--qp-bg);
}

.custom-option.selected {
  color: var(--qp-bg);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 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;
    height: 95vh;
    overflow: hidden;
    background: var(--qp-bg);
    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;
}
/* hero-content como overlay absoluto dentro de hero-composition */
.hero-composition .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4vh 2vw 8vh;
    z-index: 5;
    text-align: center;
    pointer-events: none;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
/* reactivar clics sobre enlaces y botones dentro del overlay */
.hero-composition .hero-content a,
.hero-composition .hero-content button {
    pointer-events: none;
}
/* el btn-jugatela dentro del overlay sigue el flujo flex, no posición absoluta */
.hero-composition .hero-content .btn-jugatela {
    position: relative;
    top: 50vh;
    bottom: auto;
    left: auto;
    transform: none;
}

/*===========================
fondo degrade
============================*/
.fondoGradiente {
    border: 2px solid #fcc000;
    border-radius: 18px;

    background: linear-gradient(
        90deg,
        var(--amarillo-profundo) 0%,
        var(--amarillo-electrico) 50%,
        var(--amarillo-profundo) 100%
    );

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

    overflow: visible;
}
/* ==========================
   LUCES
========================== */
.stadium-lights {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.75; /* fijo, sin animación → sin breathing ni flash al cargar */
    background:
        radial-gradient(ellipse at top, rgba(0, 0, 0, 0.08), transparent 65%),
        radial-gradient(ellipse at bottom, rgba(100, 98, 0, 0.25), transparent 70%);
}

/* ==========================
   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(0, 0, 0, 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
========================== */
.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(229, 255, 0, 0.3), rgba(238, 255, 0, 0.05));
  }
}

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

/* ============================================================
   HERO — corrección de solapamiento al hacer zoom en desktop
   Se activa cuando el viewport CSS es < 900px de alto,
   equivalente a ~120 % zoom en 1080p o ~150 % en 1440p.
   NO afecta mobile (excluido con min-width: 769px).
   ============================================================ */

/* ── Zoom ~125 % (viewport 720 – 900 px de alto) ─────────── */
@media (max-height: 900px) and (min-width: 769px) {
    /* Personaje: un poco menos alto para dejar espacio vertical */
    .hero-title {
  left:270px;}
    .hero-composition .character-eber {
        height: 68vh;
        bottom: 5vh;
        left:-22vh
    }
    /* Cartel: baja para no chocar con el tagline del overlay */
    .hero-composition .text-promo {
        bottom: 42vh;
        left: 36vh;
        width: 44vh;
    }

.hero .bg-hero { object-fit: cover;}

}


/* ── Zoom ~150 % (viewport 580 – 720 px de alto) ─────────── */
@media (max-height: 720px) and (min-width: 769px) {
    .hero-composition .character-eber {
        height: 60vh;
        bottom: 10vh;
        left:-1vh
    }
    .hero-composition .text-promo {
        bottom: 42vh;
        left: 36vh;
        width: 38vh;
    }
    /* Overlay: menos padding para ganar espacio vertical */
    .hero-composition .hero-content {
        padding: 2vh 2vw 6vh;
    }
}

/* ── Zoom ~200 % (viewport < 580 px de alto) ─────────────── */
@media (max-height: 580px) and (min-width: 769px) {
   .hero-title {
  left:200px;
  top:-10px;
}
.hero-subtitle-frase {font-size: 2vw;}
    .hero-composition .character-eber {
        height: 65vh;
        bottom: 1vh;
        left:-5vh
    }
    .hero-composition .text-promo {
        bottom: 30vh;
        left: 32vh;
        width: 39vh;
    }
    .hero-composition .hero-content {
        padding: 1vh 2vw 4vh;
    }
}