/**
 * ESTILOS PARA MODAL DE EXPLICACIÓN DE EMPAQUETADO
 */

/* Modal contenedor principal (oculto por defecto) */
#modal-empaquetado-ayuda {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

/* Modal visible */
#modal-empaquetado-ayuda.modal-empaq-visible {
    display: block;
}

/* Overlay (fondo oscuro) */
.modal-empaq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-empaq-fade-in 0.3s ease;
}

@keyframes modal-empaq-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenedor de la imagen */
.modal-empaq-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modal-empaq-scale-in 0.3s ease;
}

@keyframes modal-empaq-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Botón cerrar (X) */
.modal-empaq-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: #90439e;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-empaq-close:hover {
    background: #7a3585;
    transform: rotate(90deg);
}

/* Imagen */
.modal-empaq-imagen {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 40px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .modal-empaq-container {
        max-width: 95%;
        padding: 15px;
    }
    
    .modal-empaq-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: -10px;
        right: -10px;
    }
    
    .modal-empaq-imagen {
        max-height: calc(90vh - 30px);
    }
}

/* Cursor pointer para el botón de ayuda */
.empaq-help {
    cursor: pointer !important;
    transition: transform 0.2s;
}

.empaq-help:hover {
    transform: scale(1.15);
}
