/* ============================================================
   Matrix3D — sistema visual
   Concepto: taller isométrico. Papel blanco, tinta negra y los
   tres tonos del isotipo (cara superior, frontal y lateral) para
   dar profundidad sin brillos ni degradados.
   ============================================================ */
:root {
  /* Color */
  --paper: #ffffff;
  --paper-2: #f6f3fb;      /* superficie alterna con tinte de marca */
  --ink: #0e0b14;          /* negro tinta */
  --ink-2: #4b4559;        /* texto secundario (AA sobre blanco) */
  --line: #e3dcee;
  --violet: #6a22d0;       /* color del isotipo (cara frontal) */
  --violet-hi: #9461ee;    /* cara superior iluminada */
  --violet-lo: #3d0e96;    /* cara lateral en sombra */
  --lilac: #efe8fc;

  /* Profundidad: extrusión en capas (como una pieza impresa) */
  --ex-1: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink);
  --ex-2: 1px 1px 0 var(--violet-lo), 2px 2px 0 var(--violet-lo), 3px 3px 0 var(--violet-lo), 4px 4px 0 var(--violet-lo), 5px 5px 0 var(--violet-lo), 6px 6px 0 var(--violet-lo), 7px 7px 0 var(--violet-lo), 8px 8px 0 var(--violet-lo);

  /* Tipografía */
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.86rem, .82rem + .15vw, .95rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.2vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.6vw, 3.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.6vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
h1, h2 { font-weight: 850; font-variation-settings: "wdth" 125; }
h3 { font-weight: 750; font-variation-settings: "wdth" 112; font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Botones: losas extruidas que se hunden al presionar ---------- */
.btn {
  --bx: var(--ex-1);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 1.4em; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--violet); color: #fff; font-weight: 750; font-size: var(--step-0);
  font-variation-settings: "wdth" 108; text-decoration: none; white-space: nowrap;
  box-shadow: var(--bx); transform: translate(0, 0);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--bx), 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); --bx: 1px 1px 0 var(--violet-hi), 2px 2px 0 var(--violet-hi), 3px 3px 0 var(--violet-hi), 4px 4px 0 var(--violet-hi); }
