/* ============================================================
   COMANCHE · Señales, no corazonadas.
   Sistema: blueprint sobre papel gris cálido
   (líneas punteadas, dos verdes eléctricos, lavanda en oscuro)
   ============================================================ */

:root {
  --bg: #E9E9E9;          /* lienzo gris cálido */
  --fog: #EEEEEE;         /* nav, tarjetas, footer */
  --slate: #3D3B4F;       /* tinta principal y bandas oscuras */
  --onyx: #2A2A2A;        /* texto secundario */
  --green: #28E99F;       /* acento principal */
  --lime: #ECFFA3;        /* CTA sobre oscuro */
  --seafoam: #C5FFD6;     /* marcador / steps */
  --lavender: #FFCFFE;    /* texto sobre slate */
  --magenta: #FFACFE;     /* chips sobre oscuro */
  --blue: #5882FF;        /* acento sección offline */
  --silver: #D6D6D6;      /* bordes punteados */
  --border: rgba(85, 83, 104, 0.3);
  --muted: #6A6A6A;

  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 7.5rem;
  --maxw: 100rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* grano de película sobre todo, estático */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--green); color: #000; }

.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.container { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- Tipografía ---------- */
.label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.label-xs { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.label--blue { color: var(--blue); }
.label--seafoam { color: var(--seafoam); }

.h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}
.accent { color: var(--green); }
.accent-lime { color: var(--lime); }
.accent-blue { color: var(--blue); }

.lede { max-width: 44rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--onyx); }
.lede--dark { color: var(--fog); opacity: 0.85; }
.lede strong { font-weight: 700; }

/* marcador fosforescente que se barre al entrar */
.hl { position: relative; white-space: nowrap; }
.hl::before {
  content: "";
  position: absolute;
  inset: -0.05em -0.15em;
  background: var(--seafoam);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.2s;
}
.is-in .hl::before, .hl.hl--on::before { transform: scaleX(1); }

/* ---------- Entradas blur-in (firma greptile) ---------- */
.reveal, .blurin {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.985) translateY(10px);
  transition: opacity 0.7s var(--ease-out) var(--d, 0s),
              filter 0.7s var(--ease-out) var(--d, 0s),
              transform 0.7s var(--ease-out) var(--d, 0s);
}
.reveal.is-in, .blurin.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ---------- Divisores (la gramática del sitio) ---------- */
.divider-plus {
  height: 9px;
  flex: 1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='9'%3E%3Cpath d='M12 0v9M7.5 4.5h9' stroke='%232A2A2A' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}
