/* =====================================================================
   Páginas y Sistemas — sections.css
   Secciones grandes reutilizables: hero "plano vivo", problemas, láminas
   de módulos (servicios), configurador, industrias, caso con dispositivos
   3D, portafolio, proceso como pipeline, hero interno y bloques de servicio.
   ===================================================================== */

/* ---------- HERO "plano vivo" (home) — ver plano.js ----------
   Capas: .hero__sheet (papel + retícula + campo de cruces + contenido + plano)
          .hero__under (tinta, se revela al "desplegar" con el scroll)
   Modo fijado (pin) sólo con JS, movimiento y pantalla ≥1000×540. */
:root { --hero-top: calc(var(--header-h) + var(--tape-top, 0px) + clamp(14px, 3.4vh, 44px)); --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.hero { position: relative; background: var(--ink); }
.hero__stage { position: relative; }
.hero__sheet { position: relative; z-index: 1; background-color: var(--paper); overflow: hidden; clip-path: inset(0 0 calc(var(--wipe, 0) * 100%) 0); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 2; min-height: 100svh;
  display: flex; flex-direction: column; gap: clamp(18px, 2.8vh, 32px);
  padding: var(--hero-top) var(--gutter) clamp(14px, 2.4vh, 26px);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 2.2vh, 28px); }
.hero__kicker { color: var(--ink); }
.hero__kicker::before { background: var(--chalk); }
.hero__title { --wdth: 84; font-size: clamp(2.7rem, 14.2vw, 6.6rem); line-height: .86; letter-spacing: -.045em; font-weight: 850; margin: 0; }
.hero__line { display: block; white-space: nowrap; }
.hero__line em { color: var(--chalk-deep); font-weight: 400; letter-spacing: -.03em; font-size: 1.06em; line-height: .8; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.42; color: var(--ink-3); text-wrap: pretty; max-width: 46ch; }
.hero__lead b { color: var(--ink); font-weight: 650; }
.hero__btns { gap: 10px; }
.js:not(.no-motion) .hero__title:not(.is-ready) { opacity: 0; animation: failsafe-show 0s 4s forwards; }
@keyframes failsafe-show { to { opacity: 1; } }
.hide-xs { display: inline; }
@media (max-width: 420px) { .hide-xs { display: none; } }

.hero__side { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: clamp(220px, 32svh, 340px); padding-top: 22px; }
.hero__measures { container: hud / inline-size; display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: space-between; gap: 6px 18px; color: var(--mute); padding-top: 10px; border-top: 1px solid var(--line); overflow: hidden; }
.hero__measures > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* El HUD se ajusta a SU ancho (no al de la ventana): nunca pasa por debajo de la regla lateral */
.hero__measures > span:not(.hero__hint) { display: none; }
@container hud (min-width: 560px) { .hero__measures > span:first-child { display: inline; } }
@container hud (min-width: 900px) { .hero__measures > .hero__mods { display: inline; } }
.hero__measures b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__hint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.hero__hint::before { content: ""; width: 7px; height: 7px; background: var(--chalk); animation: hint-blink 1.6s steps(2, jump-none) infinite; }
@keyframes hint-blink { 50% { opacity: .15; } }

/* Desplegado: línea que sube y deja ver la siguiente capa */
.hero__wipe { position: absolute; left: 0; right: 0; z-index: 4; bottom: calc(var(--wipe, 0) * 100%); height: 2px; background: var(--chalk); opacity: 0; pointer-events: none; }
.hero__wipe b { position: absolute; left: var(--edge); bottom: 8px; padding: 5px 9px; background: var(--chalk); color: var(--ink); font-weight: 600; }
.hero.is-wiping .hero__wipe { opacity: 1; }
.hero__under {
  position: relative; display: grid; align-content: center; gap: 22px; min-height: 72svh;
  padding: clamp(72px, 10vh, 120px) calc(var(--gutter) + var(--tape-w)) clamp(48px, 8vh, 96px) var(--gutter);
}
.hero__under-big { font-size: clamp(2.8rem, 8.6vw, 9.6rem); line-height: .86; letter-spacing: -.045em; font-weight: 850; font-variation-settings: "wdth" 84; max-width: 13ch; }
.hero__under-big em { color: var(--chalk); font-weight: 400; letter-spacing: -.02em; }
.hero__under-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--mute-dark); }

/* Escritorio: dos columnas (texto | plano) */
@media (min-width: 1000px) {
  .hero__grid {
    display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: clamp(28px, 3.6vw, 76px);
    padding-left: var(--edge); padding-right: calc(var(--edge) + var(--tape-w)); padding-bottom: clamp(14px, 2.6vh, 30px);
  }
  .hero__content { align-self: center; min-width: min(520px, 44vw); }
  .hero__title { font-size: clamp(3rem, min(7.9vw, calc((100svh - 350px) / 3.5)), 10.5rem); }
  .hero__lead, .hero__btns { width: 0; min-width: 100%; }
  .hero__lead { max-width: none; }
  .hero__side { min-height: 0; padding-top: 30px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .hero__lead { font-size: 1.04rem; line-height: 1.38; }
  .hero__btns .btn--lg { --bh: 54px; padding: 0 1.35em; font-size: 1rem; }
}
/* Fijado para la secuencia "construir → desplegar" */
@media (min-width: 1000px) and (min-height: 540px) {
  .js:not(.no-motion) .hero { height: 250svh; }
  .js:not(.no-motion) .hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .js:not(.no-motion) .hero__sheet { position: absolute; inset: 0; }
  .js:not(.no-motion) .hero__grid { height: 100svh; }
  .js:not(.no-motion) .hero__under { position: absolute; inset: 0; z-index: 0; min-height: 0; }
  .js:not(.no-motion) .hero__under > * { transform: translateY(calc((1 - var(--reveal, 0)) * 70px)); opacity: calc(.1 + var(--reveal, 0) * .9); }
}
@media (min-width: 600px) and (max-width: 999px) {
  .hero__title { font-size: clamp(3rem, 11.6vw, 6rem); }
  .hero__side { min-height: clamp(260px, 30svh, 420px); }
}
@media (max-width: 999px) {
  .hero__btns { display: grid; grid-template-columns: auto auto; justify-content: start; }
  .hero__btns .btn--lg { --bh: 52px; padding: 0 1.15em; font-size: .98rem; }
}
@media (max-width: 400px) {
  .hero__btns { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero__btns .btn { padding: 0 .7em; }
  .hero__btns .btn__icon { display: none; }
  .hero__lead { font-size: 1rem; }
}

/* ---------- El plano (tablero de módulos) ---------- */
.plano { position: relative; flex: 1; min-height: 0; margin: 0; container: plano / size; --build: 0; }
.plano__rx, .plano__ry { position: absolute; display: flex; justify-content: space-around; font-family: var(--f-mono); font-size: 9px; color: var(--mute); pointer-events: none; }
.plano__rx { left: 0; right: 0; top: -26px; height: 12px; align-items: center; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 16.666%) 0 100% / 100% 5px no-repeat; }
.plano__ry { display: none; }
.plano__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: calc(1 - var(--build) * 2.6); }
.plano__wires .w { fill: none; stroke: rgba(20,18,16,.34); stroke-width: 1; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke .5s; }
.plano.is-drawn .w { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out), stroke .5s; }
.plano__wires .w.is-hot { stroke: rgba(20,18,16,.7); }
.plano__wires .pk { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2.5 400; stroke-dashoffset: 3; animation: pk var(--d, 3.2s) linear var(--dl, 0s) infinite; }
.plano__wires .pk--in { animation-direction: reverse; stroke: var(--ink); }
.plano__wires .port { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
@keyframes pk { to { stroke-dashoffset: -160; } }
.plano.is-paused .pk, .plano.is-paused .plano__core svg .pc__ticks { animation-play-state: paused; }

.plano__core { position: absolute; left: calc(var(--cx, 50) * 1%); top: calc(var(--cy, 46) * 1%); width: min(10.5cqw, 13cqh); aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(1 - var(--build))); z-index: 3; display: grid; place-items: center; }
.plano__core svg { width: 100%; height: 100%; overflow: visible; }
.pc__ring { fill: var(--ink); }
.pc__ticks { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-dasharray: 2 4.28; transform-origin: 50% 50%; animation: pc-rot 24s linear infinite; }
.pc__db { fill: none; stroke: var(--paper); stroke-width: 3.2; }
.plano__core > span { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; color: var(--ink); background: var(--paper); padding: 1px 5px; }
.plano__core.is-hit .pc__ring { fill: var(--chalk-deep); transition: fill .15s; }
@keyframes pc-rot { to { transform: rotate(360deg); } }

