/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #0066ff;
    --bg-dark: #0a0f1e;
    --bg-card: #ffffff;
    --text-light: #ffffff;
    --text-dark: #1e293b;
    --text-dim: #475569;
    --text-muted: #64748b;
    --text-country: #306eff;
    --glass-border: #e2e8f0;
    --glass-blur: blur(12px);
    --card-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* Video Background Container */
.video-background {
    position: fixed;
    top: 100px !important;  /* Cambiar de 100px a 0 */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Opción B: Video como fondo pero mostrando más del entorno */
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 70%;  /* ← Reduce de 130% o 150% a 120% para mostrar más */
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
/* Overlay semitransparente para mejorar legibilidad del texto */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,20,30,0.4));
    z-index: -1;
}

/* Fallback para navegadores que no soportan video o si falla la carga */
.no-video-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,20,30,0.3)), 
                url('../assets/img/stadium-001.jpg') center/cover no-repeat fixed;
    z-index: -3;
    display: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: var(--glass-blur);
    background: rgba(10, 15, 30, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.7rem 1.5rem;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 8px;
    margin-right: auto;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffffcc;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: #0a0f1e;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0,255,136,0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-links a {
    color: #ffffffcc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
    border-bottom-color: var(--primary);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 1rem 0.4rem 0.8rem;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn:hover {
    background: var(--primary);
    color: #0a0f1e;
}

main {
    margin-top: 85px;
    padding: 1.5rem 1.5rem 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/*ini bloque hero*/
/* Hero Section base - Fondo transparente */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    /* Elimina o comenta el fondo sólido */
    /* background: linear-gradient(135deg, #0a1a2f 0%, #0c2e3e 100%); */
    
    /* Fondo transparente para ver el video */
    background: transparent;
    
    /* Asegura que el contenido esté por encima del video */
    position: relative;
    z-index: 2;
    
    color: white;
}

/* Capa overlay opcional (mejora legibilidad del texto sobre el video) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0); /* Ajusta opacidad: 0.3 = más transparente, 0.7 = más oscuro */
    z-index: -1;
    pointer-events: none; /* Permite que el video reciba clics si es necesario */
}

/* Para que el contenido del hero tenga contraste adicional */
.hero-logo-container,
.hero-content {
    position: relative;
    z-index: 3;
}

/* El resto del CSS se mantiene igual */
.hero-logo-container {
    margin-bottom: 1.5rem;
}

.hero-logo {
    max-width: 180px;
    height: auto;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Mejora legibilidad */
}

.hero-dates,
.hero-countries {
    font-size: 1.2rem;
    opacity: 0.85;
    margin: 0.25rem 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-message {
    margin: 2.5rem 0 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-message p {
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd966, #ff9f4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none; /* El gradiente no necesita sombra */
}

.hero-closing {
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #e05a2a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ff6b35;
    backdrop-filter: blur(4px); /* Da un efecto de vidrio al botón secundario */
}

.btn-secondary:hover {
    background: rgba(255,107,53,0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem 3rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-lead {
        font-size: 1.4rem;
    }
    .hero-message {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 80%;
        text-align: center;
    }
}
/*fin bloque hero*/

.explore-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    background: var(--primary);
    color: #0a0f1e;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
    transition: 0.2s;
}

.explore-btn:hover {
    transform: scale(1.02);
    background: var(--primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto;
}

.stat-card {
    background: rgba(18, 25, 45, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 1.8rem 0.5rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.section-title span {
    background: var(--primary);
    width: 8px;
    height: 40px;
    border-radius: 4px;
}

.paises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pais-card {
    background: white;
    color: var(--text-country);
    border-radius: 20px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
}

.pais-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: var(--primary);
}

.pais-flag {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.pais-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.pais-more {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--secondary);
    opacity: 0.9;
    font-weight: 500;
    cursor: pointer;
}

.pais-card:hover .pais-flag {
    transform: scale(1.05);
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,255,136,0.3);
}

.grupos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.grupo-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
}

.grupo-header {
    background: var(--primary);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #0a0f1e;
    text-shadow: none;
    text-align: center;
}

.grupo-equipos {
    padding: 1rem;
}

.grupo-equipo-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-country);
}

.grupo-equipo-item:last-child { 
    border: none; 
}