.btn--light:hover { box-shadow: var(--bx), 5px 5px 0 var(--violet-hi); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: var(--step--1); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--violet); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.link:hover { color: var(--ink); }
.kicker { font-weight: 700; color: var(--violet); font-variation-settings: "wdth" 112; margin-bottom: .8rem; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color .25s, transform .35s var(--ease); }
.top.is-scrolled { border-color: var(--ink); }
.top.is-hidden { transform: translateY(-110%); }
.top__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: auto; height: 40px; }
.brand__word { font-family: var(--f-display); font-weight: 850; font-variation-settings: "wdth" 125; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__word b { color: var(--violet); font-weight: 850; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; color: var(--ink-2); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--lilac); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn i:nth-of-type(1) { top: 15px; } .menu-btn i:nth-of-type(2) { top: 21.5px; } .menu-btn i:nth-of-type(3) { top: 28px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-movil { border-top: 2px solid var(--ink); background: var(--paper); padding: 8px var(--gutter) 22px; }
.menu-movil a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.menu-movil .btn { margin-top: 18px; width: 100%; }

/* ---------- Hero ---------- */
/* Cada altura en svh lleva antes la misma en vh: si el navegador no entiende
   svh (Safari anterior a 15.4) la sección conserva su alto y la escena sigue
   teniendo distancia de scroll; si lo entiende, gana la línea en svh. */
.hero { position: relative; height: calc(100vh - 68px); height: calc(100svh - 68px); background: var(--paper); }
html.js .hero { height: 165vh; height: 165svh; }
@media (min-width: 900px) { html.js .hero { height: 190vh; height: 190svh; } }
.hero__stage { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 5fr 6fr; gap: 40px; } }
.hero__copy { order: 2; }
.hero__machine { order: 1; display: grid; gap: 10px; justify-items: center; }
@media (min-width: 900px) { .hero__copy { order: 1; } .hero__machine { order: 2; } }
.hero__title { font-size: var(--step-4); }
.hero__title { font-size: clamp(1.9rem, 7.6vw, 2.4rem); }
@media (min-width: 900px) { .hero__title { font-size: clamp(2.6rem, 4.3vw, 4.2rem); } }
.hero__lead { margin-top: .8em; max-width: 34rem; color: var(--ink-2); font-size: var(--step-0); }
@media (min-width: 900px) { .hero__lead { font-size: var(--step-1); line-height: 1.5; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }
@media (min-width: 900px) { .hero__ctas { margin-top: 2rem; } }
@media (max-width: 899px) {
  .hero .kicker { display: none; }
  .hero__ctas .btn { min-height: 46px; padding: 0 1.1em; }
  /* En móvil la escena fija no puede pasarse de alto: el texto y los botones
     toman lo que necesitan y la impresora se queda con lo que sobra. Con la
     impresora en un alto fijo, en pantallas cortas los botones se cortaban. */
  html.js .hero__stage { align-items: stretch; }
  html.js .hero__grid { height: 100%; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; padding-block: 10px; }
  html.js .hero__machine { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; align-content: center; }
  html.js .printer { width: auto; max-width: 100%; height: 100%; }
}
.printer { width: min(100%, 34vh); width: min(100%, 34svh); aspect-ratio: 400 / 470; position: relative; display: grid; place-items: center; }
@media (min-width: 900px) { .printer { width: min(100%, 60vh); width: min(100%, 60svh); } }
.printer svg { width: 100%; height: 100%; overflow: visible; }
.printer__fallback { width: 70%; height: auto; }
.hero__hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; display: none; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.hero__hint span { width: 18px; height: 28px; border: 2px solid var(--ink); border-radius: 10px; position: relative; }
.hero__hint span::after { content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 6px; margin-left: -2px; border-radius: 2px; background: var(--violet); animation: hint 1.6s var(--ease) infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(8px); opacity: .2 } }
@media (min-width: 900px) and (min-height: 620px) { html.js .hero__hint { display: flex; } }

/* Consola G-code */
.console { width: min(100%, 360px); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; font-family: var(--f-mono); font-size: .72rem; line-height: 1.45; box-shadow: 5px 5px 0 var(--violet); }
@media (min-width: 900px) { .console { position: absolute; right: 0; bottom: 2vh; bottom: 2svh; width: 290px; } .hero__machine { position: relative; } }
.console__head, .console__foot { display: flex; justify-content: space-between; gap: 10px; }
.console__pct { font-weight: 600; color: var(--violet-hi); font-variant-numeric: tabular-nums; }
.console__bar { height: 4px; margin: 7px 0; background: #2a2435; border-radius: 2px; overflow: hidden; }
.console__bar i { display: block; height: 100%; background: var(--violet-hi); transform-origin: left; }
.console__log { height: 3.1em; overflow: hidden; color: #b9b2c8; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .console__log { height: 4.4em; } }
.console__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__log li:last-child { color: #fff; }
.console__foot { color: #b9b2c8; margin-top: 2px; font-variant-numeric: tabular-nums; }
.console__foot b { color: #fff; font-weight: 600; }
@media (max-width: 899px) { .console__log { display: none; } .console { padding: 7px 12px; font-size: .68rem; width: min(100%, 320px); } .console__bar { margin: 5px 0; } }

/* ---------- Cinta ---------- */
.tape { background: var(--ink); color: #fff; overflow: hidden; border-block: 2px solid var(--ink); }
.tape__row { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); width: max-content; padding: 18px 0; will-change: transform; }
.tape__row span { font-family: var(--f-display); font-weight: 850; font-variation-settings: "wdth" 125; font-size: clamp(1.6rem, 4.4vw, 3.4rem); letter-spacing: -.02em; line-height: 1; }
.tape__row span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.tape__row svg { width: clamp(22px, 3vw, 34px); height: auto; flex: none; }
.tape__row svg rect { fill: #fff; } .tape__row svg path { fill: var(--violet-hi); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.head--light p { color: #cfc8de; }

/* Losas de servicios */
.slabs { display: grid; gap: 28px; }
@media (min-width: 860px) { .slabs { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.slab { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--ex-2); transform-style: preserve-3d; transition: box-shadow .3s var(--ease); }
.slab:nth-child(2) { --ex-2: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink), 7px 7px 0 var(--ink), 8px 8px 0 var(--ink); }
.slab:nth-child(3) { --ex-2: 1px 1px 0 var(--violet-hi), 2px 2px 0 var(--violet-hi), 3px 3px 0 var(--violet-hi), 4px 4px 0 var(--violet-hi), 5px 5px 0 var(--violet-hi), 6px 6px 0 var(--violet-hi), 7px 7px 0 var(--violet-hi), 8px 8px 0 var(--violet-hi); }
.slab__icon { width: 96px; height: 80px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.slab__icon .accent { stroke: var(--violet); }
.slab__icon .dot { fill: var(--violet); stroke: none; }
.slab p { color: var(--ink-2); }
.ticks { display: grid; gap: 6px; margin-top: 4px; font-size: var(--step--1); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: var(--violet); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.slab .link { margin-top: auto; }

/* ---------- Trabajos ---------- */
.works { background: var(--paper-2); border-block: 2px solid var(--ink); }
.works__pin { padding-block: clamp(64px, 9vw, 110px) 40px; overflow: hidden; }
.works__head { display: grid; gap: 12px; margin-bottom: 26px; }
.works__head h2 { font-size: var(--step-3); max-width: 18ch; }
.works__head p { color: var(--ink-2); font-size: var(--step-1); max-width: 40rem; }
.works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 24px; }
.works__viewport::-webkit-scrollbar { display: none; }
.works__track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gutter); }
.piece { scroll-snap-align: center; width: min(78vw, 340px); display: grid; gap: 16px; }
.piece__stage { position: relative; height: clamp(300px, 46vh, 420px); height: clamp(300px, 46svh, 420px); display: grid; place-items: end center; padding-bottom: 54px; }
.piece__stage img { position: relative; z-index: 2; width: 82%; height: auto; max-height: 92%; object-fit: contain; filter: drop-shadow(10px 12px 0 rgb(14 11 20 / .12)); will-change: transform; }
/* Pedestal isométrico (hexágono de tres caras = el mismo cubo del logo) */
.plinth { position: absolute; left: 50%; bottom: 0; width: 78%; aspect-ratio: 2 / 1; transform: translateX(-50%); z-index: 1; }
.plinth i { position: absolute; inset: 0; }
.plinth i:nth-child(1) { background: var(--lilac); clip-path: polygon(50% 0, 100% 28%, 50% 56%, 0 28%); border: 0; }
.plinth i:nth-child(2) { background: var(--violet); clip-path: polygon(0 28%, 50% 56%, 50% 100%, 0 72%); }
.plinth i:nth-child(3) { background: var(--violet-lo); clip-path: polygon(50% 56%, 100% 28%, 100% 72%, 50% 100%); }
.piece__text { display: grid; gap: 6px; padding: 18px 18px 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.piece__cat { font-size: var(--step--1); font-weight: 700; color: var(--violet); }
.piece__text p:not(.piece__cat) { color: var(--ink-2); font-size: var(--step--1); }
.works__progress { height: 6px; margin-top: 8px; }
.works__progress::before { content: ""; display: block; height: 2px; background: var(--line); transform: translateY(2px); }
.works__progress i { display: block; height: 6px; margin-top: -4px; width: 100%; background: var(--violet); border-radius: 3px; transform-origin: left; transform: scaleX(.12); }
@media (min-width: 900px) {
  html.js .works__viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .works__track { gap: 28px; }
  .piece { width: clamp(300px, 27vw, 380px); }
  .works__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px 28px; }
  .works__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 8px; }
  .piece__stage { height: clamp(240px, 38vh, 380px); padding-bottom: 46px; }
}

/* ---------- Historias (escuelas / NFC): sección alta + escena fija ---------- */
.story { position: relative; }
/* Alto de la sección = distancia de scroll de la escena. Se acortó (10 oct 2026,
   a pedido de Samuel): la escena termina con bastante menos scroll y se siente
   menos tosca. El alto - 100svh de la escena fija es el recorrido real. */
html.js .story { height: 190vh; height: 190svh; }
html.js .story--md { height: 170vh; height: 170svh; }
.story__stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 80px; }
html.js .story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 76px 20px; overflow: hidden; }
.story--alt { background: var(--paper-2); border-block: 2px solid var(--ink); }
.story__grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.story__copy h2 { font-size: var(--step-3); }
.story .lead { margin-top: 14px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.story__art { display: grid; place-items: center; }
.story__art svg { width: min(100%, 520px); height: auto; max-height: 52vh; max-height: 52svh; overflow: visible; }
@media (min-width: 900px) { .story__art svg { max-height: 78vh; max-height: 78svh; } }
@media (max-width: 899px) {
  html.js .story .story__art { order: -1; }
  html.js .story .lead { display: none; }
  .story__copy h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
  /* Igual que el hero: la ilustración toma el espacio que sobra después del
     texto, los pasos y el botón. Con 40svh fijos, en pantallas cortas el
     botón de cada escena quedaba cortado por el overflow del contenedor. */
  html.js .story__stage { align-items: stretch; padding-block: 72px 14px; }
  html.js .story .story__grid { height: 100%; grid-template-rows: minmax(64px, 1fr) auto; align-items: stretch; gap: 14px; }
  /* El SVG se posiciona absoluto dentro de su hueco: así su alto es el del
     hueco de verdad y el viewBox se escala solo. Con un tope en svh el dibujo
     se quedaba a su tamaño y se encimaba con el título de la sección. */
  html.js .story .story__art { position: relative; }
  html.js .story .story__art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
  html.js .story .steps { gap: 8px; margin: 14px 0 18px; }
  /* En táctil cada swipe avanza menos píxeles: escenas aún más cortas */
  html.js .story { height: 175vh; height: 175svh; }
  html.js .story--md { height: 160vh; height: 160svh; }
}
.steps { display: grid; gap: 10px; margin: 22px 0 26px; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; color: var(--ink-2); transition: color .3s; }
.steps b { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 10px; font-family: var(--f-display); font-variation-settings: "wdth" 125; background: var(--paper); transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.steps li.is-on { color: var(--ink); }
.steps li.is-on b { background: var(--violet); color: #fff; box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
@media (max-width: 899px) { .steps { margin: 14px 0 16px; gap: 6px; font-size: var(--step--1); } .steps b { width: 32px; height: 32px; } .steps li { grid-template-columns: 32px 1fr; } }

/* NFC */
.nfc .phone__depth { fill: var(--ink); }
.nfc .phone__body { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.nfc .phone__screen { fill: var(--lilac); }
.nfc .phone__notch { fill: var(--ink); }
.nfc .card { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.nfc .avatar { fill: var(--violet); }
.nfc .paw { fill: #fff; }
.nfc .name { font-family: var(--f-display); font-weight: 850; font-variation-settings: "wdth" 120; font-size: 20px; fill: var(--ink); }
.nfc .sub { font-family: var(--f-body); font-size: 10.5px; fill: var(--ink-2); }
.nfc .call { fill: var(--violet); }
.nfc .call__t { font-family: var(--f-body); font-weight: 700; font-size: 12px; fill: #fff; }
.nfc .waves path { stroke: var(--violet); stroke-width: 5; stroke-linecap: round; }
.nfc .tag__ring { stroke: #8f8a99; stroke-width: 5; }
.nfc .tag__depth { fill: var(--violet-lo); }
.nfc .tag__shape { fill: var(--violet); stroke: var(--ink); stroke-width: 2.5; }
.nfc .tag__hole { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.nfc .tag__paw { fill: #fff; }
.facts { display: grid; gap: 12px; margin: 22px 0 26px; }
.facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 4px solid var(--violet); }
.facts b { font-weight: 750; }
.facts span { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 899px) { .facts { margin: 12px 0 16px; gap: 8px; } .facts li:nth-child(3) { display: none; } }

/* ---------- Escenas ilustradas (mismo lenguaje que la escena NFC) ---------- */
.scene { overflow: visible; }
.scene .depth, .scene .phone__depth { fill: var(--ink); }
.scene .body, .scene .phone__body { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.scene .screen { fill: var(--lilac); }
.scene .dots circle { fill: var(--ink); }
.scene .paper { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.scene .rule { stroke: var(--lilac); stroke-width: 2; fill: none; }
.scene .sketch { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.scene .dim path { fill: none; stroke: var(--violet); stroke-width: 2; }
.scene .dim text { font-family: var(--f-mono); font-size: 12px; fill: var(--violet); }
.scene .wood { fill: #f3e6cf; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.scene .lead-tip { fill: var(--ink); }
.scene .pbody { fill: var(--violet); stroke: var(--ink); stroke-width: 2; }
.scene .ferrule { fill: var(--lilac); stroke: var(--ink); stroke-width: 2; }
.scene .eraser { fill: var(--violet-hi); stroke: var(--ink); stroke-width: 2; }
.scene .wire path { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linejoin: round; }
.scene .slices path { stroke: var(--ink); stroke-opacity: .5; stroke-width: 1; }
.scene .solid-front { fill: var(--violet); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.scene .solid-back { fill: var(--violet-lo); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.scene .ok { fill: var(--ink); }
.scene .ok__t { font-family: var(--f-body); font-weight: 700; font-size: 11px; fill: #fff; }

/* Chat */
.chat .chat__bg { fill: var(--paper-2); }
.chat .chat__head { fill: var(--lilac); }
.chat .chat__avatar { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.chat .chat__name { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: 13px; fill: var(--ink); }
.chat .chat__status { font-family: var(--f-body); font-size: 10px; fill: var(--ink-2); }
.chat .b-me { fill: var(--violet); }
.chat .b-them { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.chat .b-photo, .chat .b-prev { fill: var(--lilac); }
.chat .t-me { font-family: var(--f-body); font-size: 11px; font-weight: 600; fill: #fff; }
.chat .t-them { font-family: var(--f-body); font-size: 11px; fill: var(--ink); }
.chat .t-b { font-weight: 700; }
.chat .t-small { font-family: var(--f-body); font-size: 9.5px; fill: var(--ink-2); }
.chat .t-mono { font-family: var(--f-mono); font-size: 9.5px; fill: var(--violet); }
.chat .bar-bg { fill: var(--lilac); }
.chat .bar { fill: var(--violet); }
.chat .typing circle { fill: var(--ink-2); }
.chat .mini-box path { fill: var(--lilac); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }

/* Envíos */
.ship .route__track { fill: none; stroke: var(--line); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.ship .route__line { fill: none; stroke: var(--violet); stroke-width: 4; stroke-linecap: round; }
.ship .pin path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.ship .pin circle { fill: var(--violet); }
.ship .pin--home path { fill: var(--violet); } .ship .pin--home circle { fill: var(--paper); }
.ship .pin text { font-family: var(--f-body); font-weight: 700; font-size: 12px; fill: var(--ink); }
.ship .van .mini { fill: var(--lilac); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ship .van .mini-l { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ship .box__side { fill: #d9ccf2; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ship .box__inside { fill: #3a3446; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ship .box__front { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.ship .box__flap { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ship .box__flap--back { fill: var(--lilac); }
.ship .box__lid { fill: var(--lilac); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ship .box__tape { stroke: var(--violet); stroke-width: 12; fill: none; }
.ship .box__label rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.ship .box__label .l1 { font-family: var(--f-display); font-weight: 850; font-variation-settings: "wdth" 120; font-size: 13px; fill: var(--violet); }
.ship .box__label .l2 { font-family: var(--f-body); font-size: 10px; fill: var(--ink); }
.ship .box__label .code { stroke: var(--ink); stroke-width: 2; }
.steps strong { color: var(--ink); font-weight: 750; }

/* ---------- Materiales ---------- */
.materials { background: var(--ink); color: #fff; padding-block: clamp(72px, 10vw, 130px); }
.spools { display: grid; gap: 34px; }
@media (min-width: 760px) { .spools { grid-template-columns: repeat(3, 1fr); } }
.spools li { display: grid; gap: 10px; align-content: start; }
.spools h3 { font-size: var(--step-2); font-variation-settings: "wdth" 125; }
.spools p { color: #cfc8de; }
.spool { width: 120px; height: 120px; margin-bottom: 8px; }
.spool .rim { fill: #1d1828; stroke: #fff; stroke-width: 3; }
.spool .wind { fill: var(--fc); }
.spool .tex { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 80; stroke-dasharray: 1.2 3; }
.spool .hub { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.spool .spoke { stroke: #fff; stroke-width: 3; stroke-linecap: round; }

/* ---------- Preguntas ---------- */
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--f-body); font-variation-settings: "wdth" 100; font-size: var(--step-0); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.faq summary i { flex: none; position: relative; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); transition: background-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background-color .25s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--violet); transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 22px 0; color: var(--ink-2); max-width: 46rem; }

/* ---------- Escuelas ---------- */
.school__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .school__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.school h2 { font-size: var(--step-3); }
.school .lead { margin-top: 14px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.school__art { position: relative; display: grid; place-items: end center; padding-bottom: 64px; min-height: 340px; }
.school__art img { position: relative; z-index: 2; width: min(78%, 380px); height: auto; filter: drop-shadow(10px 12px 0 rgb(14 11 20 / .12)); }
.school__art .plinth { width: min(86%, 440px); }
.school .steps li { color: var(--ink); }
.school .steps b { background: var(--violet); color: #fff; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Cierre ---------- */
.close { background: var(--paper-2); color: var(--ink); padding-block: clamp(72px, 10vw, 130px); border-top: 2px solid var(--ink); overflow: hidden; }
.close__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .close__grid { grid-template-columns: 1.1fr 1fr; } }
.close h2 { font-size: var(--step-3); }
.close p { margin: 18px 0 30px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 32rem; }
.close__art { display: grid; place-items: center; }
.slices { position: relative; width: min(78%, 360px); aspect-ratio: 820 / 955; }
.slices img { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }

/* ---------- Pie ---------- */
.foot { background: var(--paper); border-top: 2px solid var(--ink); }
.foot__grid { display: grid; gap: 34px; padding-block: 56px 36px; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-family: var(--f-body); font-variation-settings: "wdth" 100; font-size: 1rem; font-weight: 750; letter-spacing: 0; margin-bottom: 10px; }
.foot__tag { margin-top: 14px; color: var(--ink-2); max-width: 26rem; }
.foot address { font-style: normal; display: grid; gap: 4px; }
.foot address a, .foot__links a { display: inline-flex; min-height: 36px; align-items: center; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.foot__links { display: grid; gap: 2px; }
.muted { color: var(--ink-2); font-size: var(--step--1); }
.foot__legal { padding-block: 18px 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--violet); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.wa-float:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Responsive general ---------- */
@media (max-width: 899px) {
  .nav, .top__cta { display: none; }
  .menu-btn { display: block; }
}

/* Movimiento reducido: todo estático y completo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js .hero, html.js .story, html.js .story--md { height: auto; }
  .hero__stage, html.js .story__stage { position: relative; top: 0; height: auto; min-height: 0; padding-block: 60px; }
}

/* Lenis (scroll suave en escritorio) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
