/* =====================================================
   GOOGLE FONT
===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    background: #000 url("../images/wallpaper.jpg") center/cover no-repeat;
}

/* ==============================
   OVERLAY OSCURO PREMIUM
============================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.75)
    );
    z-index: -1;
}

/* =====================================================
   HEADER & NAVBAR (NEW PREMIUM)
===================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.navbar {
    max-width: 1300px;
    margin: auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.65);
    transition: 0.35s ease;
}

/* Hamburger icon */
.navbar .hamburger-btn {
    display: none;
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
    transition: 0.25s;
}

.navbar .hamburger-btn:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo img {
    width: 70px;
    transition: 0.3s ease;
}

.navbar .logo h2 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Links */
.navbar .links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar .links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.25s ease;
}

/* underline animation */
.navbar .links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0%;
    height: 2px;
    border-radius: 50px;
    background: linear-gradient(90deg, #FFD700, #ffb700);
    transition: 0.3s ease;
}

.navbar .links a:hover {
    color: #FFD700;
}

.nav-links a.active {
    color: #FFD700;
}


.navbar .links a:hover::after {
    width: 100%;
}

/* Navbar cuando se hace scroll */
header.scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.08);
}

/* Ocultar navbar suavemente */
header.hide-navbar {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/* =====================================================
   NAVBAR BUTTON (NEW PREMIUM)
===================================================== */
.navbar .login-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.25);
}

.navbar .login-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fff2b0, #FFD700);
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.35);
}

/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */
@media (max-width: 950px) {
    .navbar .hamburger-btn {
        display: block;
    }

    .navbar .links {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(-100%);
        transition: 0.35s ease;
        z-index: 999;
    }

    .navbar .links.show-menu {
        transform: translateX(0);
    }

    .navbar .links a {
        color: #fff;
        font-size: 1.4rem;
        font-weight: 800;
    }

    .navbar .links a:hover {
        color: #FFD700;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar .logo h2 {
        font-size: 1.3rem;
    }

    .navbar .login-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .navbar .links a {
        font-size: 1.2rem;
    }
}

/* =====================================================
   FORM POPUP
===================================================== */
.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 720px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.65);
    transform: translate(-50%, -60%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 100;
}

.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.form-popup .close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    transition: 0.25s;
    z-index: 10;
}

.form-popup .close-btn:hover {
    color: #e63946;
    transform: rotate(90deg);
}

/* =====================================================
   FORM STRUCTURE
===================================================== */
.form-box {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    animation: fadeSlide 0.45s ease;
}

/* FORM DETAILS */
.form-box .form-details {
    max-width: 330px;
    width: 100%;
    padding: 40px 28px;
    text-align: center;
    color: #FFD700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
}

.form-box .form-details::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.form-box .form-details * {
    position: relative;
    z-index: 1;
}

.form-box .form-details h2 {
    font-size: 2.2rem;
    font-weight: 900;
}

.form-box .form-details p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
}

/* FORM CONTENT */
.form-content {
    width: 100%;
    padding: 45px;
}

.form-content h2 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
}

/* INPUTS */
.input-field {
    position: relative;
    margin-bottom: 22px;
}

.input-field input {
    width: 100%;
    padding: 16px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s;
}

.input-field input:focus {
    border-color: #FFD700;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    font-size: 0.85rem;
    color: #777;
    background: #fff;
    padding: 0 6px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.25s;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: #FFD700;
}

/* PASSWORD TOGGLE */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}

.toggle-password:hover {
    color: #111;
}

/* BUTTONS */
form button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #000, #222);
    color: #FFD700;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

