/* ═══════════════════════════════════════════════════════════════════════════
   GLS Gen — Landing · "Ledger Machine"
   ---------------------------------------------------------------------------
   Sistema visual construido sobre el renglón contable: hairlines de ancho
   completo, cifras en monoespaciada tabular y tinta teal sobre fondo ink.
   Todo el color y el espaciado sale de los tokens de :root — no hay valores
   arbitrarios sueltos en el HTML.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root,
[data-bs-theme="dark"] {
  --ink:            #080C10;
  --ink-raised:     #0F151C;
  --ink-card:       #131B24;
  --ink-inset:      #060A0D;

  --teal:           #00C6A9;
  --teal-bright:    #2BF0D2;
  --teal-ink:       rgba(0, 198, 169, .14);
  --teal-edge:      rgba(0, 198, 169, .34);

  --violet:         #A78BFA;
  --violet-ink:     rgba(124, 58, 237, .16);
  --violet-edge:    rgba(167, 139, 250, .32);

  --stamp:          #F5A524;
  --stamp-ink:      rgba(245, 165, 36, .13);
  --stamp-edge:     rgba(245, 165, 36, .32);

  --rose:           #FB7185;
  --rose-ink:       rgba(251, 113, 133, .12);
  --emerald:        #34D399;
  --emerald-ink:    rgba(52, 211, 153, .12);
  --ember:          #FB923C;
  --ember-ink:      rgba(251, 146, 60, .12);

  --rule:           rgba(255, 255, 255, .07);
  --rule-strong:    rgba(255, 255, 255, .13);
  --rule-ledger:    rgba(255, 255, 255, .028);

  --fg:             #F2F6F8;
  --fg-body:        #A8B6C2;
  --fg-dim:         #64748B;

  --shell:          rgba(8, 12, 16, .82);
  --lift:           0 1px 0 rgba(255,255,255,.04), 0 18px 44px -18px rgba(0,0,0,.9);
  --lift-hi:        0 1px 0 rgba(255,255,255,.07), 0 26px 60px -20px rgba(0,0,0,.95);

  --font-display:   "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --font-body:      "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter:         clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:          clamp(4.5rem, 9vw, 7.5rem);
  --r-sm:           8px;
  --r-md:           14px;
  --r-lg:           20px;
}

[data-bs-theme="light"] {
  --ink:            #E8ECEB;
  --ink-raised:     #F3F6F5;
  --ink-card:       #FFFFFF;
  --ink-inset:      #DDE4E3;

  --teal:           #00806E;
  --teal-bright:    #00A88F;
  --teal-ink:       rgba(0, 128, 110, .10);
  --teal-edge:      rgba(0, 128, 110, .30);

  --violet:         #6D28D9;
  --violet-ink:     rgba(109, 40, 217, .09);
  --violet-edge:    rgba(109, 40, 217, .28);

  --stamp:          #B45309;
  --stamp-ink:      rgba(180, 83, 9, .10);
  --stamp-edge:     rgba(180, 83, 9, .28);

  --rose:           #BE123C;
  --rose-ink:       rgba(190, 18, 60, .09);
  --emerald:        #047857;
  --emerald-ink:    rgba(4, 120, 87, .09);
  --ember:          #C2410C;
  --ember-ink:      rgba(194, 65, 12, .09);

  --rule:           rgba(10, 26, 32, .11);
  --rule-strong:    rgba(10, 26, 32, .20);
  --rule-ledger:    rgba(10, 26, 32, .045);

  --fg:             #08161B;
  --fg-body:        #3D4F58;
  --fg-dim:         #6B7F89;

  --shell:          rgba(232, 236, 235, .86);
  --lift:           0 1px 0 rgba(255,255,255,.9), 0 14px 32px -16px rgba(8,22,27,.28);
  --lift-hi:        0 1px 0 rgba(255,255,255,.9), 0 22px 48px -18px rgba(8,22,27,.34);
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background-color: var(--ink);
  /* El renglón contable: hairlines cada 34px detrás de todo el documento. */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule-ledger) 0px,
    var(--rule-ledger) 1px,
    transparent 1px,
    transparent 34px
  );
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--teal); color: var(--ink); }

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

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: var(--sec-y); position: relative; }
.sec-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Regla maestra: separa secciones con el mismo hairline del renglón. */
.rule-full {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), var(--rule), transparent);
}

