/* ===================================
   CARRUSEL DE IMÁGENES - LIGHTBOX
   =================================== */

/* Lightbox modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

/* Imagen dentro del lightbox */
.lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 90vh;
    width: 50%;
    height: 50%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Botón de cerrar */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

/* Contenedor de botones de navegación */
.nav-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: calc(90vh * 1.5 + 100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10001;
}

/* Botones de navegación */
.nav-buttons button {
    background: rgba(195, 36, 32, 0.9);
    color: white;
    border: none;
    padding: 15px;
    font-size: 15x;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-buttons button:hover {
    background: rgba(195, 36, 32, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(195, 36, 32, 0.4);
}

.nav-buttons button:active {
    transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 768px) {
    .lightbox img {
        max-width: 92vw;
        max-height: 85vh;
    }
    
    .nav-buttons {
        width: calc(92vw + 80px);
        max-width: calc(85vh * 1.5 + 80px);
    }
    
    .nav-buttons button {
        width: 45px;
        height: 45px;
        font-size: 18px;
        padding: 12px;
    }
    
    .close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .lightbox img {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .nav-buttons {
        width: calc(90vw + 70px);
        max-width: calc(80vh * 1.5 + 70px);
    }
    
    .nav-buttons button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* ===================================
   EFECTOS HOVER PARA IMÁGENES
   =================================== */

/* Imagen principal clickeable */
.main-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(195, 36, 32, 0.3);
    cursor: pointer;
}

/* Thumbnails clickeables */
.thumbnail {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 6px;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #c32420;
    box-shadow: 0 4px 15px rgba(195, 36, 32, 0.4);
    cursor: pointer;
}