/* Botón Antipánico · infografías animadas y la segunda pasada visual
   Se carga después de apb.css. Todas las animaciones corren solo con [data-ig].is-in (js/apb.js: en
   pantalla) y se quedan en su imagen final con prefers-reduced-motion. En WordPress pasa tal cual a
   assets/css del tema hijo. */

:root {
  --ig-red: #c8102e;
  --ig-red-hi: #ff5a6a;     /* el rojo sobre fondo oscuro (6:1 sobre #14161a) */
  --ig-ok: #1b7a3a;
  --ig-ok-hi: #35c46a;
  --ig-ease: cubic-bezier(.23, 1, .32, 1);
  --ig-inout: cubic-bezier(.77, 0, .175, 1);
}

/* ================================================================ hero oscuro */
.hero.ground-inverse .hl { color: var(--ig-red-hi); }
.hero.ground-inverse .hero__lead { color: #c4c7cc; }
.hero--centred .hero__window { background-image: none; background-color: #14161a; }
.hero--centred .hero__window .apb-win { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 90px -30px rgb(0 0 0 / .8), 0 0 120px -20px rgb(200 16 46 / .35); }

/* el gesto: las teclas y el aviso de Windows, a los lados de la ventana */
.apb-keys { position: absolute; z-index: 2; right: max(16px, calc(50% - 600px)); top: 196px; display: flex; align-items: center; gap: 6px;
  padding: 12px; border-radius: 16px; background: rgb(14 15 18 / .92); box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 60px -20px rgb(0 0 0 / .8); }
.apb-keys .key { position: relative; display: grid; place-items: center; height: 46px; min-width: 54px; padding: 0 12px; border-radius: 9px;
  background: linear-gradient(#2c2f35, #202226); color: #cfd2d6; font: 500 13px/1 var(--font-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 3px 0 #08090b; }
.apb-keys .key--space { display: none; }
.apb-keys .key--alt { color: #fff; }
.apb-keys .key--alt i { position: absolute; inset: -2px; border-radius: 11px; border: 2px solid var(--ig-red-hi); opacity: 0; }
.apb-keys__x { margin-left: 6px; font: 500 15px/1 var(--font-mono); color: var(--ig-red-hi); }

.apb-toast { display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 16px; border-radius: 10px;
  background: #202226; color: #f1f2f3; font: 400 13px/1.35 var(--font-text);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -16px rgb(0 0 0 / .7); }
.apb-toast img { width: 28px; height: 28px; flex: none; }
.apb-toast b { display: block; font-weight: 500; font-size: 14px; color: #fff; }
.apb-toast span { color: #b7bbc1; }
.hero__window > .apb-toast { position: absolute; z-index: 2; right: max(16px, calc(50% - 540px)); top: 36px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .apb-keys .key--alt { animation: k-press 6s var(--ig-ease) infinite; }
  .hero .apb-keys .key--alt i { animation: k-ring 6s var(--ig-ease) infinite; }
  .hero .apb-keys__x { animation: k-x 6s var(--ig-ease) infinite; }
  .hero__window > .apb-toast { animation: t-in 6s var(--ig-ease) infinite; }
}
@keyframes k-press {
  0%, 8% { transform: none; background: linear-gradient(#2c2f35, #202226); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 3px 0 #08090b; }
  10% { transform: translateY(3px); background: var(--ig-red); box-shadow: 0 0 0 #08090b, 0 0 24px rgb(200 16 46 / .7); }
  13% { transform: none; background: linear-gradient(#2c2f35, #202226); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 3px 0 #08090b; }
  16% { transform: translateY(3px); background: var(--ig-red); box-shadow: 0 0 0 #08090b, 0 0 24px rgb(200 16 46 / .7); }
  20%, 100% { transform: none; background: linear-gradient(#2c2f35, #202226); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 3px 0 #08090b; }
}
@keyframes k-ring { 0%, 16% { opacity: 0; transform: scale(1); } 18% { opacity: 1; transform: scale(1); } 34%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes k-x { 0%, 15% { opacity: .25; } 18%, 80% { opacity: 1; } 90%, 100% { opacity: .25; } }
@keyframes t-in { 0%, 20% { opacity: 0; transform: translateY(-10px) scale(.97); } 25%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1279px) { .apb-keys { display: none; } }
@media (max-width: 1023px) { .hero__window > .apb-toast { display: none; } }

/* ================================================================ cómo funciona: tres infografías */
.ig { position: relative; }
#como-funciona .mo-pc__visual--lit { border-radius: var(--r-lg); overflow: hidden; }
#como-funciona .ig > svg { width: 100%; height: 100%; max-height: 100%; display: block; }
#como-funciona .ig-floor, #como-funciona .ig-route { padding: clamp(12px, 3vw, 28px); }
/* en la pila (sin pinned) cada infografía guarda su proporción */
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { aspect-ratio: 4 / 3; max-height: 34svh; width: 100%; }
@media (max-width: 639px) { [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { max-height: 30svh; } }
/* en vivo solo anima el paso abierto, y arranca de cero cada vez que se abre */
[data-moment].is-live .mo-pc__visual:not(.is-on) * { animation: none !important; }

/* 1 · el teclado */
.ig-kb { display: grid !important; place-content: center; gap: clamp(14px, 3vw, 28px); }
.ig-kb__board { width: min(470px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgb(20 40 70 / .28)); }
.kb-base { fill: #e9eef3; }
.ig-kb .k__cap { fill: #fff; stroke: #d3dae2; stroke-width: 1; }
.ig-kb .k text { font: 500 15px var(--font-text); fill: #3b3f46; text-anchor: middle; }
.ig-kb .k--alt text { fill: var(--ig-red); font-weight: 700; }
.ig-kb .k--alt { transform-box: fill-box; }
.ig-kb__time { display: flex; align-items: center; gap: 12px; justify-content: center; font: 400 14px/1.2 var(--font-text); color: #25303a; }
.ig-kb__time b { font: 500 18px/1 var(--font-mono); color: var(--ig-red); }
.ig-kb__bar { position: relative; width: 120px; height: 6px; border-radius: 3px; background: rgb(37 48 58 / .15); overflow: hidden; }
.ig-kb__bar i { position: absolute; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: var(--ig-red); }
.ig-kb__bar i:first-child { left: 14%; } .ig-kb__bar i:last-child { left: 62%; }
.ig .apb-toast--in, .ig .apb-toast--ok { position: absolute; right: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px); width: min(300px, calc(100% - 24px)); }
.apb-toast--ok { background: var(--ig-ok); }
.apb-toast--ok svg { width: 22px; height: 22px; flex: none; }
.apb-toast--ok span { color: #d9f1e1; }

@media (prefers-reduced-motion: no-preference) {
  :is(.ig-kb.is-on, [data-moment]:not(.is-live) .ig-kb) .k--alt .k__cap { animation: kb-press 4s var(--ig-ease) infinite; }
  :is(.ig-kb.is-on, [data-moment]:not(.is-live) .ig-kb) .k--alt text { animation: kb-text 4s var(--ig-ease) infinite; }
  :is(.ig-kb.is-on, [data-moment]:not(.is-live) .ig-kb) .ig-kb__bar i { animation: kb-tick 4s var(--ig-ease) infinite; }
  :is(.ig-kb.is-on, [data-moment]:not(.is-live) .ig-kb) .ig-kb__bar i:last-child { animation-name: kb-tick-b; }
  :is(.ig-kb.is-on, [data-moment]:not(.is-live) .ig-kb) .apb-toast { animation: t-in 4s var(--ig-ease) infinite; }
}
@keyframes kb-press {
  0%, 8% { fill: #fff; stroke: #d3dae2; transform: none; }
  11% { fill: var(--ig-red); stroke: var(--ig-red); transform: translateY(3px); }
  15% { fill: #fff; stroke: #d3dae2; transform: none; }
  19% { fill: var(--ig-red); stroke: var(--ig-red); transform: translateY(3px); }
  24%, 100% { fill: #fff; stroke: #d3dae2; transform: none; }
}
@keyframes kb-text { 0%, 8% { fill: var(--ig-red); } 11% { fill: #fff; } 15% { fill: var(--ig-red); } 19% { fill: #fff; } 24%, 100% { fill: var(--ig-red); } }
@keyframes kb-tick { 0%, 9% { opacity: 0; transform: scaleY(.4); } 11%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes kb-tick-b { 0%, 17% { opacity: 0; transform: scaleY(.4); } 19%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 2 · el plano: la señal sale de la consulta y se enciende en los compañeros */
.fl-ground { fill: #fff; }
.fl-room { fill: #eef2f6; } .fl-room--src { fill: #fdeaec; }
.fl-wall { fill: none; stroke: #25303a; stroke-width: 4; stroke-linejoin: round; }
.fl-desk rect { fill: #fff; stroke: #9aa6b2; stroke-width: 1.4; }
.fl-desk path { stroke: #9aa6b2; stroke-width: 1.4; fill: none; }
.fl-desk .band { fill: var(--ig-red); stroke: none; opacity: 0; }
.fl-desk--src rect { stroke: var(--ig-red); stroke-width: 2; fill: #fff; }
.fl-desk--src path { stroke: var(--ig-red); }
.fl-desk.is-ok .band { fill: var(--ig-ok); opacity: 1; }
.fl-lbl { font: 500 11px var(--font-text); letter-spacing: .06em; fill: #4d5964; }
.fl-lbl--src { fill: var(--ig-red); }
.fl-wave { fill: none; stroke: var(--ig-red); stroke-width: 2; opacity: 0; }
/* la imagen quieta (sin animación): los puestos ya avisados */
.ig-floor:not(.is-on) .fl-desk .band { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ig-floor .fl-desk .band { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  :is(.ig-floor.is-on, [data-moment]:not(.is-live) .ig-floor) .fl-wave { animation: fl-wave 4s var(--ig-ease) infinite; }
  :is(.ig-floor.is-on, [data-moment]:not(.is-live) .ig-floor) .fl-wave--b { animation-delay: .35s; }
  :is(.ig-floor.is-on, [data-moment]:not(.is-live) .ig-floor) .fl-wave--c { animation-delay: .7s; }
  :is(.ig-floor.is-on, [data-moment]:not(.is-live) .ig-floor) .fl-desk .band { animation: fl-on 4s var(--ig-ease) infinite; animation-delay: var(--d, 0s); }
  :is(.ig-floor.is-on, [data-moment]:not(.is-live) .ig-floor) .fl-desk:not(.fl-desk--src) rect:first-child { animation: fl-desk 4s var(--ig-ease) infinite; animation-delay: var(--d, 0s); }
}
@keyframes fl-wave { 0% { r: 12; opacity: .85; stroke-width: 3; } 70% { r: 420; opacity: 0; stroke-width: 1; } 100% { r: 420; opacity: 0; } }
@keyframes fl-on { 0%, 8% { opacity: 0; } 14%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes fl-desk { 0%, 8% { stroke: #9aa6b2; } 14%, 88% { stroke: var(--ig-red); } 96%, 100% { stroke: #9aa6b2; } }

/* 3 · la respuesta: el recorrido del vigilante y el aviso verde */
.rt-path { fill: none; stroke: #c6d0da; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.rt-run { fill: none; stroke: var(--ig-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ig-route .pin__ring { opacity: 0; }
.rt-btn { position: absolute; left: clamp(12px, 3vw, 28px); top: clamp(12px, 3vw, 24px); display: none; }
.ig-route .apb-toast--ok { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  :is(.ig-route.is-on, [data-moment]:not(.is-live) .ig-route) .rt-run { animation: rt-run 5s var(--ig-inout) infinite; }
  :is(.ig-route.is-on, [data-moment]:not(.is-live) .ig-route) .pin__ring { animation: apb-ping 1.6s var(--ig-ease) infinite; }
  :is(.ig-route.is-on, [data-moment]:not(.is-live) .ig-route) .pin__ring--b { animation-delay: .8s; }
  :is(.ig-route.is-on, [data-moment]:not(.is-live) .ig-route) .apb-toast--ok { animation: t-in-late 5s var(--ig-ease) infinite; }
  :is(.ig-route.is-on, [data-moment]:not(.is-live) .ig-route) .fl-desk.is-ok .band { animation: rt-desk 5s var(--ig-ease) infinite; }
}
@keyframes rt-run { 0%, 10% { stroke-dashoffset: 100; opacity: 1; } 62%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rt-desk { 0%, 4% { fill: var(--ig-red); } 10%, 100% { fill: var(--ig-ok); } }
@keyframes t-in-late { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.97); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ================================================================ escalado: los tres anillos */
#escalado .t-lead { color: #d3d5d8; }
#escalado .esc__stats .stat { border-top-color: rgb(255 255 255 / .14); }
#escalado .esc__stats .t-stat { color: var(--ig-red-hi); }
.ig-esc { margin: 0; display: grid; justify-items: center; align-content: center; gap: var(--s-4); }
.ig-esc svg { width: 100%; max-width: 560px; max-height: calc(100svh - 260px); aspect-ratio: 1; overflow: visible; }
.esc-guide { fill: none; stroke: rgb(255 255 255 / .06); stroke-width: 2; }
.esc-sweep { fill: none; stroke: var(--ig-red-hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); opacity: .9; }
.esc-ring > circle:first-child { fill: none !important; stroke: rgb(255 255 255 / .16); stroke-width: 1.5; stroke-dasharray: 3 6; }
.esc-n { fill: #2a2d33; stroke: rgb(255 255 255 / .3); stroke-width: 1.5; }
.esc-t { font: 500 15px var(--font-mono); fill: #979999; }
.esc-core { fill: var(--ig-red); }
.esc-core-halo { fill: var(--ig-red); opacity: .25; }
.esc-core-ico { stroke: #fff; stroke-width: 4; stroke-linecap: round; fill: none; }
.esc-core-ok { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: 0; }
.esc-stop { margin: 0; font: 500 15px/1.3 var(--font-text); color: var(--ig-ok-hi); opacity: 0; }
/* la imagen quieta: los tres niveles encendidos */
.ig-esc:not(.is-in) .esc-ring > circle:first-child, .ig-esc:not(.is-in) .esc-n { stroke: var(--ig-red-hi); }
.ig-esc:not(.is-in) .esc-n { fill: var(--ig-red); }
@media (prefers-reduced-motion: reduce) {
  .ig-esc .esc-ring > circle:first-child, .ig-esc .esc-n { stroke: var(--ig-red-hi); }
  .ig-esc .esc-n { fill: var(--ig-red); }
}
@media (prefers-reduced-motion: no-preference) {
  .ig-esc.is-in .esc-sweep { animation: esc-sweep 10s linear infinite; }
  .ig-esc.is-in .esc-ring--1 > * { animation: esc-r1 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-ring--2 > * { animation: esc-r2 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-ring--3 > * { animation: esc-r3 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-t--1 { animation: esc-t1 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-t--2 { animation: esc-t2 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-t--3 { animation: esc-t3 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-core, .ig-esc.is-in .esc-core-halo { animation: esc-core 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-core-halo { animation-name: esc-halo; }
  .ig-esc.is-in .esc-core-ico { animation: esc-ico 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-core-ok { animation: esc-ok 10s var(--ig-ease) infinite; }
  .ig-esc.is-in .esc-stop { animation: esc-ok 10s var(--ig-ease) infinite; }
}
@keyframes esc-sweep { 0% { stroke-dashoffset: 100; opacity: .9; } 75% { stroke-dashoffset: 0; opacity: .9; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes esc-r1 { 0%, 24% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } 26%, 78% { stroke: var(--ig-red-hi); fill: var(--ig-red); } 84%, 100% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } }
@keyframes esc-r2 { 0%, 49% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } 51%, 78% { stroke: var(--ig-red-hi); fill: var(--ig-red); } 84%, 100% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } }
@keyframes esc-r3 { 0%, 74% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } 76%, 78% { stroke: var(--ig-red-hi); fill: var(--ig-red); } 84%, 100% { stroke: rgb(255 255 255 / .2); fill: #2a2d33; } }
@keyframes esc-t1 { 0%, 24% { fill: #979999; } 26%, 80% { fill: #fff; } 86%, 100% { fill: #979999; } }
@keyframes esc-t2 { 0%, 49% { fill: #979999; } 51%, 80% { fill: #fff; } 86%, 100% { fill: #979999; } }
@keyframes esc-t3 { 0%, 74% { fill: #979999; } 76%, 80% { fill: #fff; } 86%, 100% { fill: #979999; } }
@keyframes esc-core { 0%, 78% { fill: var(--ig-red); } 81%, 96% { fill: var(--ig-ok); } 100% { fill: var(--ig-red); } }
@keyframes esc-halo { 0% { fill: var(--ig-red); r: 30; opacity: .5; } 12% { r: 60; opacity: 0; } 24% { r: 30; opacity: .5; } 36% { r: 60; opacity: 0; } 48% { r: 30; opacity: .5; } 60% { r: 60; opacity: 0; } 72% { r: 30; opacity: .5; } 78% { r: 40; opacity: .25; fill: var(--ig-red); } 81%, 96% { r: 44; opacity: .3; fill: var(--ig-ok); } 100% { r: 30; opacity: .5; fill: var(--ig-red); } }
@keyframes esc-ico { 0%, 78% { opacity: 1; } 80%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes esc-ok { 0%, 79% { opacity: 0; } 82%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1023px) { .ig-esc svg { max-height: 46svh; } }
@media (max-width: 639px) { .ig-esc svg { max-height: 34svh; } .esc-t { font-size: 18px; } }

/* ================================================================ consola: sobre el fondo iluminado */
.app-stage { margin-top: var(--s-7); padding: clamp(16px, 3vw, 36px); border-radius: var(--r-lg); background: var(--ground-bg);
  background-image: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--ground-surface) 90%, #fff) 0%, var(--ground-bg) 55%, color-mix(in oklab, var(--ground-bg) 85%, #25303a) 100%); }
.app-stage > .app.ui { margin-top: 0; }
#consola .app { height: clamp(380px, calc(100svh - 450px), 500px); }
@media (max-width: 1023px) { #consola .app { height: 600px; } }
@media (max-width: 639px) { #consola .app { height: 480px; } .app-stage { padding: 10px; } }

/* ================================================================ funciones: los pulsos de la red */
.dg-net .comet { fill: none; stroke: var(--ig-red); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 14 120; stroke-dashoffset: 14; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dg-net.is-in .wave { animation: apb-wave 3.2s var(--ig-ease) infinite; }
  .dg-net.is-in .wave--b { animation-delay: 1.05s; } .dg-net.is-in .wave--c { animation-delay: 2.1s; }
  .dg-net.is-in .comet { animation: dg-comet 3.2s var(--ig-inout) infinite; animation-delay: var(--d, 0s); }
  .dg-net.is-in .comet--fail { animation-name: dg-fail; }
  .dg-net.is-in .hit .band { animation: fl-on 3.2s var(--ig-ease) infinite; }
  .vdi.is-in .vdi__back { animation: apb-draw 3.2s var(--ig-ease) infinite; }
}
@keyframes dg-comet { 0% { stroke-dashoffset: 14; opacity: 1; } 45% { stroke-dashoffset: -100; opacity: 1; } 46%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes dg-fail { 0% { stroke-dashoffset: 14; opacity: 1; } 30% { stroke-dashoffset: -55; opacity: 1; } 40%, 100% { stroke-dashoffset: -60; opacity: 0; } }

/* ================================================================ sectores: pictogramas */
#sectores .sectors { row-gap: var(--gutter); }
#sectores .sector { grid-template-columns: none; display: grid; align-content: start; gap: var(--s-3); padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg); background: var(--p-surface); transition: transform 200ms var(--ig-ease), background-color 200ms ease; }
#sectores .sector:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--p-surface) 70%, #fff); }
.sector__ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--s-2);
  background: #fde9ec; color: var(--ig-red); }
.sector__ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sector__ico i { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ig-red); box-shadow: 0 0 0 3px var(--p-surface); }
.sector__ico i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ig-red); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sector__ico.is-in i::after { animation: apb-ping 1.6s var(--ig-ease) 2; }
  .sector:hover .sector__ico.is-in i::after { animation-iteration-count: infinite; }
}
@media (max-width: 1023px) {
  #sectores .sector { grid-column: auto / span 6; grid-template-columns: none; }
  #sectores .sector > * { grid-column: auto; grid-row: auto; }
}
@media (max-width: 639px) {
  #sectores .sector { padding: 16px; gap: var(--s-2); }
  .sector__ico { width: 48px; height: 48px; border-radius: 12px; }
  .sector__ico svg { width: 26px; height: 26px; }
  #sectores .sector p { font-size: var(--t-small); }
}

/* ================================================================ modalidades: las dos redes */
.plan__dg { height: 110px; margin: calc(-1 * var(--s-2)) 0 var(--s-2); border-radius: var(--r-md); background: color-mix(in oklab, var(--ground-bg) 45%, transparent); }
.plan__dg svg { width: 100%; height: 100%; display: block; }
.pl-wire { fill: none; stroke: #9aa6b2; stroke-width: 1.2; stroke-dasharray: 3 4; }
.pl-pc rect { fill: #fff; stroke: #9aa6b2; stroke-width: 1.4; }
.pl-pc--src rect { stroke: var(--ig-red); stroke-width: 2; fill: #fde9ec; }
.pl-pc--con rect { fill: #e9eef3; }
.pl-srv rect { fill: #25303a; } .pl-srv path { stroke: #9aa6b2; stroke-width: 1.4; }
.pl-wave { fill: none; stroke: var(--ig-red); stroke-width: 1.5; opacity: 0; }
.pl-comet { fill: none; stroke: var(--ig-red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 12 120; stroke-dashoffset: 12; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .plan__dg.is-in .pl-wave { animation: pl-wave 3.2s var(--ig-ease) infinite; }
  .plan__dg.is-in .pl-pc:not(.pl-pc--src):not(.pl-pc--con) rect { animation: pl-on 3.2s var(--ig-ease) infinite; animation-delay: var(--d, 0s); }
  .plan__dg.is-in .pl-comet { animation: dg-comet 3.2s var(--ig-inout) infinite; }
  .plan__dg.is-in .pl-comet--out { animation-delay: calc(.9s + var(--d, 0s)); }
}
@keyframes pl-wave { 0% { r: 8; opacity: .8; } 60% { r: 260; opacity: 0; } 100% { r: 260; opacity: 0; } }
@keyframes pl-on { 0%, 12% { stroke: #9aa6b2; fill: #fff; } 18%, 80% { stroke: var(--ig-red); fill: #fde9ec; } 92%, 100% { stroke: #9aa6b2; fill: #fff; } }

/* ================================================================ ritmo: titulares con más presencia */
main h2 { text-wrap: balance; }
#puerta-cerrada h2, #escalado h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; }
.card--plan .plan__price { font: var(--display-weight) var(--t-stat)/1.05 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); }
.card--plan .plan__price--sm { font: 400 var(--t-lead)/1.35 var(--font-text); letter-spacing: 0; }

/* tras el gate: los botones secundarios iguales en claro y en oscuro, sectores con más cuerpo, consola sin cortes */
.hero.ground-inverse .btn--secondary { background: #e2e2e1; color: #14161a; }
.hero.ground-inverse .btn--secondary:hover { background: #d4d4d2; }
.sector__ico { position: relative; }
.sector__ico i::after { animation: none; }
@media (prefers-reduced-motion: no-preference) { .sector:hover .sector__ico i::after { animation: apb-ping 1.6s var(--ig-ease) infinite; } }
@media (min-width: 1024px) { #sectores .sector { min-height: clamp(220px, 30svh, 290px); } .sector__ico { width: 72px; height: 72px; } .sector__ico svg { width: 36px; height: 36px; } }
#consola .terms div:nth-child(n+4) { display: none; }
@media (max-width: 639px) {
  #sectores { --hm: 1; }
  #sectores .sectors { row-gap: 10px; }
  #sectores .sector { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 12px 14px; min-height: 0; }
  #sectores .sector .sector__ico { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
  #sectores .sector .sector__ico svg { width: 24px; height: 24px; }
  #sectores .sector .sector__ico i { width: 10px; height: 10px; }
  #sectores .sector h3 { grid-column: 2; font-size: var(--t-body); }
  #sectores .sector p { grid-column: 2; font-size: var(--t-small); line-height: 1.4; }
  .plan__dg { height: 76px; }
}

#funciones .panel { --p-h: 420px; }
@media (max-width: 639px) {
  #funciones .panel { --p-h: 200px; }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { aspect-ratio: 1 / 1; max-height: 40svh; }
  .ig-kb .apb-toast--in { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) { #funciones .panel { --p-h: 300px; } }
/* funciones: paneles más altos con el contenido centrado; preguntas con más aire entre respuestas */
@media (min-width: 1024px) {
  #funciones .panel { --p-h: 380px; }
  #funciones .vdi { align-items: center; align-content: center; }
  #funciones .deploy { top: 50%; bottom: auto; transform: translateY(-50%); }
  #funciones .dg-net { inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }
  #preguntas .faq__item { padding-block: var(--s-5); }
}
@media (max-width: 639px) {
  #funciones .panel { --p-h: 190px; }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { max-height: 33svh; }
}
/* el teclado nunca más ancho que su marco */
.ig-kb { grid-template-columns: minmax(0, 470px); justify-content: center; padding: clamp(12px, 3vw, 28px); }
.ig-kb__board { width: 100%; }

/* ================================================================ v3: correcciones tras la revisión del cliente */
/* el aviso verde del paso 3: un aviso de Windows de tamaño normal */
.apb-toast svg { flex: none; }
.ig .apb-toast > span { display: block; min-width: 0; }

/* escritorios virtuales: el puesto se conecta al CPD y la alerta vuelve con la ubicación del puesto */
.vdi2 { position: absolute; inset: 0; display: grid; align-content: center; gap: 28px; padding: 24px clamp(16px, 4%, 40px); }
.vdi2__row { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; }
.vdi2__n { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; min-width: 110px; }
.vdi2__n b { font-weight: 500; } .vdi2__n small { color: var(--muted); }
.vdi2__box { width: 84px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid #c9ccd1; display: grid; place-items: center; }
.vdi2__box svg { width: 36px; height: 36px; stroke: #3b3f46; fill: none; stroke-width: 1.5; }
.vdi2__link { position: relative; height: 64px; display: grid; align-items: end; justify-items: center; }
.vdi2__link small { font-size: 12px; color: var(--muted); }
.vdi2__wire { position: absolute; left: 0; right: 0; top: 31px; border-top: 2px dashed #b9bec6; }
.vdi2__pkt { position: absolute; top: 26px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ig-red); box-shadow: 0 0 0 4px rgb(200 16 46 / .18); opacity: 0; }
.vdi2__alert { justify-self: center; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e1e3e6, 0 16px 32px -18px rgb(20 22 26 / .35); font-size: 13.5px; line-height: 1.4; }
.vdi2__alert b { display: block; font-weight: 500; color: var(--ig-red); }
.vdi2__alert em { font-style: normal; font-weight: 500; color: var(--ig-ok); }
.vdi2__alert s { color: #8a8f97; }
.vdi2__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ig-red); flex: none; }
.vdi2__n--pc .vdi2__box { border-color: var(--ig-ok); box-shadow: 0 0 0 4px rgb(27 122 58 / .14); }
.vdi2__n--pc .vdi2__box svg { stroke: var(--ig-ok); }
@media (prefers-reduced-motion: no-preference) {
  .vdi2.is-in .vdi2__pkt { animation: vdi-pkt 4s var(--ig-inout) infinite; }
  .vdi2.is-in .vdi2__n--dc .vdi2__box { animation: vdi-dc 4s var(--ig-ease) infinite; }
  .vdi2.is-in .vdi2__alert { animation: vdi-alert 4s var(--ig-ease) infinite; }
  .vdi2.is-in .vdi2__n--pc .vdi2__box { animation: vdi-pc 4s var(--ig-ease) infinite; }
}
@keyframes vdi-pkt { 0%, 5% { left: 0; opacity: 0; } 8% { opacity: 1; } 32% { left: calc(100% - 12px); opacity: 1; } 36%, 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes vdi-dc { 0%, 32% { border-color: #c9ccd1; box-shadow: none; } 36%, 50% { border-color: var(--ig-red); box-shadow: 0 0 0 4px rgb(200 16 46 / .16); } 60%, 100% { border-color: #c9ccd1; box-shadow: none; } }
@keyframes vdi-alert { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vdi-pc { 0%, 46% { border-color: #c9ccd1; box-shadow: none; } 52%, 92% { border-color: var(--ig-ok); box-shadow: 0 0 0 4px rgb(27 122 58 / .14); } 100% { border-color: #c9ccd1; box-shadow: none; } }
@media (max-width: 639px) {
  .vdi2 { gap: 12px; padding: 12px; }
  .vdi2__n { min-width: 0; font-size: 12px; } .vdi2__n small, .vdi2__link small { display: none; }
  .vdi2__box { width: 56px; height: 44px; } .vdi2__box svg { width: 26px; height: 26px; }
  .vdi2__link { height: 44px; } .vdi2__wire { top: 21px; } .vdi2__pkt { top: 16px; }
  .vdi2__alert { font-size: 12px; padding: 8px 12px; }
}

/* despliegue: una cuadrícula de equipos que se llena de izquierda a derecha */
.dep { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; padding: 24px clamp(16px, 4%, 40px); font-size: 13px; }
.dep__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dep__pkg { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.dep__pkg b { display: inline-grid; place-items: center; height: 26px; padding: 0 8px; border-radius: 6px; background: #25303a; color: #fff; font: 500 12px var(--font-mono); }
.dep__via { display: inline-flex; gap: 6px; }
.dep__via i { font-style: normal; height: 24px; padding: 0 9px; border-radius: 99px; display: inline-grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px #d9dbdf; font-size: 12px; color: #3b3f46; }
.dep__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.dep__grid i { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--ig-ok); }
.dep__grid i.p { background: #e0a106; }
.dep__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); }
.dep__foot span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.dep__ok { color: var(--ink); } .dep__ok::before { background: var(--ig-ok); }
.dep__pend::before { background: #e0a106; }
.dep__of::before { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .dep.is-in .dep__grid i { animation: dep-on 4s var(--ig-ease) infinite; }
  .dep.is-in .dep__grid i.p { animation-name: dep-pend; }
  .dep.is-in .dep__grid i:nth-child(12n+1) { animation-delay: 0.00s; }
  .dep.is-in .dep__grid i:nth-child(12n+2) { animation-delay: 0.12s; }
  .dep.is-in .dep__grid i:nth-child(12n+3) { animation-delay: 0.24s; }
  .dep.is-in .dep__grid i:nth-child(12n+4) { animation-delay: 0.36s; }
  .dep.is-in .dep__grid i:nth-child(12n+5) { animation-delay: 0.48s; }
  .dep.is-in .dep__grid i:nth-child(12n+6) { animation-delay: 0.60s; }
  .dep.is-in .dep__grid i:nth-child(12n+7) { animation-delay: 0.72s; }
  .dep.is-in .dep__grid i:nth-child(12n+8) { animation-delay: 0.84s; }
  .dep.is-in .dep__grid i:nth-child(12n+9) { animation-delay: 0.96s; }
  .dep.is-in .dep__grid i:nth-child(12n+10) { animation-delay: 1.08s; }
  .dep.is-in .dep__grid i:nth-child(12n+11) { animation-delay: 1.20s; }
  .dep.is-in .dep__grid i:nth-child(12n+12) { animation-delay: 1.32s; }
}
@keyframes dep-on { 0%, 4% { background: #dfe3e8; } 10%, 90% { background: var(--ig-ok); } 100% { background: #dfe3e8; } }
@keyframes dep-pend { 0%, 4% { background: #dfe3e8; } 10%, 90% { background: #e0a106; } 100% { background: #dfe3e8; } }
@media (max-width: 639px) { .dep { gap: 10px; padding: 12px; font-size: 12px; } .dep__grid { gap: 4px; } .dep__via { display: none; } }

/* sectores: todos los puntos laten, uno tras otro */
@media (prefers-reduced-motion: no-preference) {
  #sectores .sector .sector__ico i::after { animation: apb-ping 2.4s var(--ig-ease) infinite; }
  #sectores .sector:nth-child(2) .sector__ico i::after { animation-delay: .4s; }
  #sectores .sector:nth-child(3) .sector__ico i::after { animation-delay: .8s; }
  #sectores .sector:nth-child(4) .sector__ico i::after { animation-delay: 1.2s; }
  #sectores .sector:nth-child(5) .sector__ico i::after { animation-delay: 1.6s; }
  #sectores .sector:nth-child(6) .sector__ico i::after { animation-delay: 2s; }
}

/* pie oscuro, sin el nombre gigante */
.footer.closing.ground-inverse { background: #0e0f12; color: #f1f2f3; }
.footer.closing.ground-inverse .closing__cta { padding-bottom: var(--s-7); border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer.closing.ground-inverse .t-lead, .footer.closing.ground-inverse .footer__lede { color: #c4c7cc; }
.footer.closing.ground-inverse .footer__col h3 { color: #a6a9ae; }
.footer.closing.ground-inverse a:not(.btn) { color: #e6e7e9; }
.footer.closing.ground-inverse a:not(.btn):hover { color: #fff; }
.footer.closing.ground-inverse .footer__legal { color: #a6a9ae; border-top-color: rgb(255 255 255 / .1); }
/* el cierre centrado en su espacio, con una luz roja suave en la esquina */
.footer.closing.ground-inverse { background: radial-gradient(70% 60% at 85% 18%, rgb(200 16 46 / .22) 0%, rgb(200 16 46 / .08) 40%, transparent 72%), #0e0f12; }
.footer.closing.ground-inverse .closing__cta { justify-content: center; padding-bottom: 0; border-bottom: 0; }
.footer.closing.ground-inverse .closing__cta h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; max-width: 16ch; }
.footer.closing.ground-inverse .closing__links { padding-top: var(--s-7); border-top: 1px solid rgb(255 255 255 / .1); }
.footer.closing.ground-inverse .closing__links { border-top: 0; padding-top: 0; }
/* en el teléfono no hay hover: los gemelos de la barra de acción no animan su color */
@media (max-width: 639px) { .closing__cta .btn, #solicitud .form .btn, .footer__col a { transition-property: transform, background-color; } }

/* escalado: la nota de configuración y las unidades que quedan fuera (gris, discontinuas, nunca se encienden) */
.esc__note { margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .14); font-size: var(--t-small); line-height: 1.5; color: #c4c7cc; max-width: 46ch; }
.esc__key { display: inline-block; width: 12px; height: 12px; margin-left: 2px; vertical-align: -1px; border-radius: 50%; border: 1.5px dashed #8a8f97; }
.ig-esc .esc-ring > .esc-n--off { fill: transparent !important; stroke: #6b7079 !important; stroke-dasharray: 2.5 2.5; animation: none !important; }
/* escalado: que la nota quepa en la pantalla */
@media (min-width: 1024px) {
  #escalado h2 { font-size: clamp(32px, 3.6vw, 50px); }
  #escalado main h2 + .t-lead, #escalado h2 + .t-lead { margin-top: var(--s-4); }
  #escalado .esc__stats { gap: var(--s-3); margin-top: var(--s-5); }
  #escalado .esc__stats .stat { padding-top: var(--s-3); }
  #escalado .esc__note { margin-top: var(--s-4); padding-top: var(--s-3); }
}
.footer.closing.ground-inverse .closing__cta { justify-content: flex-start; }
/* el cierre: un panel con luz roja que ocupa todo su espacio, con tres datos debajo del titular */
.footer.closing.ground-inverse { background: #0e0f12; }
.footer.closing.ground-inverse .closing__cta { justify-content: space-between; gap: var(--s-7); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg);
  background: radial-gradient(80% 90% at 88% 10%, rgb(200 16 46 / .34) 0%, rgb(200 16 46 / .12) 42%, transparent 75%), #17181c;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
.close__facts { list-style: none; margin: 0; padding: var(--s-5) 0 0; row-gap: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / .1); }
.close__facts li { display: grid; gap: 4px; color: #c4c7cc; font-size: var(--t-small); line-height: 1.5; }
.close__facts b { color: #fff; font-weight: 500; font-size: var(--t-body); }
.close__facts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); }
@media (max-width: 1023px) { .close__facts { row-gap: var(--s-3); } .close__facts li { grid-column: 1 / -1; } }
@media (max-width: 639px) { .close__facts li:nth-child(2) { display: none; } .footer.closing.ground-inverse .closing__cta { gap: var(--s-5); } }
.footer .close__facts li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.footer .close__facts b { display: block; }
/* el cierre sin caja: titular arriba, tres datos abajo alineados al contenedor, la luz roja en el fondo del pie */
.footer.closing.ground-inverse { background: radial-gradient(60% 55% at 85% 12%, rgb(200 16 46 / .26) 0%, rgb(200 16 46 / .09) 45%, transparent 75%), #0e0f12; }
.footer.closing.ground-inverse .closing__cta { padding: 0; border-radius: 0; background: none; box-shadow: none; justify-content: space-between; }
.close__facts { padding-top: 0; border-top: 0; }
.close__facts a { overflow-wrap: anywhere; }
.footer ul.close__facts.grid { column-gap: var(--gutter); }
@media (max-width: 639px) { .footer ul.close__facts.grid { row-gap: var(--s-4); } .footer .close__facts li:nth-child(2) { display: none; } }

/* modalidades: nota de soporte bajo el precio del modo gratuito */
.apb-plan .plan__note { margin-top: calc(var(--s-2) * -1); font-size: 14px; color: var(--muted); }
@media (max-width: 639px) { #modalidades .soon { display: none; } }   /* en móvil lo cuenta la pregunta frecuente */

/* solicitud: la foto encuadra el monitor con la ventana de alerta */
#solicitud .form-photo img { object-position: 92% 50%; }

/* ================================================================ escritorios virtuales: un aviso normal frente al Botón Antipánico */
#escritorios-virtuales .panel { --p-h: 300px; position: relative; overflow: hidden; background: var(--p-surface); }
.vd { position: absolute; inset: 0; width: 100%; height: 100%; }
.vd text { font: 500 12px var(--font-text); fill: #3b3f46; }
.vd .b { font-weight: 600; fill: #14161a; }
.vd .ok { fill: var(--ig-ok); font-weight: 600; }
.vd-chip rect { fill: #fff; stroke: #e1e3e6; }
.vd-chip circle { fill: var(--ig-red); }
.vd .vd-chip__loc { fill: #6b7079; }
.vd .wall { fill: #fff; stroke: #9aa0a6; stroke-width: 2; }
.vd .wall-in { fill: none; stroke: #b9bec6; stroke-width: 1.5; }
.vd .desk { fill: #eef0f2; stroke: #c9ccd1; }
.vd-room rect { fill: transparent; }
.vd .vd-room-t { text-anchor: middle; font-size: 11px; fill: #6b7079; }
.vd-hit { fill: rgb(200 16 46 / .1); stroke: var(--ig-red); stroke-width: 1.5; }
.vd-q circle { fill: #fff; stroke: #8a8f97; stroke-width: 1.5; }
.vd-q .vd-q__halo { fill: none; stroke: #b9bec6; stroke-dasharray: 3 4; }
.vd .vd-q text { text-anchor: middle; font-size: 17px; font-weight: 600; fill: #6b7079; }
.vd-pin path { fill: var(--ig-red); }
.vd-pin__eye { fill: #fff; }
.vd-pin__ring { fill: none; stroke: var(--ig-red); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* sin movimiento: la consulta 14 y nada más */
.vd-chip--b, .vd-hit--b, .vd-pin--b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .vd.is-in .vd-room rect { animation: vd-search 3s var(--ig-ease) infinite; animation-delay: var(--d, 0s); }
  .vd.is-in .vd-q__halo { animation: vd-spin 8s linear infinite; transform-box: fill-box; transform-origin: center; }
  .vd.is-in :is(.vd-chip--a, .vd-hit--a, .vd-pin--a) { animation: vd-a 9s var(--ig-ease) infinite; }
  .vd.is-in :is(.vd-chip--b, .vd-hit--b, .vd-pin--b) { animation: vd-b 9s var(--ig-ease) infinite; }
  .vd.is-in .vd-pin__ring { animation: vd-ping 1.8s var(--ig-ease) infinite; }
  .vd.is-in .vd-pin__ring--b { animation-delay: .9s; }
}
@keyframes vd-search { 0%, 100% { fill: transparent; } 12% { fill: rgb(224 161 6 / .18); } 30% { fill: transparent; } }
@keyframes vd-spin { to { transform: rotate(360deg); } }
@keyframes vd-a { 0%, 46% { opacity: 1; } 52%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vd-b { 0%, 46% { opacity: 0; } 52%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vd-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
.vd-facts { margin-top: var(--s-6); padding: 0; list-style: none; column-gap: var(--gutter); }
.vd-facts li { display: grid; align-content: start; gap: var(--s-1); color: var(--muted); }
.vd-facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) { #escritorios-virtuales .panel { --p-h: 220px; } }
@media (max-width: 639px) {
  #escritorios-virtuales .panel { --p-h: 190px; }
  .vd-facts { row-gap: var(--s-4); margin-top: var(--s-5); }
  .vd-facts li:nth-child(2) { display: none; }
}
#escritorios-virtuales .grid--top { align-items: start; }
@media (max-width: 639px) { #escritorios-virtuales .panel { --p-h: 240px; } }
#escritorios-virtuales .grid--top { margin-bottom: var(--s-7); }
#escritorios-virtuales .grid--top > p { margin-top: 0; }
@media (min-width: 1024px) { #escritorios-virtuales h2 { font-size: clamp(32px, 3.4vw, 48px); } }
@media (max-width: 639px) { #escritorios-virtuales .panel { --p-h: 260px; } }
#escritorios-virtuales .grid--top { margin-bottom: var(--s-6); }
@media (min-width: 1024px) { #escritorios-virtuales .panel { --p-h: 270px; } }
@media (max-width: 639px) { #escritorios-virtuales .panel { --p-h: 300px; } .vd-facts li:nth-child(2) { display: grid; } }

/* escritorios virtuales: separador con la sección anterior */
#escritorios-virtuales > .wrap { border-top: 1px solid var(--line); padding-top: var(--s-5); }
@media (min-width: 1024px) { #escritorios-virtuales .panel { --p-h: 240px; } }
@media (max-width: 639px) { #escritorios-virtuales .panel { --p-h: 250px; } }
#consola .grid--top { align-items: start; }
#consola .grid--top > p { margin-top: 0; }
.closing__cta .btn, #solicitud .form .btn { transition-property: transform, background-color; }

/* ajustes de espacio tras los textos nuevos (16/11/2026) */
@media (min-width: 1024px) { #escalado .esc__stats { margin-top: var(--s-5); } #escalado .esc__note { margin-top: var(--s-4); } }
@media (max-width: 639px) {
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { max-height: 25svh; }
  #funciones .panel { --p-h: 180px; }
  #modalidades .soon + p { display: none; }
}
@media (min-width: 1024px) { #escalado h2 { font-size: clamp(30px, 3.1vw, 44px); } }
@media (max-width: 639px) {
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.ig { max-height: 23svh; }
  #escalado { --hm: 2; }
}
@media (max-width: 639px) {
  #escalado { display: flex; flex-direction: column; }
  #escalado > .wrap { flex: 1; display: flex; flex-direction: column; }
  #escalado .grid--top { flex: 1; align-content: space-between; }
}
.closing__cta .btn, .closing__cta .btn *, .footer__col a { transition-property: transform, background-color !important; }

/* ================================================================ requisitos del sistema (pestañas del kit) */
#requisitos > .wrap { border-top: 1px solid var(--line); padding-top: var(--s-5); }
#requisitos .grid--top { align-items: start; margin-bottom: var(--s-6); }
#requisitos .grid--top > p { margin-top: 0; }
@media (min-width: 1024px) { #requisitos h2 { font-size: clamp(32px, 3.4vw, 48px); } }
.rq-body { align-items: stretch; }
.rq-main { min-width: 0; }
.rq-tabs { margin-bottom: var(--s-4); }
.rq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rq-table th, .rq-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rq-table :is(th, td):first-child { padding-left: 0; }
.rq-table thead th { padding-top: 0; font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.rq-table thead th:last-child { color: var(--ig-ok); }
.rq-table tbody th { width: 22%; font-weight: 500; color: var(--muted); font-size: var(--t-small); padding-top: 13px; }
.rq-table td { width: 39%; color: var(--ink); }
.rq-table td:last-child { background: rgb(31 138 76 / .06); }
.rq-note { margin: var(--s-4) 0 0; font-size: var(--t-small); color: var(--muted); max-width: 64ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.rq-term { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #14161a; color: #e6e7e9; overflow: hidden; min-width: 0; }
.rq-term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #262a31; font-size: 12px; color: #8b9099; }
.rq-term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #343941; }
.rq-term__bar span { margin-left: 8px; }
.rq-net { flex: 1; display: grid; align-content: center; justify-items: center; padding: 24px 16px; }
.rq-net__row { display: flex; gap: 12px; justify-content: center; }
.rq-node { display: grid; gap: 2px; min-width: 120px; padding: 2px 12px; border-left: 3px solid #4a5059; font-size: 14px; font-weight: 600; text-align: left; }
.rq-node small, .rq-link code { font-family: var(--font-mono); }
.rq-node small { font-size: 11px; font-weight: 400; color: #8b9099; }
.rq-node--srv { border-left-color: var(--ig-red); }
.rq-link { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; }
.rq-link::before { content: ""; width: 2px; height: 100%; background: #343941; }
.rq-link i { position: absolute; left: -2px; top: 0; width: 6px; height: 12px; border-radius: 3px; background: var(--ig-red); opacity: 0; }
.rq-link code { font-size: 11px; color: #b6bac1; }
.rq-link--b i { background: var(--ig-ok); }
@media (prefers-reduced-motion: no-preference) {
  .rq-net.is-in .rq-link i { animation: rq-pulse 2.8s var(--ig-inout) infinite; }
  .rq-net.is-in .rq-link--b i { animation-delay: 1.1s; }
}
@keyframes rq-pulse { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(34px); } }

@media (max-width: 639px) {
  .rq-body { row-gap: var(--s-5); }
  .rq-table thead { display: none; }
  .rq-table, .rq-table tbody, .rq-table tr { display: block; }
  .rq-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rq-table th, .rq-table td { display: grid; grid-template-columns: 104px 1fr; gap: 8px; width: auto; padding: 2px 0; border: 0; background: none; }
  .rq-table tbody th { display: block; padding: 0 0 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
  .rq-table td::before { content: attr(data-l); font-size: var(--t-small); color: var(--muted); }
  .rq-table td:last-child { background: none; }
  .rq-table td:last-child::before { color: var(--ig-ok); }
  .rq-term { min-height: 340px; }
  .rq-node { min-width: 0; font-size: 13px; }
}

/* ================================================================ móvil y tablet (Android) · v1.0.6
   Sección #movil: la ronda del vigilante en el plano y su móvil con la alerta; tres tarjetas con el
   botón que se mantiene pulsado, el widget y el alta con QR. Más dos tarjetas nuevas en #funciones:
   mensajes de la organización y prueba del aviso. Misma regla que el resto: sin .is-in o con movimiento
   reducido se ve la imagen final. */

/* ---------------------------------------------------------------- cabecera de la sección */
.mv-new { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-4); font: 500 13px/1 var(--font-text); color: var(--ink); }
.mv-new span { padding: 5px 9px; border-radius: 99px; background: var(--ig-red); color: #fff; font-size: 12px; letter-spacing: .02em; }
.mv-checks { margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.mv-fine { margin: var(--s-5) 0 0; font-size: var(--t-small); color: var(--muted); }
.mv-top { align-items: center; }

/* ---------------------------------------------------------------- el escenario: plano oscuro + móvil */
.mv-stage { position: relative; margin: 0; aspect-ratio: 7 / 6; border-radius: var(--r-lg, 24px); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 20% 15%, #2a1016 0%, #14161a 55%) #14161a;
  box-shadow: 0 0 0 1px rgb(20 22 26 / .1), 0 40px 80px -40px rgb(20 22 26 / .6); }
.mv-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 18px 18px; }
.mv-plan { position: absolute; left: 3%; top: 6%; width: 66%; height: 88%; overflow: visible; }
.mv-room { fill: #1b1d21; } .mv-room--seg { fill: #18202b; }
.mv-room--hot { fill: var(--ig-red); opacity: .3; }
.mv-corr { fill: #16181b; }
.mv-desks rect { fill: #23262b; stroke: #33363c; stroke-width: 1; }
.mv-wall { fill: none; stroke: #4a4e56; stroke-width: 4; stroke-linejoin: round; }
.mv-lbl { font: 500 10px var(--font-mono); fill: #7d828a; letter-spacing: .06em; }
.mv-lbl--corr { fill: #5d6168; }
.mv-route { fill: none; stroke: #4aa3ff; stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .35; }
.mv-signal { fill: none; stroke: var(--ig-red-hi); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0; }
.mv-pin__dot { fill: #ff2d43; }
.mv-ripple { fill: none; stroke: var(--ig-red-hi); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mv-toast rect { fill: #f7f7f5; } .mv-toast circle { fill: var(--ig-ok); }
.mv-toast path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mv-toast text { font: 600 11.5px var(--font-text); fill: #14161a; } .mv-toast .mv-toast__s { font-weight: 400; font-size: 10px; fill: #4a4e55; }
.mv-guard { offset-path: path("M480 210H80V150"); offset-rotate: 0deg; offset-distance: 100%; }
.mv-guard__halo { fill: #4aa3ff; opacity: .18; } .mv-guard__ring { fill: #14161a; stroke: #4aa3ff; stroke-width: 2.5; } .mv-guard__dot { fill: #fff; }
.mv-guard__lbl { font: 500 10px var(--font-text); fill: #b9dcff; text-anchor: middle; }
.mv-cap { position: absolute; right: 5%; bottom: 3.2%; width: 30%; text-align: center; font: 500 12px var(--font-text); color: #8b9097; }

/* ---------------------------------------------------------------- el móvil (componente) */
.phone { position: relative; width: var(--ph-w, 200px); aspect-ratio: 9 / 19.5; padding: 2.4%; border-radius: 15% / 7%;
  background: linear-gradient(160deg, #3a3d44, #121316 40%); box-shadow: inset 0 0 0 1.5px #4d5058, 0 0 0 1px rgb(0 0 0 / .4), 0 40px 70px -30px rgb(0 0 0 / .75); }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 13% / 6%; background: #f2f2f4; color: #14161a;
  container-type: inline-size; font: 400 4.2cqw/1.3 var(--font-text); }
.phone__vol, .phone__pow { position: absolute; right: -1.6%; width: 2%; border-radius: 0 3px 3px 0; background: #3a3d44; }
.phone__vol { top: 22%; height: 11%; } .phone__pow { top: 37%; height: 7%; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 9cqw; padding: 0 7cqw; font-size: 3.8cqw; font-weight: 500; }
.ph-status--inv { color: #fff; }
.ph-icons { display: flex; gap: 1.6cqw; } .ph-icons i { width: 3cqw; height: 3cqw; border-radius: 1px; background: currentColor; }
.ph-icons i:first-child { border-radius: 50% 50% 0 0; }

/* bloqueo */
.ph-lock { position: absolute; inset: 0; color: #fff; background: radial-gradient(140% 80% at 30% 0%, #2c3a52, #10131a 70%); }
.ph-lock__time { margin: 16cqw 0 0; text-align: center; font: 300 21cqw/1 var(--font-display); letter-spacing: -.03em; }
.ph-lock__date { margin: 2cqw 0 0; text-align: center; font-size: 4.2cqw; color: #c9d2e0; }
.ph-note { position: absolute; left: 5cqw; right: 5cqw; bottom: 14cqw; display: flex; gap: 3cqw; align-items: center; padding: 3.4cqw; border-radius: 5cqw;
  background: rgb(255 255 255 / .14); backdrop-filter: blur(6px); font-size: 3.6cqw; color: #dfe5ee; }
.ph-note img { width: 8cqw; height: 8cqw; } .ph-note b { display: block; color: #fff; font-weight: 600; }

/* alerta recibida (como la captura 12) */
.ph-alert { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.ph-alert__bar { display: flex; align-items: center; gap: 2.6cqw; padding: 11cqw 5cqw 4cqw; color: #fff; background: linear-gradient(#d0142f, #b00d26); }
.ph-alert__bar img { width: 8cqw; height: 8cqw; filter: brightness(0) invert(1); }
.ph-alert__bar b { flex: 1; font: 600 5.6cqw/1 var(--font-display); letter-spacing: .01em; }
.ph-alert__bar span { font-size: 3.8cqw; opacity: .9; }
.ph-alert__body { flex: 1; display: flex; flex-direction: column; padding: 5cqw 5cqw 4cqw; }
.ph-alert__body p { margin: 0; }
.ph-alert__who { font: 600 6.6cqw/1.1 var(--font-display); }
.ph-alert__urg { color: #c8102e; font-weight: 600; font-size: 4.2cqw; }
.ph-alert__k { margin-top: 3.4cqw !important; font-size: 3cqw; letter-spacing: .08em; color: #5b5f66; }
.ph-alert__where { font: 600 5cqw/1.2 var(--font-display); }
.ph-alert__meta { font-size: 3cqw; color: #5b5f66; }
.ph-map { position: relative; flex: 1; min-height: 0; margin: 3cqw 0; border-radius: 3cqw; overflow: hidden; background: #fbf8f8; box-shadow: inset 0 0 0 1px #eadcdc; }
.ph-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-map .r1 { fill: #f6d9dd; } .ph-map .r2 { fill: #fbeaec; } .ph-map .r3 { fill: #eef3f6; } .ph-map__exit { stroke: #1f8f4d; stroke-width: 2; } .ph-map .w { fill: none; stroke: #2a2d33; stroke-width: 1.6; }
.ph-map__pin { fill: #d0101e; } .ph-map__ring { fill: none; stroke: #d0101e; stroke-width: 1; opacity: .5; transform-box: fill-box; transform-origin: center; }
.ph-btn { position: relative; display: grid; height: 12cqw; border-radius: 2.4cqw; overflow: hidden; font: 600 4.2cqw/1 var(--font-text); letter-spacing: .03em; color: #fff; }
.ph-btn > span { grid-area: 1 / 1; display: grid; place-items: center; }
.ph-btn__a { background: #8f0a12; }
.ph-btn__b { background: #d99aa1; }
.ph-tap { position: absolute; left: 50%; top: 50%; width: 14cqw; height: 14cqw; margin: -7cqw; border-radius: 50%; background: rgb(255 255 255 / .55); opacity: 0; pointer-events: none; }
.ph-close { margin-top: 2.6cqw !important; text-align: center; font-size: 3.8cqw; color: #4a4e55; }

.mv-phone { position: absolute; right: 5%; top: 50%; --ph-w: 29%; width: var(--ph-w); transform: translateY(-52%) rotate(-1.5deg); }
.mv-phone .ph-lock { visibility: hidden; }

/* ---------------------------------------------------------------- las tres tarjetas */
.mv-cards { margin-top: 0; }
.mv-cards .mv-panel { min-height: var(--p-h); }
.mv-panel { --p-h: 360px; display: grid; place-items: end center; position: relative; overflow: hidden; }
.phone--sm { --ph-w: clamp(170px, 15vw, 216px); }
.mv-panel .phone, .mv-qr .phone { box-shadow: inset 0 0 0 1.5px #4d5058, 0 30px 50px -26px rgb(20 22 26 / .55); margin: 36px 0 -90px; }

/* pantalla principal y botón que se mantiene */
.ph-app__bar { padding-bottom: 4cqw; color: #fff; background: linear-gradient(#d0142f, #b00d26); }
.ph-app__t { display: flex; align-items: center; gap: 2.6cqw; margin: 2cqw 0 0; padding: 0 5cqw; font: 600 5.4cqw/1 var(--font-display); }
.ph-app__t img { width: 8cqw; height: 8cqw; filter: brightness(0) invert(1); }
.ph-gear { width: 6cqw; height: 6cqw; margin-left: auto; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ph-pill { display: inline-block; margin: 3cqw 0 0 5cqw; padding: 1cqw 2.6cqw; border-radius: 99px; background: #fff; color: #1b7a3a; font: 600 3cqw/1.3 var(--font-text); letter-spacing: .04em; }
.ph-app__who { margin: 1.8cqw 0 0; padding: 0 5cqw; font-size: 3.6cqw; opacity: .9; }
.ph-hold { position: relative; width: 70cqw; aspect-ratio: 1; margin: 9cqw auto 0; display: grid; place-items: center; }
.ph-hold::before { content: ""; position: absolute; inset: -4cqw; border-radius: 50%; background: rgb(200 16 46 / .08); }
.ph-hold__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ph-hold__ring circle { fill: none; stroke-width: 4; }
.ph-hold__ring .bg { stroke: rgb(255 255 255 / .35); }
.ph-hold__ring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ph-hold__b { position: absolute; inset: 7%; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; font-size: 3cqw; z-index: -1;
  background: radial-gradient(circle at 40% 30%, #e0274a, #b30d2b 70%); box-shadow: 0 6cqw 12cqw -6cqw rgb(176 13 38 / .7); }
.ph-hold { isolation: isolate; }
.ph-hold__b b { font: 600 6cqw/1.1 var(--font-display); }
.ph-finger { position: absolute; left: 50%; top: 58%; width: 16cqw; height: 16cqw; margin: -8cqw; border-radius: 50%; background: rgb(255 255 255 / .4); box-shadow: 0 0 0 2cqw rgb(255 255 255 / .18); opacity: 0; }
.ph-sent { margin: 9cqw 5cqw 0; padding: 3cqw 3.4cqw; border-radius: 3cqw; background: #e3f3e8; color: #1b5e33; font-size: 3.4cqw; }
.ph-sent b { display: block; font-weight: 600; font-size: 3.4cqw; letter-spacing: .03em; }
.ph-push { position: absolute; left: 4cqw; right: 4cqw; top: 10cqw; display: flex; gap: 3cqw; align-items: center; padding: 3.6cqw; border-radius: 5cqw;
  background: #fff; box-shadow: 0 4cqw 12cqw -4cqw rgb(20 22 26 / .35), 0 0 0 1px rgb(20 22 26 / .06); font-size: 3.5cqw; color: #4a4e55; }
.ph-push img { width: 8cqw; height: 8cqw; } .ph-push b { display: block; color: #14161a; font-weight: 600; letter-spacing: .02em; }

/* pantalla de inicio con el widget */
.ph-home { background: linear-gradient(170deg, #36425a 0%, #1b2130 55%, #2a1820 100%); color: #fff; }
.ph-home__clock { margin: 6cqw 0 0 7cqw; font: 300 15cqw/1 var(--font-display); letter-spacing: -.03em; }
.ph-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6cqw 7cqw; padding: 8cqw 8cqw 0; }
.ph-apps i { aspect-ratio: 1; border-radius: 30%; background: rgb(255 255 255 / .16); }
.ph-apps i:nth-child(3n) { background: rgb(255 255 255 / .1); } .ph-apps i:nth-child(4n+1) { background: rgb(160 190 255 / .22); }
.ph-apps--dock { position: absolute; left: 0; right: 0; bottom: 8cqw; }
.ph-widget { position: relative; display: flex; align-items: center; gap: 3cqw; margin: 8cqw 8cqw 0; padding: 4cqw; border-radius: 6cqw;
  background: linear-gradient(135deg, #d0142f, #9e0b22); box-shadow: 0 4cqw 10cqw -4cqw rgb(200 16 46 / .8); font: 600 4.6cqw/1.1 var(--font-display); }
.ph-widget img { width: 10cqw; height: 10cqw; filter: brightness(0) invert(1); }
.ph-widget .ph-tap { width: 16cqw; height: 16cqw; margin: -8cqw; }
.ph-push--sent { top: 10cqw; }
.mv-buzz, .mv-x3 { position: absolute; font: 600 13px/1 var(--font-mono); color: var(--ig-red); opacity: 0; }
.mv-buzz { left: calc(50% + clamp(170px, 15vw, 216px) / 2 + 12px); top: 46%; letter-spacing: .2em; font-size: 18px; }
.mv-x3 { left: calc(50% + clamp(170px, 15vw, 216px) / 2 + 12px); top: 36%; }
.mv-widget .ph-push { opacity: 1; }

/* alta con QR */
.mv-panel--qr { place-items: end center; }
.mv-qr { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; width: 100%; height: 100%; }
.mv-qr__card { position: absolute; left: 7%; top: 30px; z-index: 0; width: 150px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(20 22 26 / .08), 0 20px 40px -24px rgb(20 22 26 / .5);
  display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 11px; color: #4a4e55; }
.mv-qr__card p { margin: 0; justify-self: start; font-weight: 600; color: #14161a; }
.mv-qr__code { width: 104px; height: 104px; } .mv-qr__code path, .ph-cam__qr path { fill: #14161a; shape-rendering: crispEdges; }
.mv-qr__card code { font: 500 12px var(--font-mono); color: #14161a; letter-spacing: .04em; }
.mv-qr__card small { font-size: 10px; }
.mv-qr .phone { position: relative; z-index: 1; margin-left: 30%; }
.ph-cam { background: #0d0e10; }
.ph-cam__view { position: absolute; left: 10cqw; right: 10cqw; top: 26cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 4cqw; background: #2b2d31; overflow: hidden; }
.ph-cam__qr { width: 62%; padding: 4%; background: #e9e9e6; transform: rotate(-6deg); border-radius: 2%; }
.ph-cam__c { position: absolute; inset: 8%; border-radius: 3cqw;
  background: linear-gradient(#fff, #fff) left top / 9cqw 1.2cqw, linear-gradient(#fff, #fff) left top / 1.2cqw 9cqw,
    linear-gradient(#fff, #fff) right top / 9cqw 1.2cqw, linear-gradient(#fff, #fff) right top / 1.2cqw 9cqw,
    linear-gradient(#fff, #fff) left bottom / 9cqw 1.2cqw, linear-gradient(#fff, #fff) left bottom / 1.2cqw 9cqw,
    linear-gradient(#fff, #fff) right bottom / 9cqw 1.2cqw, linear-gradient(#fff, #fff) right bottom / 1.2cqw 9cqw; background-repeat: no-repeat; }
.ph-cam__scan { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff4a5e; box-shadow: 0 0 6cqw 1cqw rgb(255 74 94 / .6); opacity: 0; }
.ph-cam__t { position: absolute; left: 0; right: 0; top: 108cqw; margin: 0; text-align: center; color: #c9ccd1; font-size: 4cqw; }
.ph-ok { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 2cqw; padding: 8cqw; text-align: center; background: #fff; color: #4a4e55; font-size: 3.8cqw; }
.ph-ok b { font: 600 6cqw/1.2 var(--font-display); color: #14161a; }
.ph-ok__ico { display: grid; place-items: center; width: 18cqw; height: 18cqw; border-radius: 50%; background: var(--ig-ok); margin-bottom: 2cqw; }
.ph-ok__ico svg { width: 60%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-pill--ok { margin: 3cqw 0 0; background: #e3f3e8; }

/* ---------------------------------------------------------------- #funciones: mensajes */
.msgs { position: absolute; inset: 0; }
.msg { position: absolute; width: min(62%, 300px); left: calc(8% + var(--i) * 7%); top: calc(10% + var(--i) * 13%); border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(20 22 26 / .08), 0 18px 36px -18px rgb(20 22 26 / .45); font-size: 12px; color: #14161a; }
.msg b { display: block; padding: 7px 12px; color: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; }
.msg p { margin: 0; padding: 8px 12px 10px; line-height: 1.35; }
.msg--info b { background: #127a6c; } .msg--aviso b { background: #0f4b94; } .msg--imp b { background: #b4500f; }
.msg__ok { display: block; margin: 0 12px 10px; padding: 6px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 11px; letter-spacing: .04em; color: #fff; background: #b4500f; }
.msg--seg { background: #f6c500; }
.msg--seg .msg__stripes { height: 10px; padding: 0; background: repeating-linear-gradient(-45deg, #14161a 0 8px, #f6c500 8px 16px); }
.msg--seg strong { display: block; padding: 8px 12px 0; font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.msg--seg small { display: block; padding: 0 12px; font-size: 10.5px; font-weight: 600; }
.msg--seg p { padding-top: 4px; }
.msg--seg .msg__ok { background: #14161a; color: #f6c500; }
.msgs__read { position: absolute; right: 6%; bottom: 8%; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 99px; background: #14161a; color: #f7f7f5; font-size: 12.5px; }
.msgs__read svg { width: 16px; height: 16px; fill: none; stroke: var(--ig-ok-hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* #funciones: prueba */
.test { position: absolute; inset: 0; }
.test__btn { position: absolute; left: 7%; top: 12%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px rgb(20 22 26 / .12), 0 8px 18px -10px rgb(20 22 26 / .4); font-size: 13px; font-weight: 500; }
.test__btn svg { width: 14px; height: 14px; fill: #0b6fc6; }
.test__cur { position: absolute; right: -6px; bottom: -14px; width: 16px; height: 20px; background: #14161a;
  clip-path: polygon(0 0, 100% 62%, 58% 66%, 76% 100%, 60% 100%, 42% 70%, 0 92%); opacity: 0; }
.test__win { position: absolute; right: 6%; bottom: 10%; width: min(64%, 330px); border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(20 22 26 / .12), 0 26px 50px -24px rgb(20 22 26 / .6); font-size: 12.5px; }
.test__win .apb-win__bar { height: 26px; font-size: 11px; }
.test__band { margin: 0; padding: 8px 12px; background: #0b6fc6; color: #fff; text-align: center; font-weight: 600; font-size: 11px; letter-spacing: .04em; }
.test__who { margin: 0; padding: 12px 14px; display: grid; gap: 2px; } .test__who b { font-weight: 600; } .test__who small { color: #5b5f66; font-size: 11.5px; }
.test__ok { margin: 0; padding: 10px; text-align: center; background: #0b6fc6; color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .03em; }
.test__note { position: absolute; left: 7%; bottom: 12%; margin: 0; padding: 6px 10px; border-radius: 99px; background: rgb(11 111 198 / .1); color: #0a5aa0; font-size: 12px; font-weight: 500; }

/* ---------------------------------------------------------------- animaciones */
@media (prefers-reduced-motion: no-preference) {
  /* escenario: 12 s. ronda → alerta → el móvil suena → Acudo → va hasta la consulta */
  .mv-stage.is-in .mv-guard { animation: mv-walk 12s linear infinite; }
  .mv-stage.is-in .mv-guard__halo { animation: mv-halo 12s var(--ig-ease) infinite; transform-box: fill-box; transform-origin: center; }
  .mv-stage.is-in .mv-pin, .mv-stage.is-in .mv-hot { animation: mv-alert 12s var(--ig-ease) infinite; }
  .mv-stage .mv-ripple { animation: mv-ripple 1.6s var(--ig-ease) infinite; } .mv-stage .mv-ripple--b { animation-delay: .8s; }
  .mv-stage.is-in .mv-signal { animation: mv-signal 12s var(--ig-ease) infinite; }
  .mv-stage.is-in .mv-toast { animation: mv-toast 12s var(--ig-ease) infinite; }
  .mv-stage.is-in .mv-phone .ph-lock { visibility: visible; }
  .mv-stage.is-in .mv-phone .ph-alert { animation: mv-up 12s var(--ig-ease) infinite; }
  .mv-stage.is-in .mv-phone { animation: mv-buzz 12s linear infinite; }
  .mv-stage.is-in .mv-phone .ph-btn__b { animation: mv-done 12s var(--ig-ease) infinite; }
  .mv-stage.is-in .mv-phone .ph-tap { animation: mv-tap 12s var(--ig-ease) infinite; }
  .mv-stage .ph-map__ring { animation: mv-ripple 1.6s var(--ig-ease) infinite; }

  /* pedir ayuda manteniendo: 7 s */
  .mv-hold.is-in .ph-hold__ring .fg { animation: mv-fill 7s linear infinite; }
  .mv-hold.is-in .ph-finger { animation: mv-finger 7s var(--ig-ease) infinite; }
  .mv-hold.is-in .ph-hold__b { animation: mv-press 7s var(--ig-ease) infinite; }
  .mv-hold.is-in .ph-sent { animation: mv-sent 7s var(--ig-ease) infinite; }
  .mv-hold.is-in .ph-push { animation: mv-push 7s var(--ig-ease) infinite; }

  /* widget: 9 s */
  .mv-widget.is-in .ph-tap--1 { animation: mv-tap1 9s var(--ig-ease) infinite; }
  .mv-widget.is-in .ph-tap--2 { animation: mv-tap2 9s var(--ig-ease) infinite; }
  .mv-widget.is-in { animation: mv-vib 9s linear infinite; }
  .mv-widget.is-in .ph-push { animation: mv-push2 9s var(--ig-ease) infinite; }
  .mv-widget.is-in .phone__vol { animation: mv-vol 9s linear infinite; }
  .mv-panel:has(.mv-widget.is-in) .mv-buzz { animation: mv-buzzt 9s linear infinite; }
  .mv-panel:has(.mv-widget.is-in) .mv-x3 { animation: mv-x3 9s linear infinite; }

  /* QR: 7 s */
  .mv-qr.is-in .ph-cam__scan { animation: mv-scan 7s var(--ig-ease) infinite; }
  .mv-qr.is-in .ph-ok { animation: mv-ok 7s var(--ig-ease) infinite; }
  .mv-qr.is-in .ph-cam__qr { animation: mv-qrcam 7s var(--ig-ease) infinite; }

  /* mensajes: 10 s */
  .msgs.is-in .msg { animation: msg-in 10s var(--ig-ease) infinite; animation-delay: calc(var(--i) * .55s); }
  .msgs.is-in .msgs__read { animation: msg-read 10s var(--ig-ease) infinite; }

  /* prueba: 8 s */
  .test.is-in .test__cur { animation: t-cur 8s var(--ig-ease) infinite; }
  .test.is-in .test__btn { animation: t-btn 8s var(--ig-ease) infinite; }
  .test.is-in .test__win { animation: t-win 8s var(--ig-ease) infinite; }
  .test.is-in .test__note { animation: t-note 8s var(--ig-ease) infinite; }
}

@keyframes mv-walk {
  0% { offset-distance: 0%; opacity: 0; } 3% { opacity: 1; }
  27% { offset-distance: 38%; } 52% { offset-distance: 38%; }
  78% { offset-distance: 100%; } 94% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes mv-halo { 0%, 30% { transform: scale(1); opacity: .18; } 33%, 50% { transform: scale(1.8); opacity: .35; } 52%, 100% { transform: scale(1); opacity: .18; } }
@keyframes mv-alert { 0%, 25% { opacity: 0; } 28% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes mv-signal { 0%, 28% { opacity: 0; stroke-dashoffset: 100; } 30% { opacity: 1; } 36% { stroke-dashoffset: 0; opacity: 1; } 56% { opacity: .6; stroke-dashoffset: 0; } 62%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes mv-toast { 0%, 56% { opacity: 0; transform: translate(150px, 70px); } 60% { opacity: 1; transform: translate(150px, 62px); } 94% { opacity: 1; transform: translate(150px, 62px); } 100% { opacity: 0; transform: translate(150px, 62px); } }
@keyframes mv-up { 0%, 34% { transform: translateY(102%); } 38%, 96% { transform: none; } 100% { transform: translateY(102%); } }
@keyframes mv-buzz {
  0%, 37% { transform: translateY(-52%) rotate(-1.5deg); }
  38% { transform: translateY(-52%) translateX(-3px) rotate(-2.5deg); } 39% { transform: translateY(-52%) translateX(3px) rotate(-.5deg); }
  40% { transform: translateY(-52%) translateX(-3px) rotate(-2.5deg); } 41% { transform: translateY(-52%) translateX(3px) rotate(-.5deg); }
  42%, 43% { transform: translateY(-52%) rotate(-1.5deg); }
  44% { transform: translateY(-52%) translateX(-3px) rotate(-2.5deg); } 45% { transform: translateY(-52%) translateX(3px) rotate(-.5deg); }
  46%, 100% { transform: translateY(-52%) rotate(-1.5deg); }
}
@keyframes mv-done { 0%, 52% { opacity: 0; } 55%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-tap { 0%, 50% { opacity: 0; transform: scale(.4); } 52% { opacity: 1; transform: scale(.8); } 57%, 100% { opacity: 0; transform: scale(2.2); } }

@keyframes mv-fill { 0%, 14% { stroke-dashoffset: 100; } 36% { stroke-dashoffset: 0; } 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes mv-finger { 0%, 10% { opacity: 0; transform: scale(1.4); } 14% { opacity: 1; transform: scale(1); } 36% { opacity: 1; transform: scale(.9); } 40%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes mv-press { 0%, 13% { transform: scale(1); } 16%, 35% { transform: scale(.95); } 39%, 100% { transform: scale(1); } }
@keyframes mv-sent { 0%, 37% { opacity: 0; transform: translateY(6px); } 41%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mv-push { 0%, 58% { opacity: 0; transform: translateY(-140%); } 63%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-140%); } }

@keyframes mv-tap1 { 0%, 15% { opacity: 0; transform: scale(.4); } 17% { opacity: 1; transform: scale(.8); } 21%, 100% { opacity: 0; transform: scale(2); } }
@keyframes mv-tap2 { 0%, 21% { opacity: 0; transform: scale(.4); } 23% { opacity: 1; transform: scale(.8); } 27%, 100% { opacity: 0; transform: scale(2); } }
@keyframes mv-vib {
  0%, 31% { transform: none; } 32% { transform: translateX(-3px); } 33% { transform: translateX(3px); } 34% { transform: none; }
  36% { transform: translateX(-3px); } 37% { transform: translateX(3px); } 38%, 100% { transform: none; }
}
@keyframes mv-push2 { 0%, 31% { opacity: 0; transform: translateY(-140%); } 35%, 52% { opacity: 1; transform: none; } 56%, 79% { opacity: 0; transform: translateY(-140%); } 83%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-140%); } }
@keyframes mv-vol { 0%, 60% { background: #3a3d44; box-shadow: none; }
  61%, 63% { background: var(--ig-red); box-shadow: 0 0 10px var(--ig-red); } 64%, 66% { background: #3a3d44; box-shadow: none; }
  67%, 69% { background: var(--ig-red); box-shadow: 0 0 10px var(--ig-red); } 70%, 72% { background: #3a3d44; box-shadow: none; }
  73%, 75% { background: var(--ig-red); box-shadow: 0 0 10px var(--ig-red); } 76%, 100% { background: #3a3d44; box-shadow: none; } }
@keyframes mv-buzzt { 0%, 31% { opacity: 0; } 32%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes mv-x3 { 0%, 60% { opacity: 0; } 63%, 82% { opacity: 1; } 86%, 100% { opacity: 0; } }

@keyframes mv-scan { 0%, 8% { opacity: 0; top: 14%; } 12% { opacity: 1; } 22% { top: 86%; } 32% { top: 14%; } 40% { top: 60%; opacity: 1; } 44%, 100% { opacity: 0; top: 60%; } }
@keyframes mv-ok { 0%, 44% { opacity: 0; transform: scale(.96); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mv-qrcam { 0%, 6% { transform: rotate(-10deg) scale(.85) translate(6%, 8%); } 20%, 100% { transform: rotate(-4deg); } }

@keyframes msg-in { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes msg-read { 0%, 34% { opacity: 0; transform: translateY(8px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@keyframes t-cur { 0% { opacity: 0; transform: translate(60px, 40px); } 10% { opacity: 1; } 20% { transform: none; opacity: 1; } 23% { transform: scale(.85); } 26% { transform: none; } 34%, 100% { opacity: 0; } }
@keyframes t-btn { 0%, 21% { background: #fff; } 23% { background: #e6f0fb; } 30%, 100% { background: #fff; } }
@keyframes t-win { 0%, 26% { opacity: 0; transform: translateY(16px) scale(.97); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes t-note { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- pantallas */
@media (max-width: 1023px) {
  .mv-stage { aspect-ratio: 4 / 3; margin-top: var(--s-8, 48px); }
  .mv-cards .card { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .mv-stage { aspect-ratio: 3 / 5; }
  .mv-plan { left: 3%; top: 2%; width: 94%; height: 44%; }
  .mv-phone { --ph-w: 41%; top: auto; bottom: 3%; right: 29.5%; transform: rotate(-1.5deg); }
  .mv-cap { display: none; }
  @keyframes mv-buzz {
    0%, 37% { transform: rotate(-1.5deg); } 38% { transform: translateX(-3px) rotate(-2.5deg); } 39% { transform: translateX(3px) rotate(-.5deg); }
    40% { transform: translateX(-3px) rotate(-2.5deg); } 41% { transform: translateX(3px) rotate(-.5deg); } 42%, 43% { transform: rotate(-1.5deg); }
    44% { transform: translateX(-3px) rotate(-2.5deg); } 45% { transform: translateX(3px) rotate(-.5deg); } 46%, 100% { transform: rotate(-1.5deg); }
  }
  .mv-panel { --p-h: 330px; }
  .msg { width: 74%; left: calc(4% + var(--i) * 5%); top: calc(6% + var(--i) * 12%); font-size: 11px; }
  .test__win { width: 80%; right: 5%; }
  .mv-qr__card { left: 4%; width: 128px; } .mv-qr__code { width: 86px; height: 86px; }
}

/* preguntas en dos columnas: siete preguntas en una pantalla */
@media (min-width: 1024px) {
  #preguntas .faq--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8, 48px); align-content: start; }
  #preguntas .faq--2 > .faq__item:nth-child(-n+2) { padding-top: 0; }
}

/* tarjetas en fila: título, texto y panel alineados entre sí aunque el texto ocupe más líneas (subgrid) */
@media (min-width: 1024px) {
  .mv-cards, #mensajes .wrap > .grid { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .mv-cards > .card, #mensajes .wrap > .grid > .card { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: stretch; }
  .mv-cards > .card > .panel, #mensajes .wrap > .grid > .card > .panel { align-self: stretch; }
}

/* espacio entre secciones (29/11/2026): en escritorio cada sección mide lo que su contenido, con el mismo
   aire entre todas (72 px abajo + 120 px arriba), en lugar de ocupar una o dos pantallas enteras y dejar
   huecos grandes cuando el contenido es más corto. El hero sigue a pantalla completa y «Cómo funciona»
   conserva sus dos pantallas porque las necesita para los pasos fijos al hacer scroll. */
@media (min-width: 1024px) {
  main :where(.apb-s) > :is(section, .section):not(.hero, .section--hero, [data-moment="pinned-chapters"]) { height: auto; min-height: 0; }
  main :where(.apb-s) > :is(section, .section):not(.hero, .section--hero, [data-moment="pinned-chapters"]) > .wrap { height: auto; }
  main :where(.apb-s) > :is(section, .section).g2:not([data-moment="pinned-chapters"]) > .wrap { grid-template-rows: auto auto; row-gap: var(--s-10, 96px); }
}

/* logo blanco sobre la barra roja del móvil */
.ph-app__t img, .ph-widget img, .ph-alert__bar img { filter: none; background: #fff; border-radius: 50%; padding: .5cqw; }