form button:hover {
    background: linear-gradient(135deg, #FFD700, #e6c200);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* BOTTOM LINKS */
.bottom-link {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
}

.bottom-link a {
    color: #FFD700;
    font-weight: 600;
    text-decoration: none;
}

/* LOGIN / SIGNUP VISIBILITY */
.form-popup .login { display: flex; }
.form-popup .signup { display: none; }

.form-popup.show-signup .login { display: none; }
.form-popup.show-signup .signup { display: flex; }

/* BACKGROUNDS */
.login .form-details {
    background: url("../images/login-img.jpg") center/cover no-repeat;
}

.signup .form-details {
    background: url("../images/signupimg.png") center/cover no-repeat;
}

/* ANIMATIONS */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* FIX LABELS SUPERPUESTOS */
.registro-page .input-field {
    position: static;
}

.registro-page .input-field label {
    position: static;
    transform: none;
    margin-bottom: 6px;
    display: block;
    color: #ddd;
    font-size: 14px;
}

.registro-page .input-field input {
    padding: 12px;
}

/* RULE CARD ANIMATION */
.rule-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.rule-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   MEDIA QUERIES MOVILES
===================================================== */
@media (max-width: 768px) {
    .form-popup {
        max-width: 90%;
        padding: 20px;
    }

    .form-box {
        flex-direction: column;
    }

    .form-box .form-details {
        max-width: 100%;
        padding: 20px;
    }

    .form-content {
        padding: 20px;
    }

    .input-field input {
        padding: 12px;
        font-size: 0.9rem;
    }

    form button {
        padding: 12px;
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.8rem;
        text-align: center;
        padding: 10px;
    }

    body {
        background-position: top center;
    }
}

/* ========== NUEVO: RESPONSIVE MEJORADO PARA MÓVIL ========== */
/* Este bloque unifica y optimiza la experiencia en dispositivos móviles */

@media (max-width: 950px) {
    /* ===== MENÚ HAMBURGUESA ===== */
    .navbar .hamburger-btn {
        display: block;
        font-size: 2.2rem; /* Un poco más grande para mejor toque */
        order: 1; /* Asegura que esté a la izquierda si es necesario */
    }

    /* Reorganizamos la barra para móvil: logo a la izquierda, botón login a la derecha */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .navbar .logo {
        order: 0; /* Logo al inicio */
    }

    .navbar .login-btn {
        order: 2; /* Botón login a la derecha */
        margin-left: auto; /* Empuja el botón a la derecha si hay espacio */
        margin-right: 10px; /* Espacio antes del hamburguesa */
        padding: 8px 16px; /* Ligeramente más pequeño en móvil */
        font-size: 0.85rem;
    }

    /* ===== PANEL DESLIZANTE ===== */
    .navbar .links {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Ocupa el 80% de la pantalla */
        height: 100vh;
        background: rgba(10, 10, 10, 0.98); /* Fondo más sólido */
        backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Suavizado */
        z-index: 9999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7);
        border-right: 1px solid rgba(255, 215, 0, 0.2);
        list-style: none;
        padding: 20px 0;
    }

    /* Cuando el menú está abierto */
    .navbar .links.show-menu {
        transform: translateX(0);
    }

    /* Estilo de los enlaces dentro del panel */
    .navbar .links a {
        color: #fff;
        font-size: 1.6rem; /* Más grandes para móvil */
        font-weight: 700;
        display: inline-block;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    /* Aseguramos que la línea dorada se vea bien en móvil */
    .navbar .links a::after {
        bottom: -2px;
        height: 3px;
        background: #FFD700;
    }

    .navbar .links a:hover {
        color: #FFD700;
    }
}

/* ===== MEJORAS PARA PANTALLAS PEQUEÑAS ( < 768px ) ===== */
@media (max-width: 768px) {
    /* ===== HEADER Y NAVBAR ===== */
    header {
        padding: 8px 10px;
    }

    .navbar {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .navbar .logo img {
        width: 50px; /* Logo más pequeño */
    }

    .navbar .logo h2 {
        font-size: 1.1rem; /* Texto del logo más pequeño */
        letter-spacing: 0.5px;
    }

    .navbar .login-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .navbar .hamburger-btn {
        font-size: 2rem;
    }

    /* ===== POPUP DE FORMULARIO ===== */
    .form-popup {
        max-width: 92%;
        width: 92%;
        border-radius: 24px; /* Bordes más redondeados */
        background: rgba(255,255,255,0.98);
    }

    .form-box {
        flex-direction: column; /* Apilar elementos verticalmente */
        border-radius: 24px;
    }

    /* Detalles decorativos arriba */
    .form-box .form-details {
        max-width: 100%;
        width: 100%;
        padding: 35px 20px 25px 20px;
        min-height: 170px; /* Altura fija para la parte decorativa */
    }

    .form-box .form-details h2 {
        font-size: 1.8rem;
    }

    .form-box .form-details p {
        font-size: 0.9rem;
    }

    /* Contenido del formulario abajo */
    .form-content {
        padding: 30px 20px 35px 20px;
    }

    .form-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    /* Inputs más cómodos para tocar */
    .input-field input {
        padding: 15px 12px; /* Mayor área táctil */
        font-size: 1rem;
    }

    .input-field label {
        font-size: 0.9rem;
    }

    /* Botón más grande y fácil de pulsar */
    form button {
        padding: 16px 12px;
        font-size: 1rem;
        margin-top: 15px;
        border-radius: 14px;
    }

    /* Ajustes para el toggle de contraseña */
    .toggle-password {
        font-size: 1.2rem;
        right: 12px;
    }

    /* Enlaces inferiores */
    .bottom-link {
        margin-top: 18px;
        font-size: 0.95rem;
    }

    /* ===== BOTÓN DE CERRAR POPUP ===== */
    .form-popup .close-btn {
        top: 12px;
        right: 15px;
        font-size: 26px;
        background: rgba(255,255,255,0.3);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #333;
    }

    .form-popup .close-btn:hover {
        transform: rotate(90deg);
        background: rgba(255,255,255,0.8);
    }

    /* ===== FIX PARA BACKGROUND EN MÓVIL ===== */
    body {
        background-attachment: fixed; /* Mejora en iOS */
        background-position: center;
    }

    /* ===== PÁGINA DE REGISTRO ===== */
    .registro-page .input-field label {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/* ===== PANTALLAS MUY PEQUEÑAS ( < 480px ) ===== */
@media (max-width: 480px) {
    .navbar .logo h2 {
        display: none; /* Ocultamos el texto del logo en pantallas muy pequeñas para ahorrar espacio */
    }

    .navbar .logo img {
        width: 45px;
    }

    .navbar .login-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .navbar .hamburger-btn {
        font-size: 1.8rem;
    }

    /* Menú deslizante más compacto */
    .navbar .links a {
        font-size: 1.3rem;
    }

    /* Popup aún más ajustado */
    .form-popup {
        max-width: 95%;
    }

    .form-box .form-details {
        padding: 25px 15px 20px 15px;
        min-height: 140px;
    }

    .form-box .form-details h2 {
        font-size: 1.5rem;
    }

    .form-box .form-details p {
        font-size: 0.8rem;
    }

    .form-content {
        padding: 25px 15px;
    }

    .form-content h2 {
        font-size: 1.4rem;
    }

    .input-field {
        margin-bottom: 18px;
    }
}


@media (min-width: 951px) and (max-width: 1200px) {
    .navbar {
        max-width: 95%;
        padding: 10px 18px;
    }

    .navbar .links {
        gap: 20px;
    }

    .navbar .links a {
        font-size: 0.95rem;
    }
}

/* Glow dorado general */
.glow-gold {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                0 0 30px rgba(255, 215, 0, 0.2);
}

.blur-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 50;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}

footer {
    text-align: center;
    padding: 25px 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid rgba(255,215,0,0.1);
}

/* =====================================================
   HERO MUNDIAL 2026
===================================================== */
.hero-mundial {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
    position: relative;

    /* MISMO FONDO PRINCIPAL */
    background: url("../images/wallpaper.jpg") center/cover no-repeat fixed;
    overflow: hidden;
}

/* Overlay oscuro elegante */
.hero-mundial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.75) 50%,
        rgba(0,0,0,0.9) 100%
    );
}

/* Brillo dorado sutil */
.hero-mundial::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255,215,0,0.08), transparent 60%);
}

