/* Lightbox Pantalla Completa */
.next-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 64px 24px 24px;
}
.next-lightbox.is-open {
    display: flex;
}
.next-lightbox-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 3;
}
.next-lightbox-counter {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}
.next-lightbox-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s ease;
}
.next-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
.next-lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.next-lightbox-img {
    max-width: min(92vw, 1320px);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
}
.next-lightbox-video-wrap {
    width: min(92vw, 1080px);
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    display: none;
}
.next-lightbox-video-wrap.is-active {
    display: block;
}
.next-lightbox-video-wrap iframe,
.next-lightbox-video-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.next-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    transition: background-color 0.2s ease;
}
.next-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.next-lightbox-nav.is-prev {
    left: 20px;
}
.next-lightbox-nav.is-next {
    right: 20px;
}
.next-lightbox-strip {
    display: flex;
    gap: 8px;
    max-width: 92vw;
    overflow-x: auto;
    padding: 12px 4px 0;
    flex-shrink: 0;
}
.next-lightbox-strip-btn {
    width: 64px;
    height: 46px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #1D1D1F;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.next-lightbox-strip-btn.is-active,
.next-lightbox-strip-btn:hover {
    opacity: 1;
}
.next-lightbox-strip-btn.is-active {
    border-color: #FFFFFF;
}
.next-lightbox-strip-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Impresión limpia */
@media print {
    header,
    footer,
    .site-header,
    .site-footer,
    .next-breadcrumb,
    .next-bento-actions,
    .next-single-sidebar,
    .next-mobile-bar,
    .next-lightbox {
        display: none !important;
    }
    .next-single-wrap {
        max-width: 100%;
        padding: 0;
    }
    .next-single-layout {
        grid-template-columns: 1fr;
    }
    .next-bento-grid {
        height: 320px;
    }
    .next-section {
        break-inside: avoid;
    }
    .next-admin-microbar {
        display: none !important;
    }
}
