/* Reproductor superpuesto */
.video-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-player-overlay.active {
    opacity: 1;
    visibility: visible;
}
                
.reproductor-video {
    background: var(--negro-general);
    color: white;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-player-overlay.active .reproductor-video {
    transform: scale(1);
}

.close-player-video {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--amarillo-general);
    border: none;
    color: var(--negro-general);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-player-video:hover {
    background: var(--amarillo-hover);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
    text-align: center;
}

.video-title {
    font-size: 2rem;
    color: var(--amarillo-general);
}

.video-source {
    color: #b8b8d1;
    font-size: 1rem;
    display: none;
}

@media (max-width: 768px) {

    .reproductor-video {
        width: 95%;
    }

}

@media (max-width: 576px) {

    .video-title {
        font-size: 1.5rem;
    }

}