/* ===== VISOR ===== */
.viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.95);
    /* ✅ fondo claro para transparencias */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    /* ✅ mantiene toda la imagen visible */
    background-color: #f5f5f5;
    /* fondo para transparencias dentro del visor */
    animation: zoom 0.25s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.viewer.hidden {
    display: none;
}

#viewer-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 45px;
    color: black;
    /* ✅ contraste con fondo claro */
    cursor: pointer;
    font-weight: bold;
}

/* ===== EFECTO HOVER GALERÍAS ===== */
.product-img,
.client-img {
    cursor: pointer;
    transition: 0.2s;
}

.product-img:hover,
.client-img:hover {
    transform: scale(1.05);
}

/* ===== WRAPPERS PARA CLIENTES ===== */
.client-wrapper {
    background-color: #f5f5f5;
    /* fondo uniforme para transparencias */
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-img {
    width: 100%;
    height: 140px;
    /* tamaño ajustado */
    object-fit: contain;
    /* mantiene proporción completa */
    border-radius: 6px;
    background-color: #f5f5f5;
    /* refuerzo de fondo para transparencias */
}

/* ===== WRAPPERS PARA PRODUCTOS (opcional) ===== */
.product-wrapper {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 160px;
    /* ajusta según prefieras */
    object-fit: contain;
    border-radius: 6px;
    background-color: #f5f5f5;
}