/**
 * ESTILOS PARA ZOOM SIMPLE DE IMÁGENES
 * Minimalista y fácil de implementar
 */

/* Modal de zoom */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-modal.active {
    display: flex;
    opacity: 1;
}

/* Overlay oscuro */
.zoom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

/* Contenedor del contenido */
.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
}

/* Imagen ampliada */
.zoom-modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Botón de cerrar */
.zoom-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.zoom-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Cursor para imágenes */
.producto-individual-img,
.software-img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

/* Solo aplicar hover a imágenes únicas o imágenes activas del carousel */
.producto-individual-img:hover,
.software-img.active:hover {
    opacity: 0.9;
}

/* Asegurar que solo la imagen activa sea clickeable y visible */
.software-imagen-container .software-img:not(.active) {
    pointer-events: none;
    z-index: 1;
}

.software-imagen-container .software-img.active {
    pointer-events: auto;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .zoom-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .zoom-modal-image {
        max-width: 95vw;
        max-height: 95vh;
    }
}
