/* =====================================================================
   Robricks Robótica — therobricks.com
   Negro dominante (navy solo como tinte), un escenario claro, verde operativo como evento.
   ===================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Negro dominante (tokens de therobricks.com). El navy es solo profundidad/tinte. */
  --ink-0: #050607;   /* hero, footer: lo más profundo */
  --ink-1: #0a0c0e;   /* fondo base */
  --ink-2: #101418;
  --ink-3: #161b21;   /* tarjetas */
  --ink-4: #232a32;   /* bordes */
  --ink-5: #313a44;
  --ink-6: #4a5560;
  --navy: #002b40;    /* nunca como superficie: solo tinte */
  --navy-glow: rgba(0, 90, 130, .07);
  --bg: var(--ink-1);
  --bg-deep: var(--ink-0);
  --surface: var(--ink-3);
  --surface-2: var(--ink-4);
  --on-accent: var(--ink-0);
  --light: #f5f5f7;
  --ink: #1d1d1f;
  --ink-mid: #515154;
  --text: #ffffff;
  --text-2: #b9c0c7;  /* 10.6:1 sobre ink-1 */
  --text-3: #8c959f;  /* 6.4:1 sobre ink-1, 5.6:1 sobre ink-3 */
  --accent: #8fbf4d;
  --accent-hi: #a6d163;
  --accent-print: #5c7a3e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --f-sans: "Montserrat", system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(.165, .84, .44, 1);   /* quart */
  --ease-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-micro: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);

  --gutter: 24px;
  --maxw: 1200px;
  --nav-h: 52px;
  --r-xl: 32px;
  --r-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Grano: textura muy leve para que el negro no se vea plano */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.mute { color: var(--text-3); }
.mute-d { color: #6e6e73; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible, .tile--light :focus-visible { outline-color: var(--accent-print); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow--dark { color: var(--accent-print); }

/* ---------- Logo (PNG enmascarado + línea redibujada con extremos rectos) ---------- */
.logo { position: relative; display: block; line-height: 0; transform: translateZ(0); isolation: isolate; flex: none; }
.logo img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 57.5%, transparent 57.5% 62%, #000 62% 100%);
  mask-image: linear-gradient(to bottom, #000 0 57.5%, transparent 57.5% 62%, #000 62% 100%);
}
.logo::after {
  content: ""; position: absolute;
  left: .25%; width: 99.25%; top: 57.5%; height: 4.5%;
  background: var(--accent);
  transform-origin: left center;
}
.logo--nav { width: 108px; }
.logo--foot { width: 116px; }

/* ---------- Botones pill ---------- */
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: .005em; line-height: 1;
  white-space: nowrap;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, transform .15s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 38px; padding: 9px 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .02); }
