/* ==========================================================================
   CLICK BOOM — WEB V2
   Sistema de diseño. Estética: software / ingeniería / premium sobrio.
   Sin frameworks, sin fuentes externas, sin imágenes. Mobile-first.
   Paleta: warm white + negro + naranja Click Boom (acento, no relleno).
   ========================================================================== */

:root {
  /* Superficies claras */
  --paper: #faf8f4;
  --paper-2: #f2ece2;
  --paper-3: #ebe4d7;

  /* Superficies oscuras */
  --ink: #111010;
  --ink-2: #1a1817;
  --ink-3: #242120;

  /* Texto */
  --tx: #131211;
  --tx-muted: #6b6459;
  --tx-faint: #726a5e;
  --tx-invert: #f6f2ec;
  --tx-invert-muted: #a49c91;
  --tx-invert-faint: #8b8379;

  /* Líneas */
  --line: #e2dacb;
  --line-strong: #cfc5b2;
  --line-invert: #2c2926;
  --line-invert-strong: #3d3936;

  /* Acento */
  --accent: #e2590f;            /* naranja de marca: bordes, barras, acento */
  --accent-text: #b5450a;       /* misma familia, contraste AA para TEXTO sobre claro */
  --accent-deep: #c04a0b;
  --accent-btn: #c04a0b;        /* fondo de botón: blanco encima cumple AA (4.97) */
  --accent-btn-hover: #a33f08;
  --accent-soft: rgba(226, 89, 15, 0.1);
  --ok: #37804f;

  /* Tipografía */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, "JetBrains Mono",
    "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Métrica */
  --w: 1200px;
  --w-narrow: 720px;
  --gut: 1.25rem;
  --r: 4px;
  --r-lg: 10px;
  --t: 180ms cubic-bezier(0.2, 0.6, 0.3, 1);
}

@media (min-width: 560px) {
  :root { --gut: 2rem; }
}
@media (min-width: 1100px) {
  :root { --gut: 2.5rem; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { max-width: 100%; }
svg { display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

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

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--tx-invert);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--w-narrow); }

.band { padding-block: clamp(3.5rem, 9vw, 7rem); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--alt { background: var(--paper-2); }

.band--dark {
  background: var(--ink);
  color: var(--tx-invert);
  --accent-text: #e2590f;
  --ok: #5aa97a;
  --tx-faint: var(--tx-invert-faint);
  --tx-muted: var(--tx-invert-muted);
  --line-strong: var(--line-invert-strong);
}
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--tx-invert); }
.band--dark .lede { color: var(--tx-invert-muted); }
.band--dark .rule { background: var(--line-invert); }
.band--dark .eyebrow { color: var(--tx-invert-faint); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Tipografía utilitaria -------------------------------------- */

.display {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  overflow-wrap: break-word;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.375rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--tx-muted);
  max-width: 62ch;
}

.small { font-size: 0.875rem; line-height: 1.5; color: var(--tx-muted); }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--tx-faint); }

.eyebrow,
.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin: 0 0 1.25rem;
  display: block;
}
.meta { margin: 0; }
.eyebrow--accent { color: var(--accent-text); }

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

/* ---------- Chips de estado -------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.65em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--tx-muted);
  white-space: nowrap;
  line-height: 1;
}
.chip--invert { border-color: var(--line-invert-strong); color: var(--tx-invert-muted); }
.chip--accent { border-color: var(--accent); color: var(--accent-text); }
.chip--ok { border-color: rgba(63, 143, 95, 0.5); color: var(--ok); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot--pulse { animation: pulse 1.8s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ---------- Botones ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.35rem;
  min-height: 46px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
    transform var(--t);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent-btn); color: #fff; }
.btn--primary:hover { background: var(--accent-btn-hover); }

.btn--ghost {
  background: transparent;
  color: var(--tx);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--tx); }

.btn--invert { background: var(--tx-invert); color: var(--ink); }
.btn--invert:hover { background: #fff; }

.btn--ghost-invert {
  background: transparent;
  color: var(--tx-invert);
  border-color: var(--line-invert-strong);
}
.btn--ghost-invert:hover { border-color: var(--tx-invert-muted); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
/* En pantallas chicas los CTAs ocupan el ancho: mismo peso y mejor target táctil */
@media (max-width: 559px) {
  .btn-row .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-text);
  text-decoration: none;
}
.link-arrow span { transition: transform var(--t); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Header ------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
  text-transform: uppercase;
}
.brand i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tx-muted);
  transition: color var(--t);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--tx); }

