/* css/videos-page.css */

/* --- Estilos para la Sección de Video Destacado (Full-Width) --- */
.video-destacado-full-width {
    width: 100%;
    background-color: #f8f9fa; /* Un fondo gris claro */
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.video-destacado-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-player-destacado .video-responsive-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15); 
    background-color: #000;
}

.video-info-destacado h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8em;
    color: #0A2463; /* Azul oscuro */
    margin-bottom: 15px;
    line-height: 1.2;
}

.video-info-destacado p {
    font-family: 'Lato', sans-serif;
    font-size: 1.15em;
    line-height: 1.7;
    color: #555; /* Gris oscuro */
    margin-bottom: 25px;
}

/* --- Estilos para la Galería de Videos --- */
.seccion-videoteca .encabezado-pagina-interna {
    margin-bottom: 50px;
}

.cuadricula-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 36, 99, 0.4); /* Superposición azul */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.play-icon::before {
    content: '▶';
    font-size: 24px;
    color: #0A2463;
    transform: translateX(2px);
}

.video-card:hover .play-icon {
    transform: scale(1.1);
}


.video-info {
    padding: 20px;
}

.video-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    color: #0A2463;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-info p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Modal para reproducir video */
.modal-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-video.visible {
    opacity: 1;
    visibility: visible;
}

.modal-video-contenido {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.modal-video-contenido video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.modal-video-cerrar {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* --- Media Queries --- */
@media (max-width: 992px) {
    .video-destacado-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .video-destacado-full-width { padding: 40px 0; }
    .video-info-destacado h2 { font-size: 2.2em; }
}