/* Modal de Video */
.modal-video {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-video.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-video-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #E38447;
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cursor pointer en el video-wrapper */
.video-wrapper {
    cursor: pointer;
    position: relative;
}

.video-wrapper:hover .play-button svg circle {
    stroke: #213769;
}

.video-wrapper:hover .play-button svg polygon {
    fill: #213769;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-video-content {
        width: 95%;
    }
    
    .modal-close {
        top: -35px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: -30px;
        right: -5px;
        font-size: 30px;
    }
}