/* =========================================================================
   Climind.IA — hoja de estilos
   Sistema: tinta azulada + azul de marca #007EE8 (muestreado del logo) +
              verde usado solo como estado.
   Tipografías: Bricolage Grotesque (display) / Instrument Sans (cuerpo) /
                IBM Plex Mono (etiquetas técnicas y tiempos).
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS */
:root {
  /* Tinta y superficies oscuras */
  --ink:        #08131F;
  --ink-2:      #0F1D2D;
  --ink-3:      #17293E;
  --ink-line:   #213751;

  /* Azul de marca y su escala.
     El valor de --blue está muestreado del logo original, píxel a píxel. */
  --blue:       #007EE8;   /* color de marca, no se toca */
  --blue-btn:   #0071DB;   /* relleno de botones: AA con texto blanco */
  --blue-deep:  #0063C7;   /* enlaces y texto azul sobre claro */
  --blue-soft:  #6FB4FF;   /* texto azul sobre oscuro */
  --blue-wash:  #E5F2FF;   /* fondos suaves */

  /* Papel y texto */
  --paper:      #F6F8FC;
  --paper-2:    #FFFFFF;
  --paper-3:    #EEF2F9;
  --text:       #0D141F;
  --text-mid:   #4C5A72;
  --text-soft:  #7A879C;
  --line:       #DCE3EF;
  --line-soft:  #E8EDF6;

  /* Estado: verde = "ejecutado / funcionando". Nunca decorativo. */
  --ok:         #0FA97F;
  --ok-soft:    #34D8A8;
  --ok-wash:    #E4F7F1;

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Ritmo */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad-section: clamp(4.5rem, 9vw, 8rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-card: 0 1px 2px rgba(13, 20, 31, .04), 0 8px 24px -12px rgba(13, 20, 31, .12);
  --shadow-lift: 0 2px 4px rgba(13, 20, 31, .05), 0 18px 40px -18px rgba(13, 20, 31, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

h1 em, h2 em, h3 em { font-style: normal; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

/* Texto blanco sobre azul usa siempre --blue-btn: el azul de marca puro
   se queda en 4.08:1 y no llega a AA. */
::selection { background: var(--blue-btn); color: #fff; }

/* ------------------------------------------------------------- UTILIDADES */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--blue-btn); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Etiqueta de sección: mono, pequeña, con guion. Marca jerarquía, no decora. */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.4rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--dark { color: var(--blue-soft); }
.eyebrow--dark::before { display: none; }

.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok-soft);
  flex: none;
  box-shadow: 0 0 0 4px rgba(52, 216, 168, .16);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary {
  background: var(--blue-btn);
  border-color: var(--blue-btn);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 126, 232, .9);
}
.btn--primary:hover { background: #0060BE; border-color: #0060BE; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

.btn--sm { padding: .55rem 1.05rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Punto de estado "ok" reutilizable */
.dot-ok {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* Aparición al hacer scroll — discreta, una sola vez */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------- NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 19, 31, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 19, 31, .95);
  border-bottom-color: var(--ink-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
/* La marca va en el azul exacto del logo. El dibujo ocupa el 62% del alto
   del viewBox, por eso la caja es mayor que la altura óptica del wordmark. */
.brand__mark { width: 30px; height: 30px; color: var(--blue); flex: none; }
.brand__word { line-height: 1; }
.brand__suffix { color: var(--blue); }

.nav__links {
  display: flex; align-items: center; gap: 2rem;
}
.nav__links > a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .16s var(--ease);
}
.nav__links > a:hover { color: #fff; }
.nav__links > a.nav__cta { color: #fff; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle-bars { display: block; width: 18px; }
.nav__toggle-bars i {
  display: block; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav__toggle-bars i + i { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ------------------------------------------------------------------- HERO */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__grid-bg, .cta__grid-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(90% 60% at 78% 0%, rgba(0, 126, 232, .28) 0%, transparent 62%),
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 100% 100%, 68px 68px, 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.45rem, 1.35rem + 3.7vw, 3.85rem);
  font-weight: 600;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.hero__title em { color: var(--blue-soft); }

.hero__lede {
  max-width: 52ch;
  font-size: clamp(1.03rem, .99rem + .2vw, 1.14rem);
  color: rgba(226, 233, 245, .78);
  margin-bottom: 2.1rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.4rem; }

.hero__assurances {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .01em;
  color: rgba(226, 233, 245, .6);
}
.hero__assurances li { display: flex; align-items: center; gap: .5rem; }
.hero__assurances li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ok); flex: none;
}

/* ------------------------ ELEMENTO FIRMA: el flujo ------------------------ */
.hero__demo { min-width: 0; }

.flow {
  margin: 0;
  background: linear-gradient(180deg, var(--ink-2), #0E1626);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
  overflow: hidden;
}
.flow__bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, .02);
  font-family: var(--f-mono);
  font-size: .74rem;
  color: rgba(226, 233, 245, .55);
}
.flow__lights { display: flex; gap: 5px; flex: none; }
.flow__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.flow__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow__state {
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(15, 169, 127, .14);
  color: var(--ok-soft);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.flow__state::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.flow__body { padding: 1.35rem 1.25rem 1.5rem; }

/* Pasos: arrancan apagados y se encienden en secuencia */
.flow__msg, .flow__node {
  opacity: .22;
  filter: saturate(.2);
  transition: opacity .45s var(--ease), filter .45s var(--ease),
              border-color .45s var(--ease), transform .45s var(--ease);
}
.flow__msg.is-on, .flow__node.is-on { opacity: 1; filter: none; }

.flow__msg {
  border-radius: var(--r-md);
  padding: .8rem .95rem;
  border: 1px solid var(--ink-line);
}
.flow__msg p { font-size: .93rem; line-height: 1.5; }
.flow__msg--in  { background: rgba(255, 255, 255, .04); }
.flow__msg--out {
  background: rgba(15, 169, 127, .08);
  border-color: rgba(15, 169, 127, .35);
}
.flow__msg--in p  { color: #E4EAF6; margin-top: .35rem; }
.flow__msg--out p { color: #fff; }

.flow__meta {
  display: block;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(226, 233, 245, .45);
}
.flow__meta--ok { color: var(--ok-soft); margin-top: .5rem; }

.flow__pipe {
  height: 22px;
  margin-left: 1.4rem;
  width: 2px;
  background: var(--ink-line);
  position: relative;
  overflow: hidden;
}
.flow__pipe span {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--blue-soft), var(--ok-soft));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.flow__pipe.is-on span { transform: scaleY(1); }

.flow__node {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .85rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
}
.flow__node.is-on { border-color: rgba(111, 180, 255, .38); }
.flow__bullet {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-3);
  flex: none;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.flow__node.is-on .flow__bullet {
  background: var(--ok-soft);
  box-shadow: 0 0 0 4px rgba(52, 216, 168, .16);
}
.flow__label { flex: 1; min-width: 0; font-size: .89rem; color: #DEE6F3; }
.flow__time {
  flex: none;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: rgba(226, 233, 245, .42);
}

.hero__demo-note {
  margin-top: 1rem;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(226, 233, 245, .5);
  max-width: 44ch;
}

/* ------------------------------------------------------------------ STACK */
.stack {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding-block: 2.2rem;
}
.stack__inner { display: grid; gap: 1.1rem; }
.stack__title {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226, 233, 245, .45);
}
.stack__list {
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.stack__list li {
  padding: .42rem .85rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(226, 233, 245, .82);
}

/* --------------------------------------------------------- SECCIÓN BASE */
.section { padding-block: var(--pad-section); }
.section--paper { background: var(--paper-3); }

.section__head { max-width: 760px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.section__title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  letter-spacing: -.033em;
}
.section__title em { color: var(--blue-deep); }
.section__lede {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--text-mid);
}

/* ----------------------------------------------------------------- DOLOR */
.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pain {
  background: var(--paper-2);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: background-color .2s var(--ease);
}
.pain:hover { background: #FCFDFF; }
.pain h3 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.28;
  margin-bottom: .7rem;
  padding-left: 1.1rem;
  position: relative;
}
.pain h3::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--blue);
  transform: rotate(45deg);
}
.pain p { color: var(--text-mid); font-size: .98rem; }

.pains__close {
  margin-top: 2.25rem;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--text-mid);
}
.pains__close strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- SERVICIOS */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc--flip .svc__copy { order: 2; }

.svc__kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.svc__title {
  font-size: clamp(1.5rem, 1.15rem + 1.35vw, 2.05rem);
  letter-spacing: -.028em;
  line-height: 1.14;
  margin-bottom: 1rem;
}
.svc__text { color: var(--text-mid); margin-bottom: 1.5rem; }

.svc__list { display: grid; gap: .7rem; }
.svc__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .96rem;
  color: var(--text);
}
.svc__list li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.svc__demo { min-width: 0; }

/* Maqueta 1 — hilo de conversación real */
.chat {
  display: grid; gap: .55rem;
  padding: 1.35rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.chat__bubble {
  max-width: 88%;
  padding: .7rem .95rem;
  font-size: .92rem;
  line-height: 1.5;
  border-radius: var(--r-md);
}
.chat__bubble--in {
  justify-self: start;
  background: var(--paper-3);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat__bubble--out {
  justify-self: end;
  background: var(--blue-btn);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat__foot {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .6rem; padding-top: .85rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ok);
}

/* Maqueta 2 — resumen del día */
.brief {
  padding: 1.35rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.brief__head {
  display: flex; align-items: center; gap: .6rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.brief__time {
  padding: .18rem .5rem;
  border-radius: 5px;
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
}
.brief__list { display: grid; gap: .1rem; padding-block: .5rem; }
.brief__list li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}
.brief__list li:last-child { border-bottom: 0; }
.brief__hour {
  flex: none;
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--text-soft);
}
.brief__list em {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ok);
}
/* "sin confirmar" no es un estado ejecutado: no lleva verde. */
.brief__list li:nth-child(4) em { color: var(--text-soft); }
.brief__free { color: var(--text-soft); font-style: italic; }
.brief__foot {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .6rem; padding-top: .85rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--text-mid);
}

/* Maqueta 3 — el proceso conectado */
.wire {
  padding: 1.5rem 1.35rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.wire__row { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }

/* Tres ramas en paralelo: la barra y las bajadas dicen que ocurren a la vez. */
.wire__split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  padding-block: 20px;
}
.wire__split::before, .wire__split::after {
  content: "";
  position: absolute;
  left: 16.666%; right: 16.666%;
  height: 2px;
  background: var(--line);
}
.wire__split::before { top: 0; }
.wire__split::after  { bottom: 0; }

.wire__branch { position: relative; display: flex; justify-content: center; }
.wire__branch::before, .wire__branch::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px; height: 20px;
  background: var(--line);
  transform: translateX(-50%);
}
.wire__branch::before { top: -20px; }
.wire__branch::after  { bottom: -20px; }

.wire__node {
  display: inline-block;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--text);
}
.wire__node--ok {
  border-color: rgba(15, 169, 127, .4);
  background: var(--ok-wash);
  color: #0A7D5E;
}
.wire__arm {
  width: 2px; height: 26px;
  margin: .35rem auto;
  background: linear-gradient(180deg, var(--line), var(--blue));
  opacity: .55;
}
.wire__foot {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--text-mid);
}

