/* TXHOUSE V105 · conversación manos libres / extensión visual JARVIS */
.tx-conversa-start{display:flex;align-items:center;gap:15px;margin:12px auto 20px;padding:15px 20px;max-width:370px;width:calc(100% - 28px);border:1px solid rgba(91,221,241,.45);border-radius:20px;background:linear-gradient(125deg,rgba(14,52,68,.94),rgba(5,17,30,.96));box-shadow:0 8px 36px rgba(0,0,0,.29),inset 0 1px rgba(168,246,255,.09);color:#e8f9ff;cursor:pointer;text-align:left;transition:transform .18s,border-color .18s;touch-action:manipulation}
.tx-conversa-start:hover{transform:translateY(-2px);border-color:#80e9f8}.tx-conversa-start:focus-visible,.tx-conversa-panel button:focus-visible{outline:2px solid #6be8ff;outline-offset:3px}
.tx-conversa-start-icon{font-size:27px;color:#7debf8;text-shadow:0 0 18px rgba(69,210,240,.7)}.tx-conversa-start span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.tx-conversa-start strong{font-size:16px;letter-spacing:.13em}.tx-conversa-start small{font-size:12px;color:#a5c8d4}.tx-conversa-start-arrow{font-size:21px;color:#93dbe9}
.tx-conversa-panel[hidden]{display:none!important}.tx-conversa-panel{position:relative;z-index:5;margin:12px clamp(12px,3vw,34px) 10px;padding:16px 17px 14px;border:1px solid rgba(80,199,223,.29);border-radius:22px;background:linear-gradient(138deg,rgba(14,31,45,.97),rgba(5,14,26,.98));box-shadow:0 12px 36px rgba(0,0,0,.2);color:#e3f5fa;overflow:hidden}
.tx-conversa-top{display:flex;gap:15px;align-items:center}.tx-conversa-intro{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.tx-conversa-label{font-size:10px;letter-spacing:.17em;color:#61d6ef;font-weight:700}.tx-conversa-intro strong{font-size:17px;line-height:1.2}.tx-conversa-intro small{font-size:12px;color:#a3bac7;line-height:1.45}.tx-conversa-stop{padding:9px 12px;border:1px solid rgba(164,196,214,.25);background:rgba(255,255,255,.035);color:#d9eaf0;border-radius:12px;cursor:pointer}
.tx-conversa-orb{height:76px;width:76px;flex:0 0 76px;border-radius:50%;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 45% 40%,rgba(51,179,212,.2),rgba(6,25,37,.85) 68%);border:1px solid rgba(94,219,239,.25);box-shadow:inset 0 0 25px rgba(58,180,210,.12)}.tx-conversa-orb img{position:relative;z-index:3;width:70%;height:70%;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(0,0,0,.4))}.tx-co-ring{position:absolute;inset:4px;border-radius:50%;border:1.5px solid rgba(111,237,255,.55);border-top-color:transparent;border-right-color:rgba(111,237,255,.08)}.tx-co-ring.ring2{inset:-4px;border-color:rgba(117,207,223,.17);border-bottom-color:rgba(105,225,249,.65)}
.tx-conversa-panel[data-state="speaking"] .ring1,.tx-conversa-panel[data-state="preparing"] .ring1{animation:tx-conversa-turn 5s linear infinite}.tx-conversa-panel[data-state="speaking"] .ring2{animation:tx-conversa-turn 7s linear infinite reverse}.tx-conversa-panel[data-state="listening"] .ring1{animation:tx-conversa-pulse 1.55s ease-in-out infinite;border-color:rgba(87,237,255,.9)}.tx-conversa-panel[data-state="listening"] .ring2{animation:tx-conversa-pulse 1.55s ease-in-out .36s infinite}.tx-conversa-panel[data-state="thinking"] .ring1{animation:tx-conversa-turn 3s linear infinite}
.tx-conversa-lines{display:grid;gap:10px;margin-top:16px;padding-top:13px;border-top:1px solid rgba(125,188,201,.16)}.tx-conversa-line{display:flex;flex-direction:column;gap:3px;margin:0}.tx-conversa-line span{color:#63d4e8;font-size:10px;letter-spacing:.15em}.tx-conversa-line b{font-size:14px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.tx-conversa-line:last-child b{color:#ebf4fa}.tx-conversa-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.tx-conversa-foot button{border:1px solid rgba(91,219,239,.4);border-radius:999px;background:rgba(43,130,154,.13);padding:10px 14px;color:#bdf1fa;cursor:pointer}.tx-conversa-foot span{color:#92aeba;font-size:11px}
@keyframes tx-conversa-turn{to{transform:rotate(360deg)}}@keyframes tx-conversa-pulse{0%,100%{transform:scale(.98);opacity:.45}50%{transform:scale(1.11);opacity:1}}
@media(max-width:600px){.tx-conversa-panel{margin:10px 11px 8px;padding:12px 13px}.tx-conversa-orb{width:62px;height:62px;flex-basis:62px}.tx-conversa-intro strong{font-size:15px}.tx-conversa-stop{padding:7px 9px;font-size:12px}.tx-conversa-foot{align-items:flex-start;flex-direction:column}.tx-conversa-start{margin:8px auto 16px}}
@media(prefers-reduced-motion:reduce){.tx-conversa-panel .ring1,.tx-conversa-panel .ring2{animation:none!important}.tx-conversa-start{transition:none}}

/* V106 experience: animated entrance, single JARVIS initiation orb and separate customer voice indicator. */
.hero{min-height: min(59vh,570px);display:flex;justify-content:center;align-items:center;position:relative}.hero>div{width:100%;display:flex;flex-direction:column;align-items:center}.hero .orb,.hero img{animation:tx-hero-enter 1.1s cubic-bezier(.2,.8,.2,1) both}.tx-start-dock{display:flex;align-items:center;flex-direction:column;gap:10px;margin:20px auto 8px;text-align:center;animation:tx-dock-in .9s .3s both}.tx-start-dock>small{color:#97b8c7;font-size:12px}.tx-conversa-start{height:132px;width:132px;max-width:none;margin:0;display:flex;flex-direction:column;justify-content:center;gap:6px;border-radius:50%;padding:15px;text-align:center;background:radial-gradient(circle at 40% 28%,rgba(40,153,188,.33),rgba(4,20,35,.98) 69%);box-shadow:0 0 0 7px rgba(34,143,168,.09),inset 0 0 19px rgba(105,227,246,.19),0 17px 40px rgba(0,0,0,.3);border:1px solid rgba(97,226,246,.7)}.tx-conversa-start-icon{font-size:29px}.tx-conversa-start strong{font-size:11px;line-height:1.3;letter-spacing:.08em}.tx-conversa-panel{max-width:1000px;margin:10px auto 18px}.tx-chat-transcript{max-height:220px;overflow:auto;display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(125,188,201,.16)}.tx-chat-message{border-radius:14px;padding:9px 12px;background:rgba(16,57,75,.3);max-width:88%}.tx-chat-user{justify-self:end;background:rgba(95,185,211,.1);border:1px solid rgba(70,170,195,.2)}.tx-chat-message span{font-size:10px;letter-spacing:.1em;color:#6eddec}.tx-chat-message p{font-size:14px;line-height:1.5;margin:4px 0 0;font-weight:400}.tx-listener-orb{position:fixed;right:12px;bottom:102px;width:34px;height:34px;z-index:15;border-radius:50%;display:grid;place-items:center;background:rgba(8,25,41,.98);border:1px solid rgba(110,219,232,.4);transform:scale(.75);opacity:.58;pointer-events:none;transition:transform .35s,opacity .35s}.tx-listener-core{width:11px;height:11px;border-radius:50%;background:radial-gradient(circle,#b7fcff,#10a2ca);box-shadow:0 0 16px rgba(48,219,255,.7)}.tx-listener-wave{position:absolute;inset:-3px;border-radius:50%;border:1px solid rgba(78,208,238,.45)}.tx-conversa-panel[data-state="listening"] .tx-listener-orb{width:72px;height:72px;transform:scale(1);opacity:1;right:16px}.tx-conversa-panel[data-state="listening"] .tx-listener-core{width:17px;height:17px}.tx-conversa-panel[data-state="listening"] .wave-one{animation:tx-conversa-pulse 1.15s infinite}.tx-conversa-panel[data-state="listening"] .wave-two{animation:tx-conversa-pulse 1.5s -.45s infinite}.tx-conversa-error{font-size:12px;margin-top:12px;color:#ffcfb2;background:rgba(103,52,39,.13);border:1px solid rgba(255,160,124,.25);padding:12px;border-radius:12px}.tx-conversa-error[hidden]{display:none!important}.tx-conversa-panel[data-state="speaking"] .tx-conversa-orb{box-shadow:0 0 40px rgba(48,182,220,.16),inset 0 0 22px rgba(48,182,220,.12)}@keyframes tx-hero-enter{from{opacity:0;transform:translateY(-160px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tx-dock-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.hero{min-height: min(57vh,540px)}.tx-conversa-start{width:112px;height:112px}.tx-chat-transcript{max-height:190px}.tx-listener-orb{bottom:106px;right:9px}}@media(prefers-reduced-motion:reduce){.hero .orb,.hero img,.tx-start-dock{animation:none!important}}

/* V107: prevent message insertion from moving the parent document. */
.tx-chat-transcript{overscroll-behavior-y:contain;overflow-anchor:none}
#txConversacion{overflow-anchor:none}

/* V136 — JARVIS minimal entrance, transcript appears after INICIAR */
body:not(.tx-conversa-running) #main .hero .eyebrow,
body:not(.tx-conversa-running) #main .hero h1{display:none!important}
body:not(.tx-conversa-running) #main .hero{min-height:min(66vh,650px);scroll-margin-top:0}
.tx-start-dock>small{display:none!important}
.tx-conversa-start{width:124px;height:124px;gap:10px}
.tx-conversa-start strong{font-size:12px;letter-spacing:.17em}
.tx-conversa-intro small,.tx-conversa-foot>span,.tx-conversa-label{display:none!important}
.tx-chat-transcript>.tx-chat-message:has(p:empty){display:none}
.tx-conversa-panel .tx-conversa-top{gap:10px}
.tx-conversa-panel .tx-conversa-intro strong{font-size:13px;letter-spacing:.03em}
@media(max-width:600px){.tx-conversa-start{width:112px;height:112px}}

/* V138: pantalla conversacional compacta, sin tarjetas duplicadas ni textos introductorios */
.tx-conversa-panel{max-width:560px!important;margin:8px auto!important;padding:12px 14px!important}
.tx-conversa-panel .tx-chat-transcript{display:none!important}
.tx-conversa-panel .tx-conversa-intro small,.tx-conversa-panel .tx-conversa-label,.tx-conversa-panel .tx-conversa-foot>span{display:none!important}
.tx-conversa-panel .tx-conversa-top{min-height:66px!important}
.tx-conversa-panel #txConversState{font-size:15px!important}
.tx-conversa-panel .tx-conversa-stop{font-size:12px!important}
.tx-conversa-panel .tx-conversa-foot{margin-top:6px!important}
.tx-conversa-panel #txConversListen{font-size:13px!important}
.tx-conversa-panel .tx-conversa-error{font-size:12px!important}
body.tx-conversa-running #main .hero{min-height:180px!important}
body.tx-conversa-running .tx-start-dock{display:none!important}
/* No need for synthetic speech controls when there are no verified local recordings. */
.tx-voice-controls{display:none!important}

/* V139: transcripción viva minimalista: mostrar sólo una intervención de cada lado */
.tx-conversa-panel .tx-chat-transcript{display:flex!important;flex-direction:column!important;gap:8px;max-height:190px;overflow:auto;padding:8px 0 0;margin-top:7px;border:0!important}
.tx-chat-transcript>.tx-chat-message:not(:has(#txConversAssistant)):not(:has(#txConversUser)){display:none!important}
.tx-chat-transcript>.tx-chat-message:has(#txConversAssistant),.tx-chat-transcript>.tx-chat-message:has(#txConversUser){max-width:100%;padding:8px 11px}
.tx-chat-transcript>.tx-chat-message p{font-size:14px;line-height:1.4}
.tx-conversa-panel[data-state="listening"] #txConversUser{min-height:22px}
.tx-conversa-panel[data-state="listening"] .tx-listener-orb .wave-one{animation:tx-conversa-pulse .9s infinite}
.tx-conversa-panel[data-state="listening"] .tx-listener-orb .wave-two{animation:tx-conversa-pulse 1.3s -.4s infinite}
.tx-voice-controls{display:flex!important}
body.tx-conversa-running #main .hero{min-height:min(66vh,650px)!important} /* no page-height jump when start is pressed */
@media(max-width:600px){body.tx-conversa-running #main .hero{min-height:min(57vh,540px)!important}}

/* V139: transcripción viva minimalista: mostrar sólo una intervención de cada lado */
.tx-conversa-panel .tx-chat-transcript{display:flex!important;flex-direction:column!important;gap:8px;max-height:190px;overflow:auto;padding:8px 0 0;margin-top:7px;border:0!important}
.tx-chat-transcript>.tx-chat-message:not(:has(#txConversAssistant)):not(:has(#txConversUser)){display:none!important}
.tx-chat-transcript>.tx-chat-message:has(#txConversAssistant),.tx-chat-transcript>.tx-chat-message:has(#txConversUser){max-width:100%;padding:8px 11px}
.tx-chat-transcript>.tx-chat-message p{font-size:14px;line-height:1.4}
.tx-conversa-panel[data-state="listening"] #txConversUser{min-height:22px}
.tx-conversa-panel[data-state="listening"] .tx-listener-orb .wave-one{animation:tx-conversa-pulse .9s infinite}
.tx-conversa-panel[data-state="listening"] .tx-listener-orb .wave-two{animation:tx-conversa-pulse 1.3s -.4s infinite}
.tx-voice-controls{display:flex!important}
body.tx-conversa-running #main .hero{min-height:min(66vh,650px)!important} /* no page-height jump when start is pressed */
@media(max-width:600px){body.tx-conversa-running #main .hero{min-height:min(57vh,540px)!important}}

/* V140 – real product-first, conversation as a tiny floating controller, not a full page */
body.tx-conversa-running #main .hero{min-height:165px!important;height:auto!important;padding:5px 0!important}
body.tx-conversa-running #main .hero .orb{max-height:160px!important}
body.tx-conversa-running #main .hero img{max-height:160px!important;object-fit:contain!important}
#txConversacion:not([hidden]){position:fixed!important;left:12px!important;right:12px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 78px)!important;top:auto!important;z-index:90!important;width:auto!important;max-width:500px!important;max-height:116px!important;margin:0 auto!important;padding:8px 12px!important;border-radius:19px!important;box-shadow:0 12px 36px rgba(0,0,0,.42)!important;background:rgba(5,21,32,.96)!important;backdrop-filter:blur(14px)}
#txConversacion .tx-conversa-top{min-height:32px!important;gap:9px!important}
#txConversacion .tx-conversa-orb{width:33px!important;height:33px!important;flex-basis:33px!important}
#txConversacion .tx-conversa-intro strong{font-size:12px!important}
#txConversacion .tx-conversa-stop{font-size:11px!important;padding:5px 8px!important}
#txConversacion .tx-conversa-lines{display:flex!important;flex-direction:column!important;gap:2px!important;margin:4px 0 0!important;padding:0!important;border:0!important}
#txConversacion .tx-conversa-line{display:flex!important;flex-direction:row!important;gap:7px!important;align-items:center!important;min-width:0!important}
#txConversacion .tx-conversa-line span{font-size:9px!important;white-space:nowrap!important}
#txConversacion .tx-conversa-line b{font-size:11px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;max-width:calc(100vw - 100px)!important}
#txConversacion .tx-chat-transcript,#txConversacion .tx-conversa-foot>span,#txConversacion #txConversNote{display:none!important}
#txConversacion .tx-conversa-foot{position:absolute!important;top:8px!important;right:73px!important;margin:0!important;gap:0!important}
#txConversacion #txConversListen{font-size:11px!important;padding:5px 8px!important}
#txConversacion .tx-conversa-error{position:absolute!important;bottom:calc(100% + 6px)!important;left:0!important;right:0!important;margin:0!important;max-height:36px!important;overflow:hidden!important;font-size:11px!important;padding:6px 10px!important}
#txConversacion .tx-listener-orb{position:absolute!important;right:12px!important;bottom:9px!important;width:24px!important;height:24px!important;transform:none!important;opacity:1!important}
#txConversacion[data-state="listening"] .tx-listener-orb{width:24px!important;height:24px!important;right:12px!important}
#txConversacion[data-state="listening"] .tx-listener-wave{animation:tx-conversa-pulse 1s ease-in-out infinite!important}
.tx-voice-controls{display:none!important}
@media(max-width:600px){#txConversacion .tx-conversa-intro{margin-right:125px!important}#txConversacion .tx-conversa-foot{right:75px!important}#txConversacion .tx-conversa-intro strong{font-size:11px!important}body.tx-conversa-running #main .hero{min-height:125px!important}body.tx-conversa-running #main .hero img{max-height:125px!important}}
