﻿.toast-host {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
}

/* tarjeta */
.toast-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    animation: toastIn .18s ease-out;
}

.toast-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
    letter-spacing: .2px;
}

.toast-msg {
    font-size: 13px;
    opacity: .95;
    line-height: 1.25rem;
    word-break: break-word;
}

.toast-close {
    margin-left: 6px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 10px;
    opacity: .85;
}

    .toast-close:hover {
        opacity: 1;
        background: rgba(255,255,255,.12);
    }

/* tipos */
.t-ok {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.t-err {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.t-warn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.t-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* móvil */
@media (max-width: 540px) {
    .toast-host {
        left: 16px;
        right: 16px;
        width: auto;
    }
}