/* ── MICRO-TIPOGRAFÍA ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-edge), transparent);
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { display: none; }
.eyebrow-center::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal-edge);
}

.h-sec {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  max-width: 20ch;
}
.h-sec-center { margin-inline: auto; text-align: center; max-width: 22ch; }

.lede {
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  color: var(--fg-body);
  max-width: 56ch;
  margin-top: 1.1rem;
}
.lede-center { margin-inline: auto; text-align: center; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.ink-teal    { color: var(--teal); }
.ink-violet  { color: var(--violet); }
.ink-stamp   { color: var(--stamp); }
.ink-dim     { color: var(--fg-dim); }
.ink-strong  { color: var(--fg); }

/* ── BOTONES ──────────────────────────────────────────────────────────────── */
.btn-ink,
.btn-ghost {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: var(--r-sm);
  padding: .78rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.8,.3,1),
              box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-ink {
  background: var(--teal);
  color: #04120F;
  box-shadow: 0 1px 0 rgba(255,255,255,.24) inset, 0 8px 22px -10px var(--teal);
}
.btn-ink:hover { background: var(--teal-bright); transform: translateY(-2px); color: #04120F; }
.btn-ink:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--teal-edge); color: var(--teal); background: var(--teal-ink); }

.btn-sm { padding: .5rem 1rem; font-size: .84rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── BARRA DE CREDIBILIDAD (encabezado del libro) ─────────────────────────── */
.ledger-head {
  background: var(--ink-inset);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.4rem;
  position: relative;
  overflow: hidden;
}
.ledger-head::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 140% at 8% 50%, var(--teal-ink), transparent 62%),
              radial-gradient(ellipse 45% 140% at 96% 50%, var(--violet-ink), transparent 62%);
}
.ledger-head-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.kpi-pair { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.kpi { display: flex; flex-direction: column; gap: .1rem; }
.kpi-val {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -.04em;
}
.kpi-lbl {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.v-rule { width: 1px; align-self: stretch; min-height: 42px; background: var(--rule-strong); }

.head-quote {
  font-family: var(--font-display);
  font-size: clamp(.98rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--fg);
  max-width: 62ch;
}
.head-quote .accent { color: var(--teal); }

/* ── NAVBAR ───────────────────────────────────────────────────────────────── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--shell);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink-card);
  border: 1px solid var(--teal-edge);
  box-shadow: 0 0 0 3px var(--teal-ink);
}
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--fg);
}
.brand-name em { font-style: normal; color: var(--teal); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.nav-links { display: none; align-items: center; gap: .15rem; }
.nav-link-ink {
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease;
}
.nav-link-ink:hover { color: var(--fg); background: var(--rule); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }

@media (min-width: 992px) { .nav-links { display: flex; } }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%;
  height: 90%;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 70% 20%, var(--teal-ink), transparent 68%),
              radial-gradient(ellipse 45% 55% at 12% 80%, var(--violet-ink), transparent 66%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--teal);
  background: var(--teal-ink);
  border: 1px solid var(--teal-edge);
  border-radius: 100px;
  padding: .32rem .8rem;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal-edge);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 var(--teal-edge); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(2.15rem, 5.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 1.4rem 0 0;
}
.hero-title .quiet {
  display: block;
  font-size: .46em;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--fg-dim);
  line-height: 1.3;
  margin-bottom: .6rem;
  font-family: var(--font-body);
}
/* El verbo del producto, subrayado como una anotación a mano en el libro. */
.hero-title .marked {
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}
.hero-title .marked::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 3px;
  background: var(--teal);
  opacity: .3;
  transform: scaleX(0);
  transform-origin: left;
  animation: markUnderline .9s .7s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes markUnderline { to { transform: scaleX(1); } }

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--fg-body); max-width: 50ch; margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Fila de cifras del hero — leída como un asiento contable */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.75rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 560px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stat { background: var(--ink); padding: .9rem 1rem; }
.hero-stat-v {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.hero-stat-l {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: .25rem;
}

/* ── HERO SVG: el comprobante escaneado ───────────────────────────────────── */
.scan-frame {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--ink-card);
  box-shadow: var(--lift-hi);
  overflow: hidden;
}
.scan-frame::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.05), transparent 40%);
}
.scan-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.scan-bar .led { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulseDot 2s ease-out infinite; }
.scan-frame svg { display: block; width: 100%; height: auto; }

