/* Assistente virtual Trialice */
.tc-panel{position:fixed;right:20px;bottom:92px;z-index:70;width:380px;height:min(580px,calc(100vh - 120px));display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:#efeae2;box-shadow:0 18px 50px rgba(0,0,0,.35);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;opacity:0;transform:translateY(16px) scale(.97);transform-origin:bottom right;pointer-events:none;transition:opacity .22s,transform .22s}
.tc-panel.on{opacity:1;transform:none;pointer-events:auto}
.tc-head{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;background:var(--navy,#14213a);color:#fff;border-bottom:3px solid var(--gold,#c9a24a)}
.tc-av{width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none;border:2px solid var(--gold2,#e6c878)}
.tc-av img{width:34px;height:auto}
.tc-who{flex:1;min-width:0;line-height:1.2}
.tc-who b{display:flex;align-items:center;gap:5px;font-size:1rem;font-weight:700}
.tc-who b svg{width:16px;height:16px;flex:none}
.tc-who small{font-size:.8rem;opacity:.85}
.tc-who small i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#25d366;margin-right:5px;vertical-align:1px}
.tc-hbtn{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.tc-hbtn:hover{background:rgba(255,255,255,.12)}
.tc-hbtn svg{width:22px;height:22px}
.tc-body{flex:1;overflow-y:auto;padding:14px 12px 8px;display:flex;flex-direction:column;gap:6px;background-color:#efeae2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9d2c5' stroke-width='2'%3E%3Cpath d='M14 34 L30 20 L46 34 V50 H14Z'/%3E%3Cpath d='M80 16 h22 v14 h-22z M86 30 v8'/%3E%3Cpath d='M70 80 l10 -10 l10 10 l-10 10z'/%3E%3Ccircle cx='28' cy='92' r='8'/%3E%3Cpath d='M100 74 v20 M92 84 h16'/%3E%3C/g%3E%3C/svg%3E")}
.tc-day{align-self:center;background:#fff;color:#54656f;font-size:.78rem;padding:4px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.08);margin-bottom:4px}
.tc-note{align-self:center;max-width:90%;background:#fff5c4;color:#54656f;font-size:.76rem;text-align:center;padding:6px 10px;border-radius:8px;margin-bottom:6px}
.tc-msg{position:relative;max-width:82%;padding:7px 10px 18px;border-radius:9px;font-size:.93rem;line-height:1.38;color:#111b21;box-shadow:0 1px 1px rgba(0,0,0,.1);white-space:pre-line;word-wrap:break-word;animation:tcIn .18s ease-out}
.tc-msg time{position:absolute;right:8px;bottom:3px;font-size:.66rem;color:#667781}
.tc-bot{align-self:flex-start;background:#fff;border-top-left-radius:2px}
.tc-me{align-self:flex-end;background:#d9fdd3;border-top-right-radius:2px}
.tc-me time::after{content:" ✓✓";color:#53bdeb}
.tc-msg b{font-weight:700}
.tc-typing{align-self:flex-start;background:#fff;border-radius:9px;padding:11px 14px;display:flex;gap:4px;box-shadow:0 1px 1px rgba(0,0,0,.1)}
.tc-typing span{width:7px;height:7px;border-radius:50%;background:#8696a0;animation:tcDot 1.1s infinite}
.tc-typing span:nth-child(2){animation-delay:.15s}.tc-typing span:nth-child(3){animation-delay:.3s}
.tc-opts{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0 2px;justify-content:flex-start}
.tc-opt{border:1.5px solid var(--gold,#c9a24a);background:#fff;color:var(--navy,#14213a);font:600 .86rem/1.2 inherit;font-family:inherit;padding:8px 12px;border-radius:18px;cursor:pointer;transition:background .15s}
.tc-opt:hover{background:#fbf3df}
.tc-cta{align-self:stretch;display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0;padding:12px;border-radius:12px;background:#25d366;color:#fff;font-weight:700;text-decoration:none;font-size:.98rem;box-shadow:0 4px 12px rgba(37,211,102,.35)}
.tc-cta svg{width:22px;height:22px}
.tc-foot{display:flex;align-items:center;gap:8px;padding:10px;background:#f0f2f5}
.tc-foot input{flex:1;min-width:0;border:0;border-radius:22px;padding:12px 16px;font-size:.95rem;font-family:inherit;background:#fff;color:#111b21;outline:none}
.tc-foot input:focus{box-shadow:0 0 0 2px var(--gold,#c9a24a)}
.tc-send{width:46px;height:46px;border:0;border-radius:50%;background:var(--navy,#14213a);color:var(--gold2,#e6c878);display:grid;place-items:center;cursor:pointer;flex:none}
.tc-send:disabled{opacity:.45;cursor:default}
.tc-send svg{width:22px;height:22px}
.wa .tc-badge{position:absolute;top:-2px;right:-2px;min-width:22px;height:22px;border-radius:11px;background:#e53935;color:#fff;font:700 .75rem/22px system-ui,sans-serif;text-align:center;border:2px solid #fff;display:none}
.wa.has-badge .tc-badge{display:block}
.wa.has-badge{animation:tcPulse 2s infinite}
.tc-tease{position:fixed;right:90px;bottom:30px;z-index:65;background:#fff;color:#111b21;font:600 .9rem/1.3 system-ui,sans-serif;padding:10px 14px;border-radius:14px 14px 2px 14px;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:220px;cursor:pointer;opacity:0;transform:translateX(10px);transition:.25s;pointer-events:none}
.tc-tease.on{opacity:1;transform:none;pointer-events:auto}
@keyframes tcIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes tcDot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@keyframes tcPulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
@media (max-width:560px){
  .tc-panel{right:8px;left:8px;width:auto;bottom:84px;height:min(560px,calc(100vh - 100px));height:min(560px,calc(100dvh - 100px))}
  .tc-tease{right:84px;bottom:26px}
}
@media (prefers-reduced-motion:reduce){.tc-panel,.tc-msg,.tc-tease{transition:none;animation:none}.wa.has-badge{animation:none}}
