/* ═════════════════════════════════════════════════════════════
   NODETIA LABS — styles.css
   Mobile-first · Sin dependencias · Organizado por componentes
   ═════════════════════════════════════════════════════════════ */

/* ── 1. Tokens de diseño ───────────────────────────────────── */
:root {
  --navy:      #0A0F1C;
  --navy-2:    #0C1322;
  --navy-3:    #080D18;
  --blue:      #0036FF;
  --cyan:      #00C6FF;
  --ice:       #E6F0FF;
  --white:     #FFFFFF;

  --text:      #E6F0FF;
  --text-2:    #A7B7D6;   /* secundario, contraste AA sobre navy */
  --line:      rgba(230, 240, 255, .10);
  --line-2:    rgba(230, 240, 255, .18);

  --font-sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --header-h:  72px;
  --radius:    10px;
  --ease:      cubic-bezier(.22, .61, .2, 1);
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Retícula de puntos ultra sutil: textura técnica sin saturar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(230, 240, 255, .045) 1px, transparent 1px);
  background-size: 30px 30px;
}

main { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }

::selection { background: rgba(0, 198, 255, .28); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-3); }
::-webkit-scrollbar-thumb { background: #1D2A45; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2A3A5E; }

.container {
  width: min(100% - 44px, 1180px);
  margin-inline: auto;
}

.section { padding: clamp(72px, 11vw, 128px) 0; position: relative; }

.section--alt {
  background: rgba(12, 19, 34, .55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── 3. Accesibilidad ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: .8rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── 4. Componentes compartidos ────────────────────────────── */

/* Etiqueta de sección */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.section-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
}

.section-head { max-width: 640px; margin-bottom: clamp(44px, 7vw, 72px); }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.section-sub {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 540px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s,
              color .25s, box-shadow .25s;
}
.btn--sm { padding: 11px 20px; font-size: .74rem; }

.btn--primary { background: var(--cyan); color: #04121F; }
.btn--primary:hover {
  background: #3BD5FF;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 198, 255, .22);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost { border-color: var(--line-2); color: var(--ice); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn[disabled] { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

/* Animaciones de entrada (solo con JS activo) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--d, 0s),
              transform .8s var(--ease) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── 5. Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 15, 28, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* =========================================================
   NODETIA LABS — BRAND / NAVBAR
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}


/* =========================================================
   ISOTIPO
   Mantiene el tamaño que ya utilizabas
   ========================================================= */

.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  flex: none;
}


/* =========================================================
   WORDMARK
   ========================================================= */

.brand__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  user-select: none;
}


/* =========================================================
   NODETIA
   ========================================================= */

.brand__name {
  display: flex;
  align-items: center;

  color: var(--white);

  font-weight: 700;
  font-size: 1rem;

  letter-spacing: .14em;
  white-space: nowrap;
}


/* =========================================================
   E ESTILIZADA
   Tres líneas como en el logo original
   ========================================================= */

.brand__custom-e {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;

  width: .70em;
  gap: 3px;

  margin-left: .02em;
  margin-right: .12em;
}


/* Línea superior e inferior */

.brand__custom-e i {
  display: block;

  width: 100%;
  height: 2px;

  background: var(--white);
  border-radius: 1px;
}


/* Línea central azul/cyan */

.brand__custom-e i:nth-child(2) {
  background: linear-gradient(
    90deg,
    var(--cyan),
    #0066ff
  );
}


/* =========================================================
   LABS
   ========================================================= */

.brand__labs-row {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  margin-top: 5px;
}


/* Texto LABS */

.brand__labs {
  font-family: var(--font-mono);

  font-weight: 400;
  font-size: .55rem;

  color: var(--cyan);

  letter-spacing: .28em;

  /* Compensa visualmente el último letter-spacing */
  padding-left: .28em;

  white-space: nowrap;
}


/* Líneas laterales */

.brand__line {
  display: block;

  width: 18px;
  height: 1px;

  background: var(--cyan);

  opacity: .9;
}


/* =========================================================
   INTERACCIÓN
   ========================================================= */

.brand__logo,
.brand__wordmark {
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.brand:hover .brand__logo,
.brand:hover .brand__wordmark {
  opacity: .9;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .brand {
    gap: 8px;
  }

  .brand__logo {
    height: 30px;
  }

  .brand__name {
    font-size: .9rem;
    letter-spacing: .11em;
  }

  .brand__custom-e {
    gap: 2px;
  }

  .brand__labs {
    font-size: .48rem;
    letter-spacing: .24em;
    padding-left: .24em;
  }

  .brand__line {
    width: 14px;
  }
}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {

  .brand {
    gap: 7px;
  }

  .brand__logo {
    height: 28px;
  }

  .brand__name {
    font-size: .82rem;
    letter-spacing: .09em;
  }

  .brand__labs-row {
    gap: 4px;
    margin-top: 4px;
  }

  .brand__labs {
    font-size: .43rem;
  }

  .brand__line {
    width: 10px;
  }
}

/* .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo { height: 32px; width: auto; }
.brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .14em;
}
.brand__fallback svg { color: var(--cyan); flex: none; }
.brand__fallback em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .28em;
  margin-left: 2px;
} */

.site-nav__menu { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .25s;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--ice);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle:hover { border-color: var(--cyan); }
body.menu-open .nav-toggle span:first-child  { transform: translateY(3.8px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child   { transform: translateY(-3.8px) rotate(-45deg); }

/* Menú móvil (overlay a pantalla completa) */
@media (max-width: 1023.98px) {

  .site-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 8px;

    position: fixed;
    inset: 0;

    /* Por encima del contenido de la página */
    z-index: 999;

    padding: calc(var(--header-h) + 40px) 28px 40px;

    /* Fondo sólido */
    background: #080d18;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
      opacity .3s var(--ease),
      transform .3s var(--ease),
      visibility .3s;
  }


  body.menu-open .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }


  body.menu-open {
    overflow: hidden;
  }


  .site-nav__menu .nav__link {
    font-size: 1.5rem;
    font-weight: 500;

    padding: 14px 0;

    border-bottom: 1px solid var(--line);
  }


  /* Header por encima del overlay */
  .site-header {
    z-index: 1000;
  }


  /* Logo, botones y hamburguesa por encima */
  .site-header__inner,
  .site-header__actions,
  .brand,
  .nav-toggle {
    position: relative;
    z-index: 1001;
  }

  body.menu-open .site-header,
  body.menu-open .site-header.is-scrolled {
    background: #0a0f1c;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    border-bottom-color: var(--line);

    transition:
      background 0s,
      backdrop-filter 0s,
      -webkit-backdrop-filter 0s,
      border-color .25s;
  }
}

/* Navegación de escritorio */
@media (min-width: 1024px) {
  .site-nav__menu {
    display: flex;
    align-items: center;
    gap: 34px;
  }
  .nav-toggle { display: none; }
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%) scale(0);
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after { transform: translateX(-50%) scale(1); }

/* ── 6. Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 90px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Veladura para legibilidad del texto sobre la red de nodos */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,15,28,.92) 0%, rgba(10,15,28,.6) 36%, rgba(10,15,28,0) 70%),
    linear-gradient(180deg, rgba(10,15,28,.35), transparent 28%, transparent 72%, var(--navy));
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 660px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, .14);
  flex: none;
}