/* ---------------------------------------------------------------- PROCESO */
/* La numeración se usa acá porque el orden es información real. */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--f-mono);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--blue);
  opacity: .38;
}
.step__body { max-width: 62ch; }
.step__body h3 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  letter-spacing: -.024em;
  margin-bottom: .6rem;
}
.step__body p { color: var(--text-mid); }
.step__meta {
  margin-top: .9rem;
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* -------------------------------------------------------------- GARANTÍAS */
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.promise {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.promise h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.1rem;
  letter-spacing: -.018em;
  margin-bottom: .6rem;
}
.promise h3::before {
  content: "";
  width: 13px; height: 7px;
  border-left: 2.2px solid var(--ok);
  border-bottom: 2.2px solid var(--ok);
  transform: rotate(-45deg) translateY(-2px);
  flex: none;
}
.promise p { color: var(--text-mid); font-size: .96rem; }

.note {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: end;
  padding: clamp(1.6rem, 3.4vw, 2.4rem);
  border: 1px solid var(--blue);
  border-radius: var(--r-lg);
  background: var(--blue-wash);
}
.note__text {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--text);
  max-width: 60ch;
}
.note__sign { text-align: right; white-space: nowrap; }
.note__name {
  display: block;
  font-weight: 600;
  color: var(--blue-deep);
}
.note__role {
  display: block;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* -------------------------------------------------------------------- FAQ */
/* Columna de lectura angosta, pero pegada al mismo eje izquierdo que el
   resto de la página: mover el arranque rompería el ritmo vertical. */
.faq { max-width: 840px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, .98rem + .45vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
  transition: color .16s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue-deep); }

