/* =========================================
   LIGHTBOX - ESTILO FINAL
========================================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow: auto;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    max-width: 1280px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Imagen */
.lightbox-image {
    flex: 1;
    min-height: 500px;
    background: #dedbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Panel de información */
.lightbox-info {
    flex: 1;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    max-width: 520px;
    overflow-y: auto;
     background: #dedbdb;
}

.lightbox-info .close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.lightbox-info h2 {
    font-size: 1.65rem;
    margin: 0 0 20px 0;
    color: #111;
}

.lb-caption,
.lb-concept,
.lb-inspiration {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 25px;
}

/* Metadatos */
.lb-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.98rem;
    color: #555;
}

.lb-meta p {
    margin: 6px 0;
}

/* Controles inferior */
.lightbox-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.lb-prev, .lb-next {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #777;
    cursor: pointer;
}

.lb-counter {
    font-size: 1.1rem;
    color: #888;
}



/* =========================================
   BOTÓN MUTE - SIN FONDO NEGRO
========================================= */

.lightbox-music .mute-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px;
    border-radius: 50%;
    font-size: 2.4rem;
    color: #eeeeee;
    transition: all 0.2s ease;
}

.lightbox-music .mute-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* Si aún persiste algún fondo, forzamos más */
.lightbox-music .mute-btn,
.lightbox-music .mute-btn:focus,
.lightbox-music .mute-btn:active {
    background: transparent !important;
    border: 0 !important;
    outline: none !important;

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
    .lightbox-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .lightbox-image {
        min-height: 320px;
        padding: 15px;
        background-color: var(--bg-color);
    }
    
    .lightbox-info {
        padding: 30px 25px;
        max-width: 100%;
        background-color: var(--bg-color);
    }
}

@media (max-width: 600px) {
    .lightbox-image {
        min-height: 280px;
    }
}
}/* ====================== RESPONSIVE LIGHTBOX ====================== */

@media (max-width: 900px) {
    .lightbox-content {
        flex-direction: column !important;
        max-height: 95vh;
    }

    .lightbox-image {
        min-height: 340px;
        padding: 15px;
        order: 1;                    /* imagen primero */
    }

    .lightbox-info {
        padding: 25px 20px;
        max-width: 100%;
        order: 2;                    /* texto después */
        overflow-y: auto;
    }

    .lightbox-info h2 {
        font-size: 1.45rem;
        margin-bottom: 15px;
    }

    .lb-concept,
    .lb-inspiration {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

@media (max-width: 600px) {
    .lightbox-image {
        min-height: 280px;
    }
}

/* =========================================
   KEN BURNS EFECTO COMPLETO (Zoom + Pan sutil)
========================================= */

.lightbox.active .lightbox-image img {
    animation: kenBurnsFull 15s ease-in-out forwards !important;
}

@keyframes kenBurnsFull {
    0%   { 
        transform: scale(0.9) translate(0px, 0px); 
    }
    50%  { 
        transform: scale(0.95) translate(12px, -8px);   /* zoom + pequeño desplazamiento */
    }
    100% { 
        transform: scale(1.00) translate(0px, 0px); 
    }
}