/* duo.css — dos celulares (pantallas en modo oscuro). Tematiza con --du-* desde la landing. */
.du {
  --du-accent: var(--k7f77dd); --du-accent-ink: var(--ka49df0); --du-fg: var(--kecebf2); --du-muted: var(--k8f8a9c); --du-line: var(--kffffff-1);
  --du-panel: var(--k121218); --du-font: inherit; --du-mono: ui-monospace, monospace; --du-radius: 14px; --du-pw: 290px;
  --du-ok: var(--k3ccf8e); --du-warn: var(--ke2b046);
  font-family: var(--du-font); color: var(--du-fg);
}
.du * { box-sizing: border-box; }
.du-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.du-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 40px; max-width: 980px; }
.du-tab { position: relative; overflow: hidden; font: 600 14.5px var(--du-font); color: var(--du-muted); background: transparent; border: 1px solid var(--du-line); border-radius: var(--du-radius); padding: 11px 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.du-tab:hover { color: var(--du-fg); border-color: var(--kffffff-25); }
.du-tab[aria-selected="true"] { color: var(--kffffff); background: var(--k7f77dd-16); border-color: var(--k7f77dd-6); }
.du-tab:focus-visible, .du-ic:focus-visible, .du-switch button:focus-visible { outline: 2px solid var(--du-accent-ink); outline-offset: 3px; }
.du-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--du-accent); }
.du-stage { position: relative; }
.du-switch { display: none; }
.du-phones { display: grid; grid-template-columns: auto minmax(60px, 170px) auto; justify-content: center; align-items: center; }
.du-col { margin: 0; display: grid; gap: 16px; justify-items: center; }
.du-col figcaption { text-align: center; display: grid; gap: 3px; }
.du-col figcaption b { font-size: 16px; }
.du-col figcaption span { color: var(--du-muted); font-size: 13.5px; }
.du-phone { width: var(--du-pw); height: calc(var(--du-pw) * 2.07); border-radius: calc(var(--du-pw) * .17); padding: calc(var(--du-pw) * .034); position: relative;
  background: linear-gradient(150deg, var(--k3b3a42), var(--k121216) 40%, var(--k26252b));
  box-shadow: inset 0 0 0 1.5px var(--k55545c), inset 0 0 0 5px var(--k0b0b0d), 0 40px 80px -30px var(--k000000-8), 0 0 0 1px var(--kffffff-04); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.du-col.du-act .du-phone { transform: translateY(-6px); }
.du-screen { height: 100%; border-radius: calc(var(--du-pw) * .14); overflow: hidden; display: flex; flex-direction: column; position: relative; font-size: 12.5px; line-height: 1.38; color: var(--ke9edef); }
.du-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 31%; height: 25px; background: var(--k000000); border-radius: 20px; z-index: 4; }
.du-status { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-size: 13.5px; position: relative; z-index: 3; }
.du-sig { width: 40px; height: 11px; background: linear-gradient(currentColor, currentColor) 0 100%/3px 4px no-repeat, linear-gradient(currentColor, currentColor) 4px 100%/3px 6px no-repeat, linear-gradient(currentColor, currentColor) 8px 100%/3px 8px no-repeat, linear-gradient(currentColor, currentColor) 12px 100%/3px 11px no-repeat; position: relative; }
.du-sig::after { content: ""; position: absolute; right: 0; top: 0; width: 20px; height: 11px; border-radius: 3.5px; border: 1.3px solid currentColor; box-shadow: inset 0 0 0 1.5px var(--k111111), inset 0 0 0 9px currentColor; opacity: .9; }
.du-home-bar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 36%; height: 4.5px; border-radius: 4px; background: var(--kffffff); opacity: .6; z-index: 3; }
.du-app { background: var(--k0f0f15); }
.du-wa { background: var(--k0b141a); background-image: radial-gradient(var(--kffffff-035) 1.1px, transparent 1.2px); background-size: 18px 18px; }
.du-head { display: flex; align-items: center; gap: 9px; padding: 4px 12px 10px; border-bottom: 1px solid var(--kffffff-07); flex: none; }
.du-app .du-head { background: var(--k15151d); }
.du-wa .du-head, .du-wa .du-status { background: var(--k1f2c34); }
.du-chev { font-size: 26px; line-height: 1; color: var(--k8fd9c9); margin-top: -3px; }
.du-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: linear-gradient(140deg, var(--k8e86e6), var(--k5a51c4)); }
.du-av img { width: 66%; filter: brightness(0) invert(1); }
.du-who { min-width: 0; flex: 1; }
.du-who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-who small { display: flex; align-items: center; gap: 5px; color: var(--k8696a0); font-size: 11px; }
.du-on { width: 6px; height: 6px; border-radius: 50%; background: var(--k3ccf8e); display: inline-block; }
.du-dash { font-weight: 700; font-size: 10.5px; color: var(--kffffff); background: var(--k7f77dd-3); padding: 5px 8px; border-radius: 7px; }
.du-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 10px 8px; }
.du-m { max-width: 84%; padding: 7px 10px 6px; border-radius: 12px; position: relative; animation: du-pop .42s cubic-bezier(.22,1.2,.36,1) both; transform-origin: bottom left; flex: none; }
.du-t { display: block; text-align: right; font-size: 9.5px; color: var(--ke9edef-5); margin-top: 1px; }
.du-gu { align-self: flex-start; border-top-left-radius: 4px; }
.du-app .du-gu { background: var(--k1d1d28); }
.du-wa .du-gu { background: var(--k202c33); }
.du-me { align-self: flex-end; transform-origin: bottom right; border-top-right-radius: 4px; }
.du-app .du-me { background: var(--k5a51c4); color: #fff; }
.du-wa .du-me { background: var(--k005c4b); }
.du-wa .du-me .du-t::after { content: " ✓✓"; color: var(--k53bdeb); letter-spacing: -2px; }
.du-mc { padding: 0; background: none !important; max-width: 90%; width: 90%; }
.du-old { opacity: .5; animation: none; }
.du-sys { align-self: center; font-size: 10.5px; font-weight: 600; color: var(--k8696a0); background: var(--kffffff-06); padding: 3px 9px; border-radius: 7px; animation: du-fade .3s both; flex: none; }
.du-sys.ok { color: var(--du-ok); background: var(--k3ccf8e-1); }
.du-typing { display: inline-flex; gap: 3px; padding: 10px 12px; }
.du-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--k8696a0); animation: du-dot 1s infinite ease-in-out; }
.du-typing i:nth-child(2) { animation-delay: .15s } .du-typing i:nth-child(3) { animation-delay: .3s }
@keyframes du-dot { 0%, 80%, 100% { opacity: .35; transform: none } 40% { opacity: 1; transform: translateY(-2.5px) } }
@keyframes du-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@keyframes du-fade { from { opacity: 0; } }
.du-log.out > * { transition: opacity .35s, transform .35s; opacity: 0; transform: translateY(-10px); }
.du-comp { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 10px 22px; border-top: 1px solid var(--kffffff-06); }
.du-app .du-comp { background: var(--k15151d); }
.du-wa .du-comp { background: var(--k1f2c34); }
.du-plus { color: var(--k8696a0); font-size: 20px; line-height: 1; width: 14px; }
.du-ph { flex: 1; min-width: 0; height: 32px; border-radius: 17px; background: var(--kffffff-07); display: flex; align-items: center; padding: 0 12px; color: var(--k8696a0); font-size: 12px; white-space: nowrap; overflow: hidden; }
.du-wa .du-ph { background: var(--k2a3942); }
.du-ph.typing { color: var(--ke9edef); justify-content: flex-end; }
.du-ph.typing::after { content: ""; width: 1.5px; height: 15px; background: var(--du-accent-ink); margin-left: 1px; animation: du-caret .9s steps(1) infinite; flex: none; }
@keyframes du-caret { 50% { opacity: 0; } }
.du-send { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--k5a51c4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3.4 20.4 21 12 3.4 3.6 3 10l12 2-12 2z'/%3E%3C/svg%3E") 55% 50%/14px no-repeat; transition: transform .15s; }
.du-wa .du-send { background-color: var(--k00a884); }
.du-send.press { transform: scale(.82); }
.du-c { background: var(--k1b1b25); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--kffffff-06); }
.du-wa .du-c { background: var(--k202c33); }
.du-pad { padding: 9px 10px; }
.du-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.du-temp { font-weight: 700; font-size: 11px; color: var(--kff8f86); }
.du-p { margin: 6px 0 0; }
.du-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.du-kv span { display: grid; background: var(--k7f77dd-14); border-radius: 7px; padding: 4px 6px; font-weight: 700; font-size: 11.5px; }
.du-kv small { font-weight: 400; font-size: 9.5px; color: var(--ka7a2b5); }
.du-bar { height: 4px; border-radius: 4px; background: var(--k7f77dd-18); overflow: hidden; margin-top: 7px; }
.du-bar i { display: block; height: 100%; background: var(--du-accent); border-radius: 4px; width: var(--w, 80%); animation: du-grow 1s .2s both cubic-bezier(.22,1,.36,1); }
.du-load i { animation-duration: 2.6s; }
@keyframes du-grow { from { width: 0; } }
.du-mut { color: var(--ka7a2b5); font-size: 10.5px; }
.du-acc { color: var(--du-accent-ink); }
.du-notif { display: flex; gap: 8px; align-items: center; }
.du-ico { width: 26px; height: 26px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 9.5px; display: grid; place-items: center; flex: none; }
.du-notif b { display: block; font-size: 12px; }
.du-notif small { color: var(--ka7a2b5); font-size: 10.5px; }
.du-img { aspect-ratio: 16 / 10; position: relative; background-size: cover; background-position: center; background-color: var(--k2a2a36); }
.du-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--k000000-6)); }
.du-img b { position: absolute; left: 9px; bottom: 6px; z-index: 1; color: #fff; font-size: 14px; }
.du-body { padding: 7px 10px 6px; }
.du-body b { display: block; font-size: 12.5px; }
.du-body small { color: var(--ka7a2b5); font-size: 10.5px; display: block; }
.du-clean { display: block; font-size: 10px; font-weight: 700; color: var(--du-ok); margin-top: 3px; }
.du-lnk { display: block; text-align: center; color: var(--du-accent-ink); font-weight: 700; font-size: 11.5px; padding: 6px; border-top: 1px solid var(--kffffff-07); }
.du-wa .du-lnk { color: var(--k53bdeb); }
.du-cita { display: flex; gap: 8px; align-items: center; background: var(--k7f77dd-16); border-radius: 10px; padding: 7px 8px; margin-top: 6px; }
.du-cal { width: 30px; height: 30px; border-radius: 8px; background: var(--k5a51c4); flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 9px; line-height: 1; text-align: center; }
.du-cal span { display: block; font-size: 12px; }
.du-cita b { display: block; font-size: 12px; }
.du-cita small { color: var(--ka7a2b5); font-size: 10.5px; }
.du-rows { display: grid; gap: 3px; }
.du-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 4px 0; border-bottom: 1px dashed var(--kffffff-1); }
.du-row:last-child { border-bottom: 0; }
.du-st { margin-left: auto; font-size: 10px; color: var(--ka7a2b5); white-space: nowrap; }
.du-st.ok { color: var(--du-ok); }
.du-st.warn { color: var(--du-warn); }
.du-ini { width: 20px; height: 20px; border-radius: 50%; background: var(--k7f77dd-2); color: var(--kcfcaff); font-weight: 800; font-size: 9px; display: grid; place-items: center; flex: none; }
.du-chk { width: 14px; height: 14px; border-radius: 50%; background: var(--du-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat; flex: none; animation: du-pop .35s both; }
.du-row:nth-child(2) .du-chk { animation-delay: .25s } .du-row:nth-child(3) .du-chk { animation-delay: .5s } .du-row:nth-child(4) .du-chk { animation-delay: .75s }
.du-strike { text-decoration: line-through; text-decoration-color: var(--kff6b62); text-decoration-thickness: 1.5px; color: var(--ka7a2b5); }
.du-mapa { height: 112px; position: relative; overflow: hidden; background: var(--k1a1d24);
  background-image: linear-gradient(28deg, transparent 46%, var(--k2d313b) 46.5%, var(--k2d313b) 50%, transparent 50.5%), linear-gradient(-62deg, transparent 30%, var(--k2d313b) 30.5%, var(--k2d313b) 33%, transparent 33.5%),
    repeating-linear-gradient(0deg, transparent 0 21px, var(--kffffff-05) 21px 23px), repeating-linear-gradient(90deg, transparent 0 27px, var(--kffffff-05) 27px 29px); }
.du-park { position: absolute; left: 12%; top: 18%; width: 34%; height: 46%; border-radius: 40% 55% 45% 50%; background: var(--k1f3427); }
.du-pin { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; animation: du-drop .5s both cubic-bezier(.22,1.4,.36,1); }
.du-pin i { width: 13px; height: 13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--k8f8a9c)); }
.du-home i { width: 18px; height: 18px; background: var(--k8f86ff); }
.du-pin span { position: absolute; bottom: 100%; margin-bottom: 3px; font-weight: 700; font-size: 8.5px; color: #111; background: #fff; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
@keyframes du-drop { from { opacity: 0; transform: translate(-50%, -160%); } }
.du-ring { position: absolute; width: 70px; height: 70px; border-radius: 50%; border: 1.5px dashed var(--ka49df0-6); transform: translate(-50%, -50%); }
.du-crm { display: inline-flex; background: #fff; border-radius: 8px; padding: 5px 8px; }
.du-crm img { height: 18px; width: auto; display: block; }
.du-auth { margin-top: 8px; display: block; text-align: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--k5a51c4); border-radius: 9px; padding: 7px; transition: transform .15s, background .3s; }
.du-auth.done { background: var(--k1f9d63); transform: scale(.97); }
.du-slots { display: flex; gap: 5px; margin-top: 6px; }
.du-slots span { flex: 1; text-align: center; font-weight: 700; font-size: 11px; padding: 5px 0; border-radius: 7px; border: 1px solid var(--kffffff-15); }
.du-slots span.busy { color: var(--k6c6878); text-decoration: line-through; }
.du-sync { position: relative; height: 100%; display: grid; place-items: center; }
.du-line { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--ka49df0-35) 0 6px, transparent 6px 12px); }
.du-line i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--du-accent); opacity: 0; box-shadow: 0 0 0 5px var(--k7f77dd-22), 0 0 22px 6px var(--k7f77dd-55); }
.du-sync.lr .du-line i { animation: du-lr .95s cubic-bezier(.65,0,.35,1) both; }
.du-sync.rl .du-line i { animation: du-rl .95s cubic-bezier(.65,0,.35,1) both; }
@keyframes du-lr { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes du-rl { 0% { left: 100%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.du-caption { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; max-width: 760px; margin: 40px auto 0; background: var(--du-panel); border: 1px solid var(--du-line); border-radius: var(--du-radius); padding: 12px 12px 12px 20px; }
.du-cap { margin: 0; font-size: 16px; font-weight: 600; min-height: 1.5em; }
.du-cap.swap { animation: du-fade .4s both; }
.du-ctrl { display: flex; gap: 6px; }
.du-ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--du-line); background: transparent; color: var(--du-fg); display: grid; place-items: center; cursor: pointer; }
.du-ic:hover { border-color: var(--du-accent); }
.du-ic svg { width: 17px; height: 17px; }
@media (max-width: 1080px) { .du { --du-pw: 270px; } .du-phones { grid-template-columns: auto 60px auto; } }
@media (max-width: 760px) {
  .du { --du-pw: min(300px, calc(100vw - 72px)); }
  .du-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .du-tab { flex: none; }
  .du-switch { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
  .du-switch button { position: relative; font: 600 14px var(--du-font); color: var(--du-muted); background: transparent; border: 1px solid var(--du-line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
  .du-switch button[aria-pressed="true"] { color: var(--kffffff); border-color: var(--k7f77dd-6); background: var(--k7f77dd-16); }
  .du-switch button i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--du-accent); display: none; }
  .du-switch button.nuevo i { display: block; }
  .du-phones { display: block; }
  .du-sync { display: none; }
  .du-stage[data-focus="L"] .du-col[data-side="R"], .du-stage[data-focus="R"] .du-col[data-side="L"] { display: none; }
  .du-col { animation: du-fade .35s both; }
  .du-caption { margin-top: 22px; padding: 10px 10px 10px 16px; }
  .du-cap { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .du *, .du *::before, .du *::after { animation: none !important; transition: none !important; } }

/* avisos de Gu soporte con botones (plantillas de WhatsApp), mensajes del agente y nota de voz */
.du-tpl { font-size: 12px; line-height: 1.45; }
.du-tbs { display: grid; gap: 1px; margin: 8px -10px -6px; border-top: 1px solid var(--kffffff-08); }
.du-tb { display: block; text-align: center; color: var(--k53bdeb); font-weight: 600; font-size: 12px; padding: 7px 4px; border-bottom: 1px solid var(--kffffff-06); transition: background .25s; }
.du-tb:last-child { border-bottom: 0; }
.du-tb.on { background: var(--k53bdeb-18); }
.du-p { margin: 6px 0 0; font-size: 11.5px; }
.du-ag { border-left: 2px solid var(--k53bdeb); }
.du-de { display: block; font-size: 10px; font-weight: 700; color: var(--k53bdeb); margin-bottom: 3px; }
.du-audio { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.du-audio i { width: 0; height: 0; border-left: 9px solid var(--ke9edef); border-top: 6px solid transparent; border-bottom: 6px solid transparent; flex: none; }
.du-onda { flex: 1; height: 16px; background: repeating-linear-gradient(90deg, var(--ke9edef-7) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(0deg, #000 30%, transparent 30% 40%, #000 40% 60%, transparent 60% 70%, #000 70%); opacity: .8; border-radius: 2px; }
.du-audio small { font-size: 10px; color: var(--ke9edef-6); }
/* documento PDF en el chat (ficha técnica) */
.du-pdf { display: flex; gap: 10px; align-items: center; }
.du-pdf-ic { width: 34px; height: 40px; border-radius: 5px; background: var(--ke5484d); color: #fff; font-weight: 800; font-size: 10px; display: grid; place-items: end center; padding-bottom: 6px; flex: none; }
.du-pdf b { display: block; font-size: 12.5px; } .du-pdf small { display: block; font-size: 10.5px; color: var(--k8696a0); margin-top: 2px; }
