/* ============ 17 · Botón flotante de chat (Telegram o WhatsApp) ============ */

.chat {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.chat.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.chat__burbuja {
    max-width: 190px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text-soft);
    font-size: .8rem;
    line-height: 1.4;
}

.chat__boton {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--chat);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}

.chat__boton:hover { transform: scale(1.06); }

/* En telefono la burbuja tapa contenido: queda solo el boton, mas chico */
@media (max-width: 640px) {
    .chat { right: 14px; bottom: 14px; }
    .chat__burbuja { display: none; }
    .chat__boton { width: 50px; height: 50px; }
}