.hero__title {
  font-size: clamp(2.35rem, 6.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}

/* Subrayado de traza con nodos en los extremos — firma de marca */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; bottom: -.14em;
  height: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 50%, var(--cyan) 2.6px, transparent 2.8px),
    radial-gradient(circle at 100% 50%, var(--cyan) 2.6px, transparent 2.8px),
    linear-gradient(var(--cyan), var(--cyan)) 3px 50% / calc(100% - 6px) 2px no-repeat;
  opacity: .9;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero__stack li + li::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0 16px;
  vertical-align: middle;
  opacity: .7;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero__scroll span {
  width: 1.5px; height: 42px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  top: -14px; left: 0;
  width: 100%; height: 14px;
  background: var(--cyan);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { top: -14px; }
  70%  { top: 42px; }
  100% { top: 42px; }
}
@media (min-width: 720px) { .hero__scroll { display: flex; } }

/* ── 7. Nosotros ───────────────────────────────────────────── */
.about__grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: start;
  }
}

.about__big {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ice);
  border-left: 2px solid var(--cyan);
  padding-left: 24px;
}

.about__text p { color: var(--text-2); margin-bottom: 18px; }
.about__text strong { color: var(--ice); font-weight: 600; }
.about__text em { color: var(--cyan); font-style: normal; }

.about__points { margin-top: 26px; display: grid; gap: 12px; }
.about__points li {
  position: relative;
  padding-left: 24px;
  color: var(--ice);
  font-size: .95rem;
}
.about__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
}

/* Diagrama de flujo (escritorio) */
.flow { margin-top: clamp(56px, 8vw, 88px); }
.flow__caption {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow__caption::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.flow__diagram { width: 100%; height: auto; display: none; }
.flow-line {
  fill: none;
  stroke: rgba(230, 240, 255, .35);
  stroke-width: 1.5;
}
.js .flow-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease) var(--fd, 0s);
}
.js .flow.is-visible .flow-line { stroke-dashoffset: 0; }

