/* ===== SWEETALERT2 CON FONT AWESOME - SIMPLE ===== */

/* Popup básico */
.swal2-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.swal2-backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* === BOTONES PERSONALIZADOS === */
.custom-swal-confirm {
    background: #dc3545 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.custom-swal-confirm:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
}

.custom-swal-cancel {
    background: #6c757d !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.custom-swal-cancel:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
}

/* === TOAST NOTIFICATIONS === */
.swal2-toast {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 12px 16px !important;
}

/* Toast Success */
.swal2-toast.swal2-icon-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    border-left: 4px solid #28a745 !important;
    color: #155724 !important;
}

/* Toast Error */
.swal2-toast.swal2-icon-error {
    background: linear-gradient(135deg, #f8d7da, #f1b2b7) !important;
    border-left: 4px solid #dc3545 !important;
    color: #721c24 !important;
}

/* Toast Warning */
.swal2-toast.swal2-icon-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border-left: 4px solid #ffc107 !important;
    color: #856404 !important;
}

/* Toast Info */
.swal2-toast.swal2-icon-info {
    background: linear-gradient(135deg, #d1ecf1, #b8daff) !important;
    border-left: 4px solid #17a2b8 !important;
    color: #0c5460 !important;
}

/* === ICONOS CON FONT AWESOME === */
.swal2-toast .swal2-icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 8px 0 0 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

/* Ocultar iconos nativos de SweetAlert2 */
.swal2-toast .swal2-icon *,
.swal2-toast .swal2-success-line,
.swal2-toast .swal2-x-mark,
.swal2-toast .swal2-icon-text {
    display: none !important;
}

/* Usar Font Awesome para los iconos */
.swal2-toast .swal2-icon.swal2-success {
    background: #28a745 !important;
    color: white !important;
}

.swal2-toast .swal2-icon.swal2-success::before {
    content: '\f00c' !important; /* fa-check */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

.swal2-toast .swal2-icon.swal2-error {
    background: #dc3545 !important;
    color: white !important;
}

.swal2-toast .swal2-icon.swal2-error::before {
    content: '\f00d' !important; /* fa-times */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

.swal2-toast .swal2-icon.swal2-warning {
    background: #ffc107 !important;
    color: #856404 !important;
}

.swal2-toast .swal2-icon.swal2-warning::before {
    content: '\f071' !important; /* fa-exclamation-triangle */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

.swal2-toast .swal2-icon.swal2-info {
    background: #17a2b8 !important;
    color: white !important;
}

.swal2-toast .swal2-icon.swal2-info::before {
    content: '\f05a' !important; /* fa-info-circle */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

/* === TÍTULOS Y TEXTO === */
.swal2-toast .swal2-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.swal2-toast .swal2-content {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* === BARRA DE PROGRESO === */
.swal2-toast .swal2-timer-progress-bar {
    height: 3px !important;
}

.swal2-toast.swal2-icon-success .swal2-timer-progress-bar {
    background: #28a745 !important;
}

.swal2-toast.swal2-icon-error .swal2-timer-progress-bar {
    background: #dc3545 !important;
}

.swal2-toast.swal2-icon-warning .swal2-timer-progress-bar {
    background: #ffc107 !important;
}

.swal2-toast.swal2-icon-info .swal2-timer-progress-bar {
    background: #17a2b8 !important;
}

/* === LOADING === */
.custom-swal-loading .swal2-loader {
    border-color: #007bff transparent #007bff transparent !important;
    width: 40px !important;
    height: 40px !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .swal2-popup {
        margin: 15px !important;
        max-width: calc(100% - 30px) !important;
    }

    .swal2-toast {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .custom-swal-confirm,
    .custom-swal-cancel {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* === HOVER EFFECTS === */
.swal2-toast:hover {
    transform: translateY(-1px) !important;
    transition: transform 0.2s ease !important;
}