/* ============================================================
   DIAPHANUM — sistema visual
   Estilo editorial (FT/Bloomberg) · azul protagonista
   ============================================================ */

:root {
  /* paleta */
  --paper:        #FFFFFF;   /* base blanca */
  --paper-strong: #F6F7F8;
  --paper-line:   #ECEEF1;
  --white:        #FFFFFF;
  --ink:          #0B1623;   /* casi-negro azulado */
  --ink-soft:     #2A3441;
  --ink-mute:     #5B6573;
  --ink-faint:    #8B93A0;
  --rule:         #DDE2E8;   /* hairline gris-frío */
  --rule-soft:    #ECEFF3;

  --blue:         #1593D0;   /* azul del logo */
  --blue-deep:    #0E6FA0;
  --blue-dark:    #08385A;
  --blue-pale:    #DDEEF8;
  --blue-tint:    #F2F8FC;

  --accent-pos:   #1F7A4D;   /* indicadores de datos */
  --accent-neg:   #B33A2E;
  --accent-amber: #C58A1B;   /* sólo en logo idealmente, reservado */

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* tipografía */
  --font-serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --col-gap: 32px;
  --col-gap-sm: 20px;
  --page-max: 1360px;
  --page-pad: clamp(20px, 4vw, 56px);

  /* type scale */
  --fs-display: clamp(48px, 7.5vw, 112px);
  --fs-h1:      clamp(40px, 5.5vw, 76px);
  --fs-h2:      clamp(28px, 3.2vw, 44px);
  --fs-h3:      clamp(20px, 1.8vw, 26px);
  --fs-lede:    clamp(18px, 1.4vw, 22px);
  --fs-body:    16px;
  --fs-small:   13px;
  --fs-tiny:    11px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- base ---------- */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "ss01";
}

/* ---------- container ---------- */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

/* ---------- type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.kicker-blue { color: var(--blue-deep); }
.kicker-dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 8px;
  transform: translateY(-2px);
}
.serif { font-family: var(--font-serif); font-weight: 400; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h1); }
h2 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h3); }

.lede { font-family: var(--font-serif); font-size: var(--fs-lede); line-height: 1.45; color: var(--ink-soft); font-weight: 400; }
.body-text { color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }
.body-text p + p { margin-top: 0.9em; }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }

/* ---------- rules ---------- */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-soft { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.rule-double {
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--link { padding: 0; height: auto; background: none; color: var(--blue-deep); border: 0; }
.btn--link:hover { color: var(--blue-dark); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(11,22,35,0.03);
}
.nav__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand img { width: 28px; height: 28px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  transition: color .15s;
  position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--blue);
}
.nav__cta { margin-left: 12px; }
.nav__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-right: 18px;
  border-right: 1px solid var(--rule);
  margin-right: 4px;
}

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 64px; }

/* HERO VARIANT A — editorial portada (default) */
[data-hero="editorial"] .hero--editorial { display: block; }
[data-hero="split"]     .hero--split     { display: block; }
[data-hero="datafirst"] .hero--datafirst { display: block; }
.hero--editorial, .hero--split, .hero--datafirst { display: none; }

.hero-edition {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 28px;
}
.hero-edition__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-edition__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 20px;
}