.doc-paper   { fill: var(--ink-inset); stroke: var(--rule); stroke-width: 1; }
.doc-line    { fill: var(--rule-strong); }
.doc-line-lt { fill: var(--rule); }
.doc-label   { fill: var(--fg-dim); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: .1em; }
.doc-val     { fill: var(--fg); font-family: var(--font-mono); font-size: 8px; font-weight: 700; }

/* Haz de escaneo que recorre el comprobante */
@keyframes scanSweep {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(216px); opacity: 0; }
}
.scan-beam { animation: scanSweep 4.2s cubic-bezier(.5,0,.5,1) infinite; }

/* Campos extraídos: aparecen escalonados a medida que el haz los cruza */
@keyframes fieldPop {
  0%, 12%  { opacity: 0; transform: translateX(-8px); }
  22%, 88% { opacity: 1; transform: translateX(0); }
  100%     { opacity: 0; transform: translateX(-8px); }
}
.field-out { animation: fieldPop 4.2s ease-out infinite; opacity: 0; }
.field-out.f1 { animation-delay: .15s; }
.field-out.f2 { animation-delay: .70s; }
.field-out.f3 { animation-delay: 1.25s; }
.field-out.f4 { animation-delay: 1.80s; }
.field-out.f5 { animation-delay: 2.35s; }

/* Trazo del conector que "cose" el campo del papel al chip extraído */
@keyframes traceDraw {
  0%, 10%  { stroke-dashoffset: 60; }
  26%, 90% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 60; }
}
.trace {
  stroke: var(--teal);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  opacity: .5;
  animation: traceDraw 4.2s ease-out infinite;
}
.trace.f1 { animation-delay: .15s; }
.trace.f2 { animation-delay: .70s; }
.trace.f3 { animation-delay: 1.25s; }
.trace.f4 { animation-delay: 1.80s; }
.trace.f5 { animation-delay: 2.35s; }

.chip-plate { fill: var(--ink-raised); stroke: var(--teal-edge); stroke-width: 1; }
.chip-key   { fill: var(--fg-dim); font-family: var(--font-mono); font-size: 5.6px; letter-spacing: .1em; }
.chip-value { fill: var(--teal); font-family: var(--font-mono); font-size: 7.4px; font-weight: 700; }

.scan-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--fg-dim);
}
.scan-foot strong { color: var(--teal); font-weight: 700; }

/* ── TIRA DE CONFIANZA ────────────────────────────────────────────────────── */
.trust-strip {
  border-block: 1px solid var(--rule);
  background: var(--ink-raised);
  padding-block: 1rem;
  overflow: hidden;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1.5rem;
}
.trust-cell {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-body);
}
.trust-cell i { color: var(--teal); font-size: .95rem; }
.trust-div { width: 1px; height: 16px; background: var(--rule-strong); }

