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

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

  /* Gradientes */
  --grad-hero: linear-gradient(135deg, var(--negro-suave) 0%, var(--azul-profundo) 60%, #063d74 100%);
  --grad-cta: linear-gradient(90deg, var(--cian-vibrante), var(--azul-electrico));
  --grad-card: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.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(0,204,255,.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; }

/* Animaciones scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease; /* Esto da el efecto suave */
}

.fade-up.visible {
    opacity: 1;
    transform: none; /* 'none' elimina el stacking context que crea translateY(0) */
}
/* Delay escalonado para los hijos */
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* === 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(--grad-cta);
  color: var(--azul-profundo);
  box-shadow: 0 4px 20px rgba(0,204,255,.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0,204,255,.6);
  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(0, 209, 255, 0);
    }
    50% {
        transform: scale(1.03); /* Crece un 3% */
        box-shadow: 0 0 15px rgba(0, 209, 255, 0.4); /* Brilla un poco */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 209, 255, 0);
    }
}

.btn-cta {
  background: var(--grad-cta);
  color: var(--azul-profundo);
  padding: 10px 24px;
}
.btn-cta:hover { filter: brightness(1.1); 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(0,204,255,.12); color: var(--cian-vibrante); border-color: rgba(0,204,255,.3); }
.btn-result.selected-home { background: rgba(0,204,255,.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: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .04em;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 16px;
}
.section-title span { color: var(--cian-vibrante); }
.section-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.55);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--negro-suave);
  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(--negro-suave);
  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 24px;
}
.logo-svg {
  height: 44px;
  width: auto;
  transition: transform var(--transition);
}
.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: var(--negro-suave);
  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: 30px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,204,255,.12);
  border: 1px solid rgba(0,204,255,.35);
  color: var(--cian-vibrante);
  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: 24px;
}
.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(--cian-vibrante);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 60px rgba(0,204,255,.4);
}
.hero-subtitle {
  /* --- 1. TAMAÑO Y TIPOGRAFÍA --- */
  /* Usamos clamp para que sea ultra-grande pero responsive (grande en escritorio, más pequeño en móvil) */
font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom:30px;
  
  /* Color de base blanco puro para el centro de las letras */
  color: #ffffff; 
  
  /* Grosor extra-negro para que el efecto tenga contundencia */
  font-weight: 900; 
  
  /* Un poco de espacio entre letras para mayor claridad */
  letter-spacing: 1px;
  
  /* Reducimos el interlineado para compactar el texto grande */
  line-height: 1.1; 
  /*text-transform: uppercase; /* Todo en mayúsculas como en la imagen */
  display: inline-block; /* Necesario para que la animación transform funcione */

  /* --- 2. EL EFECTO DE LUZ (Glow) Y BORDE --- */
  /* El secreto es acumular capas: 
     - Las primeras 4 capas crean un borde nítido azul oscuro/negro para garantizar legibilidad.
     - Las siguientes capas crean el resplandor difuminado cian. */
  text-shadow:
    /* CAPAS DE BORDE OSCURO (Legibilidad) */
    -1.5px -1.5px 0 rgba(4, 17, 37, 0.712), /* Arriba izquierda */
     1.5px -1.5px 0 rgba(4, 17, 37, 0.712),  /* Arriba derecha */
    -1.5px  1.5px 0 rgba(4, 17, 37, 0.712),  /* Abajo izquierda */
     1.5px  1.5px 0 rgba(4, 17, 37, 0.712),  /* Abajo derecha */
     
     
    /* CAPAS DE RESPLANDOR CIAN (Glow) */
    0 0 10px #00d2ff,   /* Brillo interno suave */
    0 0 20px #00d2ff,   /* Brillo intermedio */
    0 0 40px #00a0e0,   /* Brillo externo expansivo */
    0 0 70px #005c73;   /* Aura difuminada profunda */

  /* --- 3. ANIMACIÓN DE RESPIRACIÓN --- */
  animation: respiracionYBrillo 5s ease-in-out infinite;
}