/* Asegurar que el contenido quede arriba */
.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeHero 1s ease forwards;
}

.hero-mundial h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.hero-mundial p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 50px;
}

/* =====================
   COUNTDOWN
===================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.time-box {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 18px;
    padding: 25px 30px;
    min-width: 110px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255,215,0,0.1);
    transition: 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255,215,0,0.25);
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
}

.time-box small {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =====================
   BOTÓN HERO
===================== */
.hero-btn {
    padding: 16px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #fff2b0, #FFD700);
}

/* =====================
   ANIMACIÓN ENTRADA
===================== */
@keyframes fadeHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .hero-mundial h1 {
        font-size: 2.2rem;
    }

    .time-box {
        padding: 18px;
        min-width: 85px;
    }

    .time-box span {
        font-size: 1.8rem;
    }
}

/* =====================================================
   SECCIÓN ESTADÍSTICAS CON FONDO PRINCIPAL
===================================================== */

.stats-mundial {
    padding: 120px 20px;
    text-align: center;

    /* USAR MISMO FONDO DEL BODY */
    background: url("../images/wallpaper.jpg") center/cover no-repeat fixed;
    position: relative;
}

/* Overlay oscuro para que no pierda legibilidad */
.stats-mundial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}



.stats-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-box {
    flex: 1;
    min-width: 220px;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 35px rgba(255,215,0,0.2);
}

