/* Chat de VentAI Clima (js/chat.js). Separado de sitio.css, que es copia de LIGNUS. */
:root { --azul: #0B6FA4; --azul-claro: #E3F2FA; --borde: #D6D2C8; --suave: #5B6770; }
/* ---------- chat ---------- */
.chat-burbuja { position: fixed; right: 16px; bottom: 16px; z-index: 50; border: 0; border-radius: 999px; padding: 14px 18px; background: var(--azul); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.2); cursor: pointer; }
.chat-panel { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--azul); color: #fff; }
.chat-estado { display: block; font-size: .8rem; opacity: .85; }
.chat-cerrar { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.chat-cuerpo { flex: 1; overflow-y: auto; padding: 12px; background: #F4F8FA; }
.chat-msj { max-width: 85%; margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--borde); }
.chat-msj p { margin: 0 0 6px; }
.chat-msj p:last-child { margin: 0; }
.chat-msj.yo { margin-left: auto; background: var(--azul-claro); border-color: transparent; }
.chat-opciones { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chat-op { border: 1px solid var(--azul); background: #fff; color: var(--azul); border-radius: 999px; padding: 8px 12px; font: inherit; cursor: pointer; }
.chat-escribiendo { display: inline-flex; gap: 4px; padding: 10px 12px; }
.chat-escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); animation: punto 1s infinite ease-in-out; }
.chat-escribiendo span:nth-child(2) { animation-delay: .15s; }
.chat-escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-pie { border-top: 1px solid var(--borde); padding: 8px; }
.chat-forma { display: flex; gap: 6px; }
.chat-forma input { flex: 1; padding: 10px; border: 1px solid var(--borde); border-radius: 8px; font: inherit; }
.chat-forma button { border: 0; background: var(--azul); color: #fff; border-radius: 8px; padding: 0 14px; cursor: pointer; }
.chat-aviso { font-size: .75rem; color: var(--suave); margin: 6px 2px 0; }
@media (prefers-reduced-motion: reduce) { .chat-escribiendo span { animation: none; } }
