/* v17 — Sales workspace, connected team and floating AI consultation. */
:is(#atender,#coordinacion) { --at-blue: #0e7bff; --at-navy: #081f49; --at-teal: #00c8b3; --at-sky: #e8f4ff; }
:is(#atender,#coordinacion) .stage-node { color: #0c68da; border-color: #cde4ff; background: #edf6ff; }
:is(#atender,#coordinacion) .stage-heading h2 { color: var(--at-navy); max-width: 840px; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
:is(#atender,#coordinacion) .stage-heading p { color: #617389; }
:is(#atender,#coordinacion) .stage-layout { align-items: start; gap: 24px; }
:is(#atender,#coordinacion) .stage-modules { gap: 16px; }
:is(#atender,#coordinacion) .solution-card { padding: 20px; border-color: #dce7f1; border-radius: 20px; }
:is(#atender,#coordinacion) .solution-card:hover { border-color: #9ac6f5; box-shadow: 0 10px 26px -22px #0e7bff80; }
:is(#atender,#coordinacion) .solution-title { gap: 9px; margin-bottom: 17px; }
:is(#atender,#coordinacion) .solution-title { min-height: 42px; }
:is(#atender,#coordinacion) .solution-title h3 { color: var(--at-navy); font-weight: 600; }
:is(#atender,#coordinacion) .solution-title > span { color: #0868d9; background: #eaf4ff; border-color: #d0e5ff; }
:is(#atender,#coordinacion) #agentes-ia .solution-title > span { color: #00776c; background: #dff9f4; border-color: #bdeee5; }
:is(#atender,#coordinacion) .solution-benefit { color: var(--at-navy); margin-top: 18px; }
:is(#atender,#coordinacion) .solution-details li { color: #617087; }
:is(#atender,#coordinacion) .solution-details li::before { background: #0e7bff; }
:is(#atender,#coordinacion) #agentes-ia .solution-details li::before { background: #00a995; }
:is(#atender,#coordinacion) .solution-card.is-highlighted { border-color: #0e7bff; box-shadow: 0 0 0 3px #e4f1ff; }
:is(#atender,#coordinacion) .stage-modules:focus-visible,:is(#atender,#coordinacion) .solution-card:focus-visible { outline-color: #7bb6f6; }

/* A conversation with a clear brand presence, still inset inside its square. */
:is(#atender,#coordinacion) .ai-chat-visual { background: linear-gradient(145deg,#e8f4ff 2%,#e1efff 58%,#d9f5f1); border: 1px solid #daeafa; border-radius: 24px; }
:is(#atender,#coordinacion) .live-chat { border-color: #d4e2f1; box-shadow: 0 12px 22px -16px #081f4960,0 3px 6px #081f4905; }
:is(#atender,#coordinacion) .stage-illustration .live-chat { font-size: clamp(8px,3.3cqw,10.5px); }
:is(#atender,#coordinacion) .live-chat-thread { height: 15em; }
:is(#atender,#coordinacion) .live-chat-head { background: var(--at-navy); border-color: transparent; padding: 1.15em 1em; }
:is(#atender,#coordinacion) .live-chat-name strong { color: #fff; }
:is(#atender,#coordinacion) .live-chat-name > span { color: #b9cce8; }
:is(#atender,#coordinacion) .live-chat-avatar { color: #4fe2d0; background: #15365f; border-color: #325478; }
:is(#atender,#coordinacion) .live-chat-status { color: #a5efde; }
:is(#atender,#coordinacion) .live-chat-status i { background: #00c8b3; box-shadow: 0 0 0 .35em #00c8b31c; animation: atender-status 3s ease-in-out infinite; }
:is(#atender,#coordinacion) .live-message--incoming { background: #f1f6fc; border-color: #e1eaf5; color: #3f516c; }
:is(#atender,#coordinacion) .live-message--hello { color: #075f59; background: #dff8f2; border-color: #c9eee5; }
:is(#atender,#coordinacion) .live-message--answer { color: #fff; background: #086ce1; border-color: #086ce1; }
:is(#atender,#coordinacion) .live-message-check { color: #c5fff4; }
:is(#atender,#coordinacion) .live-typing { background: #e8f4ff; border-color: #d4e6ff; }
:is(#atender,#coordinacion) .live-typing i { background: #0e7bff; }
:is(#atender,#coordinacion) .live-chat-compose { color: #7d8ba1; border-color: #e5edf6; }
:is(#atender,#coordinacion) .live-chat-send { color: #fff; background: #0e7bff; }
:is(#atender,#coordinacion) .atender-summary { margin: 19px 4px 0; text-align: center; text-wrap: balance; }
:is(#atender,#coordinacion) .atender-summary h3 { font-size: 18px; font-weight: 600; color: #081f49; line-height: 1.4; letter-spacing: -.025em; }
:is(#atender,#coordinacion) .atender-summary p { margin-top: 10px; color: #617087; font-size: 13px; line-height: 1.7; }
.unified-chat-scene { width: 82%; max-width: 282px; font-size: clamp(8px,3cqw,10px); }
:is(#atender,#coordinacion) .unified-chat-scene .live-chat { width: 100%; }
:is(#atender,#coordinacion) .unified-chat-scene .live-chat-head { padding-block: .9em; }
.unified-sources { display: flex; align-items: center; justify-content: space-around; }
.unified-sources .team-source { width: 2.5em; height: 2.5em; border-radius: .8em; }
.unified-sources .team-source .icon { width: 1.7em; height: 1.7em; }
.unified-sources .team-source:nth-child(1) { animation-delay: 0s; }
.unified-sources .team-source:nth-child(2) { animation-delay: 3s; }
.unified-sources .team-source:nth-child(3) { animation-delay: 6s; }
.unified-sources .team-source:nth-child(4) { animation-delay: 9s; }
:is(#atender,#coordinacion) .unified-chat-scene .team-routing { height: 1.8em; }
:is(#atender,#coordinacion) .unified-chat-scene .live-typing--first { animation-name: unified-chat-writing; }
:is(#atender,#coordinacion) .stage-bridge { margin-top: 25px; }
:is(#atender,#coordinacion) .stage-bridge .icon { color: #0e7bff; }
:is(#atender,#coordinacion) .stage-bridge p { color: #617389; }

/* Small, live product demonstrations in each solution card. */
:is(#atender,#coordinacion) .atender-demo { width: 100%; height: 240px; aspect-ratio: auto; border: 1px solid #dbeafa; border-radius: 15px; display: grid; place-items: center; container-type: inline-size; background: #edf5ff; }
:is(#atender,#coordinacion) .atender-demo::before,:is(#atender,#coordinacion) .atender-demo::after { display: none; }
:is(#atender,#coordinacion) .agent-demo { background: #e5f8f4; border-color: #d1eee7; }
:is(#atender,#coordinacion) .visual-motion-toggle { background: #ffffffeb; border-color: #c8deef; color: #31577e; box-shadow: 0 2px 6px #081f4905; }
:is(#atender,#coordinacion) .atender-demo .visual-motion-toggle { width: 27px; height: 27px; right: 6px; bottom: 6px; }
:is(#atender,#coordinacion) .atender-demo .visual-motion-toggle::after { inset: -9px; }
:is(#atender,#coordinacion) .atender-demo .visual-motion-toggle .icon { width: 12px; height: 12px; }
.team-scene { width: 86%; max-width: 260px; font-size: clamp(8px,3.65cqw,10px); padding-bottom: 4px; }
.team-sources { display: flex; justify-content: space-around; padding: 0 1px; }
.team-source { display: grid; place-items: center; width: 2.8em; height: 2.8em; border: 1px solid #dbe6f2; background: #fff; border-radius: .85em; box-shadow: 0 2px 5px #081f4905; animation: atender-source 12s ease-in-out infinite; }
.team-source .icon { width: 1.8em; height: 1.8em; }
.team-source--whatsapp { color: #169b55; }
.team-source--instagram { color: #d63883; animation-delay: 3s; }
.team-source--facebook { color: #1877f2; animation-delay: 6s; }
.team-source--tiktok { color: #081f49; animation-delay: 9s; }
.team-routing { display: block; width: 100%; height: 2.8em; overflow: visible; }
.team-wire { stroke: #bdd5f2; stroke-width: 1; }
.team-packet { stroke: #0e7bff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 16 84; animation: atender-route 12s ease-in-out infinite; opacity: 0; }
.team-packet:nth-of-type(6) { animation-delay: 3s; stroke: #c94b97; }
.team-packet:nth-of-type(7) { animation-delay: 6s; }
.team-packet:nth-of-type(8) { animation-delay: 9s; stroke: #00a995; }
.team-inbox { border: 1px solid #d6e4f5; border-radius: 1em; background: #fff; padding: .95em; box-shadow: 0 7px 13px -10px #10386c50; }
.team-inbox-head { display: flex; align-items: center; gap: .5em; color: #081f49; padding-bottom: .65em; border-bottom: 1px solid #e9eff8; }
.team-inbox-head .icon { width: 1.4em; height: 1.4em; color: #0e7bff; }
.team-inbox-head strong { font-size: .95em; font-weight: 600; }
.team-inbox-head > span { font-size: .7em; color: #7b8ca6; margin-left: auto; }
.team-conversation { display: flex; align-items: center; gap: .6em; padding: .7em .35em; border-radius: .6em; margin-top: .4em; animation: atender-inbox 6s ease-in-out infinite; }
.team-conversation + .team-conversation { animation-delay: 3s; }
.team-conversation:nth-of-type(4) { animation-delay: 1.5s; }
.team-contact { display: grid; place-items: center; width: 2.6em; height: 2.6em; flex: 0 0 auto; border-radius: 50%; }
.team-contact .icon { width: 1.5em; height: 1.5em; }
.team-contact--blue { background: #e9f3ff; color: #0e7bff; }
.team-contact--teal { background: #ddf6f0; color: #008e7c; }
.team-conversation strong { display: block; font-size: .95em; color: #233e60; font-weight: 500; }
.team-conversation small { display: block; color: #7889a1; font-size: .75em; margin-top: .35em; }
.team-assignee { display: flex; align-items: center; gap: .3em; margin-left: auto; color: #49648a; font-size: .75em; animation: atender-assign 6s ease-in-out infinite; }
.team-assignee i { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: #0e7bff; color: #fff; font-size: .85em; font-style: normal; }
.team-conversation + .team-conversation .team-assignee { animation-delay: 3s; }
.team-conversation:nth-of-type(4) .team-assignee { animation-delay: 1.5s; }
.team-conversation + .team-conversation .team-assignee i { background: #009c89; }

.agent-scene { width: 86%; max-width: 260px; font-size: clamp(8px,3.65cqw,10px); padding-bottom: 4px; }
.agent-console { border: 1px solid #d1e8e4; background: #fff; border-radius: 1.1em; padding: 1em; box-shadow: 0 7px 13px -10px #10386c40; }
.agent-console-head { display: flex; align-items: center; gap: .65em; }
.agent-avatar { display: grid; place-items: center; background: #081f49; color: #43e0ce; width: 2.8em; height: 2.8em; border-radius: .85em; position: relative; }
.agent-avatar .icon { width: 1.9em; height: 1.9em; }
.agent-avatar::after { content: ''; position: absolute; inset: -3px; border: 1px solid #00c8b360; border-radius: 1em; animation: atender-agent-ring 3s ease-out infinite; }
.agent-console-head strong { color: #081f49; font-size: 1em; font-weight: 600; }
.agent-presence { display: flex; align-items: center; gap: .4em; margin-left: auto; color: #008575; font-size: .75em; }
.agent-presence i { width: .5em; height: .5em; background: #00ad97; border-radius: 50%; }
.agent-question { background: #f1f5fa; border: 1px solid #e7edf5; border-radius: .8em .8em .8em .2em; padding: .8em; width: fit-content; max-width: 96%; color: #4e637f; margin-top: .95em; font-size: .95em; animation: atender-question 12s ease-in-out infinite; }
.dialogue-speaker { display: block; font-size: .8em; font-weight: 600; line-height: 1.3; margin-bottom: .4em; }
.agent-question .dialogue-speaker { color: #446789; }
.agent-response .dialogue-speaker { color: #dbf8ff; }
.agent-tools { display: flex; align-items: center; justify-content: space-between; gap: .3em; margin: 1em 0; }
.agent-tools > span { display: flex; align-items: center; gap: .35em; font-size: .75em; color: #5e7a87; padding: .5em .45em; border-radius: .6em; background: #f2f8f7; animation: atender-tool 12s ease-in-out infinite; }
.agent-tools > span:nth-of-type(2) { animation-delay: 1.5s; }
.agent-tools > span:nth-of-type(3) { animation-delay: 3s; }
.agent-tools > span .icon { width: 1.5em; height: 1.5em; }
.agent-tools > .icon { width: .9em; height: .9em; color: #9fc5c1; }
.agent-response-area { position: relative; min-height: 6.5em; }
.agent-response { font-size: .9em; line-height: 1.5; padding: .8em 1em; margin-left: 1.5em; border-radius: .9em .9em .25em .9em; background: #086ce1; color: #fff; animation: atender-response 12s ease-in-out infinite; }
.agent-response .icon { width: 1.1em; height: 1.1em; color: #b7fff1; vertical-align: middle; }
.agent-writing { position: absolute; right: 0; top: 0; padding: 1.2em; background: #e0f7f0; border-radius: 1em; display: flex; gap: .45em; opacity: 0; animation: atender-writing 12s ease-in-out infinite; }
.agent-writing i { width: .4em; height: .4em; border-radius: 50%; background: #009e8a; animation: typing-dot 1s ease-in-out infinite; }
.agent-writing i:nth-child(2) { animation-delay: .15s; }
.agent-writing i:nth-child(3) { animation-delay: .3s; }

@keyframes atender-status { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes atender-source { 2%,16% { transform: translateY(-2px); border-color: #96c3f8; box-shadow: 0 0 0 3px #ffffffa0; } 0%,22%,100% { transform: none; } }
@keyframes atender-route { 0% { opacity: 0; stroke-dashoffset: 16; } 3% { opacity: 1; } 18% { opacity: 1; stroke-dashoffset: -100; } 22%,100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes atender-inbox { 0%,100% { background: #fff; transform: none; } 20%,60% { background: #edf5ff; transform: translateX(2px); } }
@keyframes atender-assign { 0%,8%,100% { opacity: .25; transform: translateX(3px); } 25%,80% { opacity: 1; transform: none; } }
@keyframes atender-agent-ring { 0%,25% { opacity: 0; transform: scale(.97); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2); } }
@keyframes atender-question { 0%,100% { opacity: .5; transform: translateY(2px); } 5%,95% { opacity: 1; transform: none; } }
@keyframes atender-tool { 10%,26% { color: #007d6e; background: #c4f4e9; } 0%,35%,100% { color: #5e7a87; background: #f2f8f7; } }
@keyframes atender-writing { 0%,5%,45%,100% { opacity: 0; } 10%,40% { opacity: 1; } }
@keyframes atender-response { 0%,43%,100% { opacity: 0; transform: translateY(4px); } 48%,95% { opacity: 1; transform: none; } }
@keyframes unified-chat-writing { 0%,6%,42%,100% { opacity: 0; } 10%,38% { opacity: 1; } }

/* The conversation grows inside a fixed window; each new message scrolls into view. */
.sales-thread { height: 15em; padding: .9em; overflow: hidden; overscroll-behavior: contain; overflow-anchor: none; }
.sales-messages { display: flex; flex-direction: column; gap: .7em; }
.sales-message { width: fit-content; max-width: 95%; border-radius: 1em; padding: .7em .85em; line-height: 1.45; animation: sales-arrive .28s ease-out both; }
.sales-message--customer { align-self: flex-start; color: #344e70; background: #edf3fa; border: 1px solid #e0e9f4; border-bottom-left-radius: .25em; }
.sales-message--business { align-self: flex-end; color: #fff; background: #086ce1; border: 1px solid #086ce1; border-bottom-right-radius: .25em; }
.sales-message p { margin: 0; }
.sales-speaker { display: block; font-size: .77em; font-weight: 600; margin-bottom: .35em; color: #537196; }
.sales-message--business .sales-speaker { color: #c9f9ff; }
.sales-confirmation { display: flex; align-items: center; gap: .7em; padding: 1em .8em; color: #086c60; background: #dcf8ee; border: 1px solid #bdebdc; border-radius: 1em; animation: sales-arrive .28s ease-out both; }
.sales-confirmation > .icon { width: 2em; height: 2em; flex-shrink: 0; }
.sales-confirmation strong { display: block; font-weight: 600; font-size: 1em; }
.sales-confirmation small { display: block; font-size: .72em; color: #53877c; margin-top: .35em; }
.sales-proof > div { display: flex; align-items: center; gap: .65em; }
.sales-proof .icon { width: 2.1em; height: 2.1em; flex-shrink: 0; color: #6d49b8; }
.sales-proof strong { display: block; font-size: .9em; font-weight: 500; }
.sales-proof small { display: block; font-size: .75em; margin-top: .35em; color: #617b98; }
.sales-typing { align-self: flex-end; display: flex; gap: .45em; padding: 1.05em 1.2em; background: #e8f4ff; border-radius: 1em; }
.sales-typing i { width: .4em; height: .4em; background: #0e7bff; border-radius: 50%; animation: typing-dot 1s ease-in-out infinite; }
.sales-typing i:nth-child(2) { animation-delay: .15s; }
.sales-typing i:nth-child(3) { animation-delay: .3s; }
[data-chat-message][hidden],[data-chat-typing][hidden] { display: none; }
@keyframes sales-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* The same order stays visible while the internal conversation advances. */
.context-console { border: 1px solid #d4e3f3; border-radius: 1.1em; background: #fff; overflow: hidden; box-shadow: 0 9px 18px -13px #081f4955; }
.context-head { display: flex; align-items: center; gap: .5em; padding: 1em .9em; color: #081f49; }
.context-head > .icon { width: 1.6em; height: 1.6em; flex: 0 0 auto; color: #0e7bff; }
.context-head strong { font-size: .95em; font-weight: 600; }
.context-head > span { margin-left: auto; color: #72839a; font-size: .7em; }
.context-head--agent { background: #081f49; color: #fff; }
.context-head--agent > .icon { color: #40dfcb; }
.context-head--agent > span { color: #b9e5e2; }
.context-order { display: flex; align-items: center; gap: .5em; padding: .65em 1em; border-block: 1px solid #e5edf7; background: #f2f7ff; color: #42618a; font-size: .8em; }
.context-order .icon { width: 1.4em; height: 1.4em; color: #0e7bff; }
.agent-demo .context-order { background: #effaf7; border-color: #dfeee9; color: #33786e; }
.agent-demo .context-order .icon { color: #009c89; }
.context-thread { height: 12.4em; overflow: hidden; overscroll-behavior: contain; overflow-anchor: none; padding: .8em; }
.context-messages { display: flex; flex-direction: column; gap: .7em; }
.context-message { max-width: 95%; width: fit-content; align-self: flex-start; border-radius: .8em .8em .8em .2em; padding: .7em .8em; background: #edf3fa; color: #304d71; line-height: 1.45; font-size: .95em; animation: sales-arrive .28s ease-out both; }
.context-message p { margin: 0; }
.context-message .dialogue-speaker { color: #527096; }
.context-message--user { align-self: flex-end; background: #086ce1; color: #fff; border-radius: .8em .8em .2em .8em; }
.context-message--user .dialogue-speaker { color: #c9f9ff; }
.context-message--agent { align-self: flex-start; background: #e7f8f2; border: 1px solid #cfece2; color: #164d48; border-radius: .8em .8em .8em .2em; }
.context-message--agent .dialogue-speaker { display: flex; align-items: center; gap: .4em; color: #087867; }
.context-message--agent .dialogue-speaker .icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.context-alert { display: flex; align-items: center; gap: .65em; padding: .85em .75em; background: #e7f9f2; border: 1px solid #cfeee1; border-radius: .8em; color: #087264; animation: sales-arrive .28s ease-out both; }
.context-alert > .icon { width: 1.8em; height: 1.8em; flex: 0 0 auto; }
.context-alert strong { display: block; font-size: .95em; font-weight: 600; }
.context-alert small { display: block; margin-top: .4em; font-size: .78em; line-height: 1.4; color: #477b72; }
.context-alert--pending { background: #edf5ff; border-color: #d6e7fc; color: #0869d1; }
.context-alert--pending small { color: #5479a4; }
.context-compose { border-top: 1px solid #e6edf6; padding: .75em 1em; display: flex; align-items: center; justify-content: space-between; color: #8896a9; font-size: .72em; }
.context-compose .icon { width: 1.6em; height: 1.6em; color: #0e7bff; }
.context-typing { display: flex; align-self: flex-start; gap: .4em; padding: 1em; background: #dff7ef; border-radius: .8em; }
.context-typing i { width: .4em; height: .4em; border-radius: 50%; background: #009e8a; animation: typing-dot 1s ease-in-out infinite; }
.context-typing i:nth-child(2) { animation-delay: .15s; }
.context-typing i:nth-child(3) { animation-delay: .3s; }
[data-context-message][hidden],[data-context-typing][hidden] { display: none; }

/* Three distinct product surfaces, all inset within their original frames. */
:is(#atender,#coordinacion) .stage-illustration .sales-chat { font-size: clamp(8px,3.1cqw,9px); border-radius: 1.25em; }
:is(#atender,#coordinacion) .ai-chat-visual .visual-motion-toggle { width: 25px; height: 25px; top: 5px; right: 5px; bottom: auto; }
:is(#atender,#coordinacion) .ai-chat-visual .visual-motion-toggle .icon { width: 12px; height: 12px; }
.sales-appbar { display: flex; align-items: center; justify-content: space-between; padding: .65em .9em; background: #081f49; color: #fff; }
.sales-appbar > span { display: flex; align-items: center; gap: .5em; }
.sales-appbar strong { font-weight: 600; font-size: .95em; }
.sales-appbar .icon { width: 1.4em; height: 1.4em; }
.sales-app-actions { color: #b4c9e7; gap: .8em!important; }
.sales-app-actions .icon { width: 1.25em; height: 1.25em; }
.sales-contact-head { display: flex; align-items: center; gap: .75em; padding: .7em .9em; }
.sales-contact-avatar { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #d8f5ee; color: #007e70; font-weight: 600; position: relative; flex: 0 0 auto; }
.sales-contact-avatar i { position: absolute; right: -.25em; bottom: -.15em; width: 1.3em; height: 1.3em; display: grid; place-items: center; background: #20ac68; color: white; border: 2px solid white; border-radius: 50%; }
.sales-contact-avatar .icon { width: .9em; height: .9em; }
.sales-contact-name { display: grid; gap: .25em; }
.sales-contact-name strong { color: #081f49; font-size: 1.1em; font-weight: 600; }
.sales-contact-name small { color: #71829b; font-size: .72em; }
.sales-bot-state { display: flex; align-items: center; gap: .4em; margin-left: auto; padding: .45em .6em; border-radius: .6em; color: #008473; background: #e5f8f1; font-size: .7em; white-space: nowrap; }
.sales-bot-state .icon { width: 1.25em; height: 1.25em; }
.sales-context-strip { display: flex; gap: .8em; align-items: center; justify-content: space-between; padding: .55em 1.1em; background: #f3f7fc; border-block: 1px solid #e6edf6; color: #657e9d; font-size: .72em; }
.sales-context-strip span { display: flex; align-items: center; gap: .4em; }
.sales-context-strip .icon { width: 1.2em; height: 1.2em; color: #3e7fd3; }
:is(#atender,#coordinacion) .sales-thread { height: 12em; }
.sales-composer { padding: .65em .8em; border-top: 1px solid #e7edf5; }
.sales-input-row { display: flex; gap: .75em; align-items: center; padding: .5em .6em; color: #6e829c; background: #f5f8fc; border: 1px solid #e5ecf6; border-radius: .7em; }
.sales-input-placeholder { flex: 1; font-size: .75em; }
.sales-input-row .icon { width: 1.3em; height: 1.3em; }
.sales-input-row > span { display: flex; }
.sales-input-tools { display: flex; align-items: center; gap: .85em; padding: .6em .2em 0; color: #6b809d; }
.sales-input-tools > span { display: flex; align-items: center; }
.sales-input-tools .icon { width: 1.35em; height: 1.35em; }
.sales-attach { gap: .35em; font-size: .72em; color: #3c668e; }
.sales-attach .icon { width: 1.6em; height: 1.6em; }
.sales-voice { margin-left: auto; }
.sales-send { background: #0e7bff; color: #fff; padding: .35em; border-radius: .5em; }
.team-demo .context-head { padding-block: .8em; }
.team-presence { display: flex; align-items: center; gap: .65em; padding: .65em .9em; border-top: 1px solid #eff3fa; }
.team-avatars { display: flex; padding-right: .2em; }
.team-avatars > i { position: relative; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; border: 2px solid white; background: #e3eeff; color: #2771d4; font-size: .8em; font-weight: 600; font-style: normal; }
.team-avatars > i + i { margin-left: -.45em; background: #dbf7ee; color: #008574; }
.team-avatars b { width: .65em; height: .65em; background: #12b886; border: 1px solid white; border-radius: 50%; position: absolute; right: -.1em; bottom: 0; }
.team-presence strong { display: block; color: #426083; font-size: .75em; font-weight: 500; }
.team-presence small { display: flex; align-items: center; gap: .4em; font-size: .65em; color: #23947b; margin-top: .25em; }
.team-presence small i { width: .45em; height: .45em; border-radius: 50%; background: #14b58e; animation: atender-status 3s ease-in-out infinite; }
.team-presence > .icon { margin-left: auto; color: #8397af; width: 1.4em; height: 1.4em; }
.team-demo .context-thread { height: 10.2em; }
.team-compose { gap: .8em; }
.team-compose > span { flex: 1; }
:is(#atender,#coordinacion) .agent-demo { background: radial-gradient(ellipse at bottom right,#d9f1ff,transparent 75%),#eaf8f5; }
:is(#atender,#coordinacion) .agent-scene { height: calc(100% - 14px); max-width: 260px; padding: 0; font-size: clamp(8px,3.45cqw,9.5px); }
.consultation-panel { border-color: #cee8e4; box-shadow: 0 12px 24px -16px #13534f60,0 2px 6px #081f4905; transform-origin: 90% 100%; animation: consultation-open .55s cubic-bezier(.2,.8,.2,1) both; }
.consultation-panel[hidden] { display: none; }
.consultation-head { display: flex; align-items: center; gap: .65em; padding: .45em .9em; }
.consultation-mark { display: grid; place-items: center; width: 2.4em; height: 2.4em; border: 1px solid #caece2; background: #e5f8f1; color: #008775; border-radius: .8em; }
.consultation-mark > .icon { width: 1.5em; height: 1.5em; }
.consultation-head strong { display: block; font-size: 1em; color: #0c3049; font-weight: 600; }
.consultation-head small { display: block; font-size: .65em; color: #8699a6; margin-top: .3em; }
.consultation-options { display: flex; gap: .7em; color: #738a9a; margin-left: auto; }
.consultation-options .icon { width: 1.2em; height: 1.2em; }
.consultation-reference { display: flex; gap: .4em; align-items: center; margin: 0 .9em; padding: .5em .6em; border-radius: .5em; background: #f0f8f6; color: #527b72; font-size: .7em; }
.consultation-reference .icon { width: 1.2em; height: 1.2em; }
.consultation-reference > span { margin-left: auto; color: #7e9a94; font-size: .85em; }
.consultation-panel .context-thread { height: 9.4em; padding: .85em; }
.consultation-panel .context-message--agent { background: transparent; border: 0; padding: .25em .1em; width: 100%; max-width: 100%; color: #3d5964; }
.consultation-panel .context-message--agent .dialogue-speaker { color: #008875; font-weight: 600; }
.consultation-panel .context-alert { background: #eef8f4; padding: .7em; }
.consultation-composer { margin: 0 .8em .3em; padding: .4em .8em; border: 1px solid #deeae8; border-radius: 1em; color: #81979c; box-shadow: 0 2px 4px #12352e03; }
.consultation-composer > span { display: block; font-size: .75em; }
.consultation-composer > div { display: flex; justify-content: space-between; align-items: center; margin-top: .3em; }
.consultation-composer .icon { width: 1.35em; height: 1.35em; }
.consultation-composer > div > span { display: flex; align-items: center; gap: .8em; }
.consultation-composer i { display: grid; place-items: center; background: #081f49; color: #fff; border-radius: 50%; padding: .35em; }
.consultation-launcher { position: absolute; bottom: 7px; right: 18px; display: flex; align-items: center; justify-content: center; gap: 5px; height: 25px; min-width: 44px; padding: 0 9px; background: linear-gradient(130deg,#153968,#081f49); color: #fff; border: 1px solid #42608a; border-radius: 9px; box-shadow: 0 4px 10px -4px #081f4970,inset 0 1px 0 #ffffff30; cursor: pointer; font-size: 9px; }
.consultation-launcher::after { content: ''; position: absolute; inset: -8px; }
.consultation-launcher .icon { width: 14px; height: 14px; color: #6befd7; }
.consultation-launcher:focus-visible { outline: 2px solid #0e7bff; outline-offset: 3px; }
:is(#atender,#coordinacion) .agent-demo .visual-motion-toggle { right: auto; left: 6px; }
@keyframes consultation-open { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
.agent-demo[data-motion="paused"] .consultation-panel { animation: none; }
/* Extra tools need reading space at small widths without filling the frame. */
@media(max-width:1000px) { :is(#atender,#coordinacion) .ai-chat-visual { width: min(280px,100%); height: 280px; margin-inline: auto; } }
[data-sales-step="0"] [data-chat-message]:first-child,
[data-context-step="0"] [data-context-message]:first-child { animation: none; }


@media(max-width:1150px) and (min-width:1001px) {
  :is(#atender,#coordinacion) .stage-layout { grid-template-columns: 260px minmax(0,1fr); gap: 20px; }
  :is(#atender,#coordinacion) .solution-card { padding: 15px; }
  :is(#atender,#coordinacion) .solution-title h3 { font-size: 14px; }
}
@media(max-width:1000px) {
  :is(#atender,#coordinacion) .stage-modules { gap: 14px; }
  :is(#atender,#coordinacion) .atender-summary { margin-top: 16px; }
  :is(#atender,#coordinacion) .atender-demo { height: 220px; }
}
@media(max-width:380px) {
  :is(#atender,#coordinacion) .solution-card { padding: 15px; }
  :is(#atender,#coordinacion) .solution-title { gap: 7px; }
  :is(#atender,#coordinacion) .solution-title h3 { font-size: 14px; }
  :is(#atender,#coordinacion) .atender-demo { height: 200px; }
  :is(#atender,#coordinacion) .team-scene,:is(#atender,#coordinacion) .agent-scene { width: 88%; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(#atender,#coordinacion) .feature-visual *,:is(#atender,#coordinacion) .feature-visual *::after { animation: none!important; }
  :is(#atender,#coordinacion) .team-packet,:is(#atender,#coordinacion) .agent-writing,:is(#atender,#coordinacion) .agent-avatar::after { display: none; }
  :is(#atender,#coordinacion) .agent-response,:is(#atender,#coordinacion) .agent-question,:is(#atender,#coordinacion) .team-assignee { opacity: 1; transform: none; }
}