.grupo-equipo-item .flag {
    width: 30px;
    height: 23px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grupo-equipo-item .name {
    font-weight: 500;
    color: var(--text-dark);
}

.iframe-container {
    width: 100%;
    margin: 3rem 0 2rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.2);
}

.iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: white;
    /* Scroll invisible */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.iframe-container iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 450px;
    width: 90%;
    position: relative;
    color: var(--text-dark);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #1e293b;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-flag-container {
    width: 100%;
    height: 160px;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-flag-img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 140px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-dark);
    padding: 0 1rem;
}

.modal-info-grid {
    padding: 0 1.5rem 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label i {
    color: var(--primary);
    width: 20px;
    font-size: 1rem;
}

.info-value {
    color: var(--text-dark);
    font-size: 1rem;
    text-align: right;
}

.info-value strong {
    font-weight: 700;
    color: var(--secondary);
}

.info-dato {
    margin-top: 0.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border-bottom: none;
}

.info-dato .info-label {
    margin-bottom: 0.5rem;
}

.info-dato .info-value {
    font-style: italic;
    color: var(--text-dim);
    text-align: left;
    width: 100%;
}

footer {
    text-align: center; 
    padding: 2rem; 
    color: rgba(255,255,255,0.6); 
    border-top: 1px solid rgba(255,255,255,0.05); 
    backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10,15,30,0.98);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transform: translateY(-150%);
        transition: 0.3s;
        opacity: 0;
        visibility: hidden;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .nav-links a {
        color: white;
    }
    .user-area {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        gap: 0.8rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .modal-flag-container {
        height: 140px;
    }
    .modal-flag-img {
        max-height: 120px;
    }
    .iframe-container iframe {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.7rem 1rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo-sub {
        font-size: 1rem;
    }
    .lang-selector {
        margin-left: 0.5rem;
    }
    .paises-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    .modal-flag-container {
        height: 120px;
    }
    .modal-flag-img {
        max-height: 100px;
    }
    .iframe-container iframe {
        height: 350px;
    }
}



/* Para dispositivos con batería baja o preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .video-background video {
        display: none;
    }
    .no-video-fallback {
        display: block !important;
    }
}

/* Fade out para notificación */
@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); visibility: hidden; }
}


.audio-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 255, 136, 0.9);
    color: #0a0f1e;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    animation: slideIn 0.3s ease, fadeOut 0.5s 2s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== ESTILOS MÓVILES PARA VIDEO BACKGROUND ===== */
@media (max-width: 768px) {
    .video-background {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .video-background video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .audio-activation-btn {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    
    .audio-indicator {
        right: 10px !important;
        bottom: 90px !important;
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
    
    .mobile-audio-instructions {
        bottom: 100px !important;
        width: 90% !important;
        font-size: 13px !important;
    }
}

/* Para iOS específicamente */
@supports (-webkit-touch-callout: none) {
    .video-background video {
        /* Fix para iOS Safari */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}


/* nuevos estilos*/
/* ============================================
   GOL TRACKER - ESTILOS EXCLUSIVOS
   Diseño diferenciado y llamativo
   ============================================ */

/* Contenedor del item en el menú */
.gol-tracker-nav-item {
    position: relative;
    animation: goldPulse 2s infinite;
}

/* Enlace del GOL Tracker */
.gol-tracker-link {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    color: #0a0e27 !important;
    border-radius: 30px !important;
    padding: 0.5rem 1.2rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gol-tracker-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffe44d 0%, #d4a017 100%) !important;
}

/* Icono animado */
.gol-tracker-icon {
    font-size: 1.1rem;
    animation: bounce 1s ease infinite;
}

/* Badge "NUEVO" */
.gol-tracker-badge {
    background: #ff0000;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0px;
    animation: blink 1.5s infinite;
    margin-left: 4px;
}

/* Animaciones */
@keyframes goldPulse {
    0% {
        text-shadow: 0 0 0px rgba(255, 215, 0, 0);
    }
    50% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 0px rgba(255, 215, 0, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive: móvil */
@media (max-width: 768px) {
    .gol-tracker-link {
        justify-content: center;
        margin: 0.5rem 1rem;
    }
}
/*fin nuevos estilos */