/* Página de servicio: Sistemas a la medida. Prefijo si- (página), hj- (hoja de cálculo), vn- (ventana del sistema),
   md- (módulos), pn- (paneles de cada módulo), sc- (celular), cn- (conexiones), pr- (proceso), pq- (preguntas), ci- (cierre).
   Las animaciones con scroll solo mueven transform y opacity (pagina.js). */

.si em { font-style: normal; color: var(--azul); font-family: var(--fd); font-weight: 500; letter-spacing: -.035em; font-variation-settings: var(--opsz); }
.si-marco { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.si-tag { font: 600 13px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--azul); margin-bottom: 16px; }
.si-tag.claro { justify-self: start; align-self: start; width: fit-content; padding: 8px 12px; border-radius: 999px; background: var(--azul); color: #fff; }
.si-h1 { font: 600 clamp(40px, 5.4vw, 84px)/1.02 var(--ft); letter-spacing: -.03em; text-wrap: balance; }
.si-h2 { font: 600 clamp(34px, 4.1vw, 60px)/1.04 var(--ft); letter-spacing: -.04em; text-wrap: balance; }
.si-p { max-width: 540px; margin-top: 16px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--gris); }
.si-pulso { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #18a558; box-shadow: 0 0 0 3px rgba(24,165,88,.15); vertical-align: 1px; }

/* chips de estado (rojo/verde solo como estado) */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11.5px/1 var(--fb); font-style: normal; white-space: nowrap; background: #eef0f5; color: #4a4f61; letter-spacing: -.005em; }
.chip.azul { background: #eef1ff; color: var(--azul); }
.chip.rojo { background: #fdeeee; color: #c0262d; }
.chip.verde { background: #e7f6ee; color: #11804a; }

/* ================= HERO ================= */
.si-hero { position: relative; overflow: clip; padding: clamp(116px, 15vh, 150px) 0 clamp(40px, 6vw, 90px); text-align: center; }
.si-cielo { position: absolute; inset: 0; background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 30%, #eef3ff 100%); pointer-events: none; }
.si-cielo i { position: absolute; border-radius: 50%; filter: blur(70px); }
.si-cielo .a1 { width: 120vw; height: 70vh; left: -10vw; top: 60%; background: radial-gradient(closest-side, rgba(0,25,255,.26), rgba(0,25,255,0)); animation: si-flota 14s ease-in-out infinite alternate; }
.si-cielo .a2 { width: 60vw; height: 50vh; left: 48vw; top: 40%; background: radial-gradient(closest-side, rgba(90,140,255,.3), rgba(90,140,255,0)); animation: si-flota 18s ease-in-out -6s infinite alternate-reverse; }
.si-cielo .a3 { width: 50vw; height: 40vh; left: 0; top: 34%; background: radial-gradient(closest-side, rgba(160,195,255,.4), rgba(160,195,255,0)); animation: si-flota 16s ease-in-out -3s infinite alternate; }
@keyframes si-flota { to { transform: translate3d(4vw, -3vh, 0) scale(1.08); } }
.si-hero-txt { position: relative; z-index: 2; width: min(1000px, 92vw); margin: 0 auto; }
.si-bajada { max-width: 620px; margin: 18px auto 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--gris); }
.si-botones { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.si-hero-txt > * { opacity: 0; transform: translateY(18px); animation: entra .9s cubic-bezier(.2,.7,.2,1) forwards; }
.si-hero-txt > :nth-child(2) { animation-delay: .08s; } .si-hero-txt > :nth-child(3) { animation-delay: .18s; } .si-hero-txt > :nth-child(4) { animation-delay: .26s; }

/* escena: el monitor (740 × 600 de diseño) se escala con --k desde JS */
.si-hero-escena { --k: 1.2; position: relative; z-index: 1; width: calc(740px * var(--k)); height: calc(460px * var(--k)); margin: clamp(40px, 6vh, 64px) auto 0; }
.si-hero-k { position: absolute; left: 0; top: 0; width: 740px; transform: scale(var(--k)); transform-origin: 0 0; will-change: transform; animation: sube 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
.si-monitor { position: relative; left: auto; top: auto; width: 740px; }
.si-aviso { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; text-align: left; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 0 0 1px rgba(10,20,80,.06), 0 18px 40px -16px rgba(10,20,80,.3); will-change: transform, opacity; }
.si-aviso b { display: block; font: 600 14.5px/1.2 var(--fb); letter-spacing: -.015em; }
.si-aviso small { display: block; margin-top: 3px; font-size: 13px; color: var(--gris); white-space: nowrap; }
.si-av-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #f1f2f6; color: #4a4f61; }
.si-av-ic svg { width: 19px; height: 19px; }
.si-av-ic.azul { background: #eef1ff; color: var(--azul); }
.si-av-ic.ok { background: #e7f6ee; color: #11804a; }
.si-aviso.av1 { left: -9%; top: 9%; } .si-aviso.av2 { right: -10%; top: 4%; }
.si-aviso.av3 { left: -12%; top: 47%; } .si-aviso.av4 { right: -13%; top: 41%; }
.si-aviso { opacity: 0; animation: aviso .7s cubic-bezier(.2,.7,.2,1) forwards; }
.si-aviso.av1 { animation-delay: 1.0s; } .si-aviso.av2 { animation-delay: 1.35s; } .si-aviso.av3 { animation-delay: 1.7s; } .si-aviso.av4 { animation-delay: 2.05s; }
@keyframes aviso { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ================= ANTES → DESPUÉS ================= */
.si-antes { position: relative; background: var(--tinta); color: #fff; }
.si-pista { position: relative; }
.si-pista[data-pista="antes"] { height: 320vh; }
.si-fijo { position: sticky; top: 0; height: 100svh; overflow: clip; }
.si-antes .si-fijo { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 80px); padding: 80px max(40px, calc((100vw - 1240px) / 2)) 40px; }
.si-fotos { position: absolute; inset: 0; }
.si-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }
.si-foto.caos { object-position: 50% 40%; }
.si-foto.orden { opacity: 0; }
.si-velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,15,.92) 0%, rgba(10,10,15,.78) 40%, rgba(10,10,15,.62) 100%); }
.si-ad-txt { position: relative; z-index: 2; display: grid; }
.si-ad-bloque { grid-area: 1 / 1; will-change: transform, opacity; }
.si-ad-bloque[data-fase="despues"] { opacity: 0; }
.si-antes .si-p { color: rgba(255,255,255,.72); }

.si-ad-interruptor { position: relative; grid-area: 2 / 1; justify-self: start; display: flex; margin-top: 34px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.si-ad-interruptor span { position: relative; z-index: 1; width: 104px; height: 36px; display: grid; place-items: center; font: 600 13.5px/1 var(--fb); color: rgba(255,255,255,.6); transition: color .3s; }
.si-ad-interruptor span.on { color: var(--tinta); }
.si-ad-interruptor i { position: absolute; left: 4px; top: 4px; width: 104px; height: 36px; border-radius: 999px; background: #fff; will-change: transform; }

.si-ad-escena { position: relative; z-index: 2; height: min(540px, calc(100svh - 160px)); }
/* la hoja */
.si-hoja { position: absolute; left: 4%; right: 6%; top: 8%; border-radius: 12px; overflow: hidden; background: #fff; color: #1c1f27; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform-origin: 50% 40%; will-change: transform, opacity; }
.hj-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 14px; background: #f3f4f6; border-bottom: 1px solid #e2e4e9; font-size: 12.5px; }
.hj-doc { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.hj-doc i { width: 14px; height: 16px; border-radius: 2px; background: #9097a6; }
.hj-av { color: #8a8f9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-formula { display: flex; gap: 12px; height: 30px; align-items: center; padding: 0 14px; border-bottom: 1px solid #e2e4e9; font: 12px/1 ui-monospace, Menlo, monospace; color: #4a4f5c; white-space: nowrap; overflow: hidden; }
.hj-formula b { font-style: italic; color: #9097a6; }
.hj-tabla { font-size: 12.5px; }
.hj-f { display: grid; grid-template-columns: 34px 1.75fr .7fr .75fr 1fr 1fr; }
.hj-f > span { height: 31px; display: flex; align-items: center; padding: 0 8px; border-right: 1px solid #e8eaee; border-bottom: 1px solid #e8eaee; white-space: nowrap; overflow: hidden; }
.hj-f > span:first-child { justify-content: center; background: #f6f7f9; color: #9097a6; font-size: 11px; }
.hj-cab > span { height: 24px; justify-content: center; background: #f6f7f9; color: #9097a6; font-size: 11px; }
.hj-f .err { color: #c0262d; font-weight: 600; background: #fdeeee; }
.hj-f.dup > span:not(:first-child) { background: #fff5f5; box-shadow: inset 0 1px 0 #f2c9c9, inset 0 -1px 0 #f2c9c9; }
.hj-hojas { display: flex; gap: 2px; height: 34px; align-items: flex-end; padding: 0 10px; background: #f3f4f6; border-top: 1px solid #e2e4e9; font-size: 12px; color: #6b7080; overflow: hidden; }
.hj-hojas span { padding: 7px 12px; border-radius: 6px 6px 0 0; white-space: nowrap; }
.hj-hojas span.on { background: #fff; color: #1c1f27; font-weight: 600; box-shadow: 0 0 0 1px #e2e4e9; }

/* lo que hay alrededor */
.si-ruido { position: absolute; z-index: 3; max-width: 250px; padding: 12px 14px 10px; border-radius: 14px; background: #fff; color: #1c1f27; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); opacity: 0; will-change: transform, opacity; }
.si-ruido p { font-size: 14px; line-height: 1.4; }
.si-ruido small { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: #9097a6; }
.rd-quien { display: block; margin-bottom: 4px; font: 600 12px/1 var(--fb); color: var(--azul); }
.si-ruido.r1 { right: 0; top: 0; border-bottom-right-radius: 4px; }
.si-ruido.r2 { left: -3%; bottom: 6%; background: #fbfaf5; border-radius: 4px; padding: 14px 16px; background-image: repeating-linear-gradient(180deg, transparent 0 21px, #e6e3d6 21px 22px); }
.si-ruido.r2 p { font: 500 15px/22px var(--fb); color: #2a2c33; }
.si-ruido.r3 { right: 2%; top: 46%; padding: 10px 14px; box-shadow: 0 0 0 1px #f2c9c9, 0 24px 50px -20px rgba(0,0,0,.55); }
.si-ruido.r3 b { display: block; font-size: 13.5px; color: #c0262d; } .si-ruido.r3 small { text-align: left; margin-top: 3px; font-size: 12px; color: #6b7080; }
.si-ruido.r4 { right: 8%; bottom: 0; border-bottom-left-radius: 4px; }

/* ventana del sistema (compartida por antes/después y módulos) */
.si-ventana { border-radius: 16px; overflow: hidden; background: #fff; color: #0b0d17; box-shadow: 0 0 0 1px rgba(10,20,80,.06), 0 50px 90px -40px rgba(10,20,70,.45); letter-spacing: -.01em; }
.vn-barra { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f3f4f8; border-bottom: 1px solid #e7e9f0; }
.vn-barra i { width: 11px; height: 11px; border-radius: 50%; background: #d5d8e0; }
.vn-barra span { position: absolute; left: 50%; top: 7px; height: 24px; padding: 0 16px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px #e7e9f0; font-size: 12px; color: #6b7083; white-space: nowrap; }
.si-despues { position: absolute; left: 2%; right: 2%; top: 4%; opacity: 0; will-change: transform, opacity; }
.vn-cuerpo { padding: 20px 22px 22px; }
.vn-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vn-cab h3 { font: 600 22px/1.1 var(--fb); letter-spacing: -.03em; }
.vn-cab p { margin-top: 5px; font-size: 12.5px; color: #8a8fa0; }
.vn-boton { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--azul); color: #fff; font: 600 13px/1 var(--fb); }
.vn-boton.claro { background: #fff; color: #0b0d17; box-shadow: 0 0 0 1px #e2e5ee; }
.vn-tabla { font-size: 13px; }
.vn-f { display: grid; grid-template-columns: var(--cols, 2fr 1fr 1fr 1.3fr); align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; border-bottom: 1px solid #f0f1f5; }
.vn-f > span { min-width: 0; white-space: nowrap; }
.pn-quien > span:last-child { min-width: 0; }
.vn-f b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-f small { display: block; margin-top: 2px; font-size: 11.5px; color: #9aa0b1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-f .n { font-variant-numeric: tabular-nums; font-weight: 600; }
.vn-th > span { overflow: hidden; text-overflow: ellipsis; }
.vn-th { min-height: 32px; font-size: 11px; font-weight: 600; color: #8a8fa0; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: #e7e9f0; }
.ad-tabla .vn-f:not(.vn-th) { will-change: transform, opacity; }

/* ================= MÓDULOS ================= */
.si-modulos { position: relative; background: linear-gradient(180deg, #fff 0%, #f3f6ff 18%, #f3f6ff 82%, #fff 100%); }
.si-intro { max-width: 1280px; margin: 0 auto; padding: clamp(100px, 12vw, 160px) 40px 0; }
.si-pista[data-pista="modulos"] { height: 640vh; }
.si-modulos .si-fijo { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding: 84px max(40px, calc((100vw - 1240px) / 2)) 40px; }

.md-lista { list-style: none; display: grid; gap: 0; }
.md-lista li { position: relative; padding: 0 0 0 0; border-top: 1px solid rgba(10,20,80,.1); }
.md-lista li:last-child { border-bottom: 1px solid rgba(10,20,80,.1); }
.md-lista button { appearance: none; border: 0; background: none; cursor: pointer; width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 15px 0; text-align: left; color: #8a8fa0; transition: color .3s; }
.md-n { font: 600 12.5px/1 var(--fb); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.md-t { font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--ft); letter-spacing: -.03em; }
.md-lista li.on button { color: var(--tinta); }
.md-lista li.on .md-n { color: var(--azul); }
.md-lista p { display: grid; grid-template-rows: 0fr; overflow: hidden; max-height: 0; padding-left: 34px; font-size: 15px; line-height: 1.5; color: var(--gris); opacity: 0; transition: max-height .5s cubic-bezier(.2,.7,.2,1), opacity .4s, padding .5s; }
.md-lista li.on p { max-height: 120px; opacity: 1; padding-bottom: 18px; }
.md-prog { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.md-prog b { display: block; height: 100%; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.md-movil { display: none; }

.md-ventana { height: min(640px, calc(100svh - 140px)); display: flex; flex-direction: column; }
.md-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 178px minmax(0, 1fr); }
.md-lado { display: flex; flex-direction: column; padding: 18px 12px; border-right: 1px solid #eceef4; background: #fff; }
.md-marca { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-size: 16px; }
.md-marca span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #0b0d17; color: #fff; font: 700 14px/1 var(--fb); }
.md-lado nav { display: grid; gap: 2px; }
.md-lado nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #5d6274; transition: background .3s, color .3s; }
.md-lado nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.md-lado nav a.on { background: #eef1ff; color: var(--azul); font-weight: 600; }
.md-yo { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid #eceef4; }
.md-yo > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #dfe5ff; color: var(--azul); font: 700 11.5px/1 var(--fb); }
.md-yo b { display: block; font-size: 13px; } .md-yo small { font-size: 11.5px; color: #8a8fa0; }

.md-paneles { position: relative; min-width: 0; background: #f7f8fb; }
.md-panel { position: absolute; inset: 0; padding: 20px 22px; overflow: hidden; opacity: 0; transform: translateY(16px); transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.md-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.pn-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pn-cab h3 { font: 600 22px/1.1 var(--fb); letter-spacing: -.03em; }
.pn-cab p { margin-top: 5px; font-size: 12.5px; color: #8a8fa0; }
.pn-acc { display: flex; gap: 8px; flex: none; }
.pn-barra { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pn-buscar { flex: 1; max-width: 260px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px #e2e5ee; font-size: 12.5px; color: #9aa0b1; white-space: nowrap; overflow: hidden; }
.pn-buscar svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pn-filtro { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #5d6274; background: #fff; box-shadow: 0 0 0 1px #e2e5ee; white-space: nowrap; }
.pn-filtro b { font-weight: 600; color: #0b0d17; }
.pn-filtro.on { background: #0b0d17; color: #fff; box-shadow: none; } .pn-filtro.on b { color: #fff; }
.pn-caja { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #eceef4; padding: 2px 14px; }
.pn-caja .vn-f:last-child { border-bottom: 0; }
.pn-pie { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #9aa0b1; }

/* nivel de inventario */
.nivel { display: block; position: relative; height: 6px; border-radius: 3px; background: #eef0f5; }
.nivel i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 3px; background: var(--azul); transform-origin: 0 50%; }
.nivel.bajo i { background: #c0262d; }
.nivel u { position: absolute; top: -3px; width: 2px; height: 12px; left: var(--m); background: #0b0d17; opacity: .35; text-decoration: none; }

/* resumen en números */
.pn-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.pn-num { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.pn-num small { display: block; font-size: 12px; color: #6b7083; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-num b { display: block; margin-top: 6px; font: 600 24px/1 var(--fb); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pn-num b.rojo { color: #c0262d; }
.pn-grupo { margin: 4px 2px 8px; font: 600 11.5px/1 var(--fb); text-transform: uppercase; letter-spacing: .05em; color: #8a8fa0; }
.pn-grupo + .pn-caja { margin-bottom: 14px; }
.pn-mini { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font: 600 12px/1 var(--fb); background: #fff; color: #0b0d17; box-shadow: 0 0 0 1px #e2e5ee; white-space: nowrap; }
.pn-mini.azul { background: var(--azul); color: #fff; box-shadow: none; }
.pn-quien { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ava { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef1ff; color: var(--azul); font: 700 10.5px/1 var(--fb); }
.ava.g { background: #eef0f5; color: #4a4f61; }
.ava.t { background: #0b0d17; color: #fff; }

/* salidas */
.pn-dos { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; align-items: start; }
.pn-graf { padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.pn-graf h4 { font: 600 13.5px/1.2 var(--fb); } .pn-graf small { display: block; margin-top: 2px; font-size: 11.5px; color: #9aa0b1; }
.pn-graf .grande { display: block; margin-top: 14px; font: 600 30px/1 var(--fb); letter-spacing: -.04em; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 14px; }
.barras div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.barras i { width: 100%; height: var(--h); border-radius: 5px 5px 2px 2px; background: #c9d2ff; transform: scaleY(.05); transform-origin: bottom; transition: transform .8s calc(.15s + var(--d)) cubic-bezier(.2,.7,.2,1); }
.barras i.pico { background: var(--azul); }
.barras span { font-size: 10.5px; color: #9aa0b1; }
.md-panel.on .barras i { transform: none; }

/* reportes */
.pn-rejilla { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.pn-rejilla .pn-graf.ancha { grid-row: span 2; }
.linea-graf { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.linea-graf .trazo { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s .2s cubic-bezier(.3,.6,.2,1); }
.linea-graf .area { opacity: 0; transition: opacity .6s 1s; }
.md-panel.on .linea-graf .trazo { stroke-dashoffset: 0; } .md-panel.on .linea-graf .area { opacity: 1; }
.linea-graf text { font: 500 10.5px var(--fb); fill: #9aa0b1; }
.linea-graf line { stroke: #eceef4; }
.cats { list-style: none; display: grid; gap: 9px; margin-top: 12px; }
.cats li { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 12.5px; color: #4a4f61; }
.cats i { height: 8px; border-radius: 4px; background: #eef1ff; overflow: hidden; }
.cats i b { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s calc(.3s + var(--d)) cubic-bezier(.2,.7,.2,1); }
.md-panel.on .cats i b { transform: none; }
.cats em { font: 600 12.5px var(--fb); font-style: normal; text-align: right; color: #0b0d17; letter-spacing: 0; }
.dona-mini { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dona-mini svg { width: 86px; height: 86px; flex: none; }
.dona-mini .arco { stroke-dasharray: 0 999; transition: stroke-dasharray 1.2s .3s cubic-bezier(.3,.6,.2,1); }
.md-panel.on .dona-mini .arco { stroke-dasharray: var(--a) 999; }
.dona-mini p { font-size: 12.5px; line-height: 1.4; color: #4a4f61; } .dona-mini p b { display: block; font: 600 24px/1 var(--fb); letter-spacing: -.035em; color: #0b0d17; margin-bottom: 4px; }

/* permisos */
.pn-equipo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pn-persona { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #eceef4; font-size: 12.5px; }
.pn-persona b { font-weight: 600; } .pn-persona small { color: #8a8fa0; margin-left: 2px; }
.matriz .vn-f { --cols: 1.3fr repeat(4, 1fr); min-height: 44px; }
.matriz .vn-f > span:not(:first-child) { display: flex; justify-content: center; }
.matriz .vn-th > span { text-align: center; }
.matriz .vn-th > span:first-child { text-align: left; }
.perm { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 11.5px/1 var(--fb); }
.perm.ed { background: var(--azul); color: #fff; }
.perm.ve { background: #eef1ff; color: var(--azul); }
.perm.no { color: #b9bdc9; }
.pn-bitacora { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #0b0d17; color: #fff; font-size: 12.5px; }
.pn-bitacora small { margin-left: auto; color: #9aa0b1; white-space: nowrap; }

/* ================= CELULAR + CONEXIONES ================= */
.si-conecta { position: relative; background: var(--azul); color: #fff; }
.cn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cn-puntos { list-style: none; margin-top: 28px; }
.cn-puntos li { position: relative; padding: 14px 0 14px 26px; font-size: 16px; line-height: 1.45; color: #2b2f3a; box-shadow: 0 -1px 0 rgba(10,20,80,.09); }
.cn-puntos li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.cn-puntos b { font-weight: 600; color: var(--tinta); }
.cn-visual { position: relative; height: 680px; }
.cn-visual::before { content: ''; position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,25,255,.14), rgba(0,25,255,0)); filter: blur(30px); }

.si-cel { position: absolute; left: 0; top: 0; width: 306px; z-index: 1; }
.sc-marco { padding: 5px; border-radius: 62px; background: linear-gradient(135deg, #d8d4cd, #8e8a83 40%, #c9c5be 60%, #77736d); box-shadow: 0 60px 90px -36px rgba(10,20,70,.5), 0 18px 30px -18px rgba(10,20,70,.38); }
.sc-bisel { padding: 9px; border-radius: 57px; background: #050507; }
.sc-pantalla { position: relative; aspect-ratio: 390 / 844; border-radius: 48px; overflow: hidden; background: #f7f8fb; }
.sc-estado { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font: 600 15px/1 var(--fb); color: #0b0d17; }
.sc-estado i { display: inline-block; width: 26px; height: 12px; border-radius: 4px; border: 1.3px solid rgba(11,13,23,.5); position: relative; }
.sc-estado i::after { content: ''; position: absolute; inset: 1.5px 6px 1.5px 1.5px; border-radius: 1px; background: #0b0d17; }
.sc-isla { position: absolute; left: 50%; top: 12px; width: 92px; height: 26px; margin-left: -46px; border-radius: 16px; background: #000; }
.sc-app { padding: 8px 16px 16px; }
.sc-volver { font-size: 13px; font-weight: 600; color: var(--azul); }
.sc-app h4 { margin: 6px 0 12px; font: 600 24px/1.1 var(--fb); letter-spacing: -.03em; }
.sc-campo { padding: 9px 12px; margin-bottom: 7px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.sc-campo small, .sc-firma small { display: block; font-size: 11px; color: #8a8fa0; }
.sc-campo b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-sub { margin: 12px 2px 6px; font: 600 11px/1 var(--fb); text-transform: uppercase; letter-spacing: .05em; color: #8a8fa0; }
.sc-prod { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 12px; margin-bottom: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.sc-prod > span:first-child { min-width: 0; }
.sc-prod b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sc-prod small { display: block; margin-top: 2px; font-size: 11px; color: #8a8fa0; white-space: nowrap; }
.sc-paso { flex: none; display: flex; align-items: center; gap: 8px; }
.sc-paso i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #eef1ff; color: var(--azul); font: 600 15px/1 var(--fb); font-style: normal; }
.sc-paso b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.sc-firma { margin-top: 10px; padding: 9px 12px 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.sc-firma svg { display: block; width: 100%; height: 40px; }
.sc-firma path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s .4s ease; }
.cn-visual.visto .sc-firma path { stroke-dashoffset: 0; }
.sc-boton { display: grid; place-items: center; height: 44px; margin-top: 10px; border-radius: 12px; background: var(--azul); color: #fff; font: 600 13.5px/1 var(--fb); }

.cn-feed { position: absolute; z-index: 2; right: -8px; top: 30%; width: 300px; padding: 16px 16px 8px; border-radius: 20px; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 0 0 1px rgba(10,20,80,.06), 0 40px 70px -30px rgba(10,20,70,.45); }
.cn-feed-t { margin: 0 4px 8px; font: 600 12.5px/1 var(--fb); color: #4a4f61; }
.cn-feed ul { list-style: none; }
.cn-feed li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid #f0f1f5; }
.cn-feed li b { display: block; font-size: 13.5px; font-weight: 600; } .cn-feed li small { display: block; margin-top: 2px; font-size: 12px; color: #8a8fa0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-feed time { font-size: 11.5px; color: #9aa0b1; white-space: nowrap; }
.cn-ic { display: grid; place-items: center; height: 24px; border-radius: 7px; background: #eef1ff; color: var(--azul); font: 600 11px/1 var(--fb); }
.cn-feed li { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.cn-feed li.ve { opacity: 1; transform: none; }

/* ================= PROCESO ================= */
.si-proceso { padding: clamp(100px, 11vw, 160px) 0; background: linear-gradient(180deg, #fff, #f5f7ff); }

/* ================= PREGUNTAS ================= */
.si-preguntas { padding: clamp(90px, 10vw, 140px) 0; }
.pq-grid { display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4vw, 56px); text-align: center; }
.pq-grid .pq-lista { width: 100%; max-width: 820px; text-align: left; }
.pq-lista details { border-top: 1px solid #e6e9f2; }
.pq-lista details:last-child { border-bottom: 1px solid #e6e9f2; }
.pq-lista summary { position: relative; list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font: 600 clamp(18px, 1.5vw, 21px)/1.3 var(--ft); letter-spacing: -.02em; }
.pq-lista summary::-webkit-details-marker { display: none; }
.pq-lista summary::before, .pq-lista summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--tinta); transition: transform .3s; }
.pq-lista summary::after { transform: rotate(90deg); }
.pq-lista details.abierta summary::after { transform: rotate(0); }
.pq-lista details.abierta summary { color: var(--azul); }
.pq-lista summary::before, .pq-lista summary::after { transition: transform .42s cubic-bezier(.22,1,.36,1), background .3s; }
.pq-lista details.abierta summary::before, .pq-lista details.abierta summary::after { background: var(--azul); }
.pq-lista summary:hover { color: var(--azul); }
.pq-lista details p { max-width: 620px; padding: 0 48px 26px 0; font-size: 16.5px; line-height: 1.55; color: var(--gris); }
.pq-lista a { color: var(--azul); box-shadow: 0 1px 0 rgba(0,25,255,.35); }

/* ================= CIERRE ================= */
.si-cierre { padding: 0 0 clamp(80px, 8vw, 120px); }
.ci-caja { position: relative; overflow: hidden; border-radius: 30px; min-height: 580px; display: flex; align-items: center; background: var(--tinta); }
.ci-caja img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.ci-caja::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,15,.9) 0%, rgba(10,10,15,.7) 45%, rgba(10,10,15,.25) 100%); }
.ci-txt { position: relative; z-index: 1; max-width: 840px; padding: clamp(40px, 6vw, 80px); color: #fff; }

.ci-boton { margin-top: 30px; height: 56px; padding: 0 28px; font-size: 16.5px; }
.ci-nota { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.65); }

/* ================= pantallas bajas ================= */
@media (max-height: 800px) and (min-width: 761px) {
  .md-lista button { padding: 11px 0; }
  .md-lista p { font-size: 14px; }
  .md-panel { padding: 16px 18px; }
  .pn-nums { margin-bottom: 10px; } .pn-num { padding: 10px 12px; } .pn-num b { font-size: 20px; }
  .vn-f { min-height: 42px; }
}

/* ================= tablet ================= */
@media (max-width: 1100px) and (min-width: 761px) {
  .si-aviso.av1, .si-aviso.av3 { left: -3%; } .si-aviso.av2, .si-aviso.av4 { right: -3%; }
  .md-app { grid-template-columns: 150px minmax(0, 1fr); }
  .oc-t { display: none !important; }
  .cn-grid { grid-template-columns: 1fr; } .cn-visual { max-width: 700px; width: 100%; margin: 0 auto; }
}

/* ================= celular ================= */
@media (max-width: 760px) {
  .si-marco { padding: 0 20px; }
  .si-hero { padding-top: 104px; }
  .si-h1 { font-size: clamp(38px, 11vw, 48px); }
  .si-botones { flex-direction: column; align-items: center; }
  .si-aviso { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .si-aviso b { font-size: 12.5px; } .si-aviso small { font-size: 11.5px; }
  .si-av-ic { width: 28px; height: 28px; border-radius: 9px; } .si-av-ic svg { width: 15px; height: 15px; }
  .si-aviso.av1 { left: -2%; top: -14%; } .si-aviso.av2 { right: -2%; top: 86%; left: auto; }
  .si-aviso.av3, .si-aviso.av4 { display: none; }
  .si-hero-escena { margin-top: 64px; margin-bottom: 40px; }

  .si-pista[data-pista="antes"] { height: 300vh; }
  .si-antes .si-fijo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding: 82px 20px 24px; }
  .si-antes .si-h2 { font-size: 32px; } .si-antes .si-p { font-size: 15px; margin-top: 10px; }
  .si-antes .si-tag { margin-bottom: 10px; }
  .si-ad-interruptor { display: none; }
  .si-ad-escena { height: 100%; min-height: 0; }
  .si-hoja { left: 0; right: -30%; top: 22px; }
  .hj-f { grid-template-columns: 28px 1.6fr .7fr .8fr 1fr 1fr; }
  .hj-av { display: none; }
  .si-ruido { max-width: 200px; padding: 9px 11px 8px; } .si-ruido p { font-size: 12.5px; }
  .si-ruido.r1 { right: 0; top: -12px; } .si-ruido.r2 { left: 0; bottom: 4%; } .si-ruido.r2 p { font-size: 13px; line-height: 20px; }
  .si-ruido.r2 { background-image: repeating-linear-gradient(180deg, transparent 0 19px, #e6e3d6 19px 20px); }
  .si-ruido.r3 { right: 0; top: 52%; } .si-ruido.r4 { right: 0; bottom: 18%; }
  .si-despues { left: 0; right: 0; top: 0; }
  .vn-cuerpo { padding: 14px 14px 10px; } .vn-cab h3 { font-size: 19px; } .vn-boton { height: 30px; font-size: 12px; padding: 0 10px; }
  .ad-tabla .vn-f { --cols: 1.7fr .7fr 1.1fr; } .ad-tabla .vn-f > span:nth-child(3) { display: none; }

  .si-intro { padding: 96px 20px 0; }
  .si-pista[data-pista="modulos"] { height: 560vh; }
  .si-modulos .si-fijo { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; gap: 12px; padding: 76px 14px 18px; }
  .md-lista { display: flex; gap: 6px; padding-left: 52px; }
  .md-lista li, .md-lista li:last-child { flex: 1; border: 0; }
  .md-lista button { justify-content: center; padding: 0; height: 30px; align-items: center; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e2e5ee; }
  .md-lista li.on button { background: var(--azul); color: #fff; box-shadow: none; } .md-lista li.on .md-n { color: #fff; }
  .md-t, .md-lista p, .md-prog { display: none; }
  .md-movil { display: block; min-height: 78px; }
  .md-movil b { display: block; font: 600 24px/1.1 var(--ft); letter-spacing: -.03em; }
  .md-movil p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--gris); }
  .md-ventana { height: 100%; min-height: 0; }
  .md-app { grid-template-columns: 1fr; }
  .md-lado { display: none; }
  .md-panel { padding: 14px 12px; }
  .pn-cab h3 { font-size: 18px; } .pn-acc .vn-boton.claro { display: none; }
  .pn-nums { grid-template-columns: repeat(2, 1fr); gap: 8px; } .pn-num b { font-size: 20px; }
  .oc, .oc-t { display: none !important; }
  .pn-barra { flex-wrap: wrap; } .pn-buscar { max-width: none; flex-basis: 100%; }
  .pn-dos { grid-template-columns: 1fr; } .pn-dos .pn-graf { display: none; }
  .pn-rejilla { grid-template-columns: 1fr; } .pn-rejilla .pn-graf.ancha { grid-row: auto; }
  .pn-caja { padding: 2px 10px; }
  .vn-f { gap: 8px; grid-template-columns: var(--cols-m, var(--cols)); }
  .pn-persona small { display: none; }
  .pn-persona { height: 36px; padding-right: 12px; }
  .matriz .vn-th { font-size: 10px; letter-spacing: .02em; }
  .sc-prod small { overflow: hidden; text-overflow: ellipsis; }

  .si-conecta { padding: 96px 0 80px; }
  .cn-grid { grid-template-columns: 1fr; }
  .cn-visual { height: 640px; }
  .si-cel { left: 50%; width: 270px; margin-left: -135px; }
  .cn-feed { right: -6px; left: 10%; top: auto; bottom: 0; width: auto; }
  .cn-feed li:nth-child(n+4) { display: none; }

  .pq-grid { grid-template-columns: 1fr; }
  .ci-caja { min-height: 560px; align-items: flex-end; border-radius: 22px; }
  .ci-caja::after { background: linear-gradient(180deg, rgba(10,10,15,.35) 0%, rgba(10,10,15,.88) 55%, rgba(10,10,15,.95) 100%); }
  .ci-txt { padding: 32px 24px; }
  .ci-boton { width: 100%; justify-content: center; }
}

/* ================= sin movimiento ================= */
@media (prefers-reduced-motion: reduce) {
  .si-hero-txt > *, .si-hero-k, .si-aviso { animation: none; opacity: 1; transform: none; }
  .si-cielo i { animation: none; }
  .md-panel, .md-lista p, .barras i, .cats i b, .linea-graf .trazo, .linea-graf .area, .dona-mini .arco, .cn-feed li, .sc-firma path, .pr-n { transition: none; }
}

/* cierre centrado y las preguntas debajo (pedido de Bruno, 3 dic) */
.ci-caja { justify-content: center; text-align: center; }
.ci-caja::after { background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(10,10,15,.88) 0%, rgba(10,10,15,.72) 60%, rgba(10,10,15,.55) 100%); }
.ci-txt { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.si-cierre { padding-bottom: 0; }
.si-cierre + .si-preguntas { padding-top: clamp(80px, 8vw, 120px); }
@media (max-width: 760px) {
  .ci-caja { align-items: center; }
  .ci-caja::after { background: rgba(10,10,15,.78); }
}

/* =====================================================================
   RONDA 2 (3 dic, noche): monitor sin soporte, más gráficas, celular que cambia, color, tarjetas que se apilan,
   anillo de sistemas reales y entrada de cada componente.
   ===================================================================== */

/* ---------- entrada de cada componente (pagina.js pone .ent y luego .entro) ---------- */
.ent { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--ed, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--ed, 0ms); }
.ent.entro { opacity: 1; transform: none; }

/* ---------- gráficas (se animan con .g-on en un ancestro) ---------- */
.g-linea { display: block; width: 100%; height: auto; overflow: visible; }
.g-linea line { stroke: #eceef4; }
.g-linea text { font: 500 10px var(--fb); fill: #9aa0b1; }
.g-trazo { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .15s cubic-bezier(.3,.6,.2,1); }
.g-area { opacity: 0; transition: opacity .6s .8s; }
.g-on .g-trazo { stroke-dashoffset: 0; } .g-on .g-area { opacity: 1; }
.g-barras { display: flex; align-items: flex-end; gap: 5px; margin-top: 10px; }
.g-barras > div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.g-barras i { display: block; width: 100%; height: var(--h); border-radius: 4px 4px 2px 2px; background: #c9d2ff; transform: scaleY(.04); transform-origin: bottom; transition: transform .8s calc(.1s + var(--d)) cubic-bezier(.2,.7,.2,1); }
.g-barras i.pico, .g-pares i.a { background: var(--azul); }
.g-pares i.b { background: #a8b6ff; }
.g-pares b { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 2px; min-height: 0; }
.g-barras span { font-size: 10px; line-height: 1; color: #9aa0b1; white-space: nowrap; }
.g-on .g-barras i { transform: none; }
.g-dona { position: relative; flex: none; }
.g-dona svg { display: block; width: 100%; height: 100%; }
.g-seg { stroke-dasharray: 0 999; transition: stroke-dasharray 1.1s calc(.2s + var(--d)) cubic-bezier(.3,.6,.2,1); }
.g-on .g-seg { stroke-dasharray: var(--a) 999; }
.g-dona > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-dona b { font: 600 17px/1 var(--fb); letter-spacing: -.03em; } .g-dona small { display: block; margin-top: 2px; font-size: 9.5px; color: #8a8fa0; }
.g-ley { list-style: none; display: grid; gap: 5px; margin-top: 8px; }
.g-ley li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #4a4f61; white-space: nowrap; }
.g-ley i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.g-ley b { margin-left: auto; padding-left: 8px; font-weight: 600; color: #0b0d17; }
.g-hbar { list-style: none; display: grid; gap: 9px; margin-top: 10px; }
.g-hbar li { display: grid; grid-template-columns: 98px 1fr 52px; align-items: center; gap: 8px; font-size: 12px; color: #4a4f61; }
.g-hbar li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-hbar i { height: 8px; border-radius: 4px; background: #eef1ff; overflow: hidden; }
.g-hbar i b { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s calc(.25s + var(--d)) cubic-bezier(.2,.7,.2,1); }
.g-on .g-hbar i b { transform: none; }
.g-hbar em { font: 600 12px var(--fb); font-style: normal; text-align: right; color: #0b0d17; letter-spacing: 0; }

/* paneles: tiras de gráficas */
.pn-tiras { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 10px; margin-bottom: 12px; }
.pn-tiras.dos { grid-template-columns: 1.3fr 1fr; }
.pn-tiras .pn-graf { padding: 12px 14px; min-width: 0; }
.pn-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pn-fila > div:first-child { min-width: 0; }
.pn-spark { display: flex; align-items: flex-end; gap: 10px; }
.pn-spark .g-linea { flex: 1; min-width: 0; max-width: 120px; }
.pn-spark .grande { margin-top: 10px; font-size: 28px; }
.pn-num .pn-spark { margin-top: 6px; align-items: center; justify-content: space-between; }
.pn-num .pn-spark b { margin-top: 0; }
.pn-num .pn-spark .g-linea { max-width: 74px; }
.pn-col { display: grid; gap: 10px; }
.pn-col .pn-graf .grande { margin-top: 8px; font-size: 26px; }
.pn-col .g-ley li { font-size: 11px; }
.pn-dos { grid-template-columns: minmax(0, 1fr) 210px; }

/* ---------- el «después» con gráficas ---------- */
.si-ad-escena { height: min(560px, calc(100svh - 140px)); }
.si-despues { left: -2%; right: -2%; top: 0; }
.si-despues .vn-cuerpo { padding: 16px 18px 18px; }
.si-despues .vn-cab { margin-bottom: 10px; }
.dp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; }
.dp-izq, .dp-der { display: grid; gap: 10px; align-content: start; min-width: 0; }
.si-despues .vn-f { min-height: 40px; font-size: 12.5px; }
.si-despues .vn-f small { font-size: 11px; }
.dp-c { padding: 12px 14px; border-radius: 12px; background: #f7f8fb; box-shadow: 0 0 0 1px #eceef4; min-width: 0; }
.dp-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dp-t h5 { font: 600 13px/1.2 var(--fb); letter-spacing: -.01em; }
.dp-t small { font-size: 11px; color: #8a8fa0; white-space: nowrap; }
.dp-t .sube { color: #11804a; font-weight: 600; }
.ley { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; border-radius: 3px; vertical-align: 0; }
.ley.a { background: var(--azul); } .ley.b { background: #a8b6ff; }
.dp-tend .g-linea { margin-top: 6px; }

/* ---------- módulos sobre azul claro ---------- */
.si-modulos { background: linear-gradient(180deg, #fff 0%, #e9eeff 14%, #e9eeff 86%, #fff 100%); }

/* ---------- celular y conectado: bloque azul sólido, pista fija y pantallas que cambian ---------- */
.si-pista[data-pista="conecta"] { height: 330vh; }
.si-conecta .si-fijo { display: flex; align-items: center; padding: 70px 0 30px; }
.si-conecta .si-fijo::before { content: ''; position: absolute; right: -10vw; top: 10%; width: 70vw; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,150,255,.55), rgba(120,150,255,0)); filter: blur(40px); pointer-events: none; }
.si-conecta .si-marco { position: relative; width: 100%; }
.si-conecta .si-tag.claro { padding: 0; border-radius: 0; background: none; color: #fff; }

.si-conecta .si-p { color: rgba(255,255,255,.8); }
.cn-pasos { list-style: none; margin-top: 26px; display: grid; gap: 8px; max-width: 520px; }
.cn-pasos li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .45s, box-shadow .45s, color .45s; }
.cn-pasos li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16); font: 600 12px/1 var(--fb); transition: background .45s, color .45s; }
.cn-pasos b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.cn-pasos small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.72); transition: color .45s; }
.cn-pasos li.on { background: #fff; color: var(--tinta); box-shadow: 0 20px 40px -20px rgba(0,0,40,.5); }
.cn-pasos li.on > span { background: var(--azul); color: #fff; }
.cn-pasos li.on small { color: var(--gris); }
.cn-visual { height: min(660px, calc(100svh - 110px)); }
.cn-visual::before { display: none; }
.si-cel { left: 0; top: 50%; width: auto; height: 100%; aspect-ratio: 330 / 680; transform: translateY(-50%); }
.si-cel.ent { transform: translateY(calc(-50% + 26px)); } .si-cel.ent.entro { transform: translateY(-50%); }
.sc-marco, .sc-bisel { height: 100%; }
.sc-pantalla { aspect-ratio: auto; height: 100%; }
.sc-p { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; padding: 8px 16px 16px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.sc-p.on { opacity: 1; transform: none; }
.sc-p h4 { margin: 6px 0 12px; font: 600 23px/1.1 var(--fb); letter-spacing: -.03em; color: #0b0d17; }
.sc-firma path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s .3s ease; }
.sc-p.g-on .sc-firma path { stroke-dashoffset: 0; }
.sc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sc-kpis > div { padding: 9px 11px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; }
.sc-kpis small { display: block; font-size: 10.5px; color: #8a8fa0; }
.sc-kpis b { display: block; margin-top: 4px; font: 600 21px/1 var(--fb); letter-spacing: -.03em; color: #0b0d17; }
.sc-kpis em { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; font-weight: 600; color: #11804a; }
.sc-carta { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef4; color: #0b0d17; }
.sc-ct { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sc-ct b { font-size: 12.5px; font-weight: 600; } .sc-ct small { font-size: 10.5px; color: #8a8fa0; }
.sc-carta .g-barras { margin-top: 8px; }
.sc-fila { display: flex; align-items: center; gap: 12px; }
.sc-ley { list-style: none; flex: 1; display: grid; gap: 5px; }
.sc-ley li { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4a4f61; }
.sc-ley i { width: 8px; height: 8px; border-radius: 3px; } .sc-ley b { margin-left: auto; color: #0b0d17; }
.sc-lector { position: relative; height: 34%; min-height: 150px; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #2a2f45, #0b0d17 75%); display: grid; place-items: center; }
.sc-codigo { width: 56%; height: auto; }
.esq { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.esq.e1 { left: 14%; top: 18%; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.esq.e2 { right: 14%; top: 18%; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.esq.e3 { left: 14%; bottom: 18%; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.esq.e4 { right: 14%; bottom: 18%; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.sc-raya { position: absolute; left: 12%; right: 12%; top: 22%; height: 2px; border-radius: 2px; background: #5c78ff; box-shadow: 0 0 14px 3px rgba(92,120,255,.7); animation: lector 1.8s ease-in-out infinite alternate; }
@keyframes lector { to { transform: translateY(var(--lec, 90px)); } }
.sc-sku { display: block; margin-top: 3px; font-size: 10.5px; color: #8a8fa0; }
.sc-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0 4px; text-align: center; }
.sc-tres > div { padding: 7px 4px; border-radius: 9px; background: #f3f5fb; }
.sc-tres b { display: block; font: 600 17px/1 var(--fb); } .sc-tres small { display: block; margin-top: 3px; font-size: 9.5px; color: #8a8fa0; }
.sc-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-boton.claro { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px #c9d2ff; }
.cn-feed { top: auto; bottom: 8%; right: -10px; color: var(--tinta); }
.cn-ic { color: var(--azul); }

/* ---------- sistemas reales: el anillo sobre tinta ---------- */
.si-proyectos { position: relative; overflow: clip; padding: clamp(100px, 11vw, 150px) 0 clamp(70px, 8vw, 110px); background: var(--tinta); color: #fff; }
.py-cab { text-align: center; display: flex; flex-direction: column; align-items: center; }
.py-cab .si-p { color: rgba(255,255,255,.72); }

.si-proyectos .anillo { margin-top: clamp(30px, 4vw, 56px); --an-alto: clamp(380px, 60vh, 600px); }

/* ---------- cómo trabajamos: tarjetas de color que se apilan ---------- */
.si-proceso { background: #fff; padding-bottom: clamp(80px, 8vw, 120px); }
.pr-cab { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.pr-pila { position: relative; }
.pr-carta { position: sticky; top: calc(96px + var(--i) * 16px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: min(480px, calc(100svh - 190px)); margin-bottom: 48px; padding: clamp(32px, 4vw, 56px); border-radius: 30px; box-shadow: 0 -10px 40px -20px rgba(10,20,80,.25); }
.pr-carta:last-child { margin-bottom: 0; }
.c-azul { background: var(--azul); color: #fff; }
.c-tinta { background: var(--tinta); color: #fff; }
.c-claro { background: #eef1ff; color: var(--tinta); }
.c-claro2 { background: #dfe5ff; color: var(--tinta); }
.pr-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 14px/1 var(--fb); font-variant-numeric: tabular-nums; background: var(--azul); color: #fff; }
.c-azul .pr-n { background: #fff; color: var(--azul); }
.c-tinta .pr-n { background: var(--azul); }
.pr-carta h3 { margin-top: 20px; font: 600 clamp(30px, 3vw, 44px)/1.05 var(--ft); letter-spacing: -.04em; }
.pr-izq > p:not(.pr-recibe) { max-width: 520px; margin-top: 14px; font-size: 17px; line-height: 1.55; color: #4a4f61; }
.c-azul .pr-izq > p:not(.pr-recibe), .c-tinta .pr-izq > p:not(.pr-recibe) { color: rgba(255,255,255,.86); }
.pr-recibe { max-width: 520px; margin-top: 22px; padding-top: 16px; border-top: 1px solid currentColor; border-top-color: rgba(127,127,160,.3); font-size: 15.5px; line-height: 1.5; }
.pr-recibe span { display: block; margin-bottom: 6px; font: 600 11.5px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.c-azul .pr-recibe span, .c-tinta .pr-recibe span { color: #fff; }
.pr-pieza { padding: 22px; border-radius: 20px; background: #fff; color: #0b0d17; box-shadow: 0 30px 60px -34px rgba(0,0,40,.45); }
.c-claro .pr-pieza, .c-claro2 .pr-pieza { box-shadow: 0 0 0 1px rgba(10,20,80,.06), 0 30px 60px -34px rgba(10,20,80,.3); }
.pp-t { font: 600 14px/1.2 var(--fb); margin-bottom: 14px; }
.pp-barras { list-style: none; display: grid; gap: 12px; }
.pp-barras li { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; color: #4a4f61; }
.pp-barras i { height: 10px; border-radius: 5px; background: #eef1ff; overflow: hidden; }
.pp-barras b { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s .3s cubic-bezier(.2,.7,.2,1); }
.pp-barras li:nth-child(2) b { transition-delay: .4s; } .pp-barras li:nth-child(3) b { transition-delay: .5s; } .pp-barras li:nth-child(4) b { transition-delay: .6s; }
.g-on .pp-barras b { transform: none; }
.pp-barras em { font: 600 13px var(--fb); font-style: normal; text-align: right; color: #0b0d17; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eceef4; }
.pp-boceto { position: relative; padding: 18px; }
.pb-ventana { display: grid; grid-template-columns: 52px 1fr; gap: 12px; height: 230px; padding: 12px; border-radius: 12px; background: #f5f7fc; box-shadow: 0 0 0 1px #e6e9f2; }
.pb-lado { border-radius: 8px; background: #e3e7f3; }
.pb-main { display: grid; gap: 9px; align-content: start; }
.pb-l { display: block; height: 9px; border-radius: 5px; background: #dde2f0; }
.pb-l.w40 { width: 40%; height: 12px; background: #c9d0e6; } .pb-l.w70 { width: 70%; } .pb-l.w55 { width: 55%; }
.pb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pb-kpis i { height: 36px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e3e7f3; }
.pb-graf { height: 70px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e3e7f3; padding: 8px; } .pb-graf svg { width: 100%; height: 100%; }
.pb-nota { position: absolute; right: -14px; top: 92px; max-width: 210px; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #0b0d17; color: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,40,.5); }
.pb-nota b { display: block; font-size: 11.5px; color: #fff; } .pb-nota p { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.pb-ok { position: absolute; left: 30px; bottom: 30px; }
.pr-etapas { display: grid; gap: 10px; }
.pr-etapas .et { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 10px 12px; padding: 14px 16px; border-radius: 14px; background: #f5f7fc; }
.pr-etapas .et span { font: 600 12px/1 var(--fb); color: #8a8fa0; } .pr-etapas .et b { font-size: 15px; font-weight: 600; }
.pr-etapas .et u { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: #e3e7f3; overflow: hidden; }
.pr-etapas .et s { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s .35s cubic-bezier(.2,.7,.2,1); }
.g-on.pr-etapas .et s, .g-on .pr-etapas .et s { transform: none; }
.pp-lista { list-style: none; display: grid; gap: 4px; }
.pp-lista li { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 4px; border-bottom: 1px solid #eceef4; }
.pp-lista li:last-child { border-bottom: 0; }
.pp-lista svg { grid-row: span 2; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #e7f6ee; color: #11804a; }
.pp-lista b { font-size: 15px; font-weight: 600; } .pp-lista small { font-size: 13px; color: #8a8fa0; }
.pp-chat { display: grid; gap: 10px; }
.bb { max-width: 86%; padding: 12px 14px; border-radius: 16px; }
.bb p { font-size: 14.5px; line-height: 1.45; } .bb small { display: block; margin-top: 5px; font-size: 11px; opacity: .6; }
.bb.tu { background: #f1f3f8; border-bottom-left-radius: 4px; }
.bb.yo { justify-self: end; background: var(--azul); color: #fff; border-bottom-right-radius: 4px; }
.pp-chat .chip { justify-self: start; margin-top: 4px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .pr-carta { grid-template-columns: 1fr; }
  .cn-pasos small { display: none; }
}

@media (max-width: 760px) {
  .pn-tiras, .pn-tiras.dos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pn-tiras .pn-graf { padding: 10px; }
  .pn-tiras .g-ley { display: none; }
  .pn-tiras .pn-fila { flex-direction: column; align-items: flex-start; }
  .pn-tiras .g-dona { width: 64px !important; height: 64px !important; align-self: center; }
  .pn-tiras.dos .pn-graf:first-child small { display: none; }
  .md-panel .pn-nums { margin-bottom: 8px; }
  .pn-num .pn-spark .g-linea { display: none; }

  .si-despues { left: 0; right: 0; }
  .dp-grid { grid-template-columns: 1fr; gap: 8px; }
  .dp-der .dp-mov, .dp-tend { display: none; }
  .ad-tabla .vn-f:nth-child(n+5) { display: none; }
  .si-despues .vn-f { min-height: 38px; }

  .si-pista[data-pista="conecta"] { height: 320vh; }
  .si-conecta .si-fijo { align-items: flex-start; padding: 70px 0 16px; }
  .si-conecta .cn-grid { display: flex; flex-direction: column; gap: 14px; height: calc(100svh - 86px); }
  .si-conecta .si-tag { display: none; }
  .si-conecta .si-h2 { font-size: 30px; }
  .si-conecta .si-p { display: none; }
  .cn-pasos { display: flex; gap: 6px; margin-top: 12px; }
  .cn-pasos li { flex: 1; padding: 9px 10px; gap: 8px; border-radius: 12px; }
  .cn-pasos li > span { width: 24px; height: 24px; font-size: 11px; }
  .cn-pasos b { font-size: 12px; line-height: 1.25; } .cn-pasos small { display: none; }
  .cn-visual { flex: 1; min-height: 0; height: auto; display: flex; justify-content: center; }
  .si-cel { position: relative; left: auto; top: auto; margin: 0; transform: none; height: 100%; }
  .si-cel.ent { transform: translateY(26px); } .si-cel.ent.entro { transform: none; }
  .cn-feed { display: none; }
  .sc-p { padding: 6px 12px 12px; top: 40px; }
  .sc-p h4 { font-size: 19px; margin: 4px 0 8px; }
  .sc-campo, .sc-prod { padding: 7px 10px; } .sc-campo b, .sc-prod b { font-size: 12px; }
  .sc-kpis b { font-size: 17px; } .sc-kpis > div { padding: 7px 9px; }
  .sc-lector { min-height: 120px; } .sc-raya { --lec: 70px; }
  .sc-tres b { font-size: 15px; }

  .pr-carta { grid-template-columns: 1fr; top: calc(72px + var(--i) * 10px); min-height: 0; padding: 26px 20px; gap: 22px; border-radius: 24px; margin-bottom: 28px; }
  .pr-carta h3 { margin-top: 14px; font-size: 28px; }
  .pr-izq > p:not(.pr-recibe) { font-size: 15.5px; }
  .pr-recibe { margin-top: 14px; padding-top: 12px; font-size: 14.5px; }
  .pr-pieza { padding: 16px; }
  .pp-barras li { grid-template-columns: 112px 1fr 34px; font-size: 12px; }
  .pp-chips { display: none; }
  .pb-ventana { height: 170px; } .pb-graf { height: 44px; } .pb-nota { right: 0; top: 70px; max-width: 170px; }
  .pr-etapas .et { grid-template-columns: 1fr auto; } .pr-etapas .et span { grid-column: 1 / -1; }
  .pp-lista li { padding: 8px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ent { opacity: 1; transform: none; transition: none; }
  .si-cel.ent { transform: translateY(-50%); }
  .g-trazo, .g-area, .g-barras i, .g-seg, .g-hbar i b, .pp-barras b, .pr-etapas .et s, .sc-p, .sc-firma path, .cn-pasos li { transition: none; }
  .sc-raya { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .si-cel.ent { transform: none; } }
.pn-tiras.cl { grid-template-columns: 1fr 1.3fr .8fr; }
.sc-pantalla { color: #0b0d17; }
@media (max-width: 760px) {
  .pn-dos { grid-template-columns: 1fr; } .pn-col { display: none; }
  .cn-pasos li:not(.on) { flex: none; } .cn-pasos li:not(.on) div { display: none; }
  .cn-pasos li.on b { font-size: 13px; }
}

/* acento sobre fondos oscuros (4 dic, Bruno: «cuando no se puede mi color, un celeste más bonito»): #58a6ff;
   sobre el azul de la marca, blanco. */
.si-antes em, .ci-txt em, .si-proyectos em { color: #58a6ff; }
.si-conecta em { color: #fff; }
@media (max-width: 760px) { .si-tag.claro { line-height: 1.4; border-radius: 12px; padding: 7px 12px; } }

/* el letrero del cierre, centrado (4 dic) */
.ci-txt .si-tag.claro { align-self: center; justify-self: center; }