/* ── TARJETAS GENÉRICAS ───────────────────────────────────────────────────── */
.card-ink {
  background: var(--ink-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.6rem;
  height: 100%;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s ease, box-shadow .22s ease;
}
.card-ink:hover { transform: translateY(-3px); border-color: var(--rule-strong); box-shadow: var(--lift); }

.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card-body-text { font-size: .89rem; color: var(--fg-body); line-height: 1.6; }

.glyph {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.glyph-teal    { background: var(--teal-ink);    color: var(--teal); }
.glyph-violet  { background: var(--violet-ink);  color: var(--violet); }
.glyph-stamp   { background: var(--stamp-ink);   color: var(--stamp); }
.glyph-rose    { background: var(--rose-ink);    color: var(--rose); }
.glyph-emerald { background: var(--emerald-ink); color: var(--emerald); }
.glyph-ember   { background: var(--ember-ink);   color: var(--ember); }

.grid { display: grid; gap: 1rem; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.split .grid { margin-top: 0; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ── DOLORES: entradas de un libro con importe en rojo ────────────────────── */
.pain { position: relative; padding-left: 1.4rem; }
.pain::before {
  content: "";
  position: absolute; left: 0; top: .25rem; bottom: .25rem;
  width: 2px;
  border-radius: 2px;
  background: var(--rose);
  opacity: .55;
  transition: opacity .22s ease;
}
.pain:hover::before { opacity: 1; }
.pain-cost {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .7rem;
  display: block;
}

/* ── BENEFICIOS ───────────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 340px) 1fr; } }

.benefit {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--ink-card);
  transition: border-color .2s ease, transform .2s ease;
}
.benefit:hover { border-color: var(--teal-edge); transform: translateY(-2px); }
.benefit .glyph { width: 34px; height: 34px; border-radius: 9px; font-size: .95rem; }
.benefit-t { font-size: .9rem; font-weight: 700; color: var(--fg); line-height: 1.3; }
.benefit-d { font-size: .8rem; color: var(--fg-dim); line-height: 1.5; margin-top: .2rem; }

/* Tarjeta destacada "tu proceso a medida" */
.benefit-flag {
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  border-color: var(--teal-edge);
  background: linear-gradient(155deg, var(--teal-ink), transparent 70%), var(--ink-card);
  box-shadow: 0 0 0 1px var(--teal-ink);
}
.flag-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.benefit-note {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--teal-edge);
  font-size: .8rem;
  color: var(--fg-body);
  line-height: 1.5;
}
.benefit-note i { color: var(--teal); margin-top: .18rem; }

/* ── CARRUSEL DE MÓDULOS ──────────────────────────────────────────────────── */
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.rail-nav { display: flex; align-items: center; gap: .5rem; }
.rail-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-card);
  border: 1px solid var(--rule-strong);
  color: var(--fg);
  cursor: pointer;
  font-size: 1rem;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.rail-btn:hover:not(:disabled) { border-color: var(--teal-edge); color: var(--teal); transform: translateY(-2px); }
.rail-btn:disabled { opacity: .3; cursor: not-allowed; }

.rail-viewport { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: .35rem 1.25rem;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; user-select: none; }

.rail-item {
  flex: 0 0 clamp(268px, 78vw, 330px);
  scroll-snap-align: start;
}
@media (min-width: 768px) { .rail-item { flex-basis: 330px; } }

.mod {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ink-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.8,.3,1), border-color .24s ease, box-shadow .24s ease;
}
/* Filete de color en el canto superior — identifica la familia del módulo. */
.mod::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mod-c, var(--teal));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.mod:hover { transform: translateY(-6px); border-color: var(--rule-strong); box-shadow: var(--lift-hi); }
.mod:hover::before { transform: scaleX(1); }

.mod-teal    { --mod-c: var(--teal); }
.mod-violet  { --mod-c: var(--violet); }
.mod-stamp   { --mod-c: var(--stamp); }
.mod-rose    { --mod-c: var(--rose); }
.mod-emerald { --mod-c: var(--emerald); }
.mod-ember   { --mod-c: var(--ember); }

.mod-flag {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mod-c);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: .15rem .55rem;
}
.mod .glyph { background: color-mix(in srgb, var(--mod-c) 13%, transparent); color: var(--mod-c); margin-bottom: 1rem; }

/* Retrato de agente (Agent Builder y los que se sumen) — trae su propia paleta a
   color, no el tinte de módulo de .glyph: se muestra suelto, sin fondo. */
.mod-agent-portrait { display: inline-block; width: 56px; height: 56px; margin-bottom: 1rem; }
.mod-role {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mod-c);
  display: block;
  margin-bottom: .35rem;
}
.mod h3 { font-size: 1.15rem; margin-bottom: .55rem; padding-right: 3.5rem; }
.mod-desc { font-size: .85rem; color: var(--fg-body); line-height: 1.6; margin-bottom: 1.1rem; }
.mod-list { display: flex; flex-direction: column; gap: .45rem; margin-top: auto; }
.mod-li { display: flex; gap: .5rem; align-items: flex-start; font-size: .79rem; color: var(--fg-body); line-height: 1.45; }
.mod-li i { color: var(--mod-c); font-size: .7rem; margin-top: .3rem; flex-shrink: 0; }
.mod-li strong { color: var(--fg); font-weight: 600; }

