/* ====================== GALERÍA 3D ESFERA + MODAL ====================== */
/* .galeria-3d {
    padding: 60px 0 40px 0;       
    background: #ffffff;
    text-align: center;
}

.galeria-3d h2 {
    color: #111;
    margin-bottom: 40px;          
    font-size: 2.6rem;
    font-weight: 800;
}

.sphere-container {
    perspective: 2000px;
    height: 580px;                 
    margin: 0 auto;
}

.sphere {
    width: 560px;                  
    height: 560px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    cursor: grab;
}

.sphere:active {
    cursor: grabbing;
}

.sphere-item {
    position: absolute;
    width: 210px;                  
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    backface-visibility: hidden;
    border: 3px solid #ffcc00;
}

.sphere-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sphere-item:hover img {
    transform: scale(1.1);
}

/* Responsive 
@media (max-width: 768px) {
    .galeria-3d {
        padding: 50px 0 30px 0;
    }
    .sphere-container {
        height: 460px;
    }
    .sphere {
        width: 400px;
        height: 400px;
    }
    .sphere-item {
        width: 160px;
        height: 115px;
    }
} */
/* ====================== MODAL POPUP ====================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    color: white;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    background: #ffcc00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal-close:hover {
    background: #ffd633;
    transform: scale(1.1);
}


.galeria-masonry {
    padding: 90px 0 70px 0;
    background: #0a0a0a;
    text-align: center;
}

.galeria-masonry h2 {
    text-align: center;
    color: #ffffff;                    
    margin-bottom: 55px;
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 15px rgba(255,204,0,0.3);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    aspect-ratio: 16 / 9;           
    background: #111;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;             
    object-position: center;        
    transition: transform 0.6s ease;
}
.masonry-item:hover img {
    transform: scale(1.08);
}

.masonry-item:hover {
    box-shadow: 0 25px 60px rgba(255, 204, 0, 0.45); 
    transform: translateY(-12px);
    border-color: #ffcc00;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.97);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.9);
}

.lightbox-close {
    position: absolute;
    top: 35px;
    right: 45px;
    color: #111;
    font-size: 50px;
    cursor: pointer;
    background: #ffcc00;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255,204,0,0.6);
    font-weight: bold;
}

.lightbox-close:hover {
    background: #ffd633;
    transform: scale(1.12);
}