.flow-node circle {
  fill: var(--navy);
  stroke: var(--cyan);
  stroke-width: 1.6;
}
.flow-node .dot { fill: var(--cyan); stroke: none; }
.js .flow-node {
  opacity: 0;
  transition: opacity .6s var(--ease) var(--fd, 0s);
}
.js .flow.is-visible .flow-node { opacity: 1; }

.flow-label text {
  font-family: var(--font-mono);
}
.flow-label__word {
  font-size: 15px;
  letter-spacing: 3px;
  fill: var(--ice);
}
.flow-label__index {
  font-size: 11px;
  letter-spacing: 1px;
  fill: var(--cyan);
  opacity: .85;
}
.js .flow-label {
  opacity: 0;
  transition: opacity .6s var(--ease) var(--fd, 0s);
}
.js .flow.is-visible .flow-label { opacity: 1; }

/* Flujo vertical (móvil) */
.flow__mobile { display: grid; gap: 0; }
.flow__mobile li {
  position: relative;
  padding: 0 0 26px 30px;
}
.flow__mobile li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--cyan);
}
.flow__mobile li::after {
  content: "";
  position: absolute;
  left: 5px; top: 22px; bottom: -2px;
  width: 1.5px;
  background: rgba(230, 240, 255, .2);
}
.flow__mobile li:last-child::after { display: none; }
.flow__mobile .flow__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--cyan);
  letter-spacing: .15em;
  margin-bottom: 2px;
}
.flow__mobile strong { font-size: 1.05rem; letter-spacing: .01em; }
.flow__mobile .flow__end strong { color: var(--cyan); }

@media (min-width: 860px) {
  .flow__diagram { display: block; }
  .flow__mobile { display: none; }
}

/* ── 8. Soluciones ─────────────────────────────────────────── */
.solutions__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}

.sol-card {
  grid-column: span 12;
  position: relative;
  padding: 30px 28px;
  background: rgba(10, 16, 30, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
@media (min-width: 900px) {
  .sol-card { padding: 36px 32px; }
  .sol-card--wide { grid-column: span 7; }
  .sol-card--mid  { grid-column: span 5; }
  .sol-card--full { grid-column: span 12; }
}

/* Línea de acento superior al pasar el cursor */
.sol-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 84, 255, 0) 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.sol-card:hover { transform: translateY(-4px); border-color: rgba(0, 198, 255, .3); }
.sol-card:hover::before { transform: scaleX(1); }

.sol-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.sol-card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 198, 255, .05);
  transition: background .3s, border-color .3s;
}
.sol-card:hover .sol-card__icon {
  background: rgba(0, 198, 255, .12);
  border-color: rgba(0, 198, 255, .4);
}
.sol-card__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--text-2);
  opacity: .75;
}

.sol-card h3 {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.sol-card__desc {
  color: var(--text-2);
  font-size: .95rem;
  margin-bottom: 22px;
  max-width: 460px;
}

.sol-card__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.sol-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: .88rem;
  color: var(--ice);
}
.sol-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1.2px solid var(--cyan);
}

/* Tarjeta horizontal de consultoría */
@media (min-width: 900px) {
  .sol-card--full {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .sol-card--full .sol-card__top { margin-bottom: 18px; }
  .sol-card__list--cols {
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    padding-left: 48px;
    border-left: 1px solid var(--line);
  }
  .sol-card__list--cols li { padding-left: 20px; }
}

/* ── 9. Cómo trabajamos ────────────────────────────────────── */
.process__wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 60px;
}

.process__rail {
  position: absolute;
  left: 17px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(230, 240, 255, .1);
  border-radius: 2px;
}
.process__fill {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
@media (prefers-reduced-motion: reduce) {
  .process__fill { transform: scaleY(1); }
}

.step {
  position: relative;
  padding-bottom: clamp(44px, 6vw, 60px);
  opacity: .4;
  transform: translateX(0);
  transition: opacity .5s var(--ease);
}
.step:last-child { padding-bottom: 0; }

/* Nodo de cada estación, alineado al riel */
.step::before {
  content: "";
  position: absolute;
  left: -49px; top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(230, 240, 255, .28);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.step.is-active { opacity: 1; }
.step.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 198, 255, .12);
}

.step__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.step h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.step p:not(.step__num) {
  color: var(--text-2);
  font-size: .96rem;
  max-width: 520px;
}

@media (min-width: 900px) {
  .process__wrap { padding-left: 72px; }
  .step::before { left: -61px; }
}

/* ── 10. Filosofía (3 · 6 · 9) ─────────────────────────────── */
.phy-flow { display: grid; gap: 8px; }