.stat-box h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 15px;
}

.stat-box p {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-box {
        padding: 30px 20px;
    }

    .stat-box h2 {
        font-size: 2.2rem;
    }
}

/* ================= INFORMACIÓN ESTILO ESTADIO ================= */

.info-mundial {
    position: relative;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    overflow: hidden;

    /* Fondo principal */
    background: url("../images/fondoInfo2.jpg") center/cover no-repeat fixed;
}

/* Overlay elegante */
.info-mundial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.75) 50%,
        rgba(0,0,0,0.88) 100%
    );
}

/* Contenedor limpio */
.info-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}


/* ================= SECCIÓN REVERSE ================= */

.info-mundial.reverse {
    background: url("../images/fondoInfo2.jpg") center/cover no-repeat fixed;
}

/* Fondo invertido visualmente */
.info-mundial.reverse::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.75) 50%,
        rgba(0,0,0,0.88) 100%
    );
}

/* TEXTO */

.info-text {
    flex: 1;
    color: #f5f5f5;
}

.info-text h2 {
    font-size: 2.8rem;   /* MÁS GRANDE */
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-intro {
    font-size: 1.1rem;   /* MÁS GRANDE */
    margin-bottom: 25px;
    line-height: 1.8;
    color: #dddddd;
}

.info-desc {
    font-size: 1.05rem;  /* MÁS GRANDE */
    line-height: 1.8;
    margin-bottom: 30px;
    color: #cccccc;
}

.info-list {
    margin-bottom: 30px;
}

.info-list li {
    list-style: none;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
    font-size: 1rem;   /* MÁS GRANDE */
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
}

/* BOTÓN OFICIAL */

.btn-oficial {
    display: inline-block;
    padding: 12px 26px;
    background: linear-gradient(90deg, #FFD700, #e6b800);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 0.95rem;
}

.btn-oficial:hover {
    box-shadow: 0 0 25px rgba(255,215,0,0.6);
    transform: translateY(-2px);
}

/* IMAGEN */

.info-image {
    flex: 1;
}

.info-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(255,215,0,0.15);
}

/* ===================================================== */
/* ================== SECCIÓN REVERSE ================== */
/* ===================================================== */

/* Forzamos estructura flex clara */
.info-mundial.reverse {
    display: flex;
    align-items: center;
}

/* Contenedor en modo fila */
.info-mundial.reverse .info-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 70px;
    width: 100%;
}

/* Aseguramos proporciones correctas */
.info-mundial.reverse .info-text,
.info-mundial.reverse .info-image {
    flex: 1;
}

/* Ajuste visual opcional para que el texto quede bien alineado */
.info-mundial.reverse .info-text {
    text-align: left;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .info-mundial.reverse .info-container {
        flex-direction: column;
        text-align: center;
    }

}

/* ==============================
   SCROLLBAR GLOBAL (PÁGINA ENTERA)
============================== */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.45);
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.75);
}
/* =====================================================
   MODAL TÉRMINOS PREMIUM (CORREGIDO Y ESTÉTICO)
===================================================== */

#termsModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999 !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#termsModal.active {
    display: flex;
}

/* CONTENEDOR */
.terms-content {
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
    border-radius: 22px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TÍTULO */
.terms-content h2 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #FFD700, #fff2b0, #FFD700);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* SCROLL INTERNO */
.terms-scroll {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    margin-bottom: 25px;
}

/* TEXTO */
.terms-scroll p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.85);
}

/* BOTÓN ACEPTAR */
#acceptTermsBtn {
    align-self: center;
    padding: 14px 40px;
    border-radius: 40px;
    border: none;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient(135deg, #FFD700, #e6b800);
    color: #111;
    transition: 0.3s ease;
}

#acceptTermsBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255,215,0,0.5);
}

/* BOTÓN CERRAR */
.close-terms {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: #FFD700;
    transition: 0.3s ease;
}

.close-terms:hover {
    transform: rotate(90deg) scale(1.1);
    color: #fff;
}

/* SCROLL DORADO */
.terms-scroll::-webkit-scrollbar {
    width: 6px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(#FFD700, #e6b800);
    border-radius: 10px;
}
/* =====================================================
   COLOR TEXTO TÉRMINOS (FONDO OSCURO)
===================================================== */

.terms-content h3 {
    color: #ffffff; /* blanco puro */
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.terms-content p {
    color: rgba(255,255,255,0.85);
}