/* Torino Homes · ventana del asistente */
.thc-b{position:fixed;right:clamp(14px,2.4vw,28px);bottom:clamp(14px,2.4vw,28px);z-index:60;display:flex;align-items:center;gap:10px;padding:14px 20px;border-radius:99px;border:1px solid rgba(255,255,255,.18);background:#14171c;color:#fff;font:600 12px/1 "Inter Tight",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;box-shadow:0 18px 40px -14px rgba(0,0,0,.55);transition:transform .25s,background .25s}
.thc-b:hover{background:#a8763e;transform:translateY(-2px)}
.thc-b i{width:8px;height:8px;border-radius:50%;background:#e7c9a0;box-shadow:0 0 0 4px rgba(231,201,160,.22)}
.thc{position:fixed;right:clamp(10px,2.4vw,28px);bottom:clamp(10px,2.4vw,28px);z-index:61;width:min(390px,calc(100vw - 20px));height:min(600px,calc(100dvh - 20px));display:flex;flex-direction:column;background:#fbf8f2;color:#14171c;border:1px solid rgba(20,23,28,.14);border-radius:18px;overflow:hidden;box-shadow:0 40px 90px -30px rgba(0,0,0,.6);font:15px/1.5 "Inter Tight",system-ui,sans-serif}
.thc[hidden],.thc-b[hidden]{display:none}
.thc-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#14171c;color:#fff}
.thc-h b{display:block;font:400 22px/1 "Cormorant Garamond",Georgia,serif}
.thc-h span{display:block;margin-top:5px;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;opacity:.65}
.thc-h button{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:none;color:#fff;font-size:15px;cursor:pointer}
.thc-m{flex:1;overflow-y:auto;padding:18px 16px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.thc-m .m{max-width:86%;padding:11px 14px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.thc-m .a{align-self:flex-start;background:#f0e9dc;border-bottom-left-radius:5px}
.thc-m .u{align-self:flex-end;background:#14171c;color:#fff;border-bottom-right-radius:5px}
.thc-m .m a{color:#a8763e;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.thc-m .t{align-self:flex-start;display:flex;gap:5px;padding:14px;background:#f0e9dc;border-radius:16px;border-bottom-left-radius:5px}
.thc-m .t i{width:6px;height:6px;border-radius:50%;background:#6d6457;animation:thc 1.1s infinite}
.thc-m .t i:nth-child(2){animation-delay:.18s}.thc-m .t i:nth-child(3){animation-delay:.36s}
@keyframes thc{0%,60%,100%{opacity:.25;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.thc-q{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px 10px}
.thc-q button{border:1px solid rgba(20,23,28,.25);background:none;border-radius:99px;padding:8px 13px;font:500 12.5px/1 inherit;font-family:inherit;cursor:pointer;color:inherit}
.thc-q button:hover{background:#14171c;color:#fff;border-color:#14171c}
.thc-f{align-self:stretch;display:grid;gap:9px;padding:14px;border:1px solid rgba(168,118,62,.45);border-radius:14px;background:#fff}
.thc-f input[type=text],.thc-f input[type=tel],.thc-f input[type=email]{width:100%;font:inherit;font-size:16px;border:0;border-bottom:1px solid rgba(20,23,28,.3);padding:7px 0;background:none;outline:0;border-radius:0;color:inherit}
.thc-f label.ok{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:#6d6457;cursor:pointer}
.thc-f label.ok input{width:16px;height:16px;margin-top:2px;accent-color:#14171c;flex:none}
.thc-f a{text-decoration:underline;text-underline-offset:3px}
.thc-f button{justify-self:start;padding:11px 18px;border-radius:99px;border:0;background:#14171c;color:#fff;font:600 11.5px/1 inherit;font-family:inherit;letter-spacing:.14em;text-transform:uppercase;cursor:pointer}
.thc-f p{font-size:12.5px;color:#a8443a;min-height:1em}
.thc-f .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.thc-s{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid rgba(20,23,28,.12);background:#fff}
.thc-s textarea{flex:1;resize:none;border:0;outline:0;font:inherit;font-size:16px;max-height:110px;padding:8px 6px;background:none;color:inherit}
.thc-s button{width:40px;height:40px;border-radius:50%;border:0;background:#14171c;color:#fff;font-size:17px;cursor:pointer;flex:none}
.thc-s button[disabled]{opacity:.35;cursor:default}
.thc-p{padding:7px 14px 10px;font-size:11px;color:#6d6457;background:#fff;text-align:center}
.thc-p a{text-decoration:underline;text-underline-offset:2px}
@media (max-width:520px){.thc{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0;border:0}}

/* invitación a conversar */
.thc-i{position:fixed;right:clamp(14px,2.4vw,28px);bottom:calc(clamp(14px,2.4vw,28px) + 58px);z-index:59;width:min(290px,calc(100vw - 28px));display:flex;align-items:flex-start;background:#fbf8f2;color:#14171c;border:1px solid rgba(20,23,28,.12);border-radius:16px 16px 4px 16px;box-shadow:0 18px 40px -18px rgba(20,23,28,.45);opacity:0;transform:translateY(10px) scale(.97);transform-origin:100% 100%;transition:opacity .5s,transform .6s cubic-bezier(.2,.8,.2,1)}
.thc-i.on{opacity:1;transform:none}
.thc-i-t{flex:1;text-align:left;background:none;border:0;padding:14px 4px 15px 16px;cursor:pointer;color:inherit;font:inherit}
.thc-i-t small{display:block;font:500 10px/1 "Inter Tight",system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#a8763e;margin-bottom:7px}
.thc-i-t span{display:block;font:400 17px/1.3 "Cormorant Garamond",Georgia,serif}
.thc-i-x{background:none;border:0;color:#6d6457;font-size:12px;padding:12px 13px;cursor:pointer;line-height:1}
.thc-i-x:hover{color:#14171c}
.thc-b.late i{animation:thc-late 1.6s ease-out 2}
@keyframes thc-late{0%{box-shadow:0 0 0 0 rgba(231,201,160,.7)}100%{box-shadow:0 0 0 12px rgba(231,201,160,0)}}
@media (max-width:520px){.thc-i{width:min(250px,calc(100vw - 28px))}.thc-i-t span{font-size:15.5px}}
@media (prefers-reduced-motion:reduce){.thc-i{transition:none}.thc-b.late i{animation:none}}
.thc.auto{animation:thc-in .55s cubic-bezier(.2,.8,.2,1)}@keyframes thc-in{from{opacity:0;transform:translateY(14px) scale(.98)}}
@media (prefers-reduced-motion:reduce){.thc.auto{animation:none}}