/* --- 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: 56px; }

/* 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(--cian-vibrante);
}
.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(180px, 35vw, 420px);
    max-width: 100%;
    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: var(--negro-medio)!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%, var(--negro-medio) 20%, var(--cian-vibrante) 50%, var(--negro-medio) 80%, transparent 100%);
    box-shadow: 0 0 5px var(--azul-electrico); z-index: 10;
}
#marquee-precios::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--negro-medio) 20%, var(--cian-vibrante) 50%, var(--negro-medio) 80%, transparent 100%);
    box-shadow: 0 0 4px var(--azul-electrico); 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 20s 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 span strong {
    color: var(--cian-vibrante);
    text-shadow: 0 0 4px var(--azul-electrico);
    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 */
    }
}

/* ========================================
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-medio); }
.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);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,204,255,.25);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 12px;
  color: var(--blanco);
}
.feature-card p { color: rgba(255,255,255,.55); 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(0,204,255,.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(0,204,255,.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(0,204,255,.05); }
.team {
  display: flex;
  flex-direction: row;      /* Forzamos línea horizontal */
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;      /* ¡CLAVE! Prohíbe terminantemente el salto de línea en PC */
}

.team-flag {
  width: 28px;
  height: auto;
  flex-shrink: 0;           /* Evita que la bandera se achique */
  object-fit: cover;
}

.team-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;      /* Mantiene el nombre en una sola línea en PC */
  overflow: hidden;         /* Por si el nombre es ridículamente largo, que no rompa el diseño */
  text-overflow: ellipsis;  /* Agrega "..." al final si de verdad no llega a caber en PC */
}
.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(0,204,255,.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; }

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

.prode-progress { margin-bottom: 40px; max-width: 480px; }
.prode-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); }
.prode-progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.prode-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(0,204,255,.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(0,204,255,.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(7, 20, 40, .95);
  border: 1px solid rgba(0,204,255,.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;
}

/* ============================================
   CÓMO JUGAR
   ============================================ */
.howto-section { background: var(--negro-suave); }
.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: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: var(--cian-vibrante);
    box-shadow:
        0 0 0 1px var(--cian-vibrante),
        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:  rgba(0,204,255,.25);
    box-shadow: var(--shadow-glow);
    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;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,204,255,.3);
  min-width: 80px;
  transition: -webkit-text-stroke var(--transition);
}
.step:hover .step-num { -webkit-text-stroke-color: var(--cian-vibrante); }
.step-body h3 {
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blanco);
}
.step-body p { color: rgba(255,255,255,.55); line-height: 1.65; }
.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,204,255,.3), rgba(0,204,255,.05));
  margin-left: -390px;
}
/*=========================================
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:10000;
    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%;
}

/*=======================================================
   QR MODAL
   ======================================================== */

   /* El fondo del modal (oculto por defecto) */
.custom-modal-qr {
  display: none; 
  position: fixed; 
  z-index: 9999; /* Asegura que quede por encima de todo */
  
  /* Forzamos de forma estricta los 4 bordes a la pantalla */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Ancho y alto de seguridad */
  width: 100vw;  /* Usamos vw/vh (viewport width/height) para asegurar el 100% real de la pantalla */
  height: 100vh;
  
  /* CORREGIDO: Comentario en CSS nativo */
  /* background-color: rgba(3, 11, 23, 0.85); */ 
  
  /* Si quitas el background-color por completo, añade un fondo negro muy transparente 
     para que el 'blur' se note y no se vea gris opaco en algunos navegadores */
  background-color: rgba(0, 0, 0, 0.4); 
  
  backdrop-filter: blur(5px); /* Efecto esmerilado de fondo */
  -webkit-backdrop-filter: blur(5px); /* Soporte para Safari en iPhones/Macs */
}

/* La caja blanca central del modal */
.modal-content-qr {
  background-color: #ffffff;
  color: #030b17;
  margin: 15% auto;
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInModal 0.3s ease-out;
  
  /* Agregado: Centra también los textos (H2 y párrafos) para que todo el modal sea simétrico */
  text-align: center; 
}

