/* ===== FluentSuggestionToast — sugerencia proactiva (top-right) ===== */

.suggestion-toast {
    position: fixed;
    top: 76px;
    right: 24px;
    z-index: 9500;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 360px;
    max-width: calc(100vw - 48px);
    padding: 14px 16px 14px 14px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid #2A70B0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 62, 145, 0.18),
                0 2px 6px rgba(0, 0, 0, 0.08);
    color: #323130;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    animation: suggestionSlideIn 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.suggestion-toast.is-leaving {
    animation: suggestionSlideOut 0.22s ease-in forwards;
}

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

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

.suggestion-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(42, 112, 176, 0.35);
    box-shadow: 0 2px 6px rgba(42, 112, 176, 0.18);
}

.suggestion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-body {
    flex: 1;
    min-width: 0;
}

.suggestion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.suggestion-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2A70B0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.suggestion-close {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #605e5c;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.suggestion-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #323130;
}

.suggestion-text {
    font-size: 0.92rem;
    line-height: 1.4;
    color: #323130;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.suggestion-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.suggestion-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.suggestion-btn-primary {
    background: #2A70B0;
    color: white;
    border-color: #2A70B0;
}

.suggestion-btn-primary:hover {
    background: #225d92;
    border-color: #225d92;
}

.suggestion-btn-secondary {
    background: transparent;
    color: #605e5c;
    border-color: #d2d0ce;
}

.suggestion-btn-secondary:hover {
    background: #f3f2f1;
    color: #323130;
    border-color: #8a8886;
}

@media (max-width: 768px) {
    .suggestion-toast {
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