.btn--light { background: #fff; color: var(--on-accent); }
.btn--dark { background: var(--ink-1); color: #fff; }
.btn--ghost-d { color: var(--ink-1); box-shadow: inset 0 0 0 1px rgba(10, 12, 14, .3); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hi); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
  .btn--light:hover { background: #e4e7ea; }
  .btn--dark:hover { background: var(--ink-4); }
  .btn--ghost-d:hover { background: rgba(10, 12, 14, .06); }
  .btn:hover .i-arrow, .link-arrow:hover .i-arrow { transform: translateX(3px); }
}
.i-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-micro); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; padding: 10px 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 12, 14, .55);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease-io), background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(10, 12, 14, .78); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.nav__lang {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em;
  color: var(--text-2); padding: 5px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  margin-left: 8px; transition: color .15s ease-out, box-shadow .15s ease-out;
}
.nav__lang:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--text-3); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--text-2); padding: 8px 0; transition: color .15s ease-out; position: relative; }
.nav__links a:hover, .nav__links a.is-current { color: #fff; }
.nav__links a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); }
.nav .btn { margin-left: 4px; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.nav__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 72% 40%, var(--navy-glow), transparent 70%), var(--ink-0); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__halo {
  position: absolute; left: 50%; top: 52%;
  width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(143, 191, 77, .16), rgba(143, 191, 77, .05) 45%, transparent 72%);
}
/* Retícula técnica de respaldo (se ve bajo las partículas o si no cargan) */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180, 188, 196, .18) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 75%);
  opacity: .55;
}
.has-hero-particles .hero__bg::before { opacity: .18; }
.hero__bg::after { /* viñeta inferior para fundir con la sección siguiente */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 2px; min-height: 1.4em; margin-bottom: 28px; }
.caret { display: inline-block; width: .6em; height: 1.15em; background: var(--accent); margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__title {
  font-size: clamp(40px, 7.2vw, 96px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title .mute { color: var(--text-2); }
.hero__lead { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.5; }
.hero__ctas { margin-top: 36px; justify-content: center; flex-wrap: nowrap; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-3);
}
.hero__foot .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.hero__cue { display: flex; align-items: center; gap: 12px; }
.hero__cue i { position: relative; display: block; width: 1px; height: 36px; background: var(--line-2); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* Composición: en escritorio el texto va a la izquierda y el brazo de partículas
   queda a la derecha (el canvas es más ancho que la pantalla y su centro cae al 72 %).
   En móvil el texto sube y el brazo ocupa la mitad inferior. */
@media (min-width: 901px) {
  .hero__content { text-align: left; align-items: flex-start; }
  .hero__ctas { justify-content: flex-start; }
  .hero__title { font-size: clamp(44px, 5.7vw, 84px); max-width: none; }
  .hero__lead { max-width: 30ch; }
  .hero__canvas { right: auto; width: 144%; max-width: none; }
  .hero__halo { left: 72%; }
  .hero__bg::before { -webkit-mask-image: radial-gradient(ellipse 50% 60% at 72% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 50% 60% at 72% 50%, #000, transparent 75%); }
}
@media (max-width: 900px) {
  .hero { justify-content: flex-start; padding-top: calc(var(--nav-h) + 56px); }
  .hero__canvas { top: 50%; height: 58%; }
  .hero__halo { top: 76%; }
  .hero__bg::before { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000, transparent 75%); }
  .hero__foot { display: none; }
}

/* ---------- 2. Showcase ---------- */
.showcase { padding: 24px 8px 0; }
.showcase__card {
  position: relative;
  height: min(88vh, 860px);
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  transform-origin: 50% 0%;
  will-change: transform;
}
.showcase__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.showcase__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 12, 14, .25) 0%, rgba(10, 12, 14, 0) 30%, rgba(10, 12, 14, .2) 55%, rgba(5, 6, 7, .92) 100%),
  linear-gradient(90deg, rgba(5, 6, 7, .5), transparent 60%);
  mix-blend-mode: normal; }
.showcase__cap { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 6vw, 64px); right: 20px; }
.showcase__title { margin-top: 18px; font-size: clamp(34px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.035em; line-height: 1; max-width: 12ch; }
.chip {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 12, 14, .55); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.showcase__ticks i { position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, .5); border-style: solid; border-width: 0; }
.showcase__ticks i:nth-child(1) { top: 20px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.showcase__ticks i:nth-child(2) { top: 20px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.showcase__ticks i:nth-child(3) { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.showcase__ticks i:nth-child(4) { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- 3. Manifiesto ---------- */
.manifesto { padding: clamp(96px, 14vw, 180px) 0 clamp(96px, 12vw, 160px); overflow: hidden; }
.arc { margin-bottom: clamp(48px, 7vw, 96px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.arc__row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.arc__row li {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em;
  padding: 12px 18px; border-radius: 999px;
  color: var(--text-2); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.arc__row li:nth-child(4n+2) { color: var(--accent); }
.manifesto__text {
  font-size: clamp(27px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.022em;
  max-width: 24ch;
  text-wrap: pretty;
}
.manifesto__ctas { margin-top: 40px; }

/* ---------- 4. Proceso ---------- */
.process { position: relative; border-top: 1px solid var(--line); }
.process__pin { padding: calc(var(--nav-h) + 48px) 0 72px; }
.motion .process__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 32px; }
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.process__title { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.process__meter { display: flex; align-items: center; gap: 16px; margin: 36px 0 28px; color: var(--text-3); }
.process__count b { color: #fff; font-weight: 500; }
.process__bar { position: relative; flex: 1; max-width: 220px; height: 1px; background: var(--line-2); }
.process__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.25); }
.step { padding: 18px 0; border-top: 1px solid var(--line); }
.step__k { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.step__t { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.step__p { margin-top: 12px; color: var(--text-2); max-width: 42ch; }
.step__d { margin-top: 14px; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
/* Con movimiento: un paso a la vez; al hacer scroll el actual se desvanece y entra el siguiente */
.motion .steps { display: grid; }
.motion .step { grid-area: 1 / 1; border-top: 0; padding: 0; opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease-out), transform .38s var(--ease-out); pointer-events: none; }
.motion .step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.process__meter { display: none; }
.motion .process__meter { display: flex; }

.process__stage {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 52% at 50% 50%, rgba(74, 85, 96, .14), transparent 72%),
    linear-gradient(180deg, #0a0c0e, #050607);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(12px, 2vw, 28px);
  aspect-ratio: 640 / 520;
}
.stage__corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent); opacity: .7; }
.stage__corner.tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.stage__corner.tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.stage__corner.bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.stage__corner.br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

/* Celda isométrica (generada por tools/build-cell.js + assets/js/cell.js) */
.cell { width: 100%; height: 100%; overflow: visible; }
.cell path { stroke-linejoin: round; stroke-linecap: round; }
.cell path:not([class]) { stroke: rgba(222, 232, 240, .07); stroke-width: .5; }
.cell .shd { fill: #000; filter: url(#cell-sh); }
.cell .hose-o { fill: none; stroke: rgba(232, 240, 246, .34); stroke-width: 4.4; }
.cell .hose { fill: none; stroke: #2b333c; stroke-width: 3; }
.cell .o { fill: none; stroke: rgba(222, 232, 240, .3); stroke-width: .8; }
.cell .o--soft { stroke: rgba(222, 232, 240, .16); }
.cell .o--fence { stroke: rgba(222, 232, 240, .3); stroke-width: .65; }
.cell .o--door { stroke: rgba(222, 232, 240, .42); stroke-width: .8; }
.cell .e { fill: none; stroke: rgba(222, 232, 240, .16); stroke-width: .55; }
.cell .rob .o { stroke: rgba(236, 242, 247, .82); stroke-width: 1; }
.cell .rob .e { stroke: rgba(236, 242, 247, .32); }
.cell .gl { fill: none; stroke: rgba(196, 206, 214, .14); stroke-width: .6; }
.cell .hz { fill: none; stroke: rgba(222, 232, 240, .22); stroke-width: .5; }
.cell .d { fill: none; stroke: rgba(222, 232, 240, .55); stroke-width: .8; }
.cell .d.acc { stroke: rgba(143, 191, 77, .9); stroke-width: 1.1; }
.cell .d.fp { stroke: rgba(222, 232, 240, .5); stroke-width: .75; }
.cell .d.dim { stroke: rgba(196, 206, 214, .5); stroke-width: .6; }
.cell .dash { fill: none; stroke: rgba(143, 191, 77, .6); stroke-width: .8; stroke-dasharray: 4 4; }
.cell .cutl { fill: none; stroke: rgba(222, 232, 240, .3); stroke-width: .7; stroke-dasharray: 5 4; }
.cell .mk { fill: none; stroke: rgba(222, 232, 240, .28); stroke-width: 1.2; }
.cell .mesh { stroke: none; }
.cell .fr { fill: none; stroke: rgba(222, 232, 240, .3); stroke-width: .7; }
.cell .fr--in { stroke: rgba(222, 232, 240, .12); stroke-width: .5; }
.cell .fr--door { stroke: rgba(222, 232, 240, .34); stroke-width: .8; }
.cell .fence-front { opacity: .85; }
html:not(.motion) .cell .s1 { opacity: .5; }
.cell .tint { opacity: .75; }
.cell .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; fill: var(--text-3); }
.cell .lbl--iso { font-size: 11.5px; letter-spacing: .1em; fill: rgba(206, 216, 224, .78); }
.cell .lbl--fp { font-size: 9px; fill: rgba(196, 206, 214, .55); }
.cell .lbl--acc { fill: rgba(143, 191, 77, .85); }
.cell .lbl--on { fill: var(--accent); }
.cell .lead { fill: none; stroke: rgba(196, 206, 214, .45); stroke-width: .7; }
.cell .lead-dot { fill: rgba(222, 232, 240, .8); }
.cell .beacon { fill: var(--accent); }
.cell .hmi-scr { fill: rgba(143, 191, 77, .2); stroke: rgba(143, 191, 77, .5); stroke-width: .5; }
.cell .hmi-ui { fill: rgba(143, 191, 77, .35); stroke: none; }
.cell .hmi-ui--acc { fill: rgba(143, 191, 77, .6); }
.cell .led { fill: var(--accent); }
.cell .status__dot { fill: var(--accent); font-size: 9.5px; }
.cell .lbl--sheet { fill: rgba(140, 149, 159, .7); }
.cell .door-open { opacity: 0; }

/* ---------- 5. Escenario claro ---------- */
.light { background: var(--light); color: var(--ink); }
.specs {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  border-radius: 40px 40px 0 0;
  margin-top: 40px;
}
.specs__title { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; max-width: 14ch; }
.specs__sub { margin-top: 20px; font-size: clamp(19px, 2vw, 26px); color: var(--ink-mid); letter-spacing: -.01em; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(0, 0, 0, .1); }
.fig { display: flex; flex-direction: column; gap: 8px; padding: 36px 32px 0 0; }
.fig + .fig { padding-left: 32px; border-left: 1px solid rgba(0, 0, 0, .1); }
.fig__pre { font-size: 14px; color: var(--ink-mid); font-weight: 500; }
.fig__val { font-size: clamp(40px, 5vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig__val .roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.fig__val .roll > span { display: flex; flex-direction: column; }
.fig__val .roll > span > span { height: 1em; }
.fig__val em { font-style: normal; color: var(--accent-print); }
.fig__post { font-size: 15px; color: var(--ink-mid); max-width: 26ch; }

.equip { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.equip__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.equip__list li {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px;
  padding: 22px 0; border-top: 1px solid rgba(0, 0, 0, .1);
}
.equip__list li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.equip__list li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent-print); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-expo); }
.equip__list li:hover::before { transform: scaleX(1); }
.equip__list .mono { color: var(--accent-print); grid-row: span 2; padding-top: 6px; }
.equip__list b { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.equip__list li > span:last-child { color: var(--ink-mid); font-size: 15px; }

/* ---------- 6. Bento ---------- */
.bento-sec { padding: clamp(96px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.sec-title { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.sec-sub { color: var(--text-2); max-width: 40ch; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative;
  min-height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  isolation: isolate;
}
.tile--wide { grid-column: span 2; min-height: 600px; }
.tile__body { position: relative; z-index: 2; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.tile__t { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-width: 16ch; }
.tile__s { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 34ch; }
.tile .cta-pair { margin-top: 26px; }
.tile .eyebrow { margin-bottom: 14px; font-size: 12px; }
.tile--photo .tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transform: scale(1.12); }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(5, 6, 7, .82) 0%, rgba(5, 6, 7, .35) 55%, rgba(5, 6, 7, .1) 100%); }
.tile--photo .tile__s { color: #d6dadd; }
.tile--wide.tile--photo { justify-content: flex-end; }
.tile--wide.tile--photo::before { background: linear-gradient(0deg, rgba(5, 6, 7, .9) 0%, rgba(5, 6, 7, .4) 50%, rgba(5, 6, 7, .05) 100%); }
.tile--ink { background: radial-gradient(110% 70% at 0% 0%, var(--navy-glow), transparent 65%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line); }
.tile--light { background: #eceef0; color: var(--ink); }
.tile--light .tile__s { color: var(--ink-mid); }
.tile__viz { margin-top: auto; }
.tile--split { flex-direction: row; align-items: stretch; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 440px; }
.tile--split .tile__body { flex: 1; justify-content: center; }
.tile__spec { flex: 1; align-self: center; margin-right: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line-2); }
.tile__spec li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.tile__spec li span:last-child { color: var(--accent); }

/* viz: seis ejes */
.viz-axes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.viz-axes span {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.viz-axes span::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--p, 0%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
/* viz: ruido → señal limpia */
.viz-noise { width: 100%; height: 170px; padding: 0; }
.viz-noise path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.noise-raw { stroke: rgba(10, 12, 14, .3); stroke-width: 1.3; }
.noise-clean { stroke: var(--accent-print); stroke-width: 2; }
/* viz: bus HMI–PLC–robot */
.viz-bus { display: flex; align-items: center; padding: 0 clamp(28px, 4vw, 52px) clamp(36px, 4vw, 56px); }
.viz-bus .node { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.viz-bus .wire { position: relative; flex: 1; height: 1px; background: var(--line-2); margin: 0 6px; }
.viz-bus .wire b { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.motion .viz-bus .wire b { animation: packet 2.4s var(--ease-io) infinite; }
.motion .viz-bus .wire + .node + .wire b { animation-delay: 1.2s; }
@keyframes packet { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 5px); opacity: 0; } }

/* ---------- 7. Sectores ---------- */
.sectors { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.sectors__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sectors .sec-title { font-size: clamp(36px, 4vw, 56px); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 36px 0 28px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background-color .25s var(--ease-out), color .25s; white-space: nowrap; }
.tab[aria-selected="true"] { background: #fff; color: var(--on-accent); }
.tab:hover { color: #fff; }
.tab[aria-selected="true"]:hover { color: var(--on-accent); }
.panels { min-height: 150px; margin-bottom: 28px; }
.panel__t { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.panel p { margin-top: 10px; color: var(--text-2); max-width: 40ch; }
.motion .panel.is-active { animation: panelIn .5s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.sectors__stage {
  position: relative; aspect-ratio: 7 / 6;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sectors__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.sectors__photos img.is-on { opacity: .5; transform: none; }
.has-field-particles .sectors__photos img.is-on { opacity: .16; }
.sectors__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 50% 50%, transparent 25%, rgba(5, 6, 7, .9)); }
.sectors__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sectors__readout { position: absolute; left: 20px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(143, 191, 77, .18); }
.motion .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143, 191, 77, 0); } }

/* ---------- 8. Seguridad ---------- */
.safety .sec-title .mute { display: block; }
.safety { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.safety__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.safety__head .sec-sub { margin-top: 24px; }
.acr li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 24px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.acr li:last-child { border-bottom: 1px solid var(--line); }
.acr__k { font-size: clamp(44px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.04em; line-height: .9; color: #fff; }
.motion .acr__k { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); background: linear-gradient(90deg, #fff 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.acr__d { color: var(--text-2); max-width: 30ch; }

/* ---------- 9. CTA final ---------- */
.final { padding: 0 8px clamp(40px, 6vw, 80px); }
.final__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 70% at 90% 0%, var(--navy-glow), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--ink-0));
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  transform-origin: 50% 100%;
}
.final__halo { position: absolute; right: -10%; top: -20%; width: 80%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(143, 191, 77, .2), transparent 70%); }
.final__dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.final__body { padding: clamp(28px, 6vw, 80px); max-width: 980px; }
.final__title { font-size: clamp(40px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #ffffff 0%, #e6f0d9 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.final__sub { margin-top: 24px; max-width: 44ch; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); }
.final .cta-pair { margin-top: 36px; }
.final__lines { margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; }
.final__lines li { display: flex; flex-direction: column; gap: 4px; }
.final__lines li > span:first-child { color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.final__lines a { color: #fff; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.final__lines a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; background: var(--ink-0); }
.footer__top { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 32px; }
.footer__tag { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; max-width: 16ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col a { color: var(--text-2); transition: color .15s; width: max-content; padding: 2px 0; }
.footer__col a:hover { color: #fff; }
.footer__h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.wordmark { position: relative; margin: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); padding: 0 var(--gutter); }
.wordmark__txt {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  font-size: clamp(52px, 15.2vw, 236px); font-weight: 800; letter-spacing: -.02em; line-height: .78;
  color: var(--ink-4);
  max-width: calc(var(--maxw) + 120px); margin: 0 auto;
  user-select: none;
}
.wordmark__txt span { display: inline-block; }
.has-foot-particles .wordmark__txt { opacity: 0; }
.wordmark__canvas { position: absolute; inset: -12% 0; width: 100%; height: 124%; z-index: 2; pointer-events: none; }
.wordmark__line { display: block; height: clamp(3px, .45vw, 6px); max-width: calc(var(--maxw) + 120px); margin: clamp(12px, 1.6vw, 22px) auto 0; background: var(--accent-print); transform-origin: 0 50%; }
.footer__legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__links { margin-left: auto; display: flex; gap: 20px; }
.footer__links a { color: var(--text-2); transition: color .15s; }
.footer__links a:hover { color: #fff; }

/* ---------- Cursor píldora ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  display: none; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #fff; color: var(--on-accent); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.cursor__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-print); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
  .has-cursor [data-cursor] { cursor: none; }
  .has-cursor [data-cursor] a, .has-cursor [data-cursor] button { cursor: pointer; }
}

/* ---------- Diálogo de alcance ---------- */
.scope {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: #f5f5f7; color: var(--ink);
}
.scope::backdrop { background: rgba(5, 6, 7, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.scope[open] { animation: dlgIn .35s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.scope__in { position: relative; padding: 40px 36px 32px; }
.scope__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .06); }
.scope__x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.scope__x:hover { background: rgba(0, 0, 0, .1); }
.scope__content h3 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; padding-right: 40px; }
.scope__content ul { margin: 20px 0; }
.scope__content li { padding: 10px 0 10px 22px; border-top: 1px solid rgba(0, 0, 0, .08); position: relative; color: var(--ink-mid); font-size: 15.5px; }
.scope__content li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--accent-print); }
.scope__content .mono { color: var(--accent-print); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; }
.scope .btn--primary { background: var(--ink-1); color: #fff; }

/* ---------- Estados iniciales de entrada (solo con JS + movimiento) ---------- */
.motion [data-fade], .motion .hero__eyebrow { opacity: 0; }
.motion [data-split] { visibility: hidden; }
.motion.ready-split [data-split] { visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { gap: 20px; }
  .figures .fig { padding-right: 20px; }
  .fig + .fig { padding-left: 20px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__lang { margin-left: auto; }
  .process__grid, .sectors__grid, .safety__grid, .sec-head, .equip { grid-template-columns: 1fr; }
  .sec-head { gap: 20px; }
  .equip { gap: 28px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --r-xl: 24px; }
  body { font-size: 16px; }
  .hero { padding-bottom: 96px; }
  .hero__foot .mono:first-child { display: none; }
  .hero__foot { justify-content: center; }
  .showcase { padding: 16px 6px 0; }
  .showcase__card { height: 72vh; min-height: 420px; }
  .figures { grid-template-columns: 1fr; }
  .fig, .fig + .fig { padding: 28px 0; border-left: 0; }
  .fig + .fig { border-top: 1px solid rgba(0, 0, 0, .1); }
  .specs { border-radius: 28px 28px 0 0; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; min-height: 480px; }
  .tile--split { flex-direction: column; min-height: 0; }
  .tile__spec { margin: 0 28px 32px; align-self: stretch; }
  .tile__body { padding: 28px; }
  .viz-axes, .viz-bus { padding-left: 28px; padding-right: 28px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 10px 8px; font-size: 13.5px; }
  .acr li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .final { padding: 0 6px 32px; }
  .final__card { min-height: 0; }
  .final__lines { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__tag { grid-column: 1 / -1; }
  .footer__links { margin-left: 0; }
  .wordmark { padding: 0 12px; }
  .scope__in { padding: 36px 22px 24px; }

  /* Proceso en móvil: dibujo arriba, texto abajo, sigue fijado */
  .process__pin { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 40px; }
  .motion .process__pin { align-items: flex-start; padding-bottom: 24px; }
  .motion .process__grid { gap: 18px; }
  .motion .process__stage { order: -1; aspect-ratio: 640 / 500; padding: 6px; }
  .cell .lbl { font-size: 16px; letter-spacing: .06em; }
  .cell .status__dot { font-size: 12px; }
  .cell .co, .cell .lbl--iso { display: none; }
  .motion .process .eyebrow { margin-bottom: 8px; }
  .motion .process__title { font-size: 30px; }
  .motion .process__meter { margin: 14px 0 14px; }
  .motion .step__t { font-size: 22px; margin-top: 6px; }
  .motion .step__p { font-size: 15px; margin-top: 8px; }
  .motion .step__d { margin-top: 10px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .caret { animation: none; }
  .hero__cue i::after { display: none; }
}