.divider-hatch-v {
  width: 10px;
  opacity: 0.3;
  background: repeating-linear-gradient(-55deg, currentColor 0 1px, transparent 1px 5px);
}
.divider-hatch-v--dark { color: var(--lavender); }
.divider-double {
  height: 32px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

/* ---------- Botones hexagonales (chevrón) ---------- */
.bhx {
  --arrow: 13px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.85em 1.8em;
  clip-path: polygon(var(--arrow) 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, var(--arrow) 100%, 0 50%);
  transition: transform 0.2s var(--ease-out), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.bhx--green { background: var(--green); color: #000; }
.bhx--green:hover { background: #1fd790; }
.bhx--lime { background: var(--lime); color: var(--slate); }
.bhx--outline { background: var(--slate); color: var(--slate); z-index: 0; }
.bhx--outline::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  clip-path: polygon(var(--arrow) 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, var(--arrow) 100%, 0 50%);
  transition: background 0.25s;
}
.bhx--outline:hover { color: #000; }
.bhx--outline:hover::after { background: var(--seafoam); }
.bhx--full { width: 100%; }
.bhx-group { display: inline-flex; }
.bhx-group .bhx + .bhx { margin-left: calc(-1 * var(--arrow) + 4px); }
.bhx-group:hover .bhx:first-child { transform: translateX(-4px); }
.bhx:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
@media (max-width: 600px) {
  .bhx { white-space: normal; text-align: center; max-width: 100%; font-size: 0.88rem; }
  .bhx-group { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .bhx-group .bhx + .bhx { margin-left: 0; }
  /* el hero NO se queda pegado en mobile */
  .hero-wrap { height: auto; }
  .hero-stage { position: relative; height: 100svh; transform: none !important; border-radius: 0 !important; }
}

/* puntito de vida */
.livedot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  vertical-align: 0.05em;
}
.livedot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.livedot--green { background: var(--green); }

/* ---------- Funnel bar (HUD) ---------- */
.funnelbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 8600; }
.funnelbar__fill { display: block; height: 100%; width: 0; background: var(--green); }
.funnelbar__label {
  position: fixed;
  bottom: 14px;
  right: 14px;
  font-size: 0.58rem;
  color: var(--slate);
  background: rgba(238, 238, 238, 0.85);
  backdrop-filter: blur(4px);
  border: 1px dashed var(--slate);
  padding: 0.35em 0.9em;
  border-radius: 99px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.funnelbar.is-scrolled .funnelbar__label { opacity: 1; transform: translateY(0); }
@media (max-width: 760px) { .funnelbar__label { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: var(--pad);
  background: var(--fog);
  border-bottom: 1px dashed rgba(61, 59, 79, 0.25);
  transition: transform 0.4s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 6.3rem; width: auto; }
@media (max-width: 900px) {
  :root { --nav-h: 4.6rem; }
  .nav__logo img { height: 3.4rem; }
}
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); font-size: 0.92rem; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--slate);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__talk { color: var(--slate); font-weight: 700; }
.nav__talk::before { content: "● "; color: var(--green); font-size: 0.7em; vertical-align: 0.15em; }
.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__burger { display: grid; gap: 6px; width: 2.2rem; padding: 0.4rem 0; z-index: 2; }
  .nav__burger span { height: 2px; background: var(--slate); transition: transform 0.3s var(--ease-out); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--fog);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  .nav.menu-open .nav__links {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.45s var(--ease-out), visibility 0s;
  }
}

/* ============================================================
   HERO: pluma de partículas + handoff escena-a-tarjeta
   ============================================================ */
.hero-wrap { height: 170vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  transform-origin: bottom center;
  z-index: 1;
  /* texturas dispersas estilo blueprint */
  background-image:
    radial-gradient(ellipse 40% 30% at 12% 78%, rgba(0,0,0,0.045) 0%, transparent 70%),
    radial-gradient(ellipse 30% 26% at 88% 18%, rgba(0,0,0,0.04) 0%, transparent 70%);
}
.hero {
  position: relative;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem)) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 7.6vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 8.5em;
  margin-top: clamp(0.5rem, 2vh, 1.5rem);
  position: relative;
  z-index: 2;
}
.hero__foot { position: relative; z-index: 2; max-width: 34rem; }
.hero__copy p { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--onyx); margin-bottom: 1.6rem; max-width: 30rem; }
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero__featherlabel {
  position: absolute;
  right: var(--pad);
  bottom: 1.2rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
@media (max-width: 760px) {
  .hero__field { opacity: 0.85; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.8rem); }
}

/* rieles punteados en los bordes (firma greptile) */
.rail {
  position: absolute;
  top: 0; bottom: 0;
  width: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 0h6M0 0v6' stroke='%232A2A2A' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E");
  z-index: 3;
}
.rail--left { left: 0; border-right: 1px dashed var(--silver); }
.rail--right { right: 0; border-left: 1px dashed var(--silver); }

/* ---------- Strip social proof ---------- */
.strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--border);
  border-bottom: 1px dashed var(--silver);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.strip__text { font-size: 0.7rem; letter-spacing: 0.18em; text-align: center; white-space: nowrap; }
@media (max-width: 900px) {
  .strip__text { white-space: normal; font-size: 0.62rem; }
  .strip__text .hl { white-space: normal; }
}

