/* Asistente del sitio (chat). El texto y la lógica están en chat.js; el servidor, en apps-script/chat.gs. */
.tcb{position:fixed;right:24px;bottom:24px;z-index:90;font-family:var(--sans)}
.tcb [hidden]{display:none!important}
.tcb-fab{display:flex;align-items:center;gap:10px;height:56px;padding:0 22px 0 18px;border:0;border-radius:980px;background:var(--blue);color:var(--white);font:500 1rem/1 var(--sans);box-shadow:0 10px 30px rgba(0,113,227,.35),0 2px 6px rgba(0,0,0,.12);cursor:pointer}
.tcb-fab:hover{background:var(--blue-hover)}
.tcb-fab svg{width:24px;height:24px;flex:none}
.tcb-hint{position:absolute;right:0;bottom:70px;width:250px;background:var(--white);border:1px solid var(--line);border-radius:18px 18px 4px 18px;padding:12px 34px 12px 14px;font-size:.875rem;line-height:1.35;color:var(--ink);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.tcb-hint button{position:absolute;top:4px;right:4px;width:28px;height:28px;border:0;background:none;color:var(--soft);font-size:18px;line-height:1;cursor:pointer;border-radius:50%}
.tcb-panel{width:384px;max-width:calc(100vw - 32px);height:min(660px,calc(100vh - 48px));height:min(660px,calc(100dvh - 48px));background:var(--white);border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 60px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden}
.tcb-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.tcb-ava{width:36px;height:36px;border-radius:50%;background:var(--mist);display:grid;place-items:center;flex:none}
.tcb-ava img{width:24px;height:24px}
.tcb-head b{display:block;font-size:.9375rem;letter-spacing:-.01em;color:var(--ink)}
.tcb-head small{display:flex;align-items:center;gap:6px;color:var(--soft);font-size:.75rem}
.tcb-head small:before{content:"";width:7px;height:7px;border-radius:50%;background:#30B55B}
.tcb-x{margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:var(--mist);color:var(--soft);font-size:20px;line-height:1;cursor:pointer}
.tcb-x:hover{color:var(--ink)}
.tcb-body{flex:1;min-height:0;padding:16px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain}
.tcb-m{max-width:84%;padding:10px 14px;border-radius:18px;font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
.tcb-b{align-self:flex-start;background:var(--mist);color:var(--ink);border-bottom-left-radius:6px}
.tcb-b a{color:var(--link);text-underline-offset:2px}
.tcb-u{align-self:flex-end;background:var(--blue);color:var(--white);border-bottom-right-radius:6px;white-space:pre-wrap}
.tcb-chips{display:flex;flex-wrap:wrap;gap:6px}
.tcb-chips button{border:1px solid var(--link);background:none;color:var(--link);border-radius:980px;padding:6px 12px;font:400 .8125rem/1.2 var(--sans);cursor:pointer}
.tcb-chips button:hover{background:var(--link);color:var(--white)}
.tcb-dots{display:inline-flex;gap:4px;align-items:center;height:20px}
.tcb-dots i{width:6px;height:6px;border-radius:50%;background:var(--soft);opacity:.35;animation:tcb-dot 1s infinite}
.tcb-dots i:nth-child(2){animation-delay:.15s}
.tcb-dots i:nth-child(3){animation-delay:.3s}
@keyframes tcb-dot{50%{opacity:1}}
.tcb-foot{padding:12px 14px 10px;border-top:1px solid var(--line)}
.tcb-cta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.tcb-cta a{display:inline-flex;align-items:center;gap:6px;min-height:36px;border-radius:980px;padding:0 14px;font-size:.8125rem;font-weight:500;text-decoration:none}
.tcb-cta .p{background:var(--blue);color:var(--white)}
.tcb-cta .p:hover{background:var(--blue-hover)}
.tcb-cta .w{background:#E7F8EE;color:#0B7A3B}
.tcb-cta .w:hover{background:#D5F2E1}
.tcb-cta svg{width:15px;height:15px;flex:none}
.tcb-in{display:flex;align-items:center;gap:8px;background:var(--mist);border-radius:22px;padding:6px 6px 6px 16px}
.tcb-in textarea{scrollbar-width:none;flex:1;min-width:0;border:0;background:none;resize:none;outline:0;font:400 .875rem/1.4 var(--sans);color:var(--ink);height:22px;max-height:88px;padding:0}
.tcb-in:focus-within{box-shadow:0 0 0 2px var(--blue)}
.tcb-in button{width:32px;height:32px;flex:none;border:0;border-radius:50%;background:var(--blue);display:grid;place-items:center;cursor:pointer}
.tcb-in button:disabled{opacity:.4;cursor:default}
.tcb-in svg{width:16px;height:16px}
.tcb-foot p{margin:8px 0 0;text-align:center;font-size:.6875rem;color:var(--soft)}
.tcb-foot p a{color:inherit}
.tcb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:560px){
 .tcb{right:16px;bottom:16px}
 .tcb.open{inset:0;right:0;bottom:0}
 .tcb.open .tcb-panel{width:100%;max-width:none;height:100%;border:0;border-radius:0}
 .tcb-in textarea{font-size:1rem}
 .tcb-hint{width:220px}
}
@media (prefers-reduced-motion:reduce){.tcb-dots i{animation:none;opacity:.7}}
@media print{.tcb{display:none}}