.plano__frame { position: absolute; left: 0; top: 0; width: 100%; height: 87%; border: 1px solid var(--ink); background: rgba(241,236,227,.55); opacity: clamp(0, calc(var(--build) * 2.2 - 1), 1); pointer-events: none; }
.plano__frame-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--ink); background: var(--paper); font-size: 10px; color: var(--mute); }
.plano__frame-bar i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); }
.plano__frame-bar span { margin-left: 8px; padding: 2px 10px; background: var(--paper-2); border-radius: 20px; color: var(--ink); }
.plano__frame-bar b { margin-left: auto; font-weight: 600; color: var(--mute); transition: color .3s; }
.plano.is-online .plano__frame-bar b { color: var(--chalk-deep); }

.plano__term { position: absolute; left: 0; bottom: 0; width: 61%; z-index: 4; background: var(--ink); color: var(--paper); font-size: 10.5px; letter-spacing: .02em; text-transform: none; line-height: 1.55; padding: 6px 10px; min-height: 28px; }
.plano__term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plano__term p:last-child::after { content: ""; display: inline-block; width: .6em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; background: var(--chalk); animation: hint-blink 1s steps(2, jump-none) infinite; }
.plano__term .ok { color: var(--chalk); }
.plano__block { position: absolute; right: 0; bottom: 0; width: 36%; display: grid; grid-template-columns: 1.7fr .6fr 1fr; border: 1px solid var(--ink); background: var(--paper); font-size: 9px; letter-spacing: .04em; z-index: 3; }
.plano__block div { padding: 3px 7px; border-left: 1px solid var(--line-strong); min-width: 0; }
.plano__block div:first-child { border-left: 0; }
.plano__block dt { color: var(--mute); }
.plano__block dd { margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Módulos: posición = plano (x,y,w,h) → ensamblado (ax,ay,aw,ah) según --build */
.mod {
  position: absolute; z-index: 2; container: mod / size;
  left: calc((var(--x) + (var(--ax) - var(--x)) * var(--build)) * 1%);
  top: calc((var(--y) + (var(--ay) - var(--y)) * var(--build)) * 1%);
  width: calc((var(--w) + (var(--aw) - var(--w)) * var(--build)) * 1%);
  height: calc((var(--h) + (var(--ah) - var(--h)) * var(--build)) * 1%);
}
.mod--web  { --x: 3;  --y: 7;  --w: 32; --h: 33; --ax: 2;  --ay: 10; --aw: 31; --ah: 35; }
.mod--dash { --x: 39; --y: 7;  --w: 26; --h: 30; --ax: 34.5; --ay: 10; --aw: 31; --ah: 35; }
.mod--wa   { --x: 69; --y: 7;  --w: 28; --h: 33; --ax: 67; --ay: 10; --aw: 31; --ah: 35; }
.mod--crm  { --x: 3;  --y: 53; --w: 30; --h: 29; --ax: 2;  --ay: 49; --aw: 31; --ah: 35; }
.mod--app  { --x: 41; --y: 59; --w: 17; --h: 25; --ax: 34.5; --ay: 49; --aw: 31; --ah: 35; }
.mod--pos  { --x: 66; --y: 50; --w: 31; --h: 33; --ax: 67; --ay: 49; --aw: 31; --ah: 35; }
.plano { --cx: 50; --cy: 45.5; }
@container plano (aspect-ratio < 1) {
  .mod--web  { --x: 3;  --y: 5;  --w: 45; --h: 24; --ax: 2;  --ay: 8;  --aw: 47; --ah: 24; }
  .mod--dash { --x: 54; --y: 5;  --w: 43; --h: 22; --ax: 51; --ay: 8;  --aw: 47; --ah: 24; }
  .mod--wa   { --x: 3;  --y: 36; --w: 35; --h: 22; --ax: 2;  --ay: 34; --aw: 47; --ah: 24; }
  .mod--crm  { --x: 62; --y: 36; --w: 35; --h: 22; --ax: 51; --ay: 34; --aw: 47; --ah: 24; }
  .mod--app  { --x: 12; --y: 64; --w: 20; --h: 24; --ax: 2;  --ay: 60; --aw: 47; --ah: 24; }
  .mod--pos  { --x: 52; --y: 64; --w: 45; --h: 23; --ax: 51; --ay: 60; --aw: 47; --ah: 24; }
  .plano { --cx: 50; --cy: 47; }
  .plano__core { width: min(14cqw, 11cqh); }
}
.mod::before { /* marcas de registro en las esquinas */
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 3; opacity: .9; transition: opacity .5s;
  --c: var(--ink); --l: 7px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat;
}
.mod.is-on::before { --c: var(--chalk-deep); }
.mod__tag { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; opacity: calc(1 - var(--build) * 2.4); display: flex; align-items: baseline; gap: 6px; font-size: 9px; letter-spacing: .06em; color: var(--mute); white-space: nowrap; max-width: 100%; }
.mod__tag b { color: var(--ink); font-weight: 600; }
.mod__tag i { font-style: normal; padding-left: 6px; border-left: 1px solid var(--line-strong); }
.mod.is-on .mod__tag i { color: var(--chalk-deep); }
.mod__dim { position: absolute; left: 0; right: 0; top: 100%; margin-top: 7px; translate: 0 calc(var(--build) * -40px); height: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 8.5px; letter-spacing: .04em; color: var(--mute); border-inline: 1px solid var(--line-strong); transition: opacity .5s; }
.mod__dim::before, .mod__dim::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.mod.is-on .mod__dim { opacity: 0; }
.mod__ui, .mod__wf { position: absolute; inset: 0; font-size: clamp(7px, 5.1cqw, 14.5px); line-height: 1.25; }
.mod__wf { pointer-events: none; }
.js .plano.is-live .mod__ui { clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease-in-out); }
.js .plano.is-live .mod.is-on .mod__ui { clip-path: inset(0 0 0 0); }
.mod__scan { position: absolute; left: -6px; right: -6px; top: 0; height: 2px; background: var(--chalk); z-index: 4; opacity: 0; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,74,28,.18); }
.mod.is-on .mod__scan { animation: scan-dn .85s var(--ease-in-out) both; }
.mod.is-off .mod__scan { animation: scan-up .85s var(--ease-in-out) both; }
@keyframes scan-dn { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes scan-up { 0% { top: 100%; opacity: 1; } 90% { opacity: 1; } 100% { top: 0; opacity: 0; } }

/* Teléfono (<600px): composición 2×2 con el núcleo al centro y la terminal abajo.
   Va por media query (no por container query) para no confundirse con el plano
   alto y angosto de escritorio de 1000–1100px. */
@media (max-width: 599px) {
  .hero__side { min-height: 0; padding-top: 16px; }
  .plano { flex: none; height: clamp(340px, 116vw, 500px); --cx: 50; --cy: 47.5; }
  .mod--crm, .mod--app, .plano__block, .plano__rx, .plano__core > span, .mod__dim { display: none; }
  .mod--web  { --x: 0;  --y: 5;  --w: 46.5; --h: 33; }
  .mod--dash { --x: 53.5; --y: 5; --w: 46.5; --h: 33; }
  .mod--wa   { --x: 0;  --y: 57; --w: 46.5; --h: 30; }
  .mod--pos  { --x: 53.5; --y: 57; --w: 46.5; --h: 30; }
  .mod--wa .mod__tag, .mod--pos .mod__tag { bottom: auto; top: 100%; margin: 6px 0 0; }
  .plano__core { width: 50px; }
  .plano .plano__term { width: 100%; font-size: 10px; padding: 5px 9px; }
  .plano__term p:not(:last-child) { display: none; }
  .mod__tag { font-size: 8.5px; gap: 5px; letter-spacing: .05em; }
  .mod__tag i { display: none; }
  .mod__ui, .mod__wf { font-size: clamp(7.4px, 5.3cqw, 11px); }
}
@media (max-width: 599px) and (min-width: 380px) {
  .mod__tag i { display: inline; padding-left: 5px; }
}
@media (max-width: 380px) { .mod--pos .mod__tag { font-size: 8px; letter-spacing: .03em; } }
/* Tablet (600–999px): el plano toma altura propia para que el 3×2 respire */
@media (min-width: 600px) and (max-width: 999px) {
  .plano { flex: 1 0 auto; height: clamp(420px, 66vw, 600px); --cx: 50; --cy: 48.5; }
  .mod--web  { --x: 3;  --y: 8;  --w: 32; --h: 33; }
  .mod--dash { --x: 39; --y: 8;  --w: 26; --h: 30; }
  .mod--wa   { --x: 69; --y: 8;  --w: 28; --h: 33; }
  .mod--crm  { --x: 3;  --y: 57; --w: 30; --h: 28; }
  .mod--app  { --x: 41; --y: 63; --w: 17; --h: 24; }
  .mod--pos  { --x: 66; --y: 57; --w: 31; --h: 29; }
  .mod--pos .mod__tag { left: auto; right: 0; } /* deja libre el puerto del cable (arriba a la izquierda) */
}
/* 3×2 bajo (laptops de poca altura): la etiqueta del núcleo chocaba con la de M-05 */
@container plano (aspect-ratio >= 1) and (height < 480px) {
  .plano__core > span { display: none; }
}
/* Plano angosto (≈1000–1100px): el cajetín sólo muestra la fecha para no cortar textos */
@container plano (width < 480px) {
  .plano__block { width: auto; grid-template-columns: auto; }
  .plano__block div:not(:last-child) { display: none; }
  .plano__block div:last-child { border-left: 0; }
  .plano__term { width: calc(100% - 92px); }
}

/* Interfaz "renderizada" */
.u { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5em; padding: .75em; overflow: hidden; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 5px 5px 0 rgba(20,18,16,.08); }
.u b { font-weight: 700; }
.u__s { font-family: var(--f-mono); font-size: .72em; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u__btn { align-self: flex-start; background: var(--chalk); color: var(--ink); font-weight: 700; font-size: .85em; padding: .42em .8em; border-radius: 2px; white-space: nowrap; }
.u--web { padding: 0; gap: .55em; }
.u__bar { display: flex; align-items: center; gap: .35em; height: 1.9em; padding: 0 .7em; border-bottom: 1px solid var(--line); flex: none; }
.u__bar i { width: .5em; height: .5em; border-radius: 50%; background: var(--paper-3); }
.u__url { margin-left: .5em; flex: 1; font-family: var(--f-mono); font-size: .74em; background: var(--paper-2); padding: .15em .7em; border-radius: 1em; white-space: nowrap; overflow: hidden; }
.u__nav { display: flex; gap: .9em; padding: 0 .9em; font-size: .8em; color: var(--mute); }
.u__nav b { margin-right: auto; color: var(--ink); font-weight: 800; }
.u__h { padding: 0 .7em; font-size: 1.55em; font-weight: 850; letter-spacing: -.03em; line-height: .96; font-variation-settings: "wdth" 80; }
.u__h em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--chalk-deep); letter-spacing: -.01em; }
.u__row { display: flex; align-items: center; gap: .8em; padding: 0 .85em; }
.u__live { font-family: var(--f-mono); font-size: .7em; color: var(--mute); white-space: nowrap; }
.u__live b { color: var(--ink); }
.u__media { flex: 1; min-height: 1.4em; margin: 0 .85em .85em; background: radial-gradient(circle at 74% 62%, var(--chalk) 0 13%, transparent 13.5%), linear-gradient(160deg, var(--ink-3), var(--ink) 70%); }
.u--dash { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.u--dash .u__s { color: var(--mute-dark); }
.u__kpi { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
.u__kpi b { font-size: 2.1em; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 78; font-variant-numeric: tabular-nums; }
.u__kpi span { font-family: var(--f-mono); font-size: .7em; color: var(--chalk); }
.u__chart { flex: 1; min-height: 1.5em; display: flex; align-items: flex-end; gap: .35em; border-bottom: 1px solid var(--line-dark-strong); background: linear-gradient(var(--line-dark) 1px, transparent 1px) 0 0 / 100% 33.3%; }
.u__chart i { flex: 1; height: calc(var(--v) * 100%); background: var(--paper); transition: height .9s var(--ease-out); }
.u__chart i:last-child { background: var(--chalk); }
.u--wa { background: var(--paper-2); }
.u__wh { margin: -.75em -.75em 0; padding: .55em .75em; background: var(--ink); color: var(--paper); font-size: .8em; white-space: nowrap; }
.u__wh b { color: var(--chalk); }
.u__chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .4em; overflow: hidden; min-height: 0; }
.u__msg { align-self: flex-start; max-width: 88%; padding: .4em .6em; background: var(--paper); border: 1px solid var(--line); border-radius: .7em .7em .7em .15em; font-size: .86em; line-height: 1.25; flex: none; }
.u__msg--ai { align-self: flex-end; background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: .7em .7em .15em .7em; }
.u__msg--ai b { display: block; font-family: var(--f-mono); font-size: .66em; font-weight: 500; letter-spacing: .06em; color: var(--chalk); }
.u__msg.is-new { animation: msg-in .5s var(--ease-out) both; }
.u__typing { align-self: flex-end; display: inline-flex; gap: .25em; padding: .55em .7em; background: var(--ink); border-radius: .7em; flex: none; }
.u__typing i { width: .38em; height: .38em; border-radius: 50%; background: var(--paper); animation: typing 1s infinite; }
.u__typing i:nth-child(2) { animation-delay: .15s; } .u__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.u__cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35em; min-height: 0; }
.u__col { background: var(--paper-2); padding: .35em; display: flex; flex-direction: column; gap: .3em; min-width: 0; overflow: hidden; }
.u__ch { font-family: var(--f-mono); font-size: .62em; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; }
.u__ch b { color: var(--ink); }
.u__card { background: var(--paper); border: 1px solid var(--line); padding: .3em .4em; font-size: .78em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.u__card--win { border-left: 2px solid var(--chalk); }
.u__card.is-new { animation: msg-in .5s var(--ease-out) both; }
.u--app { background: none; border: 0; box-shadow: none; padding: 0; align-items: center; }
.u__phone { position: relative; height: 100%; aspect-ratio: 9 / 17; max-width: 100%; display: flex; flex-direction: column; gap: .45em; padding: 1.5em .6em .6em; border: .32em solid var(--ink); border-radius: 1.2em; background: var(--paper); box-shadow: 5px 5px 0 rgba(20,18,16,.08); overflow: hidden; }
.u__notch { position: absolute; top: .3em; left: 50%; width: 32%; height: .5em; border-radius: 1em; background: var(--ink); transform: translateX(-50%); }
.u__ord { font-size: .86em; font-weight: 800; line-height: 1.1; }
.u__prog { height: .42em; background: var(--paper-3); border-radius: 1em; overflow: hidden; flex: none; }
.u__prog i { display: block; height: 100%; width: var(--p, 40%); background: var(--chalk); transition: width 1s var(--ease-out); }
.u__st { font-family: var(--f-mono); font-size: .64em; text-transform: uppercase; letter-spacing: .05em; color: var(--chalk-deep); }
.u__phone .u__btn { margin-top: auto; align-self: stretch; text-align: center; font-size: .74em; padding: .45em .3em; }
.u--pos { background: #f8f4ec; }
.u__tk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.u__tk li { display: flex; justify-content: space-between; gap: .5em; padding: .26em 0; border-bottom: 1px solid var(--line); font-size: .82em; white-space: nowrap; flex: none; }
.u__tk li.is-new { animation: msg-in .5s var(--ease-out) both; background: rgba(255,74,28,.08); }
.u__tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05em; padding-top: .3em; border-top: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.u--pos .u__btn { align-self: stretch; text-align: center; }
@container mod (height < 150px) {
  .u__media, .u--pos .u__btn, .u__phone .u__btn { display: none; }
  .u__tk li:nth-child(n+3) { display: none; }
}
@container mod (height < 110px) {
  .u__h { font-size: 1.25em; }
  .u__kpi span, .u__nav span { display: none; }
}

/* Plano en "modo plano" (copia de la interfaz convertida en wireframe por JS) */
.mod__wf .u, .mod__wf .u * { color: transparent !important; background: none !important; border-color: rgba(20,18,16,.28) !important; box-shadow: none !important; animation: none !important; }
.mod__wf .u { border: 1px solid rgba(20,18,16,.5) !important; background: rgba(241,236,227,.6) !important; }
.mod__wf .u--app { border: 0 !important; background: none !important; }
.mod__wf .t { background: linear-gradient(transparent 32%, rgba(20,18,16,.2) 32% 68%, transparent 68%) 0 0 / 100% 1.25em repeat-y !important; line-height: 1.25 !important; }
.mod__wf .t .t { background: none !important; }
.mod__wf .b { outline: 1px dashed rgba(20,18,16,.42); outline-offset: -1px; }
.mod__wf .u__chart i { outline: 1px solid rgba(20,18,16,.3); outline-offset: -1px; }
.mod__wf .u__phone { border-color: rgba(20,18,16,.5) !important; }

/* Sin JS o con movimiento reducido: todo renderizado y estático */
.no-motion .plano__wires .pk, .no-motion .hero__field { display: none; }
.no-js .plano__wires { display: none; }

/* ---------- Problemas (diagnóstico) ---------- */
.problems__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.problem {
  display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(16px, 3vw, 56px);
  padding: clamp(28px, 4vw, 60px) 0; border-bottom: 1px solid var(--line-dark); align-items: start;
}
.problem__no { color: var(--chalk); }
.problem__title { font-size: clamp(1.75rem, 3.6vw, 3.6rem); line-height: .96; letter-spacing: -.035em; font-weight: 800; font-variation-settings: "wdth" 86; }
.problem__title em { color: var(--chalk); font-weight: 400; }
.problem__body { display: grid; gap: 14px; color: var(--mute-dark); }
.problem__fix { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-dark-strong); }
.problem__fix .mono { color: var(--paper); }
.problem__fix a { color: var(--paper); }
.problem__dim { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; color: var(--mute-dark); margin-top: -8px; }
.problem__dim-line { position: relative; flex: 1; height: 1px; background: var(--line-dark-strong); transform-origin: left; }
.problem__dim-line::before, .problem__dim-line::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--paper); }
.problem__dim-line::before { left: 0; } .problem__dim-line::after { right: 0; }
@media (max-width: 899px) {
  .problem { grid-template-columns: 1fr; gap: 14px; }
  .problem__dim { grid-column: 1; margin-top: 0; }
}

