/* ============================================
   MI CARDO - CUSTOM ALERTS STYLES
   Estilos para alertas y modales personalizados
   ============================================ */

/* ============ CUSTOM ALERT (Toast notifications) ============ */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    animation: alertSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.custom-alert::before {
    font-size: 20px;
    flex-shrink: 0;
}

@keyframes alertSlideIn {
    from {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes alertSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

.custom-alert--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255,255,255,0.2);
}

.custom-alert--success::before {
    content: '✓';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.custom-alert--error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255,255,255,0.2);
}

.custom-alert--error::before {
    content: '✕';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.custom-alert--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(255,255,255,0.2);
    color: #1a1a1a;
}

.custom-alert--warning::before {
    content: '⚠';
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.custom-alert--info {
    background: linear-gradient(135deg, var(--scottish-blue) 0%, #004a99 100%);
    border: 1px solid rgba(255,255,255,0.2);
}

.custom-alert--info::before {
    content: 'ℹ';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ============ CUSTOM CONFIRM MODAL ============ */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: overlayFadeIn 0.3s ease-out;
    padding: 20px;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.custom-confirm-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.custom-confirm-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--scottish-blue), var(--thistle-purple), var(--scottish-blue));
}

@keyframes modalPopIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.custom-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.custom-confirm-icon--warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.custom-confirm-icon--danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.custom-confirm-icon--info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--scottish-blue);
    box-shadow: 0 4px 15px rgba(0, 94, 184, 0.3);
}

.custom-confirm-icon--success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.custom-confirm-title {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.custom-confirm-message {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    font-size: 15px;
}

.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-confirm-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.custom-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.custom-confirm-btn:hover::before {
    left: 100%;
}

.custom-confirm-btn--cancel {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text-dark);
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.custom-confirm-btn--cancel:hover {
    background: linear-gradient(145deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.custom-confirm-btn--confirm {
    background: linear-gradient(135deg, var(--scottish-blue) 0%, #004a99 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 94, 184, 0.3);
}

.custom-confirm-btn--confirm:hover {
    background: linear-gradient(135deg, #004a99 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 94, 184, 0.4);
}

.custom-confirm-btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.custom-confirm-btn--danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.custom-confirm-btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.custom-confirm-btn--success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.custom-confirm-btn--gold {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.custom-confirm-btn--gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .custom-alert {
        left: 15px;
        right: 15px;
        max-width: none;
        padding: 14px 18px;
        font-size: 13px;
        border-radius: 12px;
    }

    .custom-alert::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .custom-confirm-modal {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .custom-confirm-title {
        font-size: 18px;
    }

    .custom-confirm-message {
        font-size: 14px;
    }

    .custom-confirm-buttons {
        flex-direction: column;
    }

    .custom-confirm-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .custom-confirm-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