.rail-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .5rem; }
.rail-dot {
  width: 22px; height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: var(--rule-strong);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.rail-dot[aria-current="true"] { background: var(--teal); width: 34px; }

/* Sub-encabezado de familia de módulos */
.family {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.1rem;
}
.family-chip { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; }
.family-name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--fg); }
.family-note {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.family-rule { flex: 1; height: 1px; background: var(--rule); min-width: 20px; }

.modules-frame {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── PASOS (secuencia real: la numeración informa) ────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--ink-card);
  padding: 1.9rem 1.6rem;
  position: relative;
  transition: background .22s ease;
}
.step:hover { background: var(--ink-raised); }
.step-i {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.step-i::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.step h4 { font-size: 1.08rem; margin-bottom: .55rem; }

/* ── CASOS DE USO ─────────────────────────────────────────────────────────── */
.usecase { display: flex; flex-direction: column; }
.usecase-mark { font-size: 1.7rem; line-height: 1; margin-bottom: .9rem; }
.usecase-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal-edge);
  background: var(--teal-ink);
  border-radius: 100px;
  padding: .2rem .6rem;
  align-self: flex-start;
  margin-top: 1rem;
}

/* ── PRECIOS ──────────────────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.price-grid + .lede { margin-top: 1.75rem; font-size: .82rem; color: var(--fg-dim); }
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s ease, box-shadow .22s ease;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.price-featured { border-color: var(--teal-edge); box-shadow: 0 0 0 1px var(--teal-ink), var(--lift); }
.price-flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .18rem .7rem;
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: .6rem;
}
.price-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.05em;
  line-height: 1;
}
.price-amount sup { font-size: .95rem; font-weight: 600; top: -.9em; }
.price-amount span { font-family: var(--font-body); font-size: .78rem; font-weight: 400; color: var(--fg-dim); letter-spacing: 0; }
.price-amount-alt { font-size: 1.5rem; }
.price-desc { font-size: .82rem; color: var(--fg-dim); line-height: 1.55; margin: .8rem 0 1.1rem; }
.price-rule { height: 1px; background: var(--rule); margin-bottom: 1.1rem; }
.price-li { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--fg-body); margin-bottom: .5rem; line-height: 1.45; }
.price-li i { color: var(--teal); font-size: .78rem; margin-top: .28rem; flex-shrink: 0; }
.price-cta { margin-top: auto; padding-top: 1.4rem; }

@keyframes shimmer { to { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--rule) 25%, var(--rule-strong) 50%, var(--rule) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 6px;
}
.skeleton[data-sk="name"]       { height: 12px; width: 45%; margin-bottom: 1.2rem; }
.skeleton[data-sk="amount"]     { height: 34px; width: 62%; margin-bottom: 1.4rem; }
.skeleton[data-sk="line"]       { height: 10px; width: 88%; margin-bottom: .6rem; }
.skeleton[data-sk="line-short"] { height: 10px; width: 64%; margin-bottom: 6rem; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.foot { background: var(--ink-inset); border-top: 1px solid var(--rule); padding-block: 3.5rem 1.75rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.foot-h {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: .9rem;
}
.foot-links { display: flex; flex-direction: column; gap: .5rem; }
.foot-link { font-size: .86rem; color: var(--fg-body); text-decoration: none; transition: color .18s ease; width: fit-content; }
.foot-link:hover { color: var(--teal); }
.foot-copy {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-dim);
}

/* ── REVELADO AL SCROLL ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── MODAL (Bootstrap, re-vestido con los tokens) ─────────────────────────── */
.modal-content {
  background: var(--ink-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  color: var(--fg-body);
}
.modal-header, .modal-footer { border-color: var(--rule); padding: 1.2rem 1.5rem; }
.modal-body { padding: 1.5rem; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--fg); }

.stepper { display: flex; align-items: center; margin-bottom: 1.6rem; }
.step-node { display: flex; align-items: center; gap: .5rem; }
.step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 700;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: all .22s ease;
}
.step-node.active .step-circle { border-color: var(--teal); background: var(--teal); color: #04120F; }
.step-node.done   .step-circle { border-color: var(--emerald); background: var(--emerald); color: #04120F; }
.step-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); white-space: nowrap; }
.step-node.active .step-label { color: var(--fg); }
.step-connector { flex: 1; height: 1px; background: var(--rule); margin-inline: .6rem; }