/* ---------- Logo wall ---------- */
.wall { position: relative; z-index: 2; background: var(--bg); }
.wall__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .wall__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .wall__grid { grid-template-columns: repeat(2, 1fr); } }
.wall__grid .logoitem {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  padding: 1.1rem 1.4rem;
  border-right: 1px dashed var(--silver);
  border-bottom: 1px dashed var(--silver);
  background: rgba(238, 238, 238, 0.5);
  transition: background 0.3s;
}
.wall__grid .logoitem:hover { background: var(--fog); }
.wall__grid .logoitem img {
  max-height: 34px;
  max-width: min(75%, 150px);
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.35);
  opacity: 0.7;
  transition: opacity 0.3s, filter 0.3s;
}
.wall__grid .logoitem:hover img { opacity: 1; filter: grayscale(0) brightness(0.2); }
.wall__grid .logoitem[data-slug="amppi"] img { filter: grayscale(1); max-height: 25px; max-width: min(60%, 95px); opacity: 0.9; }
.wall__grid .logoitem[data-slug="amppi"]:hover img { filter: grayscale(1) brightness(0.45); opacity: 1; }
.logoitem { position: relative; }
.logoitem i { display: none; font-style: normal; font-weight: 700; font-size: 0.95rem; color: var(--slate); text-align: center; }
.logoitem.nologo img { display: none; }
.logoitem.nologo i { display: block; }

/* ---------- Ethos ---------- */
.ethos { background: var(--bg); position: relative; z-index: 2; border-top: 1px solid var(--border); }
.ethos__grid {
  display: grid;
  grid-template-columns: 1fr 10px 1fr 10px 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 860px) {
  .ethos__grid { grid-template-columns: 1fr; }
  .ethos__grid .divider-hatch-v { width: 100%; height: 10px; }
}
.ecard .label-xs { color: var(--muted); margin-bottom: 1.6rem; }
.ecard h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
.ecard p { color: var(--muted); font-size: 0.98rem; max-width: 26rem; }

/* ============================================================
   SERVICIOS: walkthrough pinneado (banda oscura)
   ============================================================ */
