/* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    max-width: 80%;
}

#lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

#lightbox-caption p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2001;
}

.close:hover {
    color: #bbb;
}

.lightbox-controls {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 2000;
    pointer-events: none;
}

.prev-btn, .next-btn {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive para el lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .prev-btn, .next-btn {
        font-size: 18px;
        padding: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Estilos para mejorar la visualización de imágenes en la galería */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra-elemento);
    transition: var(--transicion);
    position: relative;
    height: 300px;
    cursor: pointer;
} 