.phy-step { padding: 10px 0 26px; }
.phy-step__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  color: var(--cyan);
}
.phy-step__index::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
}
.phy-step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 10px 0 6px;
}
.phy-step__verb {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.phy-step > p:not(.phy-step__verb):not(.phy-step__index) {
  color: var(--text-2);
  font-size: .93rem;
  max-width: 340px;
}

/* Conector con pulso viajero: la idea "fluye" de un momento al siguiente */
.phy-connector { position: relative; height: 52px; }
.phy-connector::before {
  content: "";
  position: absolute;
  left: 3px; top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(230, 240, 255, .18);
}
.phy-connector i {
  position: absolute;
  left: 0.5px; top: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseY 2.8s var(--ease) infinite;
}
@keyframes pulseY {
  0%   { top: 0;      opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { top: calc(100% - 5px); opacity: 0; }
}

@media (min-width: 900px) {
  .phy-flow {
    grid-template-columns: 1fr 72px 1fr 72px 1fr;
    align-items: start;
  }
  .phy-step { padding: 6px 0; }
  .phy-connector { height: auto; margin-top: 14px; }
  .phy-connector::before {
    left: 0; right: 0; top: 2px; bottom: auto;
    width: auto; height: 1.5px;
  }
  .phy-connector i { left: 0; top: 0; animation: pulseX 3.2s var(--ease) infinite; }
  @keyframes pulseX {
    0%   { left: 0;                 opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: calc(100% - 5px);  opacity: 0; }
  }
}

.phy-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 60px);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--text-2);
}
.phy-note::before {
  content: "";
  width: 34px; height: 1.5px;
  background: var(--cyan);
  flex: none;
}

/* ── 11. CTA final ─────────────────────────────────────────── */
.cta-final { padding-top: 0; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(52px, 9vw, 92px) clamp(24px, 6vw, 80px);
  background: var(--navy-2);
  border: 1px solid rgba(230, 240, 255, .12);
  border-radius: 14px;
}

/* Marcas de registro en las esquinas — detalle de plano técnico */
.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 0 solid var(--cyan);
  pointer-events: none;
}
.cta-panel::before { top: 16px; left: 16px;  border-top-width: 2px; border-left-width: 2px; }
.cta-panel::after  { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }

.cta-panel h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-panel p {
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 34px;
}

/* ── 12. Contacto ──────────────────────────────────────────── */
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
  }
}

.contact__info h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.contact__text { color: var(--text-2); max-width: 400px; margin-bottom: 30px; }

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
}
.contact__mail:hover { color: var(--cyan); border-color: var(--cyan); }

.contact__meta {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--text-2);
}

.contact__steps { margin-top: 38px; display: grid; gap: 14px; }
.contact__steps li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: .92rem;
  color: var(--ice);
}
.contact__steps span {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cyan);
  letter-spacing: .14em;
}

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field .optional { text-transform: none; letter-spacing: .04em; opacity: .7; }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .95rem;
  color: var(--white);
  background: rgba(230, 240, 255, .035);
  border: 1px solid rgba(230, 240, 255, .14);
  border-radius: 6px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(167, 183, 214, .5); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 198, 255, .05);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, .12);
}

.field textarea { min-height: 136px; resize: vertical; }

.field.is-error input,
.field.is-error textarea { border-color: #FF7A8A; }
.field__error {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #FF9AA7;
}

.form__submit { justify-self: start; }
.form__note {
  font-size: .78rem;
  color: var(--text-2);
  opacity: .8;
}
.form-success[hidden] {
    display: none;
}
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(0, 198, 255, .06);
  border: 1px solid rgba(0, 198, 255, .4);
  border-radius: 8px;
  color: var(--ice);
}
.form-success svg { color: var(--cyan); flex: none; margin-top: 2px; }
.form-success strong { display: block; margin-bottom: 4px; }
.form-success p { font-size: .9rem; color: var(--text-2); }

/* Honeypot: invisible para personas, visible para bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── 13. Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-3);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 68px);
}

.footer__grid { display: grid; gap: 44px; padding-bottom: clamp(44px, 6vw, 60px); }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
}

.footer__tagline {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-2);
}

.footer__title {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
}

.footer__nav a {
  display: block;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .25s, transform .25s;
}
.footer__nav a:hover { color: var(--white); transform: translateX(4px); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: color .25s, border-color .25s, transform .25s;
}
.footer__social a:hover {
  color: var(--cyan);
  border-color: rgba(0, 198, 255, .45);
  transform: translateY(-3px);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 28px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-2);
}
.footer__node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__node i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ── 14. Movimiento reducido ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scroll { display: none; }
}