.walk-wrap { height: calc(100vh + 6 * 65vh); position: relative; z-index: 2; }
.walk-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--slate);
  color: var(--lavender);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* grid que respira (grid-pulse) */
  background-image:
    linear-gradient(var(--grid-c, rgba(40, 233, 159, 0.05)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c, rgba(40, 233, 159, 0.05)) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-pulse 4s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { --grid-c: rgba(40, 233, 159, 0.05); }
  50% { --grid-c: rgba(40, 233, 159, 0.12); }
}
@property --grid-c { syntax: "<color>"; inherits: false; initial-value: rgba(40, 233, 159, 0.05); }
.walk { width: 100%; }
.walk__head { padding-top: var(--nav-h); margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.walk__head .label { color: var(--seafoam); }
.walk__body {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.walk__rail { display: grid; gap: 0.4rem; border-left: 1px dashed rgba(255, 207, 254, 0.25); }
.walk__rail button {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  text-align: left;
  padding: 0.7em 1em;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 207, 254, 0.45);
  transition: color 0.3s, background 0.3s;
  position: relative;
}
.walk__rail button .mono { font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(197, 255, 214, 0.5); }
.walk__rail button.is-active { color: var(--lavender); background: rgba(197, 255, 214, 0.07); }
.walk__rail button.is-active .mono { color: var(--seafoam); }
.walk__rail button.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
}
.walk__rail button:hover { color: var(--lavender); }
.walk__panels { position: relative; min-height: clamp(20rem, 52vh, 30rem); }
.wpanel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateY(14px);
  filter: blur(5px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
  pointer-events: none;
  border: 1px dashed rgba(255, 207, 254, 0.25);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.wpanel.is-active { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.wpanel .label-xs { color: var(--seafoam); margin-bottom: 1.2rem; }
.wpanel h3 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.wpanel > p { color: rgba(255, 207, 254, 0.75); max-width: 34rem; font-size: 1.02rem; }
.wtags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.wtags li {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px dashed rgba(255, 172, 254, 0.4);
  color: var(--magenta);
  padding: 0.4em 0.9em;
}
@media (max-width: 900px) {
  .walk__head { padding-top: calc(var(--nav-h) + 0.5rem); margin-bottom: 1.2rem; }
  .walk__head .h2 { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
  .walk__body { grid-template-columns: 1fr; gap: 1rem; }
  .walk__rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; border-left: 0; }
  .walk__rail button { font-size: 0.72rem; padding: 0.55em 0.7em; gap: 0.5em; }
  .walk__rail button .mono { font-size: 0.54rem; }
  .walk__rail button.is-active::before { width: 100%; height: 2px; top: auto; bottom: 0; left: 0; }
  .walk__panels { min-height: clamp(16rem, 44svh, 23rem); }
  .wpanel { padding: 1.2rem 1.3rem; }
  .wpanel h3 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .wpanel > p { font-size: 0.92rem; }
}

/* ============================================================
   AI: zoom hacia adentro de la terminal
   ============================================================ */
.tzoom-wrap { height: 280vh; position: relative; z-index: 2; }
.tzoom-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.tzoom__intro {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.5rem));
  left: 0; right: 0;
  text-align: center;
  padding-inline: var(--pad);
}
.tzoom__intro .label { color: var(--muted); }
.terminal {
  width: min(880px, 94vw);
  background: var(--slate);
  border: 1px solid rgba(85, 83, 104, 0.5);
  box-shadow: 0 30px 80px rgba(42, 42, 42, 0.25);
  transform-origin: center 60%;
  will-change: transform;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px dashed rgba(255, 207, 254, 0.25);
}
.terminal__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 207, 254, 0.25); }
.terminal__bar span:first-child { background: var(--green); }
.terminal__bar p { margin-left: auto; font-size: 0.6rem; color: rgba(255, 207, 254, 0.6); letter-spacing: 0.1em; }
.terminal__body {
  padding: 1.3rem 1.4rem 1.7rem;
  min-height: clamp(300px, 48vh, 420px);
  font-size: 0.8rem;
  line-height: 1.95;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
}
.terminal__body .t-line { display: block; }
.terminal__body .t-dim { color: rgba(238, 238, 238, 0.45); }
.terminal__body .t-accent { color: var(--green); }
.terminal__body .t-mag { color: var(--magenta); }
.terminal__body .t-ok { color: var(--lime); }
.terminal__body .t-cursor {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- AI capacidades ---------- */
.aicaps { background: var(--bg); position: relative; z-index: 2; border-top: 1px dashed var(--silver); }
.aicaps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1px;
  background: var(--silver);
  border: 1px dashed var(--silver);
}
.acap { background: var(--bg); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.acap .label-xs { color: var(--green); margin-bottom: 1.2rem; }
.acap h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.acap p { color: var(--muted); font-size: 0.95rem; }
.aicaps__note { margin-top: clamp(2rem, 4vw, 3rem); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40rem; }
.sectioncta { margin-top: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   OFFLINE (acento azul + bandas repeater)
   ============================================================ */
.offline { background: var(--bg); position: relative; z-index: 2; }
.repeater {
  overflow: hidden;
  border-top: 1px dashed rgba(88, 130, 255, 0.25);
  border-bottom: 1px dashed rgba(88, 130, 255, 0.25);
  padding: 0.45rem 0;
}
.repeater__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(88, 130, 255, 0.55);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 1.25rem)); } }
.funnel { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 0.55rem; }
.fstep {
  border: 1px dashed var(--slate);
  background: var(--fog);
  padding: clamp(1.1rem, 2.2vw, 1.8rem) clamp(1.3rem, 2.8vw, 2.4rem);
  display: grid;
  grid-template-columns: 3.5rem 11rem 1fr;
  gap: 0.3rem 2rem;
  align-items: baseline;
  width: 100%;
  margin-inline: auto;
  transition: background 0.3s, border-color 0.3s;
}
.fstep[data-step="2"] { width: 92%; }
.fstep[data-step="3"] { width: 84%; }
.fstep[data-step="4"] { width: 76%; }
.fstep[data-step="5"] { width: 68%; }
.fstep:hover { background: #fff; border-color: var(--blue); }
.fstep__num { font-size: 0.68rem; color: var(--blue); }
.fstep h3 { font-family: var(--font-display); font-weight: 720; font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -0.02em; }
.fstep p:last-child { color: var(--muted); font-size: 0.94rem; }
.fstep--last { background: var(--blue); border-color: var(--blue); color: #fff; }
.fstep--last .fstep__num { color: var(--seafoam); }
.fstep--last p:last-child { color: rgba(255, 255, 255, 0.85); }
.fstep--last:hover { background: #4a73f0; }
@media (max-width: 760px) {
  .fstep { grid-template-columns: 1fr; }
  .fstep[data-step] { width: 100%; }
}
.offline__note { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 40rem; }
.offline__note .mono { color: var(--blue); font-size: 0.8em; letter-spacing: 0.1em; }

/* ---------- Modelos ---------- */
.models { background: var(--bg); position: relative; z-index: 2; border-top: 1px solid var(--border); }
.models__tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: clamp(1.8rem, 3.5vw, 2.6rem) 0; }
.mtab {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.65em 1.5em;
  border: 1px dashed var(--slate);
  color: var(--muted);
  transition: all 0.25s;
}
.mtab:hover { color: var(--slate); background: var(--fog); }
.mtab.is-active { background: var(--green); border: 1px solid var(--green); color: #000; }
.models__panel { border: 1px dashed var(--silver); background: var(--fog); padding: clamp(1.8rem, 3.5vw, 3rem); min-height: 14rem; }
.mpanel { display: none; animation: panel-in 0.45s var(--ease-out); }
.mpanel.is-active { display: block; }
@keyframes panel-in { from { opacity: 0; filter: blur(5px); transform: translateY(10px); } }
.mpanel h3 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.mpanel p { color: var(--muted); max-width: 44rem; }
.mkpi { margin-top: 1.3rem; color: var(--slate) !important; font-size: 0.64rem; letter-spacing: 0.14em; }

/* ---------- Proceso (banda oscura) ---------- */
.process {
  background: var(--slate);
  color: var(--lavender);
  position: relative;
  z-index: 2;
  background-image:
    linear-gradient(rgba(40, 233, 159, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 233, 159, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.process__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 1000px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__grid .divider-hatch-v--dark { width: 100%; height: 10px; }
}
.pcol .label-xs { color: var(--seafoam); margin-bottom: 1.4rem; }
.pcol h3 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.pcol p { color: rgba(255, 207, 254, 0.65); font-size: 0.96rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg); position: relative; z-index: 2; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__copy > p { color: var(--muted); max-width: 30rem; }
.contact__direct { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.contact__direct .label-xs { color: var(--muted); margin-bottom: 0.5rem; }
.contact__email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid var(--green);
  transition: color 0.25s;
}
.contact__email:hover { color: var(--muted); }

.form {
  display: grid;
  gap: 1.4rem;
  border: 1px dashed var(--slate);
  background: var(--fog);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.5rem; border: 0; }
.field__label { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.14em; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px dashed var(--silver);
  color: var(--slate);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.65em 0.9em;
  border-radius: 0;
  transition: border-color 0.25s;
  caret-color: var(--green);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(106, 106, 106, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 1px solid var(--green); }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5em 1.1em;
  border: 1px dashed var(--slate);
  color: var(--muted);
  transition: all 0.2s;
}
.checks label:hover span { color: var(--slate); background: var(--bg); }
.checks input:checked + span { background: var(--green); border: 1px solid var(--green); color: #000; }
.checks input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.form__fine { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.14em; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--fog);
  background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 3.2rem; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--muted); font-size: 0.94rem; }
.footer__nav, .footer__contact { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav .label-xs, .footer__contact .label-xs { color: var(--muted); margin-bottom: 0.4rem; }
.footer__nav a, .footer__contact a { text-decoration: none; width: fit-content; transition: color 0.25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--green); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.3rem 0 1.8rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .blurin { opacity: 1; filter: none; transform: none; }
  .hl::before { transform: scaleX(1); }
  .hero-wrap, .tzoom-wrap { height: auto; }
  .hero-stage, .tzoom-stage { position: relative; height: auto; min-height: 100svh; }
  .walk-wrap { height: auto; }
  .walk-stage { position: relative; height: auto; padding: 4rem 0; }
  .walk__rail { display: none; }
  .walk__panels { min-height: 0; display: grid; gap: 1rem; }
  .wpanel { position: relative; opacity: 1; transform: none; filter: none; }
  .terminal { transform: none !important; }
  .tzoom__intro { position: relative; top: 0; margin: 6rem 0 2rem; }
}