.faq__item summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  margin-top: .35em;
  width: 11px; height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq__answer { padding: 0 3rem 1.5rem 0; }
.faq__answer p { color: var(--text-mid); }
.faq__item[open] .faq__answer { animation: faq-in .3s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- CONTACTO */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: var(--pad-section);
  overflow: hidden;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.cta__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  letter-spacing: -.033em;
  margin-bottom: 1.25rem;
}
.cta__title em { color: var(--blue-soft); }
.cta__lede {
  max-width: 46ch;
  color: rgba(226, 233, 245, .74);
  margin-bottom: 2rem;
}
.cta__list { display: grid; gap: .75rem; margin-bottom: 2rem; }
.cta__list li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(226, 233, 245, .9);
  font-size: .97rem;
}
.cta__list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ok-soft);
  border-bottom: 2px solid var(--ok-soft);
  transform: rotate(-45deg);
}
.cta__direct {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: .93rem;
  color: rgba(226, 233, 245, .6);
}
.cta__direct a { color: var(--blue-soft); }

/* Formulario */
.form {
  padding: clamp(1.6rem, 3.4vw, 2.25rem);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .9);
}
.form__title {
  font-family: var(--f-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -.022em;
  margin-bottom: 1.35rem;
}

.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  margin-bottom: .42rem;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(226, 233, 245, .82);
}
.field__opt { font-weight: 400; color: var(--text-soft); }