/* Modificado: Estilos para el párrafo que contiene la imagen */
.modal-content-qr p {
  margin-bottom: 15px;
}

/* Corregido: Estilos para centrar la imagen QR de forma infalible */
.modal-content-qr p img {
  display: block;        /* ¡CLAVE! Permite aplicar márgenes como bloque */
  margin: 20px auto 0 auto; /* El 'auto' izquierdo y derecho fuerza el centrado horizontal */
  max-width: 240px;      /* Controla el tamaño máximo del QR para que no sea gigante */
  width: 100%;           /* Hace que sea responsive en pantallas muy chicas */
  height: auto;
  border-radius: 10px;
}
/* El botón para cerrar (X) */
.close-modal-qr {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal-qr:hover {
  color: #00CCFF; /* Tu color celeste al pasar el mouse */
}

/* Animación sutil de aparición */
@keyframes fadeInModal {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   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%;          /* no superar el container padre */
    margin: 0 auto;
    padding: 0 0 60px;        /* sin padding lateral: .container ya lo provee */
    background: var(--negro-suave);
    box-sizing: border-box;
    
  }

  /* ── Banner superior tipo pill ── */
  .modalidades-pill {
    display: block;
    width: fit-content;
    margin: 0 auto 48px;
    padding: 16px 40px;
    border: 2px solid var(--cian-vibrante);
    border-radius: 50px;
    background: transparent;
    color: #ffff;
    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;
    border-radius: 50px;
    color: #ffff00;
    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: #ffff00;
    color: #000;
  }

  /* ── 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;
    }
  }

/* ============================================
   RESULTADOS — COMING SOON
   ============================================ */

.resultados-section {
  background: var(--negro-medio);
  position: relative;
  /* z-index intencional omitido: evita crear un stacking context que confine el select dropdown */
}
.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(0,204,255,.08);
  border: 1px solid rgba(0,204,255,.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
   ============================================ */
.faq-section { background: var(--negro-m); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanco);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--cian-vibrante); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cian-vibrante);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: rgba(255,255,255,.55); line-height: 1.7; }

/* ============================================
   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(--amarillo);
  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: #1a1a1a;
    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;
  z-index: 9999;
  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 */
}

/* 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: var(--cian-vibrante);
  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: 9999;

    background-color: var(--negro-suave);
    border: 2px solid var(--cian-vibrante);
    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 .35s ease-out,
        opacity .2s ease,
        visibility .2s ease;
}

/* Cuando se despliega: altura real según cantidad de <li> con scroll si es muy larga */
.custom-select-wrapper.open .custom-options {
  max-height: 600px;  /* Limita la lista para que no tape todo; scroll interno si hay muchos sorteos */
  overflow-y: auto;
  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;
    }
    
	.team {
    flex-direction: column;   /* Cambia a diseño vertical (Bandera arriba) */
    align-items: center;      /* Centra los elementos */
    text-align: center;       /* Centra el texto */
    gap: 6px;
    white-space: normal;      /* ¡CLAVE! Aquí sí permitimos que el contenedor quiebre */
  }

  .team-flag {
    width: 32px;              /* Un poquito más grande en celular */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  .team-name {
    display: block !important;
    white-space: normal !important; /* Habilitamos las 2 líneas para nombres con espacio */
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    overflow: visible;              /* Quitamos el recorte de escritorio */
    text-overflow: clip;            /* Quita los puntos suspensivos */
    font-size: 0.85rem;
    line-height: 1.2;
    width: 100%;
  }
}

/* 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: radial-gradient(circle at center, #0a1a2f 0%, #050d1a 70%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
}

/* ==========================
   CONTENIDO
========================== */
.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}

/* ==========================
   LUCES
========================== */
.stadium-lights {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at top, rgba(0,180,255,0.15), transparent 70%),
        radial-gradient(ellipse at bottom, rgba(0,150,255,0.1), 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{
	max-width:180px;	max-width:800px
}
}

@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: flex-start; gap: 0; }
  .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(0,204,255,.3), rgba(0,204,255,.05));
  }

}

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

