.lab-call { max-width: 1240px; margin: 0 auto; padding: 24px; }
.lab-call__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.lab-call__how { margin: 0; max-width: 380px; font-size: 13px; color: var(--t-ink-2); text-align: right; }
.lab-call__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }

/* ---- escena: todas las capas en coordenadas 1920×1080 (porcentajes), con la misma transformación ---- */
.scene { position: relative; aspect-ratio: 16 / 9; min-width: 0; border: 1px solid var(--t-ink); border-radius: 16px; overflow: hidden; background: var(--t-paper-2); container-type: inline-size; }
.scene > * { position: absolute; }
.scene__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
#poses { inset: 0; }
.scene__pose { position: absolute; opacity: 0; transition: opacity .25s ease; }
.scene__pose.is-on { opacity: 1; }
.scene__obj { object-fit: contain; transition: transform .2s ease, filter .2s ease; transform-origin: 50% 85%; }
.scene__shadow { border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 29, 31, .28), rgba(28, 29, 31, 0)); }

/* conexión (tapa) bajo el destornillador y cable de carga */
.scene__tapa { width: 6.8%; height: 4.2%; transform: translate(-50%, -50%); border: 2px solid var(--t-ink); border-radius: 6px; background: #e9e8e3; box-shadow: 0 .25cqw 0 rgba(28, 29, 31, .25); }
.scene__tapa i { position: absolute; top: 50%; width: .5cqw; height: .5cqw; margin-top: -.25cqw; border-radius: 50%; background: var(--t-ink-2); }
.scene__tapa i:first-child { left: 14%; } .scene__tapa i:last-child { right: 14%; }
.scene__cable { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene__cable-base { fill: none; stroke: #646669; stroke-width: 6; stroke-linecap: round; }
.scene__cable-fill { fill: none; stroke: var(--t-signal); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }
.scene.is-charging .scene__cable-fill { filter: drop-shadow(0 0 6px rgba(255, 75, 31, .8)); }

/* máquina: arranque de 1,2 s — el botón se hunde, el mecanismo acelera, el cuerpo vibra cada vez más */
.scene.is-working .scene__machine { animation: call-start 1.2s linear forwards; }
.scene.is-working .scene__button-art { animation: call-start 1.2s linear forwards, call-sink .18s ease-out forwards; }
@keyframes call-start {
  0% { transform: translate(0, 0); } 10% { transform: translate(-.05cqw, 0); } 20% { transform: translate(.06cqw, .02cqw); }
  30% { transform: translate(-.08cqw, -.02cqw); } 40% { transform: translate(.1cqw, .03cqw); } 50% { transform: translate(-.12cqw, 0); }
  58% { transform: translate(.14cqw, -.03cqw); } 66% { transform: translate(-.16cqw, .04cqw); } 73% { transform: translate(.17cqw, -.04cqw); }
  80% { transform: translate(-.18cqw, .05cqw); } 86% { transform: translate(.18cqw, -.05cqw); } 92% { transform: translate(-.18cqw, .05cqw); } 100% { transform: translate(0, 0); }
}
@keyframes call-sink { to { translate: 0 .35cqw; } }
/* prueba de conexión: pulso naranja del círculo de la máquina (600 ms, con la nota) */
.scene__test-pulse { width: 5cqw; height: 5cqw; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0; }
.scene.is-test-pulse .scene__test-pulse { animation: call-testpulse .6s ease-out; }
@keyframes call-testpulse { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 75, 31, .9), 0 0 2cqw rgba(255, 75, 31, .9); } 100% { opacity: 0; box-shadow: 0 0 0 3cqw rgba(255, 75, 31, 0), 0 0 0 rgba(255, 75, 31, 0); } }

/* objetos elegidos en el diagnóstico */
.scene__obj.is-wrong { animation: call-nope .5s ease 2; filter: drop-shadow(0 0 .6cqw rgba(63, 65, 69, .9)); }
.scene__obj.is-picked, .scene__obj.is-right { filter: drop-shadow(0 0 .8cqw rgba(255, 75, 31, .95)); transform: scale(1.04); }
@keyframes call-nope { 25% { transform: translateX(-.4cqw); } 75% { transform: translateX(.4cqw); } }

/* estrella: caída corta (400 ms) con rebote, pausa, y viaje en arco (700 ms) hasta la mano */
.scene__drop { width: 7.5%; height: auto; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
  transition: left .7s cubic-bezier(.45, 0, .55, 1), top .7s cubic-bezier(.3, 0, .35, 1.8), transform .7s ease, opacity .25s ease; }
.scene.is-drop .scene__drop { opacity: 1; animation: call-drop .7s linear forwards; }
.scene.is-tohand .scene__drop { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
@keyframes call-drop {
  0% { transform: translate(-50%, -50%) scale(.3); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  57% { transform: translate(-50%, 20%) scale(1) rotate(6deg); animation-timing-function: ease-out; }
  75% { transform: translate(-50%, 2%) scale(1) rotate(2deg); animation-timing-function: ease-in; }
  100% { transform: translate(-50%, 20%) scale(1) rotate(8deg); }
}

/* la máquina cobra vida al terminar de cargar: vibra 0,8 s, brilla, y el cable queda encendido */
.scene.is-alive .scene__machine { animation: call-alive .8s linear; }
.scene.is-alive .scene__cable-fill { stroke: #ffb347; filter: drop-shadow(0 0 10px rgba(255, 150, 60, 1)); animation: call-cable .8s ease; }
@keyframes call-alive {
  0% { transform: none; filter: none; } 15% { transform: translate(-.12cqw, .03cqw); } 30% { transform: translate(.14cqw, -.03cqw); filter: drop-shadow(0 0 .8cqw rgba(124, 195, 106, .9)); }
  45% { transform: translate(-.12cqw, .02cqw); } 60% { transform: translate(.08cqw, -.02cqw); filter: drop-shadow(0 0 1.2cqw rgba(124, 195, 106, 1)); }
  80% { transform: translate(-.04cqw, 0); } 100% { transform: none; filter: drop-shadow(0 0 .4cqw rgba(124, 195, 106, .6)); }
}
@keyframes call-cable { 0% { stroke-width: 7; } 40% { stroke-width: 11; } 100% { stroke-width: 7; } }

/* oscuridad común: carbón azulado con viñeta; vuelve la luz: piloto → mesa → habitación en 900 ms */
.scene__dark { inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.scene__dark--room { background: radial-gradient(ellipse at 50% 55%, rgba(23, 27, 34, .55) 30%, rgba(23, 27, 34, .9) 100%); -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 80%); mask-image: linear-gradient(to bottom, #000 58%, transparent 80%); }
.scene__dark--desk { background: rgba(23, 27, 34, .65); -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 80%); mask-image: linear-gradient(to bottom, transparent 58%, #000 80%); }
.scene.is-dark .scene__dark { opacity: 1; }
/* apagón: dos bajadas irregulares en 700 ms, sin destellos blancos; después queda el piloto */
.scene.is-flicker .scene__dark { animation: call-flicker .7s linear forwards; transition: none; }
@keyframes call-flicker { 0% { opacity: 0; } 18% { opacity: .6; } 34% { opacity: .32; } 58% { opacity: .9; } 74% { opacity: .72; } 100% { opacity: 1; } }
.scene.is-restoring .scene__dark--desk { transition: opacity .35s ease .2s; }
.scene.is-restoring .scene__dark--room { transition: opacity .4s ease .5s; }
.scene.is-restoring .scene__machine { animation: call-glow .9s ease; }
@keyframes call-glow { 25% { filter: drop-shadow(0 0 1.4cqw rgba(255, 206, 120, .95)); } }

/* pilotos (sobre la oscuridad): forma + movimiento, no solo color */
.scene__led { width: 1.1cqw; height: 1.1cqw; min-width: 8px; min-height: 8px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: #7cc36a; box-shadow: 0 0 .8cqw rgba(124, 195, 106, .9); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.scene.is-test .scene__led { opacity: 1; }
.scene__led--machine { background: var(--t-signal); box-shadow: 0 0 1cqw rgba(255, 75, 31, .95); }
.scene[data-led="on"] .scene__led--machine, .scene[data-led="fault"] .scene__led--machine, .scene[data-led="ok"] .scene__led--machine { opacity: 1; }
.scene[data-led="fault"] .scene__led--machine { animation: call-blink 1.1s steps(2, jump-none) infinite; }
.scene[data-led="ok"] .scene__led--machine { background: #7cc36a; box-shadow: 0 0 1cqw rgba(124, 195, 106, .95); }
@keyframes call-blink { 50% { opacity: .15; } }
.scene__led--machine i { position: absolute; left: 50%; top: 50%; width: 1.4cqw; height: 2px; background: var(--t-signal); opacity: 0; transform-origin: 0 50%; }
.scene__led--machine i:nth-child(1) { transform: rotate(-30deg) translateX(1.1cqw); }
.scene__led--machine i:nth-child(2) { transform: rotate(-150deg) translateX(1.1cqw); }
.scene__led--machine i:nth-child(3) { transform: rotate(90deg) translateX(1.1cqw); }
.scene.is-test[data-led="fault"] .scene__led--machine i { opacity: 1; }

/* botón real de la máquina: área táctil ≥ 44 px, pulso discreto */
.scene__machine-btn { width: 5cqw; height: 5cqw; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.scene__machine-btn::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 3px solid var(--t-signal); animation: call-invite 1.6s ease-out infinite; }
.scene__machine-btn:focus-visible { outline: 3px solid var(--t-signal); outline-offset: 3px; }
@keyframes call-invite { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* ondas del timbre: nacen del teléfono de Edgar cada 1,2 s */
.scene__ring { width: 4.5cqw; height: 4.5cqw; transform: translate(-50%, -50%); pointer-events: none; }
.scene__ring span { position: absolute; inset: 0; border: 3px solid var(--t-signal); border-radius: 50%; opacity: 0; animation: call-ring 1.2s ease-out infinite; }
.scene__ring span:nth-child(2) { animation-delay: .4s; }
.scene__ring span:nth-child(3) { animation-delay: .8s; }
@keyframes call-ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.scene__caption { left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 10px; background: rgba(28, 29, 31, .86); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; }
.scene__caption.is-provisional::after { content: ' · voz provisional'; font-size: 11px; color: #a9aaa4; }
.scene__caption:empty { display: none; }
.scene__overlay { inset: 0; display: grid; place-items: center; background: rgba(245, 245, 243, .72); }
.scene__overlay[hidden], .scene__end[hidden] { display: none; }
.scene__card { display: grid; gap: 10px; justify-items: center; text-align: center; margin: 12px; padding: 20px 24px; max-width: 440px; border: 1px solid var(--t-ink); border-radius: 14px; background: var(--t-panel); }
.scene__big { margin: 0; font: 400 34px/1.05 var(--t-display); }
.scene__text { margin: 0; font-size: 14px; color: var(--t-ink-2); }
.scene__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* tarjeta de preparación: QR grande al centro; al vincular, la máquina que responde al toque */
.scene__overlay { overflow: auto; }
.scene__media { display: grid; place-items: center; width: 100%; }
.scene__media:empty { display: none; }
.scene__card .lab-pair { max-width: none; padding: 0; border: 0; background: none; gap: 8px; justify-items: center; }
.scene__card .lab-pair > .lab-label, .scene__card .lab-pair__url, .scene__card .lab-pair__help { display: none; }
.scene__card .lab-pair__qr { max-width: min(250px, 30cqw); min-width: 150px; }
.scene__card .lab-pair__code { font-size: 22px; }
/* en pantallas anchas: el QR (o la máquina) a la izquierda y el texto a la derecha, para que entre en la escena */
.scene__card .lab-pair__row { display: none; }
.scene__card .lab-pair__warn { max-width: 240px; font-size: 11px; }
@media (min-width: 861px) {
  .scene__card:has(.scene__media:not(:empty)) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "media label" "media title" "media text" "media actions"; align-items: center; column-gap: 24px; max-width: 620px; text-align: left; justify-items: start; }
  .scene__card:has(.scene__media:not(:empty)) > .lab-label { grid-area: label; align-self: end; }
  .scene__card:has(.scene__media:not(:empty)) > .scene__big { grid-area: title; }
  .scene__card:has(.scene__media:not(:empty)) > .scene__text { grid-area: text; }
  .scene__card:has(.scene__media:not(:empty)) > .scene__media { grid-area: media; width: auto; }
  .scene__card .scene__media .lab-pair, .scene__card .scene__media .prep-machine { width: auto; }
  .scene__card:has(.scene__media:not(:empty)) > .scene__actions { grid-area: actions; justify-content: flex-start; align-self: start; }
  .scene__card .lab-pair__qr { width: min(220px, 26cqw); max-width: none; }
  .scene__card .prep-machine { width: min(190px, 24cqw); }
}
.prep-machine { position: relative; width: min(190px, 24cqw); min-width: 130px; aspect-ratio: 1; animation: call-fade .25s ease; }
.prep-machine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.prep-machine::after { content: ''; position: absolute; left: 40%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--t-signal); opacity: .5; animation: call-invite 1.6s ease-out infinite; }
.prep-machine.is-pulse .prep-machine__btn { animation: call-btnpulse .6s ease-out; }
.prep-machine.is-pulse::before { content: ''; position: absolute; left: 40%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; animation: call-testpulse .6s ease-out; }
@keyframes call-btnpulse { 30% { filter: drop-shadow(0 0 18px rgba(255, 75, 31, 1)) brightness(1.2); } }
.prep-machine__check { position: absolute; right: 2%; bottom: 14%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #2f9e44; color: #fff; font: 700 clamp(14px, 2cqw, 24px)/1 var(--t-body); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.prep-machine.is-done .prep-machine__check { opacity: 1; transform: none; }
.prep-machine.is-done::after { display: none; }

/* cierre en la pantalla: la estrella manda; la escena queda iluminada detrás */
.scene__end { right: 3%; bottom: 6%; display: grid; justify-items: center; gap: 6px; padding: 14px 18px; border: 1px solid var(--t-ink); border-radius: 14px; background: rgba(251, 251, 250, .95); text-align: center; }
.scene__end-star { width: 96px; height: 96px; animation: call-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.scene__end-star[hidden] { display: none; }
.scene__end-title { margin: 0; font: 400 26px/1 var(--t-display); }
@keyframes call-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---- panel lateral ---- */
.lab-call__side { display: grid; gap: 12px; min-width: 0; }
.lab-call__state { margin: 0; font: 400 26px/1 var(--t-display); color: var(--t-ink); }
.lab-call__small { margin: 0; font-size: 12px; color: var(--t-ink-2); }
.lab-call__side .lab-pair { max-width: none; min-width: 0; }
/* al vincularse, el QR da paso al símbolo de conectado (250 ms) */
#pair-box { transition: opacity .25s ease; }
#pair-box.is-done .lab-pair__qr, #pair-box.is-done .lab-pair__url, #pair-box.is-done .lab-pair__help, #pair-box.is-done .lab-pair__code, #pair-box.is-done .lab-pair__warn, #pair-box.is-done .lab-pair__expiry { display: none; }
.lab-call__linked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--t-line-2); border-radius: 12px; background: var(--t-panel); font: 600 13px/1.3 var(--t-body); animation: call-fade .25s ease; }
.lab-call__linked[hidden] { display: none; }
.lab-call__linked svg { width: 28px; height: 28px; flex: 0 0 auto; }
@keyframes call-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- interfaz de llamada (celular y panel de una sola pantalla) ---- */
.call { --call-ink: #f5f5f3; --call-sub: #c9c9c4; --call-bg: var(--t-ink); display: flex; flex-direction: column; min-width: 0; min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--call-bg); color: var(--call-ink); text-align: center; transition: background .25s ease, color .25s ease; }
/* la llamada en curso y el cierre, en claro (láminas de DISEÑO); la espera y el timbre, en oscuro */
.call[data-view="llamada"], .call[data-view="fin"], .call[data-view="setup"] { --call-ink: var(--t-ink); --call-sub: var(--t-ink-2); --call-bg: #fbfbfa; border: 1px solid var(--t-line-2); }
.call__main { flex: 1 1 auto; display: grid; align-content: start; padding: 20px 16px 12px; }
.call__main.is-enter, .call__taskwrap.is-enter { animation: call-enter .22s ease-out; }
@keyframes call-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.call__view { display: grid; gap: 12px; justify-items: center; align-content: start; }
.call__view[hidden] { display: none; }
/* franja inferior fija: no se mueve con las tareas; respeta el borde inferior del teléfono */
.call__bar { flex: 0 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(128, 128, 128, .25); }
.call__bar[hidden] { display: none; }
.call__bar-row { display: flex; justify-content: center; gap: 16px; }
.call__bar-row[hidden] { display: none; }
.call__bar-row.is-ring { justify-content: space-around; }
.call__bar-row.is-end { flex-direction: column; gap: 10px; }

.call__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #f5f5f3; background: var(--t-paper); }
.call__avatar.is-big { width: 136px; height: 136px; }
.call__avatar.is-small { width: 48px; height: 48px; border-width: 2px; border-color: var(--t-line-2); }
.call__halo { position: relative; display: grid; place-items: center; margin: 8px 0; }
.call__halo::before, .call__halo::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--t-signal); opacity: 0; animation: call-ring 1.2s ease-out infinite; }
.call__halo::after { animation-delay: .6s; }
.call__title { margin: 0; font: 400 34px/1.05 var(--t-display); letter-spacing: .01em; color: var(--call-ink); }
.call__lead { margin: 0; font-size: 14px; line-height: 1.4; color: var(--call-sub); }
.call__lead[hidden] { display: none; }
.call__name { margin: 0; font: 400 36px/1 var(--t-display); letter-spacing: .02em; }
.call__name.is-small { font-size: 20px; text-align: left; }
.call__status { margin: 0; font: 12px/1.4 var(--t-mono); letter-spacing: .08em; color: var(--call-sub); }
.call__head { display: flex; align-items: center; gap: 10px; width: 100%; justify-self: stretch; padding-bottom: 12px; border-bottom: 1px solid var(--t-line); text-align: left; }
.call__head-text { flex: 1; min-width: 0; }
.call__wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.call__wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--t-signal); opacity: .5; }
.call__wave.is-on i { opacity: 1; animation: call-wave .9s ease-in-out infinite; }
.call__wave.is-on i:nth-child(2) { animation-delay: .15s; } .call__wave.is-on i:nth-child(3) { animation-delay: .3s; }
@keyframes call-wave { 50% { height: 18px; } }
.call__sub { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.45; color: var(--call-sub); }
.call__note { margin: -6px 0 0; font-size: 11px; color: var(--call-sub); opacity: .75; }
.call__note:empty { display: none; }

/* preparación */
.call__machine { position: relative; width: 150px; }
.call__machine img { display: block; width: 100%; height: auto; }
.call__machine-check { position: absolute; right: -4px; bottom: 14px; width: 44px; height: 44px; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.call[data-setup="listo"] .call__machine-check { opacity: 1; transform: none; }
.call__machine-check svg { width: 100%; height: 100%; }
.call__setup-state { margin: 0; font: 600 12px/1.3 var(--t-mono); color: #2f9e44; letter-spacing: .06em; }
.call__setup-state:empty { display: none; }
.call__test { position: relative; width: 132px; height: 132px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.call__test-disc { position: absolute; inset: 14px; border-radius: 50%; background: var(--t-signal); box-shadow: 0 6px 0 var(--t-signal-ink); }
.call__test::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 3px solid var(--t-signal); opacity: .5; animation: call-ring 1.4s ease-out infinite; }
.call__test:active .call__test-disc { transform: translateY(4px); box-shadow: 0 2px 0 var(--t-signal-ink); }
.call__test[disabled] { cursor: default; }
.call__test[disabled] .call__test-disc { opacity: .7; animation: call-blink 1s steps(2, jump-none) infinite; }
.call__test[hidden], .call__holdtext[hidden] { display: none; }
.call__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 16px; border-radius: 999px; border: 2px solid transparent; font: 600 13px/1.2 var(--t-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; cursor: pointer; text-decoration: none; }
.call__btn[hidden] { display: none; }
.call__btn.is-wide { width: 100%; max-width: 320px; align-self: center; }
.call__btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.call__btn.is-start { background: var(--t-signal); color: var(--t-ink); }
.call__btn.is-ghost { background: transparent; border-color: var(--t-line-2); color: var(--call-ink); }
.call__btn:focus-visible, .call__hold:focus-visible, .call__light:focus-visible, .call__starbtn:focus-visible, .call__round:focus-visible, .call__test:focus-visible { outline: 3px solid var(--t-signal); outline-offset: 3px; }
.call__btn[disabled] { cursor: default; }

/* espera */
.call__waitline { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--t-mono); letter-spacing: .06em; color: var(--call-sub); }
.call__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-signal); box-shadow: 0 0 0 3px rgba(255, 75, 31, .25); }
.call__eyes { display: block; width: 120px; margin: 26px 0 6px; color: #f5f5f3; }
.call__eyes svg { width: 100%; height: auto; }
.call__pupil { animation: call-look 3s ease-in-out infinite; }
@keyframes call-look { 0%, 40%, 100% { transform: translateX(0); } 55%, 85% { transform: translateX(3px); } }

/* botones redondos de la franja */
.call__round { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--call-ink); cursor: pointer; font: 600 12px/1.2 var(--t-body); }
.call__round-disc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; }
.call__round-disc svg { width: 30px; height: 30px; }
.call__round.is-answer .call__round-disc { background: #2f9e44; animation: call-nudge 1.2s ease-in-out infinite; }
.call__round.is-reject .call__round-disc { background: #d63a2f; }
@keyframes call-nudge { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }

/* tareas: una sola a la vez */
.call__taskwrap { display: grid; gap: 12px; justify-items: center; width: 100%; padding-top: 6px; }
.call__task { display: grid; gap: 10px; width: 100%; }
.call__task[hidden] { display: none; }
.call__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call__choices .call__btn, .call__objects .call__btn { min-width: 0; }
.call__btn.is-choice { flex-direction: column; min-height: 112px; border-radius: 16px; background: #fff; border-color: var(--t-line-2); color: var(--t-ink); font-size: 12px; }
.call__btn.is-choice svg { width: 40px; height: 40px; color: var(--t-signal); }
.call__btn.is-choice.is-chosen { border-color: var(--t-signal); background: var(--t-signal-soft); }
.call__btn.is-choice[disabled]:not(.is-chosen) { opacity: .45; }
.call__objects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.call__objects .call__btn span { max-width: 100%; overflow-wrap: anywhere; letter-spacing: .02em; }
.call__btn.is-object { flex-direction: column; gap: 4px; min-height: 124px; padding: 8px 4px; border-radius: 14px; background: #fff; border-color: var(--t-line-2); color: var(--t-ink); font-size: 11px; }
.call__btn.is-object img { width: 72px; height: 72px; object-fit: contain; }
.call__btn.is-object.is-wrong { animation: call-nope .45s ease 2; background: #e6e6e3; }
.call__btn.is-object.is-right { border-color: var(--t-signal); box-shadow: 0 0 0 3px var(--t-signal); }
.call__btn.is-object[disabled]:not(.is-right) { opacity: .5; }

/* carga: dedo que BAJA Y SE QUEDA apoyado; aro progresivo */
.call__charge, .call__lightbox, .call__starbox { justify-items: center; }
.call__hold { position: relative; width: 176px; height: 176px; border: 0; border-radius: 50%; background: #fff; color: var(--t-signal); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 0 0 1px var(--t-line-2); }
.call__hold svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.call__hold-bg { fill: none; stroke: var(--t-line); stroke-width: 9; }
.call__hold-fill { fill: none; stroke: var(--t-signal); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.call__hold-icon svg { position: static; width: 64px; height: 64px; transform: none; }
.call__hold-pct { position: absolute; left: 0; right: 0; bottom: 40px; font: 600 14px var(--t-mono); color: var(--t-ink); }
.call__hold.is-holding { transform: scale(.96); background: var(--t-signal-soft); }
.call__hold.is-full { color: #2f9e44; }
.call__hold.is-full .call__hold-fill { stroke: #2f9e44; }
.call__holdtext { margin: 0; font: 600 13px/1.3 var(--t-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--call-sub); }
.call__finger { position: absolute; right: -4px; bottom: -4px; width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 29, 31, .85); border: 3px solid #fff; pointer-events: none; }
.call__finger.is-hold { animation: call-press-hold 2.4s ease-in-out infinite; }
.call__finger.is-tap { animation: call-press-tap 1.6s ease-in-out infinite; }
@keyframes call-press-hold { 0%, 15% { transform: translate(10px, 10px); opacity: 0; } 30% { opacity: 1; } 40%, 85% { transform: translate(-44px, -44px) scale(.9); opacity: 1; box-shadow: 0 0 0 10px rgba(255, 75, 31, .3); } 100% { transform: translate(10px, 10px); opacity: 0; } }
@keyframes call-press-tap { 0%, 20% { transform: translate(10px, 10px); opacity: 0; } 35% { opacity: 1; } 45% { transform: translate(-44px, -44px) scale(.9); box-shadow: 0 0 0 10px rgba(255, 75, 31, .3); } 55% { transform: translate(-36px, -36px); box-shadow: none; } 80%, 100% { transform: translate(10px, 10px); opacity: 0; } }
.call__hold.is-holding .call__finger, .call__hold.is-full .call__finger, .call__light[disabled] .call__finger { display: none; }

/* luz: dedo que TOCA Y SE RETIRA; entra desde el aro de carga («se convierte en el botón de luz») */
.call__light { position: relative; display: grid; place-items: center; width: 176px; height: 176px; border: 0; border-radius: 50%; background: var(--t-signal); color: #fff; cursor: pointer; box-shadow: 0 8px 0 var(--t-signal-ink); animation: call-morph .35s cubic-bezier(.2, 1.4, .4, 1); }
.call__lightbox[hidden] .call__light { animation: none; }
@keyframes call-morph { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }
.call__light-icon svg { width: 76px; height: 76px; }
.call__light-rays { position: absolute; inset: -18px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 75, 31, .55) 0 6deg, transparent 6deg 30deg); -webkit-mask: radial-gradient(closest-side, transparent 82%, #000 84%, #000 100%); mask: radial-gradient(closest-side, transparent 82%, #000 84%, #000 100%); }
.call__light:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--t-signal-ink); }
.call__light[disabled] { cursor: default; }
.call__light[disabled]:not(.is-on) { background: var(--t-line); color: var(--t-ink-2); box-shadow: 0 8px 0 var(--t-line-2); }
.call__light[disabled]:not(.is-on) .call__light-rays { opacity: .2; }
.call__light.is-on { background: #fff4d6; color: #e08a00; box-shadow: 0 0 0 4px #ffcc66, 0 0 40px rgba(255, 190, 80, .9); }
.call__light.is-on .call__light-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 190, 80, .9) 0 6deg, transparent 6deg 30deg); }

.call__star { width: 150px; height: 150px; animation: call-pop .6s cubic-bezier(.2, 1.6, .4, 1); }

/* cierre */
.call__endcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #f0f0ed; text-align: left; }
.call__endcard-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d8d8d4; color: var(--t-ink-2); flex: 0 0 auto; }
.call__endcard-icon svg { width: 20px; height: 20px; }
.call__endcard-title { margin: 0; font: 600 15px/1.2 var(--t-body); color: var(--t-ink); }
.call__endcard-text { margin: 2px 0 0; font-size: 13px; color: var(--t-ink-2); }
.call__starbtn { border: 0; background: none; padding: 0; cursor: pointer; }
.call__starbtn[hidden] { display: none; }
.call__starbtn img { width: 176px; height: 176px; animation: call-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.call__starbtn.is-spin img { animation: call-spin .9s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes call-spin { to { transform: rotate(360deg); } }

/* celular (mando): la llamada ocupa la pantalla y la franja queda abajo */
.lab-remote .call { min-height: calc(100svh - 150px); }
/* panel de una sola pantalla (más compacto) */
.call.is-compact { min-height: 480px; border-radius: 22px; }
.call.is-compact .call__avatar.is-big { width: 104px; height: 104px; }
.call.is-compact .call__btn.is-object { min-height: 104px; }
.call.is-compact .call__btn.is-object img { width: 56px; height: 56px; }
.call.is-compact .call__hold, .call.is-compact .call__light { width: 146px; height: 146px; }
.call.is-compact .call__starbtn img { width: 132px; height: 132px; }
.call.is-compact .call__title { font-size: 28px; }

.is-embedded .lab-call { padding: 12px; }

@media (max-width: 860px) {
  .lab-call { padding: 16px; }
  .lab-call__head { display: block; }
  .lab-call__how { text-align: left; margin-top: 8px; }
  .lab-call__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .scene__caption { font-size: 12px; bottom: 6px; padding: 5px 10px; }
  .scene__big { font-size: 26px; }
  .scene:has(.scene__overlay:not([hidden])) { aspect-ratio: auto; }
  .scene__overlay:not([hidden]) { position: relative; padding: 12px; }
  .scene__card { width: 100%; margin: 0; padding: 18px 16px; }
  .scene__actions { width: 100%; }
  .scene__actions .lab-btn { flex: 1 1 180px; }
  .scene__end { right: 2%; bottom: 3%; gap: 4px; padding: 8px 10px; }
  .scene__end-star { width: 44px; height: 44px; }
  .scene__end-title { font-size: 18px; }
  .scene__end .lab-btn { min-height: 36px; padding: 6px 10px; }
  .lab-call__state { font-size: 20px; }
}
@media (max-height: 700px) {
  .call__hold, .call__light { width: 150px; height: 150px; }
  .call__btn.is-object { min-height: 104px; }
  .call__title { font-size: 28px; }
}

/* movimiento reducido: fundidos y cambios de estado, sin vibraciones, rebotes ni desplazamientos */
@media (prefers-reduced-motion: reduce) {
  .scene.is-alive .scene__machine, .prep-machine::after, .prep-machine.is-pulse .prep-machine__btn,
  .scene.is-flicker .scene__dark, .scene.is-working .scene__machine, .scene.is-working .scene__button-art, .scene__obj.is-wrong,
  .scene[data-led="fault"] .scene__led--machine, .scene__machine-btn::after, .scene.is-restoring .scene__machine,
  .call__halo::before, .call__halo::after, .call__round.is-answer .call__round-disc, .call__btn.is-object.is-wrong,
  .call__finger, .call__star, .scene__end-star, .call__starbtn img, .call__light, .call__test::before, .call__pupil, .call__wave.is-on i { animation: none !important; }
  .call__main.is-enter, .call__taskwrap.is-enter { animation: call-fade .22s ease; }
  .scene__ring span { animation-duration: 3s; }
  .scene.is-drop .scene__drop { animation: none; opacity: 1; transform: translate(-50%, -50%); }
  .scene__drop { transition: opacity .25s ease; }
  .call__starbtn.is-spin img { animation: none; filter: brightness(1.25) drop-shadow(0 0 12px rgba(255, 206, 120, .9)); }
  .call__finger { display: none; }
}
