/* Sistema de Notificaciones Toast */

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--gris-oscuro);
    color: var(--blanco);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideUp 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    animation: slideDown 0.3s ease-out forwards;
}

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

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

/* Tipos de Toast */
.toast.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.toast.error {
    background: linear-gradient(135deg, #F44336 0%, #E53935 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.toast.info {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
}

/* Icono del Toast */
.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Mensaje del Toast */
.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Botón de cerrar */
.toast-close {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .toast-container {
        bottom: 15px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}