.head-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle i {
  display: block;
  height: 1.5px;
  background: var(--tx);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  border-top: 1px solid var(--line);
  padding: 0.5rem 0 1.25rem;
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 1rem; }

@media (min-width: 900px) {
  .nav, .head-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .head-in { min-height: 68px; }
}

/* ---------- Footer ------------------------------------------------------ */

.site-foot {
  background: var(--ink);
  color: var(--tx-invert-muted);
  padding-block: 3rem 2.25rem;
}
.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (min-width: 980px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; }
}
.site-foot .brand { color: var(--tx-invert); }
.foot-col h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-invert-faint);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.foot-col a {
  display: block;
  padding: 0.3rem 0;
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--tx-invert-muted);
  transition: color var(--t);
}
.foot-col a:hover { color: var(--tx-invert); }
.foot-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-invert);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.foot-base p { margin: 0; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-invert-faint); }

/* ---------- Paneles / superficies --------------------------------------- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.panel--dark {
  background: var(--ink-2);
  border-color: var(--line-invert);
  color: var(--tx-invert);
}

/* Ventana de "software" — se usa para todas las demos de interfaz */
.ui {
  --accent-text: #e2590f;
  --ok: #5aa97a;
  --tx-faint: var(--tx-invert-faint);
  --tx-muted: var(--tx-invert-muted);
  --line-strong: var(--line-invert-strong);
  background: var(--ink-2);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--tx-invert);
  box-shadow: 0 24px 60px -30px rgba(17, 16, 16, 0.55);
}
.ui--light {
  --accent-text: #b5450a;
  --ok: #37804f;
  --tx-faint: #726a5e;
  --tx-muted: #6b6459;
  --line-strong: #cfc5b2;
  background: #fff;
  border-color: var(--line);
  color: var(--tx);
  box-shadow: 0 24px 60px -34px rgba(17, 16, 16, 0.3);
}

.ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-invert);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-invert-faint);
}
.ui--light .ui-bar { border-color: var(--line); color: var(--tx-faint); }
.ui-bar b { font-weight: 500; color: var(--tx-invert-muted); }
.ui--light .ui-bar b { color: var(--tx-muted); }

.ui-body { padding: 1rem 0.9rem 1.1rem; }
@media (min-width: 560px) { .ui-body { padding: 1.25rem 1.15rem 1.35rem; } }

/* ---------- Grids genéricas ---------------------------------------------- */

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .split--copy-first { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 60ch; }
.section-head .lede { margin-top: 0.75rem; }

/* ---------- Motion (reveal) ---------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 620ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* ==========================================================================
   HERO — LIVE SYSTEM
   ========================================================================== */

.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }

.hero-title { margin-bottom: 1.25rem; }
.hero .lede { max-width: 48ch; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.25rem;
}

/* Demo: pipeline en vivo */
.live .ui-body { padding-block: 1.1rem 1.25rem; }

.live-steps {
  list-style: none;
  display: grid;
  gap: 0;
}
.live-steps li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-invert);
  font-size: 0.875rem;
  color: var(--tx-invert-faint);
  transition: color 400ms ease;
}
.live-steps li:last-child { border-bottom: 0; }
.live-steps li.is-active { color: var(--tx-invert); }
.live-steps li.is-done { color: var(--tx-invert-muted); }

.live-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--line-invert-strong);
  justify-self: center;
  position: relative;
  transition: border-color 400ms ease, background 400ms ease;
}
.live-steps li.is-active .live-node { border-color: var(--accent); background: var(--accent); }
.live-steps li.is-done .live-node { border-color: var(--tx-invert-faint); background: var(--tx-invert-faint); }
.live-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5px;
  height: 0.7rem;
  margin-top: 1px;
  transform: translateX(-50%);
  background: var(--line-invert);
}
.live-steps li:last-child .live-node::after { display: none; }

.live-state {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-invert-faint);
}
.live-steps li.is-active .live-state { color: var(--accent-text); }
.live-steps li.is-done .live-state { color: var(--tx-invert-faint); }

