/* Modal Full Screen */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo negro profundo para que no se pierda con tu web blanca */
    background-color: rgba(0, 0, 0, 0.92) !important; 
    z-index: 999999;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Contenedor del video */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1100px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Estilo base para escritorio (Flechas laterales) */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
    background: transparent;
    color: white !important;
    border: none;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000000;
    transition: 0.3s;
    display: none; 
}

.nav-arrow:hover { background: transparent }
.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* --- AJUSTES PARA CELULARES --- */
@media (max-width: 768px) {
    /* Hacemos el video un poco más ancho en móviles */
    .modal-content {
        width: 95%;
    }

    /* Movemos las flechas a la parte inferior para que no tapen el video */
    .nav-arrow {
        top: auto;
        bottom: 20px; /* Las bajamos */
        transform: none;
        width: 45%; /* Cada una ocupa casi la mitad del ancho */
        height: 50px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .prev-arrow {
        left: 2%;
        border-radius: 5px 0 0 5px;
    }

    .next-arrow {
        right: 2%;
        border-radius: 0 5px 5px 0;
    }

    /* Hacemos la X de cerrar un poco más pequeña para que no estorbe */
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

/* Botón Cerrar (X) plana */
.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white !important;
    font-size: 60px;
    font-weight: 200; /* Más fina y elegante */
    cursor: pointer;
    z-index: 1000001;
    line-height: 1;
}