/* Variant A : editorial */
.hero--editorial .hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero--editorial .headline {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero--editorial .headline em {
  font-style: italic;
  color: var(--blue-deep);
}
.hero--editorial .hero-lede {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero--editorial .hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero--editorial .hero-side {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero--editorial .hero-side .byline {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.hero--editorial .hero-side h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.hero--editorial .hero-side p { margin: 0 0 14px; }
.hero--editorial .hero-side .pull {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

/* Variant B : split with chart */
.hero--split .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero--split .headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero--split .headline em {
  font-style: italic;
  color: var(--blue-deep);
}
.hero--split .hero-lede {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 48ch;
}
.hero--split .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero--split .preview-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 28px;
  position: relative;
}
.hero--split .preview-card::before {
  content: "VISTA · DASHBOARD ▸ ADJUDICACIONES MENSUALES";
  position: absolute;
  top: -10px; left: 24px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* Variant C : data-first */
.hero--datafirst { text-align: center; }
.hero--datafirst .pre {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.hero--datafirst .megafigure {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
.hero--datafirst .megafigure em {
  font-style: italic;
  color: var(--blue);
}
.hero--datafirst .megafigure-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-soft);
  margin-top: 24px;
}
.hero--datafirst .headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 56px;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero--datafirst .hero-lede {
  margin: 28px auto 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}
.hero--datafirst .hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- ticker (cifras) ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker__inner {
  display: flex;
  gap: 48px;
  padding: 14px 0;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker__item b {
  color: var(--blue);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.ticker__sep { color: #4A5563; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section--paper { background: var(--paper-strong); }
.section--white { background: var(--white); }
.section--ink   { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .body-text { color: #B9C2CE; }
.section--ink .kicker { color: #7F8A98; }
.section--ink .rule, .section--ink .rule-soft { border-color: #233246; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section--ink .section-head { border-bottom-color: #233246; }
.section-head__title { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { max-width: 14ch; text-wrap: balance; }
.section-head__lede { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; color: var(--ink-soft); max-width: 58ch; }
.section--ink .section-head__lede { color: #B9C2CE; }

/* ---------- 4 capas ---------- */
.capas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}
.capa {
  border-right: 1px solid var(--rule);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.capa__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
  margin-bottom: 28px;
}
.capa__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.capa__body { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; flex: 1; }
.capa__tag {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- numeros / impacto ---------- */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.impacto {
  grid-column: span 3;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
.impacto:first-child { border-left: 0; padding-left: 0; }
.impacto__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.impacto__value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.impacto__value em { font-style: italic; color: var(--blue-deep); }
.impacto__sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ---------- modulos grid ---------- */
.modulos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.modulo {
  background: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  transition: background .25s var(--ease-out), transform .35s var(--ease-out);
  position: relative;
}
.modulo:hover { background: var(--blue-tint); }
.modulo::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), color .25s;
}
.modulo:hover::after { opacity: 1; transform: translateX(0); color: var(--blue-deep); }
.modulo__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.modulo__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 6px;
}
.modulo__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- chart preview ---------- */
.chart {
  display: block;
  width: 100%;
  height: auto;
}
.chart .grid { stroke: var(--rule-soft); stroke-width: 1; }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart .label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.chart .num { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-mute); }
.chart .area { fill: rgba(21,147,208,0.12); }
.chart .line { stroke: var(--blue); stroke-width: 1.8; fill: none; }
.chart .dot { fill: var(--blue); }
.chart .bar { fill: var(--blue); }
.chart .bar-soft { fill: rgba(21,147,208,0.25); }

/* ---------- preview KPIs ---------- */
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.preview-kpi__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.preview-kpi__val {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.preview-kpi__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-pos);
  margin-top: 4px;
}
.preview-kpi__delta.neg { color: var(--accent-neg); }

/* ---------- listas data ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-variant-numeric: tabular-nums;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.data-table td.num { font-family: var(--font-mono); text-align: right; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .rank {
  width: 28px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- cobertura ---------- */
.cobertura {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.timeline {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.timeline__row {
  display: grid;
  grid-template-columns: 80px 1fr 160px;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.timeline__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--blue-deep);
  font-weight: 500;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.timeline__title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-style: normal;
}
.timeline__metric {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  color: var(--ink-mute);
}

/* ---------- pricing teaser ---------- */
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.plan {
  background: var(--white);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
}
.plan--featured { background: var(--ink); color: var(--paper); }
.plan--featured .plan__name, .plan--featured .plan__price-num { color: var(--paper); }
.plan--featured .plan__desc, .plan--featured .plan__feat { color: #B9C2CE; }
.plan--featured .plan__feat li::before { background: var(--blue); }
.plan__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.plan--featured .plan__tag { color: var(--blue); }
.plan__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.plan__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; min-height: 42px; }
.plan__price {
  margin: 22px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__price-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan__price-unit { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.plan--featured .plan__price-unit { color: #8D9AAC; }
.plan__feat {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}
.plan__feat li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.plan--featured .plan__feat li { border-top-color: #233246; }
.plan__feat li:first-child { border-top: 0; }
.plan__feat li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 10px; height: 1px;
  background: var(--blue-deep);
}
.plan__cta { margin-top: 24px; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  padding: 120px 0;
}
.cta-final h2 {
  font-size: clamp(40px, 6vw, 88px);
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}
.cta-final h2 em { font-style: italic; color: var(--blue-deep); }
.cta-final .lede { margin: 28px auto 0; max-width: 56ch; }
.cta-final .actions {
  display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #233246;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img { width: 40px; height: 40px; }
.footer__tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: #B9C2CE;
  margin-top: 16px;
  max-width: 32ch;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8D9AAC;
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 6px 0; font-size: 14px; }
.footer__col a { color: var(--paper); }
.footer__col a:hover { color: var(--blue); }
.footer__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7A8C;
}

/* ---------- side notes (FT-ish) ---------- */
.note {
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- two-col text ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.twocol .body-text { max-width: none; }

/* ---------- methodology page items ---------- */
.method-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.method-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.method-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
}
.method-item__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.method-item__body { color: var(--ink-soft); line-height: 1.6; font-size: 15px; }

/* ---------- generic responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero--editorial .hero-grid,
  .hero--split .hero-grid { grid-template-columns: 1fr; }
  .hero--editorial .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .capas { grid-template-columns: repeat(2, 1fr); }
  .modulos { grid-template-columns: repeat(2, 1fr); }
  .impacto-grid { grid-template-columns: repeat(2, 1fr); }
  .impacto { grid-column: span 1; border-left: 0; padding-left: 0; }
  .cobertura { grid-template-columns: 1fr; }
  .pricing-teaser { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; gap: 24px; }
  .method-item { grid-template-columns: 1fr; gap: 12px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .timeline__row { grid-template-columns: 64px 1fr; }
  .timeline__metric { grid-column: span 2; text-align: left; padding-left: 84px; }
}

/* ============================================================
   MOTION — scroll reveals, clip-path text, magnetic CTAs
   ============================================================ */

/* Initial state for any [data-reveal] node — set via JS to allow no-JS fallback */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle fade-only variant for ledes / captions */
.js [data-reveal="fade"] { transform: none; }

/* Clip-path mask reveal for headlines — sweep up like a poster unrolling */
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal="clip"].is-in {
  /* avoid 4-arg → 1-arg collapse which kills the transition */
  clip-path: inset(0 0 0.01% 0);
}

/* Word-level stagger — JS wraps each word in <span class="word"><span>…</span></span> */
.js .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}
.js .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.0s var(--ease-out);
  transition-delay: var(--word-delay, 0s);
  will-change: transform;
}
.js .is-in .word > span,
.js .word.is-in > span {
  transform: translateY(0);
}

/* Hairline rule sweep */
.js .section-head { position: relative; }
.js .section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out);
}
.js .section-head.is-in::after { transform: scaleX(1); }

/* Magnetic-ish button — slight scale + arrow pull */
.btn { transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-1px); }

/* Capa hover lift */
.capa {
  transition: background .35s var(--ease-out);
  position: relative;
}
.capa::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.capa:hover::before { transform: scaleX(1); }

/* Count-up numbers — set tabular for stability while animating */
[data-count] { font-variant-numeric: tabular-nums; }

/* Hero entrance — staggered on load */
.js .hero [data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}
.js .hero.is-in [data-stagger] > * {
  animation: stagger-up 1.0s var(--ease-out) forwards;
}
.js .hero.is-in [data-stagger] > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero.is-in [data-stagger] > *:nth-child(2) { animation-delay: 0.15s; }
.js .hero.is-in [data-stagger] > *:nth-child(3) { animation-delay: 0.25s; }
.js .hero.is-in [data-stagger] > *:nth-child(4) { animation-delay: 0.35s; }
.js .hero.is-in [data-stagger] > *:nth-child(5) { animation-delay: 0.45s; }
.js .hero.is-in [data-stagger] > *:nth-child(6) { animation-delay: 0.55s; }
@keyframes stagger-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Parallax-ready side column on hero */
.js .hero-side, .js .preview-card {
  transition: transform .15s linear;
  will-change: transform;
}

/* Chart line draw — JS sets stroke-dasharray on .line elements */
.js .chart .line {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.js .chart.is-in .line {
  stroke-dashoffset: 0;
}
.js .chart .area, .js .chart .dot {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 1s;
}
.js .chart.is-in .area, .js .chart.is-in .dot { opacity: 1; }

.js .chart .bar, .js .chart .bar-soft {
  transform-origin: center bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--bar-delay, 0s);
}
.js .chart.is-in .bar, .js .chart.is-in .bar-soft { transform: scaleY(1); }

/* Modules grid — stagger reveal on scroll */
.js .modulos .modulo {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), background .25s var(--ease-out);
  transition-delay: var(--item-delay, 0s);
}
.js .modulos.is-in .modulo {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing plans stagger */
.js .pricing-teaser .plan {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--item-delay, 0s);
}
.js .pricing-teaser.is-in .plan {
  opacity: 1;
  transform: translateY(0);
}

/* Impacto block stagger */
.js .impacto-grid .impacto {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--item-delay, 0s);
}
.js .impacto-grid.is-in .impacto {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline rows stagger */
.js .timeline__row {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--item-delay, 0s);
}
.js .timeline.is-in .timeline__row {
  opacity: 1;
  transform: translateX(0);
}

/* Data table rows */
.js .data-table tbody tr {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--item-delay, 0s);
}
.js .data-table.is-in tbody tr {
  opacity: 1;
  transform: translateY(0);
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal="clip"],
  .js .word > span,
  .js .hero [data-stagger] > *,
  .js .modulos .modulo,
  .js .pricing-teaser .plan,
  .js .impacto-grid .impacto,
  .js .timeline__row,
  .js .data-table tbody tr,
  .js .chart .line,
  .js .chart .bar,
  .js .chart .bar-soft {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 280px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #233246;
  padding: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.tweaks.is-open { display: block; }
.tweaks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #233246;
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8D9AAC;
}
.tweaks__close {
  background: none; border: 0; color: #8D9AAC; padding: 4px 6px; line-height: 1;
}
.tweaks__close:hover { color: var(--paper); }
.tweaks__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8D9AAC;
  margin-bottom: 10px;
}
.tweaks__options { display: grid; gap: 8px; }
.tweaks__opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid #233246;
  text-align: left;
  color: var(--paper);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tweaks__opt:hover { border-color: var(--blue); }
.tweaks__opt.is-active { border-color: var(--blue); background: rgba(21,147,208,0.1); }
.tweaks__opt b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.tweaks__opt span {
  font-size: 11.5px;
  color: #8D9AAC;
  line-height: 1.4;
}
