/* =====================================================
   AMINOVITA - Tema de Alertas (SweetAlert2)
   Aplica el lenguaje visual de marca (degradado morado→menta)
   a TODAS las alertas del sitio sin tocar cada llamada individual.
   ===================================================== */


/* ── VENTANA PRINCIPAL ────────────────────────────── */

.swal2-popup {
    border-radius: 20px !important;
    font-family: inherit !important;
    box-shadow: 0 20px 50px rgba(11, 38, 57, 0.15) !important;
    position: relative;
    overflow: hidden;
    padding-top: 2.2rem !important;
}

/* Barra de acento superior, igual a las tarjetas de login/registro */
.swal2-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8A8AF6 0%, #6CDBE3 100%);
}

.swal2-title {
    color: #0b2639 !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.swal2-html-container {
    color: #5a6b76 !important;
}


/* ── BOTONES ──────────────────────────────────────── */

.swal2-styled.swal2-confirm {
    background: linear-gradient(90deg, #8A8AF6 0%, #6CDBE3 100%) !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(138, 138, 246, 0.3) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(108, 219, 227, 0.4) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(138, 138, 246, 0.3) !important;
}

.swal2-styled.swal2-cancel {
    background: #f1f3f5 !important;
    color: #5a6b76 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-cancel:hover {
    background: #e9ecef !important;
}

.swal2-styled.swal2-deny {
    background: #ff6b6b !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
}


/* ── ÍCONOS ───────────────────────────────────────── */

.swal2-icon.swal2-success {
    border-color: rgba(46, 204, 113, 0.3) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(46, 204, 113, 0.3) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #2ecc71 !important;
}

.swal2-icon.swal2-error {
    border-color: #ffdcdc !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff6b6b !important;
}

.swal2-icon.swal2-warning {
    border-color: #fdeacb !important;
    color: #f39c12 !important;
}

.swal2-icon.swal2-info {
    border-color: #e3e1fc !important;
    color: #8A8AF6 !important;
}

.swal2-icon.swal2-question {
    border-color: #d9f5f6 !important;
    color: #2fb8c2 !important;
}


/* ── LOADER (Swal.showLoading) ───────────────────── */

.swal2-loader {
    border-color: #8A8AF6 transparent #6CDBE3 transparent !important;
}


/* ── TOASTS (notificaciones rápidas: favoritos, cotización) ── */

.swal2-popup.swal2-toast {
    border-radius: 14px !important;
    box-shadow: 0 8px 25px rgba(11, 38, 57, 0.12) !important;
    padding-top: 0.75rem !important;
}

/* La barra de acento no aplica al formato compacto de toast */
.swal2-popup.swal2-toast::before {
    display: none;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #8A8AF6 0%, #6CDBE3 100%) !important;
}
