/* ================================
   GALERÍA DE VÍDEOS
================================ */

.galeria {
    padding: 80px 0;
}

.video-galeria {
}

/* Fila de vídeos (Bootstrap row) */
.video-row {
    justify-content: center;
}

.video-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   TARJETA DE VÍDEO
================================ */

.video-card {
    text-align: center;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
    transition: transform .3s ease;
}

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

.video-titulo {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.video-year {
    font-size: 11px;
    color: #777;
}

/* ================================
   MODAL
================================ */

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
}

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

/* ================================
   RESPONSIVE AJUSTES FINOS
================================ */

@media (max-width: 576px) {
    .video-card img {
        max-width: 320px;
    }
}
