/* Chat de la landing de clínicas (reemplaza el botón flotante de WhatsApp en esta página). */
.tbc-launcher{position:fixed;right:22px;bottom:22px;z-index:120;width:62px;height:62px;border-radius:50%;border:2px solid #FEBF10;background:#FEBF10;color:#08172B;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 34px -10px rgba(8,23,43,.55);transition:transform .2s,background .2s}
.tbc-launcher:hover{background:#eeb000;transform:translateY(-2px)}
.tbc-launcher svg{width:28px;height:28px}
.tbc-launcher[aria-expanded="true"] .tbc-ico-open,.tbc-launcher[aria-expanded="false"] .tbc-ico-close{display:none}

.tbc-teaser{position:fixed;right:96px;bottom:32px;z-index:120;max-width:240px;background:#fff;color:#08172B;border:1px solid #E3E7EC;border-radius:14px 14px 4px 14px;padding:11px 34px 11px 14px;font:600 13.5px/1.4 'Figtree',system-ui,sans-serif;box-shadow:0 14px 34px -14px rgba(8,23,43,.45);cursor:pointer;animation:tbc-in .35s cubic-bezier(.22,1,.36,1) both}
.tbc-teaser__close{position:absolute;top:4px;right:6px;border:0;background:none;color:#5c6b7d;font-size:18px;line-height:1;cursor:pointer;padding:4px}

.tbc-panel{position:fixed;right:22px;bottom:96px;z-index:121;width:min(380px,calc(100vw - 32px));height:min(600px,calc(100vh - 130px));display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 30px 70px -20px rgba(8,23,43,.55);overflow:hidden;font-family:'Figtree',system-ui,sans-serif;color:#08172B;animation:tbc-in .3s cubic-bezier(.22,1,.36,1) both}
.tbc-panel[hidden]{display:none}
.tbc-head{display:flex;align-items:center;gap:11px;padding:14px 16px;background:linear-gradient(135deg,#08172B,#0f2347);color:#fff}
.tbc-avatar{width:38px;height:38px;border-radius:50%;background:#FEBF10;display:flex;align-items:center;justify-content:center;flex:none}
.tbc-head__who{flex:1;min-width:0}
.tbc-head__name{font-weight:700;font-size:15px}
.tbc-head__status{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.7)}
.tbc-head__status::before{content:"";width:6px;height:6px;border-radius:50%;background:#1f9d55;flex:none}
.tbc-close{width:32px;height:32px;border:0;border-radius:8px;background:rgba(255,255,255,.1);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tbc-close:hover{background:rgba(255,255,255,.2)}
.tbc-close svg{width:18px;height:18px}

.tbc-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:#F4F5F7}
.tbc-msg{max-width:86%;padding:10px 13px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;animation:tbc-in .3s cubic-bezier(.22,1,.36,1) both}
.tbc-msg--bot{align-self:flex-start;background:#fff;border:1px solid #E3E7EC;border-radius:14px 14px 14px 4px;color:#2b3a4d}
.tbc-msg--user{align-self:flex-end;background:#08172B;color:#fff;border-radius:14px 14px 4px 14px}
.tbc-msg--error{background:#fff6f6;border-color:#f1c9c9;color:#7d1f1f}
.tbc-msg p{margin:0}
.tbc-msg p+p,.tbc-msg p+ul,.tbc-msg ul+p{margin-top:6px}
.tbc-msg ul{margin:0;padding-left:18px;list-style:disc}
.tbc-msg strong{font-weight:700;color:#08172B}
.tbc-msg a{color:#08172B;font-weight:700;text-decoration:underline}
.tbc-typing{align-self:flex-start;display:flex;gap:5px;background:#fff;border:1px solid #E3E7EC;border-radius:14px;padding:12px 14px}
.tbc-typing span{width:6px;height:6px;border-radius:50%;background:#C99000;animation:tbc-blink 1s infinite}
.tbc-typing span:nth-child(2){animation-delay:.2s}
.tbc-typing span:nth-child(3){animation-delay:.4s}

.tbc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px;background:#F4F5F7}
.tbc-chips:empty{display:none}
.tbc-chip{border:1px solid rgba(201,144,0,.45);border-radius:999px;background:#FFFBEF;color:#08172B;font:600 13px/1.2 'Figtree',system-ui,sans-serif;padding:9px 12px;cursor:pointer}
.tbc-chip:hover{background:#FEBF10;border-color:#FEBF10}

.tbc-demo{align-self:stretch;background:#fff;border:1.5px solid #FEBF10;border-radius:14px;padding:14px;font-size:13.5px;line-height:1.45;animation:tbc-in .3s cubic-bezier(.22,1,.36,1) both}
.tbc-demo dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0 0 12px}
.tbc-demo dt{color:#5c6b7d}
.tbc-demo dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.tbc-demo a{display:flex;align-items:center;justify-content:center;background:#FEBF10;color:#08172B;font-weight:700;border-radius:9px;padding:12px;text-decoration:none}
.tbc-demo a:hover{background:#C99000}
.tbc-demo a+a{margin-top:8px}
.tbc-demo a.tbc-demo__alt{background:#fff;border:1.5px solid #E3E7EC}
.tbc-demo a.tbc-demo__alt:hover{background:#F4F5F7}

.tbc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 8px;border-top:1px solid #E3E7EC;background:#fff}
.tbc-input{flex:1;min-height:42px;max-height:110px;resize:none;border:1px solid #E3E7EC;border-radius:12px;padding:10px 12px;background:#fff;color:#08172B;font:14px/1.4 'Figtree',system-ui,sans-serif;outline:none}
.tbc-input:focus{border-color:#FEBF10;box-shadow:0 0 0 3px rgba(254,191,16,.25)}
.tbc-send{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:#FEBF10;color:#08172B;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tbc-send:disabled{opacity:.5;cursor:default}
.tbc-send svg{width:20px;height:20px}
.tbc-note{margin:0;padding:0 14px 10px;background:#fff;font-size:11px;color:#8894a4}
.tbc-note a{color:#5c6b7d;text-decoration:underline}
.tbc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tbc-launcher:focus-visible,.tbc-close:focus-visible,.tbc-chip:focus-visible,.tbc-send:focus-visible,.tbc-demo a:focus-visible{outline:2px solid #C99000;outline-offset:2px}

@keyframes tbc-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes tbc-blink{0%,100%{opacity:1}50%{opacity:.2}}
@media(max-width:560px){
  .tbc-launcher{right:16px;bottom:16px;width:56px;height:56px}
  .tbc-launcher[aria-expanded="true"]{display:none}
  .tbc-teaser{right:82px;bottom:22px;max-width:200px}
  .tbc-panel{left:0;right:0;bottom:0;width:100%;height:min(calc(100dvh - 56px),640px);border-radius:18px 18px 0 0}
}
@media(prefers-reduced-motion:reduce){.tbc-panel,.tbc-msg,.tbc-demo,.tbc-teaser,.tbc-typing span{animation:none}}
