/* CSS para la sección "Nuestros Videos" */
.nuestros-videos-section {
    /*padding: 200px 0;*/
    font-family: 'Inter', sans-serif;
    background-color: #fff;
}

.nv-container {
    max-width: 1352px;
    margin: 128px auto;
    padding: 0 0px;
    gap: 80px;
    display: flex;
    flex-direction: column;
}

.nv-title {
    color: #006747;
    font-family: 'Neuzeit S LT Std';
    font-size: 48px;
    font-weight: 850;
    line-height: 56px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.nv-layout {
    display: flex;
    flex-wrap: wrap;
    /* Para responsive */
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

/* Main Display */
.nv-main-display {
    flex: 1.5;
    position: relative;
    height: 500px;
    background-color: #000;
    cursor: pointer;
}

.nv-main-display img,
.nv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.nv-lazy-img {
    opacity: 0;
}

.nv-play-button-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.nv-play-button-main::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 8px;
}

.nv-main-display:hover .nv-play-button-main {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

/* Vertical List */
.nv-list-container {
    flex: 1;
    height: 500px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    display: flex;
    flex-direction: column;
}

.nv-list-container::-webkit-scrollbar {
    width: 6px;
}

.nv-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nv-list-container::-webkit-scrollbar-thumb {
    background: #006747;
}

.nv-card {
    display: flex;
    min-height: calc(500px / 3);
    background-color: #A9C7B6;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    border-bottom: 2px solid #fff;
}

.nv-card:last-child {
    border-bottom: none;
}

.nv-card.active {
    background-color: #006747;
}

.nv-card.active .nv-card-name {
    color: #fff;
}

.nv-card.active .nv-card-date {
    color: #fff;
    opacity: 0.9;
}

.nv-card-thumb {
    flex: 1;
    position: relative;
}

.nv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-card-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 50px solid #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nv-card-content {
    flex: 1.2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nv-card-name {
    font-weight: 700;
    font-size: 19px;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
}

.nv-card-date {
    font-size: 13px;
    color: #333;
}

/* Modal Styles */
.nv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.nv-modal.open {
    display: flex;
}

.nv-modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 950px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    animation: nv-slide-up 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes nv-slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nv-modal-header {
    padding: 25px 40px;
    border-bottom: 1px solid #efefef;
}

.nv-modal-title {
    color: #006747;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.nv-modal-description {
    font-size: 15px;
    color: #444;
    margin: 0;
}

.nv-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 48px;
    color: var(--blanco-principal);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 100;
}

.nv-modal-close:hover {
    transform: scale(1.1);
}

.nv-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.nv-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .nv-main-display {
        flex: 100%;
        height: 400px;
    }

    .nv-list-container {
        flex: 100%;
        height: 500px;
    }

    .nv-title {
        text-align: center;
    }

    .nv-container {
        gap: 36px;
    }
}