/* =========================================
   VISTA: VIDEO INTRODUCTORIO (RESPONSIVO MÓVIL)
   ========================================= */

/* Bloquea la navegación e interacción del index */
body.video-active {
    overflow: hidden !important;
}

.video-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Adapta el alto al área real visible en celulares */
    background-color: #000000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Botón X de Cierre */
.close-video-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(10, 27, 61, 0.9);
    color: #FFFFFF;
    border: 2px solid #E31B23;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Botón de Sonido (Flotante y Adaptable) */
.toggle-sound-btn {
    position: absolute;
    bottom: 35px;
    right: 30px;
    background: rgba(10, 27, 61, 0.9);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1000000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.close-video-btn:hover,
.toggle-sound-btn:hover {
    background: #E31B23;
    border-color: #E31B23;
    transform: scale(1.05);
}

/* =========================================
   ADAPTACIÓN RESPONSIVA PARA TELÉFONOS
   ========================================= */
@media (max-width: 768px) {
    .close-video-btn {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    /* Centrado inferior en celulares para librar barras de navegador */
    .toggle-sound-btn {
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        font-size: 0.85rem;
        width: max-content;
    }

    .toggle-sound-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }
}