.form-label { font-size: .82rem; font-weight: 500; color: var(--fg-body); margin-bottom: .35rem; }
.form-control, .form-select {
  background: var(--ink-inset);
  border: 1px solid var(--rule-strong);
  color: var(--fg);
  border-radius: var(--r-sm);
  padding: .6rem .8rem;
  font-size: .9rem;
  font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
  background: var(--ink-inset);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-ink);
  color: var(--fg);
}
.form-control::placeholder { color: var(--fg-dim); }
.form-control.is-invalid { border-color: var(--rose); box-shadow: none; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px var(--rose-ink); }
.invalid-feedback { font-size: .76rem; color: var(--rose); }
.input-hint { font-size: .74rem; color: var(--fg-dim); margin-top: .3rem; }

.input-group .btn-eye {
  background: var(--ink-inset);
  border: 1px solid var(--rule-strong);
  border-left: none;
  color: var(--fg-dim);
  padding-inline: .8rem;
}
.input-group .btn-eye:hover { color: var(--teal); }
.input-group .form-control { border-right: none; }

.pick {
  display: block;
  position: relative;
  background: var(--ink-inset);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--pick-c, var(--rule-strong));
  border-radius: var(--r-md);
  padding: .85rem .9rem;
  height: 100%;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pick:hover { transform: translateY(-2px); }
.pick:has(input:checked) { background: color-mix(in srgb, var(--pick-c) 10%, var(--ink-inset)); border-color: var(--pick-c); }
.pick.is-locked { opacity: .4; cursor: not-allowed; }
.pick.is-locked:hover { transform: none; }
.pick .form-check-input { position: absolute; top: .7rem; right: .7rem; margin: 0; }
.pick .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.pick-glyph {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: .9rem;
  background: color-mix(in srgb, var(--pick-c) 14%, transparent);
  color: var(--pick-c);
  margin-bottom: .5rem;
}
.pick-t { font-size: .8rem; font-weight: 700; color: var(--fg); padding-right: 1.5rem; line-height: 1.25; }
.pick-d { font-size: .71rem; color: var(--fg-dim); line-height: 1.4; margin-top: .15rem; }

.pick-teal   { --pick-c: var(--teal); }
.pick-violet { --pick-c: var(--violet); }
.pick-stamp  { --pick-c: var(--stamp); }
.pick-rose   { --pick-c: var(--rose); }
.pick-ember   { --pick-c: var(--ember); }
.pick-emerald { --pick-c: var(--emerald); }

.btn-submit {
  background: var(--teal);
  border: none;
  color: #04120F;
  font-weight: 600;
  padding: .65rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn-submit:hover { background: var(--teal-bright); transform: translateY(-1px); color: #04120F; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-back {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  padding: .6rem 1rem;
  font-size: .85rem;
  cursor: pointer;
}
.btn-back:hover { color: var(--fg); border-color: var(--rule-strong); }

.alert-form {
  background: var(--rose-ink);
  border: 1px solid var(--rose);
  border-radius: var(--r-sm);
  color: var(--rose);
  font-size: .82rem;
  padding: .6rem .85rem;
}

.done-panel { text-align: center; padding: 1.25rem .5rem; }
.done-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--emerald-ink);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}
.done-sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--teal);
  background: var(--teal-ink);
  border: 1px solid var(--teal-edge);
  border-radius: var(--r-sm);
  padding: .35rem .8rem;
  margin-top: .5rem;
}
.done-note {
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--stamp);
  background: var(--stamp-ink);
  border: 1px solid var(--stamp-edge);
  border-radius: var(--r-sm);
  padding: .55rem .85rem;
  text-align: left;
}

/* ── UTILIDADES ───────────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.mt-a { margin-top: auto; }
.center { text-align: center; }
.center > .chip { margin-bottom: 1.4rem; }
.steps { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.rail-head .h-sec { font-size: clamp(1.35rem, 2.6vw, 1.9rem); max-width: 24ch; }
.rail-head .eyebrow { margin-bottom: .7rem; }
.rail-head .eyebrow i { font-size: .45rem; }
.hide-sm { display: none; }
@media (min-width: 576px) { .hide-sm { display: inline-flex; } }

/* ── 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; }
  .field-out, .trace { opacity: 1; }
  .hero-title .marked::after { transform: scaleX(1); }
  .rail { scroll-behavior: auto; }
}