/* ---------- Láminas de módulos (servicios) — clases históricas .piece ---------- */
.pieces { position: relative; }
.pieces__viewport { overflow: hidden; }
.pieces__track { display: flex; gap: clamp(18px, 2.4vw, 40px); padding: 10px var(--gutter) 30px; width: max-content; will-change: transform; }
.piece {
  --pw: clamp(290px, 26vw, 430px);
  position: relative; width: var(--pw); aspect-ratio: 400 / 540; flex: none; color: var(--ink);
  transform-origin: 50% 0;
}
.piece__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.piece__fill { fill: var(--paper); }
.piece__cut { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.piece__seam { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.piece__grain { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.piece__notch { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.piece__tb { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.piece__body { position: absolute; inset: 17% 13% 11%; display: flex; flex-direction: column; gap: 12px; }
.piece__meta { display: flex; justify-content: space-between; color: var(--mute); }
.piece__title { font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: .94; letter-spacing: -.035em; font-weight: 800; font-variation-settings: "wdth" var(--tw, 84); transition: font-variation-settings .5s var(--ease-out); }
.piece__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.piece:hover .piece__title { --tw: 104; }
.piece p { font-size: .95rem; line-height: 1.48; color: var(--ink-3); }
.piece__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.piece__tags span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 100px; }
.piece__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.piece__price { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; }
.piece__price b { font-family: var(--f-sans); font-size: 1.15rem; letter-spacing: -.02em; }
.piece__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background-color .3s, transform .5s var(--ease-out); }
.piece:hover .piece__arrow { background: var(--chalk); color: var(--ink); transform: rotate(-45deg); }
.piece--chalk .piece__fill { fill: var(--chalk); }
.piece--chalk .piece__seam, .piece--chalk .piece__grain { stroke: rgba(20,18,16,.45); }
.piece--chalk p, .piece--chalk .piece__meta { color: var(--ink); }
.piece--ink { color: var(--paper); }
.piece--ink .piece__fill { fill: var(--ink); }
.piece--ink .piece__cut { stroke: var(--ink); }
.piece--ink .piece__seam, .piece--ink .piece__grain, .piece--ink .piece__tb { stroke: var(--line-dark-strong); }
.piece--ink .piece__notch { fill: var(--chalk); stroke: var(--chalk); }
.piece--ink p, .piece--ink .piece__meta { color: var(--mute-dark); }
.piece--ink .piece__tags span { border-color: var(--line-dark-strong); }
.piece--ink .piece__foot { border-color: var(--line-dark-strong); }
.piece--ink .piece__arrow { background: var(--paper); color: var(--ink); }
.piece--end .piece__body { inset: 13% 12% 10%; }
.piece--end ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.piece--end li a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line-dark-strong); font-weight: 600; font-size: .98rem; }
.piece--end li a:hover { color: var(--chalk); }
.pieces__hint { display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); color: var(--mute); }
.pieces__bar { flex: 1; max-width: 340px; height: 2px; background: var(--line); position: relative; align-self: center; }
.pieces__bar i { position: absolute; inset: 0; background: var(--chalk); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.pieces.is-native .pieces__viewport { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pieces.is-native .pieces__viewport::-webkit-scrollbar { display: none; }
.pieces.is-native .piece { scroll-snap-align: center; }
@media (max-width: 899px) { .piece { --pw: min(82vw, 380px); } }

/* Índice compacto de todos los servicios */
.svc-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(18px, 2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.svc-index a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 600; transition: color .2s, padding .4s var(--ease-out); }
.svc-index a span { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); letter-spacing: .05em; }
.svc-index a:hover { color: var(--chalk-deep); padding-left: 6px; }

/* ---------- Configurador (cotizador) — clases históricas .pb ---------- */
.pb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.pb__controls { display: grid; gap: clamp(28px, 3vw, 44px); }
.pb__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.pb__step legend { display: flex; align-items: baseline; gap: 14px; padding: 0; margin-bottom: 16px; font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pb__step legend .mono { color: var(--chalk); flex: none; }
.pb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb__chip { position: relative; }
.pb__chip input, .pb__tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb__chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line-dark-strong);
  font-size: .95rem; font-weight: 550; transition: background-color .25s, color .25s, border-color .25s; cursor: pointer; user-select: none;
}
.pb__chip span:hover { border-color: var(--paper); }
.pb__chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pb__chip input:focus-visible + span, .pb__tile input:focus-visible + .pb__tile-in { outline: 2px solid var(--chalk); outline-offset: 2px; }
.pb__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb__tile-in {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px;
  border: 1px solid var(--line-dark-strong); border-radius: 2px; cursor: pointer; user-select: none;
  transition: background-color .25s, border-color .25s, color .25s;
}
.pb__tile-in svg { width: 30px; height: 30px; }
.pb__tile-in b { font-weight: 650; font-size: .98rem; line-height: 1.15; display: block; }
.pb__tile-in small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--mute-dark); margin-top: 3px; }
.pb__tile-in .pb__check { width: 22px; height: 22px; border: 1px solid var(--line-dark-strong); border-radius: 2px; display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.pb__tile-in .pb__check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease-out); }
.pb__tile-in:hover { border-color: var(--paper); }
.pb__tile input:checked + .pb__tile-in { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pb__tile input:checked + .pb__tile-in small { color: var(--mute); }
.pb__tile input:checked + .pb__tile-in .pb__check { background: var(--chalk); border: 0; }
.pb__tile input:checked + .pb__tile-in .pb__check::after { transform: rotate(-45deg) scale(1); }

.pb__fitting { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.pb__mannequin { position: relative; border-radius: 2px; background: #1b1916; border: 1px solid var(--line-dark-strong); overflow: hidden; }
.pb__mannequin::after { content: "Ensamble en vivo"; position: absolute; right: 12px; top: 11px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk); }
.pb__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line-dark); }
.pb__bar i { width: 8px; height: 8px; border: 1px solid var(--line-dark-strong); }
.pb__url { margin-left: 10px; flex: 1; max-width: 300px; height: 22px; border-radius: 100px; background: rgba(241,236,227,.06); display: flex; align-items: center; padding: 0 12px; font-family: var(--f-mono); font-size: .68rem; color: var(--mute-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb__canvas {
  --acc: var(--chalk);
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 54px; grid-auto-flow: row dense; gap: 10px;
  padding: 14px; min-height: 420px; align-content: start;
  background-image: linear-gradient(rgba(241,236,227,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(241,236,227,.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pb__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--mute-dark); pointer-events: none; transition: opacity .4s; }
.pb__empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--chalk); }
.pb__canvas.has-pieces .pb__empty { opacity: 0; }

/* Módulos de UI que se ensamblan y conectan */
.ui { position: relative; border-radius: 3px; background: var(--paper); color: var(--ink); overflow: hidden; font-size: 11px; line-height: 1.3; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ui__stitch { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; overflow: visible; }
.ui__stitch rect { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ui::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-left: 1.5px solid var(--acc); border-top: 1.5px solid var(--acc); pointer-events: none; }
.ui__tag { position: absolute; right: 8px; top: 7px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ui__h { font-weight: 800; font-size: 13px; letter-spacing: -.02em; font-variation-settings: "wdth" 86; line-height: 1.05; }
.ui__s { font-family: var(--f-mono); font-size: 8.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.ui__btn { align-self: flex-start; background: var(--acc); color: var(--ink); font-weight: 700; font-size: 10px; padding: 5px 9px; border-radius: 2px; }
.ui__row { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ui__row:last-child { border-bottom: 0; }
.ui__bar { height: 5px; border-radius: 4px; background: var(--paper-3); flex: 1; max-width: 70px; position: relative; overflow: hidden; }
.ui__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 4px; }
.ui__bar i.low { background: var(--acc); }
.ui__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; }
.ui__col { background: var(--paper-2); border-radius: 2px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.ui__card { background: var(--paper); border-radius: 2px; padding: 4px 5px; font-size: 9.5px; box-shadow: 0 1px 0 var(--line); }
.ui__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.ui__prod { background: var(--paper-2); border-radius: 2px; padding: 5px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 52px; font-size: 9.5px; }
.ui__prod::before { content: ""; flex: 1; min-height: 22px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--paper-3) 0 4px, transparent 4px 8px); }
.ui__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; flex: 1; }
.ui__cal span { border-radius: 2px; background: var(--paper-2); font-size: 8.5px; text-align: center; padding: 3px 0; }
.ui__cal span.on { background: var(--acc); font-weight: 700; }
.ui__cal span.off { opacity: .35; }
.ui__chat { display: flex; flex-direction: column; gap: 5px; flex: 1; justify-content: flex-end; background: #e9e3d6; margin: -2px -4px; padding: 6px; border-radius: 2px; }
.ui__msg { max-width: 82%; padding: 5px 7px; border-radius: 6px; background: #fff; font-size: 9.5px; align-self: flex-start; }
.ui__msg.me { align-self: flex-end; background: #d6f5c9; }
.ui__msg b { display: block; font-family: var(--f-mono); font-size: 7.5px; color: var(--chalk-deep); letter-spacing: .06em; }
.ui__phone { align-self: center; width: 46%; min-width: 74px; flex: 1; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 5px 5px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.ui__phone .ui__row { font-size: 9px; }
.ui__flow { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.ui__node { padding: 5px 7px; border: 1px solid var(--ink); border-radius: 100px; font-weight: 650; font-size: 9.5px; }
.ui__flow i { flex: 1; min-width: 8px; height: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px); }
.ui__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 12px; padding-top: 4px; border-top: 1.5px solid var(--ink); }
.ui__stamp { align-self: flex-start; border: 1.5px solid #1f8a4c; color: #1f8a4c; font-family: var(--f-mono); font-size: 8.5px; padding: 2px 6px; border-radius: 2px; transform: rotate(-4deg); font-weight: 700; letter-spacing: .06em; }
.ui--web { grid-column: span 6; grid-row: span 3; background: var(--paper); }
.ui--web .ui__nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 11px; }
.ui--web .ui__nav span { font-family: var(--f-mono); font-size: 8px; color: var(--mute); font-weight: 500; letter-spacing: .05em; }
.ui--web .ui__hero { font-size: clamp(16px, 1.7vw, 24px); font-weight: 850; letter-spacing: -.035em; line-height: .95; font-variation-settings: "wdth" 80; margin-top: 4px; max-width: 16ch; }
.ui--web .ui__hero em { font-family: var(--f-serif); font-weight: 400; color: var(--chalk-deep); }
.ui--tienda { grid-column: span 4; grid-row: span 3; }
.ui--pos { grid-column: span 2; grid-row: span 3; }
.ui--crm { grid-column: span 4; grid-row: span 3; }
.ui--citas { grid-column: span 3; grid-row: span 3; }
.ui--inv { grid-column: span 3; grid-row: span 3; }
.ui--app { grid-column: span 2; grid-row: span 4; }
.ui--wa { grid-column: span 3; grid-row: span 3; }
.ui--cfdi { grid-column: span 2; grid-row: span 2; }
.ui--auto { grid-column: span 4; grid-row: span 2; }
.pb__needle { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--chalk); box-shadow: 0 0 0 4px rgba(255,74,28,.22); pointer-events: none; z-index: 5; opacity: 0; }

.pb__summary { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-2); }
.pb__summary-top { display: flex; justify-content: space-between; gap: 12px; color: var(--mute-dark); }
.pb__price { font-size: clamp(1.8rem, 3vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.pb__price small { font-family: var(--f-mono); font-size: .32em; letter-spacing: .04em; font-weight: 500; color: var(--mute-dark); margin-left: .2em; }
.pb__weeks { color: var(--mute-dark); font-size: .95rem; }
.pb__weeks b { color: var(--paper); }
.pb__list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.pb__list span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: rgba(241,236,227,.08); }
.pb__note { font-size: .82rem; color: var(--mute-dark); }
.pb__dock { display: none; }
@media (max-width: 1023px) {
  .pb { grid-template-columns: 1fr; }
  .pb__fitting { position: relative; top: 0; order: -1; }
  .pb__canvas { grid-auto-rows: 40px; gap: 7px; padding: 10px; min-height: 300px; }
  .pb__summary { display: none; }
  .pb__dock {
    display: flex; position: sticky; bottom: 10px; z-index: 20; margin-top: 22px; align-items: center; gap: 12px; justify-content: space-between;
    padding: 10px 10px 10px 16px; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  }
  .pb__dock-price { display: grid; line-height: 1.1; min-width: 0; }
  .pb__dock-price b { font-size: 1.05rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pb__dock-price span { font-family: var(--f-mono); font-size: .64rem; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; }
  .pb__dock .btn { flex: none; }
}
@media (max-width: 560px) {
  .pb__tiles { grid-template-columns: 1fr; }
  .pb__canvas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ui--web, .ui--tienda, .ui--crm, .ui--auto { grid-column: span 4; }
  .ui--citas, .ui--inv, .ui--wa, .ui--pos, .ui--app, .ui--cfdi { grid-column: span 2; }
  .ui { font-size: 10px; padding: 8px; }
  .ui__cols .ui__card:nth-child(n+3), .ui__grid .ui__prod:nth-child(n+3) { display: none; }
  .ui__cols, .ui__grid { grid-template-columns: repeat(2, 1fr); }
  .ui__cols .ui__col:nth-child(3) { display: none; }
  .pb__dock .btn span.hide-xs { display: none; }
}

/* ---------- Industrias ---------- */
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); border-top: 1px solid var(--line); }
.ind { border-bottom: 1px solid var(--line); }
.ind a { position: relative; display: grid; grid-template-columns: 3ch 1fr auto; align-items: center; gap: 16px; padding: clamp(14px, 1.7vw, 24px) 0; overflow: hidden; }
.ind a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); z-index: -1; }
.ind a { isolation: isolate; transition: color .35s, padding .55s var(--ease-out); }
.ind a:hover { color: var(--paper); padding-left: 14px; padding-right: 14px; }
.ind a:hover::before { transform: scaleY(1); }
.ind__no { font-family: var(--f-mono); font-size: .72rem; color: var(--mute); }
.ind__name { font-size: clamp(1.6rem, 3.3vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variation-settings: "wdth" var(--iw, 74); transition: font-variation-settings .6s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind a:hover .ind__name { --iw: 118; }
.ind__what { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); text-align: right; max-width: 22ch; line-height: 1.5; }
.ind a:hover .ind__what { color: var(--chalk); }
.ind-more { margin-top: clamp(28px, 4vw, 56px); }
@media (max-width: 1180px) { .ind-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ind__what { display: none; } .ind a { grid-template-columns: 3ch 1fr; } }

/* ---------- Caso con dispositivos 3D ---------- */
.case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); }
.case__steps { display: grid; }
.case__step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 40px; }
.case__step:first-child { min-height: 60svh; justify-content: flex-start; padding-top: 0; }
.case__step h3 { font-size: clamp(1.7rem, 3vw, 3rem); line-height: .98; letter-spacing: -.03em; font-weight: 800; font-variation-settings: "wdth" 86; }
.case__step p { color: var(--mute-dark); max-width: 46ch; }
.case__step .mono { color: var(--chalk); }
.case__stage { position: sticky; top: calc(var(--header-h) + 4svh); height: calc(100svh - var(--header-h) - 8svh); display: grid; place-items: center; perspective: 1800px; }
.devices { position: relative; width: min(100%, 760px); aspect-ratio: 16 / 11.5; transform-style: preserve-3d; will-change: transform; }
.laptop { position: absolute; left: 0; top: 4%; width: 88%; transform-style: preserve-3d; }
.laptop__lid { position: relative; aspect-ratio: 16 / 10.4; padding: 2.2% 2.2% 3.2%; border-radius: 14px 14px 4px 4px; background: linear-gradient(160deg, #3b3732, #1c1a17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transform-origin: 50% 100%; }
.laptop__lid::after { content: ""; position: absolute; left: 50%; top: 1%; width: 4px; height: 4px; border-radius: 50%; background: #000; transform: translateX(-50%); }
.laptop__base { position: relative; height: 0; }
.laptop__base::before { content: ""; position: absolute; left: -6%; right: -6%; top: 0; height: 14px; border-radius: 0 0 16px 16px; background: linear-gradient(#6d6760, #2c2925 60%); box-shadow: 0 30px 50px -18px rgba(0,0,0,.7); }
.laptop__base::after { content: ""; position: absolute; left: 41%; right: 41%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: rgba(0,0,0,.35); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; background: #0f0e0c; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease-in-out); }
.screen img.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.screen img.is-prev { clip-path: inset(0 0 0 0); z-index: 0; }
.screen__cut { position: absolute; top: 0; bottom: 0; width: 2px; left: 100%; z-index: 3; background: repeating-linear-gradient(var(--chalk) 0 8px, transparent 8px 13px); opacity: 0; }
.phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 19.2; padding: 3.2% 2.4%; border-radius: 26px; background: #1a1815; box-shadow: inset 0 0 0 2px #4a453f, 0 40px 60px -20px rgba(0,0,0,.75); transform: translateZ(60px); }
.phone .screen { border-radius: 18px; }
.phone::before { content: ""; position: absolute; left: 50%; top: 2.2%; width: 26%; height: 2.4%; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 4; }
.case__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); margin-top: clamp(40px, 6vw, 90px); }
.case__fact { padding: 22px clamp(10px, 1.6vw, 24px) 6px 0; display: grid; gap: 6px; }
.case__fact + .case__fact { border-left: 1px solid var(--line-dark); padding-left: clamp(12px, 1.6vw, 24px); }
.case__fact b { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 78; color: var(--paper); }
.case__fact span { color: var(--mute-dark); font-size: .92rem; }
.case__modules { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1023px) {
  .case { grid-template-columns: 1fr; }
  .case__stage { order: -1; top: calc(var(--header-h) + 14px); height: auto; padding: 8px 0 16px; z-index: 2; background: var(--ink); }
  .devices { width: min(100%, 520px); }
  .case__step { min-height: 0; padding-block: 34px; border-top: 1px solid var(--line-dark); }
  .case__step:first-child { min-height: 0; border-top: 0; }
  .case__facts { grid-template-columns: 1fr 1fr; }
  .case__fact:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Portafolio (demos) ---------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 84px) clamp(16px, 2vw, 32px); }
.work { grid-column: span 6; display: grid; gap: 16px; }
.work:nth-child(4n+1) { grid-column: 1 / span 7; }
.work:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: clamp(40px, 10vw, 180px); }
.work:nth-child(4n+3) { grid-column: 2 / span 5; }
.work:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: clamp(30px, 6vw, 110px); }
.work__media { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--paper-2); aspect-ratio: 16 / 10; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; pointer-events: none; }
.work__media.gl-on canvas { opacity: 1; }
.work__media:hover img { transform: scale(1.035); }
.work__media::after { content: ""; position: absolute; inset: 8px; opacity: 0; transition: opacity .4s, inset .5s var(--ease-out); pointer-events: none; --c: var(--paper);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px, linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px, linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px; background-repeat: no-repeat; }
.work__media:hover::after { opacity: 1; inset: 12px; }
.work__cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline; }
.work__name { font-size: clamp(1.4rem, 2.2vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 88; }
.work__name a:hover { color: var(--chalk-deep); }
.work__meta { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.work__desc { grid-column: 1 / -1; color: var(--mute); font-size: .96rem; max-width: 52ch; }
@media (max-width: 899px) {
  .works { grid-template-columns: 1fr; }
  .work, .work:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

/* ---------- Proceso como pipeline de despliegue — clases históricas .thread / .tstep ---------- */
.thread { position: relative; }
.thread__svg { position: absolute; left: 50%; top: 0; height: 100%; width: 120px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.thread__path { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: butt; }
.thread__ghost { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.thread__needle circle:first-child { fill: var(--chalk); }
.thread__needle circle + circle { stroke: var(--chalk); }
.thread__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 120px); position: relative; }
.tstep { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.tstep__card { grid-column: 1; text-align: right; display: grid; gap: 10px; justify-items: end; }
.tstep:nth-child(even) .tstep__card { grid-column: 3; text-align: left; justify-items: start; }
.tstep__knot { grid-column: 2; grid-row: 1; justify-self: center; width: 18px; height: 18px; background: var(--paper-2); border: 1.5px solid var(--ink); position: relative; z-index: 1; transform: rotate(45deg); transition: background-color .4s, border-color .4s, transform .5s var(--ease-out); }
.on-ink .tstep__knot { background: var(--ink); border-color: var(--paper); }
.tstep__knot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 9px; margin: -6px 0 0 -2.5px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(0deg) scale(0); transition: transform .4s var(--ease-out) .15s; }
.tstep.is-sewn .tstep__knot { background: var(--chalk); border-color: var(--chalk); transform: rotate(45deg) scale(1.2); }
.tstep.is-sewn .tstep__knot::after { transform: rotate(0deg) scale(1); }
.tstep__no { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; color: var(--chalk-deep); text-transform: uppercase; }
.on-ink .tstep__no { color: var(--chalk); }
.tstep h3 { font-size: clamp(2rem, 4.4vw, 4.6rem); font-weight: 850; letter-spacing: -.04em; line-height: .9; font-variation-settings: "wdth" var(--sw, 80); }
.tstep p { color: var(--mute); max-width: 44ch; }
.on-ink .tstep p { color: var(--mute-dark); }
.tstep__deliv { font-size: .9rem; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 2px; max-width: 44ch; }
.tstep__deliv b { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-deep); margin-right: 6px; font-weight: 600; }
.on-ink .tstep__deliv { border-color: var(--line-dark-strong); }
.on-ink .tstep__deliv b { color: var(--chalk); }
.tstep__stitches { display: flex; gap: 3px; align-items: center; }
.tstep__stitches::after { content: ""; margin-left: 8px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); transition: color .3s .5s; }
.ps-on .tstep__stitches::after { content: "pendiente"; }
.tstep.is-sewn .tstep__stitches::after { content: "completado ✓"; color: var(--chalk-deep); }
.on-ink .tstep.is-sewn .tstep__stitches::after { color: var(--chalk); }
.tstep__stitches i { width: 14px; height: 5px; background: var(--line); transition: background-color .3s; }
.on-ink .tstep__stitches i { background: var(--line-dark); }
.tstep.is-sewn .tstep__stitches i { background: var(--chalk); }
.tstep.is-sewn .tstep__stitches i:nth-child(2) { transition-delay: .1s; }
.tstep.is-sewn .tstep__stitches i:nth-child(3) { transition-delay: .2s; }
.tstep.is-sewn .tstep__stitches i:nth-child(4) { transition-delay: .3s; }
@media (max-width: 899px) {
  .thread__svg { left: 14px; transform: none; width: 40px; }
  .tstep { grid-template-columns: 40px 1fr; gap: 0 14px; align-items: start; }
  .tstep__knot { grid-column: 1; margin-top: 4px; }
  .tstep__card, .tstep:nth-child(even) .tstep__card { grid-column: 2; text-align: left; justify-items: start; }
}

/* ---------- Hero interno (páginas de servicio, industria, etc.) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + var(--tape-top, 0px) + clamp(28px, 5vw, 70px)); padding-bottom: clamp(48px, 7vw, 110px); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 7.4rem); line-height: .88; letter-spacing: -.045em; font-weight: 850; }
.page-hero__title em { color: var(--chalk-deep); font-weight: 400; }
.page-hero__side { display: grid; gap: 22px; }
.page-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 72px); }
.page-hero__fact { padding: 16px 16px 0 0; display: grid; gap: 4px; }
.page-hero__fact + .page-hero__fact { border-left: 1px solid var(--line); padding-left: 16px; }
.page-hero__fact b { font-size: clamp(1.4rem, 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 82; }
.page-hero__fact span { font-size: .88rem; color: var(--mute); }
.draft { position: relative; width: 100%; }
.draft svg { width: 100%; height: auto; overflow: visible; }
.draft .d-line { fill: none; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.draft .d-soft { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draft .d-chalk { fill: none; stroke: var(--chalk); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.draft .d-fill { fill: var(--paper-2); }
.draft .d-ink { fill: var(--ink); }
.draft .d-acc { fill: var(--chalk); }
.draft text { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; fill: var(--mute); text-transform: uppercase; }
.draft text.d-big { font-family: var(--f-sans); font-size: 30px; font-weight: 800; letter-spacing: -.03em; fill: var(--ink); text-transform: none; }
@media (max-width: 899px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__facts { grid-template-columns: 1fr; }
  .page-hero__fact + .page-hero__fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .page-hero__fact { padding: 14px 0; }
}

/* ---------- Bloques de página de servicio ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 18px; }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } .split__sticky { position: relative; top: 0; } }

.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: spec; }
.on-ink .spec { border-color: var(--line-dark); }
.spec li { display: grid; grid-template-columns: 4ch 1fr; gap: 6px 18px; padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--line); counter-increment: spec; }
.on-ink .spec li { border-color: var(--line-dark); }
.spec li::before { content: counter(spec, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--chalk-deep); padding-top: .35em; grid-row: span 2; }
.on-ink .spec li::before { color: var(--chalk); }
.spec h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
.spec p { color: var(--mute); }
.on-ink .spec p { color: var(--mute-dark); }

.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.kind { padding: clamp(22px, 2.6vw, 36px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; gap: 12px; align-content: start; position: relative; transition: background-color .4s; }
.kind:hover { background: var(--ink-2); }
.kind__fig { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--chalk); letter-spacing: .08em; display: flex; justify-content: space-between; }
.kind h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 800; font-variation-settings: "wdth" 86; letter-spacing: -.03em; }
.kind p { color: var(--mute-dark); font-size: .97rem; }
.kind__for { font-size: .86rem; color: var(--paper); padding-top: 10px; border-top: 1px solid var(--line-dark-strong); }
.kind__for span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); margin-right: 6px; }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 3px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--mute); background: var(--paper-2); }
.compare thead th.is-us { background: var(--ink); color: var(--paper); }
.compare tbody th { font-weight: 650; width: 26%; }
.compare td.is-us { background: rgba(255,74,28,.08); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes::before { content: "✓ "; color: var(--chalk-deep); font-weight: 700; }
.compare .no::before { content: "— "; color: var(--mute); }
@media (max-width: 700px) { .compare { min-width: 640px; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.checklist li::before { content: ""; width: 14px; height: 8px; margin-top: .45em; border-left: 2px solid var(--chalk-deep); border-bottom: 2px solid var(--chalk-deep); transform: rotate(-45deg); }
.on-ink .checklist li::before { border-color: var(--chalk); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 clamp(16px, 2vw, 28px); }
.related a { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); transition: padding .45s var(--ease-out); }
.related a:hover { padding-left: 8px; }
.related a b { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; font-variation-settings: "wdth" 90; }
.related a span { font-size: .92rem; color: var(--mute); }
.related a:hover b { color: var(--chalk-deep); }

.quote { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 1100px; }
.quote__mark { font-family: var(--f-serif); font-size: clamp(5rem, 10vw, 9rem); line-height: .7; color: var(--chalk); }
.quote blockquote { font-family: var(--f-serif); font-size: clamp(1.7rem, 3.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; }
.quote figcaption { margin-top: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 20px 18px 0 0; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 18px; }
.stat b { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 78; }
.stat span { font-size: .92rem; color: var(--mute); }
.on-ink .stat-row, .on-ink .stat + .stat { border-color: var(--line-dark); }
.on-ink .stat span { color: var(--mute-dark); }
@media (max-width: 899px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Contacto (home + /contacto/) */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact__title { font-size: clamp(2.6rem, 6.6vw, 7rem); line-height: .88; letter-spacing: -.045em; font-weight: 850; margin: 18px 0 22px; }
.contact__title em { color: var(--chalk); font-weight: 400; }
.contact__ways { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line-dark); }
.contact__ways a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line-dark); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 650; transition: color .25s, padding .45s var(--ease-out); }
.contact__ways a span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--mute-dark); text-transform: uppercase; }
.contact__ways a:hover { color: var(--chalk); padding-left: 8px; }
.contact__form { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-2); position: relative; }
.contact__form::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--chalk); pointer-events: none; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px)); padding-bottom: clamp(60px, 8vw, 120px); display: flex; align-items: center; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.nf__copy { display: grid; gap: 26px; }
.nf__title { font-size: clamp(2.8rem, 7.4vw, 8rem); line-height: .88; letter-spacing: -.045em; font-weight: 850; --wdth: 82; }
.nf__links { display: grid; gap: 10px; margin-top: 18px; }
.nf__svg { width: 100%; height: auto; overflow: visible; }
.nf__piece { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.nf__seam { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 5 6; }
.nf__dim { fill: none; stroke: var(--ink); stroke-width: 1; }
.nf__cut { stroke: var(--chalk); stroke-width: 2; animation: nf-scan 2.6s var(--ease-in-out) .3s infinite alternate; }
.nf__num { font-family: var(--f-sans); font-weight: 850; font-size: 150px; letter-spacing: -.06em; fill: var(--ink); font-variation-settings: "wdth" 70; }
.nf__lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; fill: var(--mute); }
.nf__lbl--chalk { fill: var(--chalk-deep); }
.nf__term { margin-top: 14px; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: .78rem; text-transform: none; letter-spacing: .02em; }
.nf__term span { color: var(--chalk); }
@keyframes nf-scan { from { transform: translateY(0); } to { transform: translateY(330px); } }
@media (max-width: 899px) { .nf__grid { grid-template-columns: 1fr; } .nf__art { max-width: 280px; } }
@media (max-width: 640px) { .pb__mannequin::after { display: none; } }
.no-motion .plano__term p:not(:last-child) { display: none; }
