/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
 
}




html,
body {
    width: 100%;
    min-height: 100vh;
    /* No usar height: 100% porque eso bloquea scroll */
    overflow-x: hidden;   background-color: rgb(124, 180, 226);
}
.page-background {
    position: fixed;
    inset: 0;
    background: url('../img/tardeo.jpg') bottom center / cover no-repeat;
    z-index: 0;
    animation: zoomUpLoop 8s ease-in-out infinite;
}

@keyframes zoomUpLoop {
    0% {
        background-size: 80% auto;
        background-position: bottom center;
    }

    50% {
        background-size: 120% auto;
        background-position: top center;
    }

    100% {
        background-size: 80% auto;
        background-position: bottom center;
    }
}



/* Popup modal */
.popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
}
/* Contenido del popup */
.popup-content {
    position: relative;
    width: 92%;
    max-width: 600px;
    height: 90vh;
    max-height: 500px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Video */



/* Overlay */
.popup-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: white;
    
}

/* Textos */
.popup-text h2 {
    font-size: 1.8rem;
    margin-top: 50px;
}

.popup-text h3 {
    font-weight: normal;
    opacity: .85;
}

.popup-text p {
    margin-top: 10px;
    font-size: .9rem;
}

.countdown {
    font-size: 1.4rem;
    font-weight: bold;
}

.cta {
    font-size: .95rem;
}

/* Botones */
.btn-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-sonido {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
   
}



@media (max-width: 768px) {
    .page-background {
        background: url('../img/verticaltardeo.jpg') center top / 150% auto no-repeat;
        animation: zoomUpLoopMobile 6s ease-in-out infinite;
    }

    @keyframes zoomUpLoopMobile {
        0% {
            background-size: 150% auto;
            background-position: center bottom;
        }

        50% {
            background-size: 160% auto;
            background-position: center top;
        }

        100% {
            background-size: 150% auto;
            background-position: center bottom;
        }
    }

    /* 🔽 Ajustes para el popup en móvil */
    .popup-content {
        width: 94%;
        max-width: 400px;
        /* más pequeño */
        height: 82vh;
        /* menos alto */
        max-height: 420px;
        /* límite más compacto */
        border-radius: 18px;
        /* bordes un poco menos redondeados */
    }

    .popup-overlay {
        padding: 16px;
        /* menos padding */
    }

    .popup-text h2 {
        font-size: 1.45rem;
        /* más pequeño */
        margin-top: 24px;
        /* menos espacio arriba */
    }

    .popup-text h3 {
        font-size: 1.05rem;
        /* ajustado */
        opacity: 0.8;
    }

    .countdown {
        font-size: 1.2rem;
        /* más compacto */
    }

    .cta {
        font-size: 0.88rem;
        margin-top: 4px;
    }

    /* Botón de play más equilibrado en móvil */
    .btn-video {
        width: 48px;
        height: 48px;
    }

    .btn-video i {
        font-size: 22px;
        margin-left: 2px;
    }

    /* Botón de sonido más pequeño */
    .btn-sonido {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Footer más compacto */
    #footer {
        font-size: 0.72rem;
        padding-top: 6px;
    }

    .footer-links a {
        padding: 0 3px;
    }
}



/********video******/

/* BOTÓN VIDEO */
.btn-video {
    position: relative;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #ffd77a, #ffc451);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* Sombra base */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.45),
        0 0 0 0 rgba(255, 196, 81, 0.6);

    /* Animación */
    animation: pulseVideo 2s infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Icono play */
.btn-video i {
    font-size: 30px;
    color: #000;
    margin-left: 3px;
    /* efecto play centrado */
}

/* Hover desktop */
.btn-video:hover {
    transform: scale(1.15);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 0 12px rgba(255, 196, 81, 0);
}

/* ANIMACIÓN PULSE */
@keyframes pulseVideo {
    0% {
        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(255, 196, 81, 0.6);
    }

    70% {
        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.45),
            0 0 0 18px rgba(255, 196, 81, 0);
    }

    100% {
        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(255, 196, 81, 0);
    }
}

@media (max-width: 768px) {
    .btn-video {
        width: 54px;
        height: 54px;
    }

    .btn-video i {
        font-size: 24px;
    }
}





/*****modal con video*****/

/* =========================
   VIDEO MODAL DENTRO POPUP
========================= */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


/* =========================
   MODAL VIDEO (CORREGIDO)
========================= */

#videoModal {
    position: fixed;
    /* ✅ Cambiado a fixed para que sea fullscreen y responsive */
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    /* ❌ Elimina los margin fijos: margin-left y margin-top */
}

#videoModal .modal-content {
    position: relative;
    /* ✅ Necesario para que el botón de cierre se posicione dentro */
    width: 85%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #ffc451;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 0 6px rgba(255, 196, 81, 0.15);
    animation: videoPop 0.35s ease;
}

#videoModal .close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    /* ✅ Ajustado para que no salga del borde */
    width: 34px;
    height: 34px;
    background: #ffc451;
    color: #000;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    /* ✅ Agrega cursor pointer */
}