.live-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-invert);
  display: grid;
  gap: 0.85rem;
}

.live-match {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.live-match b {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--tx-invert);
}
.live-match .meta { color: var(--tx-invert-faint); }

.bar {
  height: 3px;
  background: var(--line-invert);
  border-radius: 2px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 900ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.live-facts {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.live-facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--tx-invert-muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.live-facts li.is-in { opacity: 1; transform: none; }
.live-facts .tick { color: var(--ok); font-size: 0.75rem; }

.demo-note {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

/* ==========================================================================
   MANIFIESTO
   ========================================================================== */

.manifesto h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 20ch;
  margin: 0;
}
.manifesto h2 em {
  font-style: normal;
  color: var(--tx-faint);
  display: block;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 2.25rem;
}
.chain span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--tx-muted);
  background: var(--paper);
}
.chain span:last-child { border-color: var(--accent); color: var(--accent-text); }
.chain i {
  color: var(--tx-faint);
  font-style: normal;
  font-size: 0.75rem;
}

/* ==========================================================================
   DOS MANERAS DE TRABAJAR
   ========================================================================== */

.ways { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .ways { grid-template-columns: 1fr 1fr; } }

.way {
  background: var(--paper);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.way h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
}
.way .lede { font-size: 1rem; }
.way-foot { margin-top: auto; padding-top: 1.25rem; }

.caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}
.caps li {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4em 0.7em;
  line-height: 1;
}

.product-stub {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
}
.product-stub b {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   PROSPECTOR — tarjeta de resultado (demo)
   ========================================================================== */

.pros-card { display: grid; gap: 0.9rem; }

.pros-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.pros-head .pros-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.15;
}
.pros-head .meta { margin-top: 0.3rem; }

.match {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.why {
  border-top: 1px solid var(--line-invert);
  padding-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}
.ui--light .why { border-color: var(--line); }
.why .why-title {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-invert-faint);
  font-weight: 500;
}
.ui--light .why .why-title { color: var(--tx-faint); }
.why ul { list-style: none; display: grid; gap: 0.35rem; }
.why li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.5rem;
  font-size: 0.8438rem;
  color: var(--tx-invert-muted);
  line-height: 1.45;
}
.ui--light .why li { color: var(--tx-muted); }
.why .tick { color: var(--ok); }

.pros-foot {
  border-top: 1px solid var(--line-invert);
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}
.ui--light .pros-foot { border-color: var(--line); }

/* ==========================================================================
   STEPS (cómo funciona) — 01..05
   ========================================================================== */

.steps {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1000px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  background: var(--paper);
  padding: 1.35rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  position: relative;
}
.band--alt .steps li { background: var(--paper-2); }
.steps .meta { color: var(--accent-text); }
.steps h3 {
  margin: 0;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.steps p { font-size: 0.9062rem; color: var(--tx-muted); margin: 0; }

.band--dark .steps { background: var(--line-invert); border-color: var(--line-invert); }
.band--dark .steps li { background: var(--ink); }
.band--dark .steps p { color: var(--tx-invert-muted); }

/* ==========================================================================
   SISTEMAS INTERNOS (cadena)
   ========================================================================== */

.systems {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line-invert);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .systems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .systems { grid-template-columns: repeat(6, 1fr); } }

.systems li {
  background: var(--ink-2);
  padding: 1.1rem 1rem 1.25rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.systems .meta { color: var(--tx-invert-faint); }
.systems b {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--tx-invert);
}
.systems .chip { margin-top: 0.45rem; justify-self: start; }

/* ==========================================================================
   /BUILD — diagrama de integraciones
   ========================================================================== */

.wiring {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .wiring {
    grid-template-columns: minmax(0, 0.72fr) auto minmax(0, 1.05fr);
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
  }
}
@media (min-width: 760px) {
  .wiring-col { position: relative; padding-right: 30px; }
  /* Llave que agrupa las fuentes y las lleva al núcleo */
  .wiring-col::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--line-invert-strong);
  }
  .wiring-src::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--line-invert-strong);
  }
}

.wiring-col { display: grid; gap: 0.5rem; }
.wiring-src {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-invert-strong);
  border-radius: var(--r);
  padding: 0.7rem 0.85rem;
  color: var(--tx-invert-muted);
  background: var(--ink-2);
  position: relative;
  transition: border-color var(--t), color var(--t);
}
.wiring-src.is-lit { border-color: var(--accent); color: var(--tx-invert); }