.field input, .field textarea {
  width: 100%;
  padding: .78rem .9rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  color: #fff;
  font-family: var(--f-body);
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(226, 233, 245, .34); }
.field input:hover, .field textarea:hover { border-color: #2C4463; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(0, 126, 232, .25);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #F2757E; }

.field__error {
  margin-top: .35rem;
  font-size: .8rem;
  color: #F2757E;
  min-height: 0;
}

.form__foot {
  margin-top: .9rem;
  text-align: center;
  font-family: var(--f-mono);
  font-size: .74rem;
  color: rgba(226, 233, 245, .45);
}
.form__status {
  margin-top: .9rem;
  padding: .75rem .9rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-ok {
  background: rgba(15, 169, 127, .12);
  border: 1px solid rgba(15, 169, 127, .35);
  color: var(--ok-soft);
}

/* ----------------------------------------------------------------- FOOTER */
.footer {
  background: var(--ink);
  color: rgba(226, 233, 245, .68);
  border-top: 1px solid var(--ink-line);
  padding-top: clamp(2.75rem, 5vw, 4rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__tag { margin-top: 1rem; max-width: 34ch; font-size: .93rem; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__head {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226, 233, 245, .42);
  margin-bottom: .3rem;
}
.footer__col a {
  color: rgba(226, 233, 245, .75);
  text-decoration: none;
  font-size: .93rem;
  justify-self: start;
  transition: color .16s var(--ease);
}
.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.35rem;
  border-top: 1px solid var(--ink-line);
  font-family: var(--f-mono);
  font-size: .74rem;
  color: rgba(226, 233, 245, .4);
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__demo { max-width: 560px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__form-wrap { max-width: 560px; }
}

@media (max-width: 900px) {
  .svc, .svc--flip { grid-template-columns: 1fr; }
  .svc--flip .svc__copy { order: 0; }
  .svc__demo { max-width: 520px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: rgba(8, 19, 31, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 1rem;
  }
  .nav__links > a.nav__cta {
    margin-top: 1rem;
    border-bottom: 0;
    justify-content: center;
  }

  .pains { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .note { grid-template-columns: 1fr; align-items: start; }
  .note__sign { text-align: left; }
}

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .step__num { font-size: 1.15rem; }
  .hero__actions .btn { width: 100%; }
  .faq__answer { padding-right: 0; }
  .flow__body { padding: 1.1rem 1rem 1.25rem; }
  .flow__label { font-size: .85rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { justify-content: flex-start; }
}

/* --------------------------------------------------- MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* El flujo se muestra completo y quieto: la información sigue estando. */
  .flow__msg, .flow__node { opacity: 1; filter: none; }
  .flow__pipe span { transform: scaleY(1); }
  .flow__node .flow__bullet { background: var(--ok-soft); }
}
