/* ========================================
   TOAST MESSAGES — CENTRO DE PANTALLA
   ======================================== */

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 9999;
    animation: toastFadeIn 0.2s ease;
}

@keyframes toastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toast-modal {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-left: 5px solid;
    animation: toastSlideIn 0.3s ease;
    position: relative;
}

@keyframes toastSlideIn {
    from { transform: scale(0.9) translateY(-10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Variantes */
.toast-success {
    border-left-color: #16a34a;
}

.toast-success .toast-icon {
    color: #16a34a;
}

.toast-error {
    border-left-color: #DC2626;
}

.toast-error .toast-icon {
    color: #DC2626;
}

.toast-warning {
    border-left-color: #D97706;
}

.toast-warning .toast-icon {
    color: #D97706;
}

.toast-info {
    border-left-color: #2563EB;
}

.toast-info .toast-icon {
    color: #2563EB;
}

.toast-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.toast-body {
    flex: 1;
    font-size: 0.92rem;
    color: #1F2937;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #F3F4F6;
    color: #374151;
}



/* Responsive */
@media (max-width: 576px) {
    .toast-modal {
        min-width: 280px;
        max-width: 90vw;
        padding: 1rem;
    }
}