.wiring-hub {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding-block: 0.5rem;
}
.wiring-core {
  border: 1px solid var(--accent);
  color: var(--tx-invert);
  background: rgba(226, 89, 15, 0.08);
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wiring-arrow { color: var(--tx-invert-faint); font-size: 0.875rem; }

.wiring-out {
  border: 1px solid var(--line-invert-strong);
  border-radius: var(--r);
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  background: var(--ink-2);
}
.wiring-out .chip { justify-self: start; }

@media (min-width: 760px) {
  /* El núcleo se alinea en horizontal con la llave de fuentes y la salida */
  .wiring-hub {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding-block: 0;
  }
  .wiring-hub .wiring-arrow:first-child { margin-left: -0.6rem; }
}
.wiring-out b { text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.0625rem; }
.wiring-out p { font-size: 0.875rem; color: var(--tx-invert-muted); margin: 0; }

/* ==========================================================================
   PRICING
   ========================================================================== */

.price-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.price-top {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
}
.price-amount b {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.price-amount .meta { color: var(--tx-faint); }

.price-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.price-list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.price-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--tx-muted);
  line-height: 1.45;
}
.price-list .tick { color: var(--accent-text); }

.pro-panel {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: transparent;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

/* ==========================================================================
   OUTPUT DIARIO (email demo)
   ========================================================================== */

.digest { display: grid; gap: 0.75rem; }
.digest-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.digest-row:last-child { border-bottom: 0; padding-bottom: 0; }
.digest-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.digest-top b { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: -0.01em; }
.digest-row p { margin: 0; font-size: 0.875rem; color: var(--tx-muted); }
.digest-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--tx-faint);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 2.5rem 1.35rem 0;
  margin: 0;
  color: var(--tx-muted);
  max-width: 72ch;
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.field .hint { font-size: 0.8125rem; color: var(--tx-faint); }

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  min-height: 46px;
  color: var(--tx);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--accent-deep); }

.err {
  font-size: 0.8125rem;
  color: var(--accent-deep);
  min-height: 1em;
}
.err:empty { min-height: 0; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.4em;
}
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--accent-deep); }

/* ---------- Onboarding (/prospector/start) ------------------------------- */

.onb { max-width: 620px; margin-inline: auto; }

.onb-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 1.75rem;
}
.onb-progress i {
  flex: 1;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  transition: background var(--t);
}
.onb-progress i.is-on { background: var(--accent); }

.onb-step[hidden] { display: none !important; }
.onb-q:focus, .onb-q:focus-visible { outline: none; }
.onb-q {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.5rem;
}
.onb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  align-items: center;
}
.btn-text {
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--tx-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: var(--tx); }

.pending {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  background: #fff;
  display: grid;
  gap: 0.5rem;
}

/* ---------- Utilidades ---------------------------------------------------- */

.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.center .lede, .center .section-head { margin-inline: auto; }
.center .display { max-width: 16em; margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   PÁGINAS LEGALES  (términos, cancelación, privacidad)
   Texto corrido. No introduce colores ni tipografías nuevas.
   ========================================================================== */

.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}
.prose p { color: var(--tx-muted); }
.prose ul, .prose ol {
  color: var(--tx-muted);
  padding-left: 1.15rem;
  margin: 0 0 1em;
  display: grid;
  gap: 0.4rem;
}
.prose li { padding-left: 0.2rem; }
.prose a { color: var(--accent-text); }
.prose strong { color: var(--tx); }

/* Decisión pendiente de Lucas. Visible a propósito: bloquea la publicación. */
.todo {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--r);
  color: var(--accent-text);
  padding: 0.15em 0.45em;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-style: normal;
}

.legal-banner {
  border: 1px dashed var(--accent);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.legal-banner p { margin: 0; color: var(--tx); font-size: 0.9375rem; }

/* Los enlaces de ancla no deben quedar debajo del header sticky */
[id] { scroll-margin-top: 84px; }
@media (max-width: 899px) { [id] { scroll-margin-top: 76px; } }

/* El panel PRO no se estira a la altura del panel comercial */
.pro-panel { align-self: start; }
