/* Estructura del Modal Quickview */
.mqe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mqe-modal.mqe-active {
    opacity: 1;
    visibility: visible;
}

/* Fondo oscuro */
.mqe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

/* Contenido del Modal */
.mqe-modal-container {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    z-index: 2;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mqe-modal.mqe-active .mqe-modal-container {
    transform: translateY(0);
}

/* Bot車n de Cerrar */
.mqe-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f1f1f1;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.mqe-close-btn:hover {
    background-color: #e0e0e0;
}

/* Cargador / Spinner */
.mqe-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.mqe-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: mqe-spin 0.8s linear infinite;
}

@keyframes mqe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== Botón Cerrar Quickview ===== */
#mqe-quickview-modal .mqe-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #111111 !important;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#mqe-quickview-modal .mqe-close-btn:hover {
    background-color: #02bfa9 !important; /* rojo al hover, cámbialo si quieres */
    color: #ffffff !important;
    transform: scale(1.05);
}

#mqe-quickview-modal .mqe-close-btn:focus {
    outline: none;
}