/* Network Place — hoja de estilos única. Tema oscuro. Sin frameworks ni dependencias externas.
   Estados iniciales de animación: solo bajo html.anim (lo añade js/site.js si hay movimiento permitido). */

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2-variations"),
       url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Network Place: base casi negra y grises con criterio */
  --bg: #0a0b0d;
  --bg-1: #0f1114;
  --bg-2: #14161a;
  --line: #22252a;
  --line-2: #30343a;
  --text: #ecebe6;
  --text-2: #b3b6ba;
  --text-3: #868c93;

  /* eCapital: latón */
  --ec: #d6ab62;
  --ec-hi: #ecc98a;
  --ec-bg: #12100c;
  --ec-bg-2: #17140f;
  --ec-line: #2f291f;
  --ec-text-2: #bcb3a2;

  /* FounderFold: paleta oficial (no cambiar) */
  --ff-ink: #0e1013;
  --ff-graph: #1a1e23;
  --ff-paper: #f6f5f1;
  --ff-fog: #9aa0a6;
  --ff-green: #5cc497;
  --ff-line: #2c3238;

  --sans: "Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 184px);
  --top-h: 76px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ec); color: var(--bg); }
.product--ff ::selection { background: var(--ff-green); color: var(--ff-ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.product--ec :focus-visible { outline-color: var(--ec); }
.product--ff :focus-visible { outline-color: var(--ff-green); }

svg path { fill: none; stroke: currentColor; stroke-width: 1.5; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.nobr { white-space: nowrap; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.sep { display: inline-block; width: 4px; height: 4px; margin: 0 .7em; background: currentColor; opacity: .5; vertical-align: .22em; }
.note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text-3); }

/* ---------- Fondo que cambia por producto (solo con JS) ---------- */

.bgfx { display: none; }
html.anim .bgfx { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bgfx__l { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-io); }
.bgfx__l--ec { background: var(--ec-bg); }
.bgfx__l--ff { background: var(--ff-ink); }
html[data-theme="ec"] .bgfx__l--ec,
html[data-theme="ff"] .bgfx__l--ff { opacity: 1; }

/* ---------- Tipografía ---------- */

.display {
  font-size: clamp(40px, 6.6vw, 108px);
  line-height: .93;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -.032em;
  text-wrap: balance;
  max-width: 14em;
}
.display--xl {
  font-size: clamp(50px, 10.4vw, 176px);
  line-height: .86;
  letter-spacing: -.04em;
  max-width: 9em;
}
.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  font-weight: 380;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.lead strong { color: var(--text); font-weight: 560; }

.label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.label .num { color: var(--text); }
.product--ec .label .num { color: var(--ec); }
.product--ff .label .num { color: var(--ff-green); }
.label__sep { width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* Palabras con máscara (las crea el JS) */
.w { display: inline-block; vertical-align: top; overflow: hidden; padding: .08em .02em .2em; margin: -.08em -.02em -.2em; }
.w__i { display: inline-block; }

/* ---------- Cabecera ---------- */

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: transform .6s var(--ease-out);
}
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, .975);
  border-bottom: 1px solid var(--line);
  transition: opacity .4s ease;
}
html.js .top:not(.is-compact)::before { opacity: 0; }
html[data-theme="ec"] .top::before { background: rgba(18, 16, 12, .975); border-color: var(--ec-line); }
html[data-theme="ff"] .top::before { background: rgba(14, 16, 19, .975); border-color: var(--ff-line); }
.top__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--top-h);
  transition: transform .6s var(--ease-out);
}
.top.is-compact { transform: translateY(-14px); }
.top.is-compact .top__in { transform: translateY(7px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  font-stretch: 86%;
  font-size: 19px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__sq { fill: var(--text); }
.brand__dot { fill: var(--bg); transition: transform .5s var(--ease-out); transform-origin: 15px 15px; }
.brand:hover .brand__dot { transform: translate(-6px, -6px); }

.nav { position: relative; display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; }
.nav a { position: relative; padding: 10px 0; text-decoration: none; color: var(--text-2); transition: color .25s ease; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav__ind {
  position: absolute;
  left: 0; bottom: 4px;
  width: 100px; height: 2px;
  background: var(--text);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .3s ease;
}
.nav.has-active .nav__ind { opacity: 1; }
.nav[data-active="ecapital"] .nav__ind { background: var(--ec); }
.nav[data-active="founderfold"] .nav__ind { background: var(--ff-green); }
.top__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--text-3);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
html[data-theme="ec"] .top__progress { background: var(--ec); }
html[data-theme="ff"] .top__progress { background: var(--ff-green); }

@media (max-width: 720px) {
  :root { --top-h: 96px; }
  html { scroll-padding-top: 60px; }
  .top__in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px 44px; align-items: center; justify-content: stretch; gap: 0; }
  .brand { font-size: 18px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14.5px; }
  .nav a { padding: 11px 0; }
  .top.is-compact { transform: translateY(-52px); }
  .top.is-compact .top__in { transform: none; }
  .top.is-compact .brand { opacity: 0; }
  .brand { transition: opacity .3s ease; }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: clamp(640px, 96svh, 1100px);
  padding-top: var(--top-h);
  overflow: hidden;
  overflow: clip;
}
.hero__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html.anim .hero__base { opacity: 0; }
html.anim .hero__base.is-on { opacity: 1; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto;
  column-gap: 24px;
  padding-top: clamp(16px, 3vh, 36px);
  padding-bottom: clamp(28px, 5vh, 60px);
}
.hero__stage { position: absolute; top: 3%; bottom: 18%; left: 38%; right: var(--gutter); }
/* En pantallas anchas el diagrama se sale de la retícula hacia el margen derecho. */
@media (min-width: 1500px) { .hero__stage { left: 40%; right: calc((100% - 100vw) / 2 + var(--gutter)); } }
.hero__kicker {
  grid-column: 1 / span 7;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero__kicker .k1 { white-space: nowrap; }
@media (max-width: 480px) { .hero__kicker .k1 { display: none; } }
.hero__title {
  grid-column: 1 / span 9;
  grid-row: 3;
  position: relative;
  font-size: clamp(42px, 6.9vw, 116px);
  line-height: .9;
  font-weight: 640;
  font-stretch: 82%;
  letter-spacing: -.036em;
  max-width: 8.4em;
  text-wrap: balance;
}
.hl { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .14em; }
.hl--ec { text-decoration-color: var(--ec); }
.hl--ff { text-decoration-color: var(--ff-green); }
.hero__title.has-lines .hl { text-decoration: none; }
.hl__line {
  position: absolute;
  height: .05em;
  margin-top: -.1em;
  transform-origin: 0 50%;
  pointer-events: none;
}
.hl__line--ec { background: var(--ec); }
.hl__line--ff { background: var(--ff-green); }

.hero__row {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  margin-top: clamp(28px, 4.4vh, 52px);
}
.hero__lead {
  grid-column: 1 / span 6;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  font-weight: 380;
  color: var(--text-2);
  max-width: 33em;
  text-wrap: pretty;
}
.ln { color: var(--text); font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.ln--ec { text-decoration-color: var(--ec); }
.ln--ff { text-decoration-color: var(--ff-green); }
.ln:hover { text-decoration-thickness: 3px; }
.hero__legend {
  grid-column: 8 / span 5;
  justify-self: end;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 36em;
}
.hero__legend p { display: flex; align-items: baseline; gap: 10px; }
.key { flex: none; display: inline-block; width: 18px; height: 2px; transform: translateY(-3px); }
.key--ec { background: var(--ec); }
.key--ff { background: var(--ff-green); }
.hero__note { padding-left: 28px; opacity: .85; }

@media (max-width: 899px) {
  .hero { min-height: 0; }
  .hero__grid { display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 40px; }
  .hero__stage { position: relative; inset: auto; order: 1; height: clamp(260px, 46svh, 400px); margin: 6px 0 18px; }
  .hero__kicker { order: 0; }
  .hero__title { order: 2; max-width: 7.9em; font-size: clamp(40px, 11.4vw, 84px); line-height: .95; }
  .hero__row { order: 3; display: flex; flex-direction: column; align-items: stretch; }
  .hero__legend { justify-self: start; }
}

/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  html.anim .hero__title:not(.is-split) { opacity: 0; animation: np-show 0s 2.5s forwards; }
  html.anim .hero__title .w__i { transform: translateY(135%); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 250ms); }
  html.anim .hero__title.is-in .w__i { transform: none; }
  html.anim .hl__line { transform: scaleX(0); transition: transform 1.2s var(--ease-out) calc(1.05s + var(--li, 0) * .15s); }
  html.anim .hl__line--ff { transition-delay: calc(1.35s + var(--li, 0) * .15s); }
  html.anim .hero__title.is-in .hl__line { transform: none; }
  html.anim .hero__kicker,
  html.anim .hero__lead,
  html.anim .hero__legend { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
  html.anim .hero__kicker { transition-delay: .15s; }
  html.anim .hero__lead { transition-delay: .75s; }
  html.anim .hero__legend { transition-delay: 1.5s; }
  html.anim .hero.is-in .hero__kicker,
  html.anim .hero.is-in .hero__lead,
  html.anim .hero.is-in .hero__legend { opacity: 1; transform: none; }
}
@keyframes np-show { to { opacity: 1; } }

/* ---------- Revelado genérico al entrar en pantalla ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.anim [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: var(--rd, 0ms);
  }
  html.anim [data-reveal].is-in { opacity: 1; transform: none; }
  html.anim [data-split] .w__i { transform: translateY(135%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
  html.anim [data-split].is-in .w__i { transform: none; }
}

/* ---------- Los dos productos ---------- */

.duo { position: relative; padding: clamp(8px, 1.4vw, 16px) 0 0; }
.duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }

.tile {
  --f: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 560px;
  padding: clamp(24px, 3vw, 44px);
  isolation: isolate;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 1px solid var(--line);
}
.tile--ec::before { background: linear-gradient(180deg, var(--ec-bg-2), var(--ec-bg) 70%); border-color: var(--ec-line); }
.tile--ff::before {
  background: linear-gradient(180deg, var(--ff-graph), var(--ff-ink) 75%);
  border-color: var(--ff-line);
  clip-path: polygon(0 0, calc(100% - var(--f)) 0, 100% var(--f), 100% 100%, 0 100%);
}
.tile--ff .tile__spot { clip-path: polygon(0 0, calc(100% - var(--f)) 0, 100% var(--f), 100% 100%, 0 100%); }

/* Foco que sigue al cursor: luz tenue de relleno y luz más viva en el borde */
.tile__spot { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.tile__spot i {
  position: absolute;
  left: -300px; top: -300px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 171, 98, .075), rgba(214, 171, 98, 0));
  transform: translate3d(50%, 30%, 0);
  will-change: transform;
}
.tile--ff .tile__spot i { background: radial-gradient(closest-side, rgba(92, 196, 151, .07), rgba(92, 196, 151, 0)); }
.tile:hover .tile__spot { opacity: 1; }

.tile__head { display: flex; align-items: center; gap: 16px; }
.tile__head .num { color: var(--text-3); }
.tile__name {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -.025em;
}
.tile__name a { text-decoration: none; }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__logo { height: clamp(26px, 2.6vw, 34px); width: auto; }
.tile--ec .tile__name { color: var(--text); }
.tile__what { font-size: 18px; line-height: 1.45; max-width: 25em; color: var(--text-2); }
.tile--ec .tile__what { color: var(--ec-text-2); }
.tile--ff .tile__what { color: var(--ff-fog); }
.tile__visual { margin-top: auto; }
.tile__visual .note { margin-top: 18px; }
.tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  font-size: 15px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}
.tile--ec .tile__foot { border-color: var(--ec-line); }
.tile--ff .tile__foot { border-color: var(--ff-line); }
.tile__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); white-space: nowrap; }
.tile__go svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.tile:hover .tile__go svg { transform: translateY(4px); }
.tile--ec .tile__go { color: var(--ec); }
.tile--ff .tile__go { color: var(--ff-green); }
.tile:focus-within { outline: 2px solid var(--text); outline-offset: 4px; }
.tile:focus-within a:focus-visible { outline: none; }

/* Cifra grande del capital call */
.bigfig__label { font-family: var(--mono); font-size: 12.5px; color: var(--ec-text-2); }
.bigfig__value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 4.3vw, 64px);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ec);
  margin: 10px 0 14px;
  white-space: nowrap;
}
.bigfig__sub { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ec-text-2); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--ec); margin-right: 8px; vertical-align: 1px; }

/* Contador de rodillos (lo monta el JS) */
.odo { display: inline-flex; vertical-align: top; }
.odo__c, .odo__p { display: inline-block; height: 1.1em; line-height: 1.1em; }
.odo__c { overflow: hidden; }
.odo__s { display: flex; flex-direction: column; transition: transform 2.4s cubic-bezier(.2, .75, .12, 1); transition-delay: var(--dl, 0s); will-change: transform; }
.odo__s span { display: block; height: 1.1em; }

/* Embudo de FounderFold */
.funnel { display: grid; grid-template-columns: max-content 3.2ch minmax(0, 1fr); align-items: center; gap: 12px 16px; font-family: var(--mono); font-size: 13px; }
.funnel li { display: contents; }
.funnel__k { color: var(--ff-fog); }
.funnel__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ff-paper); }
.funnel__bar { position: relative; height: 12px; }
.funnel__bar i { position: absolute; inset: 0; background: var(--ff-paper); transform-origin: 0 50%; transform: scaleX(var(--w, 1)); }
.funnel li:nth-child(1) { --w: 1; }
.funnel li:nth-child(2) { --w: .233; }
.funnel li:nth-child(3) { --w: .044; }
.funnel li:nth-child(4) { --w: .014; }
.funnel li:last-child .funnel__bar i { background: var(--ff-green); }
.funnel li:last-child .funnel__k, .funnel li:last-child .funnel__v { color: var(--ff-green); }

@media (prefers-reduced-motion: no-preference) {
  html.anim .tile:not(.is-in) .funnel__bar i { transform: scaleX(0); }
  html.anim .funnel__bar i { transition: transform 1.4s var(--ease-out); }
  html.anim .funnel li:nth-child(1) .funnel__bar i { transition-delay: .35s; }
  html.anim .funnel li:nth-child(2) .funnel__bar i { transition-delay: .55s; }
  html.anim .funnel li:nth-child(3) .funnel__bar i { transition-delay: .75s; }
  html.anim .funnel li:nth-child(4) .funnel__bar i { transition-delay: .95s; }
}

@media (max-width: 899px) {
  .duo__grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
}
@media (max-width: 420px) {
  .funnel { gap: 10px 10px; font-size: 12px; }
}

/* ---------- Esquina doblada (motivo de FounderFold) ---------- */

.fold {
  position: absolute;
  top: 0; right: 0;
  z-index: 3;
  width: var(--f);
  height: var(--f);
  transform-style: preserve-3d;
  transform: perspective(240px) rotate3d(1, 1, 0, 180deg);
  pointer-events: none;
}
.fold__front, .fold__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fold__front {
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background:
    linear-gradient(var(--ff-line), var(--ff-line)) top / 100% 1px no-repeat,
    linear-gradient(var(--ff-line), var(--ff-line)) right / 1px 100% no-repeat,
    var(--ff-graph);
}
.fold__back { clip-path: polygon(0 0, 0 100%, 100% 100%); background: var(--ff-green); transform: rotate3d(1, 1, 0, 180deg); }
@media (prefers-reduced-motion: no-preference) {
  html.anim .fold { transition: transform 1.1s var(--ease-io) .45s; }
  html.anim :not(.is-in) > .fold { transform: perspective(240px) rotate3d(1, 1, 0, 0deg); }
}

/* ---------- Secciones de producto ---------- */

.product { position: relative; padding: var(--section) 0; }
.product--ec { background: var(--ec-bg); }
.product--ff { background: var(--ff-ink); color: var(--ff-paper); }
html.anim .product { background: transparent; }
.product--ec .lead { color: var(--ec-text-2); }
.product--ff .lead { color: var(--ff-fog); }
.product--ff .display { color: var(--ff-paper); }
.ff-hl { color: var(--ff-green); }

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: clamp(40px, 5vw, 72px);
}
.intro__text { grid-column: 1 / span 6; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }

/* Botones con microinteracción: barrido de relleno y flecha que se renueva */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px 15px 22px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__i { position: relative; display: block; width: 16px; height: 16px; overflow: hidden; }
.btn__i svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.btn__i svg + svg { transform: translateX(-140%); }
.btn:hover .btn__i svg, .btn:focus-visible .btn__i svg { transform: translateX(140%); }
.btn:hover .btn__i svg + svg, .btn:focus-visible .btn__i svg + svg { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--ec { background: var(--ec); color: #14100a; }
.btn--ec::before { background: var(--ec-hi); }
.btn--ff { background: var(--ff-green); color: var(--ff-ink); }
.btn--ff::before { background: var(--ff-paper); }
.btn--ink { background: var(--text); color: var(--bg); }
.btn--ink::before { background: #fff; }

.textlink {
  position: relative;
  font-size: 16px;
  text-decoration: none;
  padding: 4px 0;
  color: var(--text);
}
.textlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease-out);
}
.textlink:hover::after { transform: scaleX(0); transform-origin: 100% 50%; animation: np-line .7s var(--ease-out) .12s forwards; }
@keyframes np-line { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); transform-origin: 0 50%; } }

/* Cifras clave de eCapital */
.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: clamp(24px, 4vw, 56px);
}
.facts li { position: relative; padding-top: 22px; border-top: 1px solid var(--ec-line); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 48px; height: 2px;
  background: var(--ec);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out) .35s;
}
html.anim .facts li:not(.is-in)::before { transform: scaleX(0); }
.facts__v {
  display: block;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1;
  font-weight: 600;
  font-stretch: 82%;
  letter-spacing: -.035em;
  color: var(--text);
}
.facts__k { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ec-text-2); max-width: 17em; }
@media (max-width: 899px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

/* Para quién (FounderFold) */
.audience { grid-column: 8 / span 5; align-self: end; border-top: 1px solid var(--ff-line); }
.audience li { padding: 18px 0; border-bottom: 1px solid var(--ff-line); }
.audience strong { display: block; font-weight: 600; font-size: 18px; font-stretch: 92%; color: var(--ff-paper); }
.audience span { display: block; font-size: 15px; color: var(--ff-fog); margin-top: 3px; }

@media (max-width: 899px) {
  .intro__text, .audience { grid-column: 1 / -1; }
}

/* ---------- Scrollytelling: el capital call paso a paso ---------- */

.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  margin-top: clamp(96px, 12vw, 180px);
}
.story__title {
  grid-column: 1 / span 5;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ec);
  padding-bottom: 22px;
}
.story__steps { grid-column: 1 / span 5; grid-row: 2; }
.story__stage {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: max(96px, calc(50svh - 270px));
}
.story__stage { min-width: 0; }
.story__stage figcaption { margin-top: 12px; }
.app { max-width: 100%; }

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 60svh;
  padding-top: 24px;
  border-top: 1px solid var(--ec-line);
}
.step:last-child { min-height: 46svh; }
.step__n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ec); padding-top: .55em; }
.step p {
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.12;
  font-weight: 520;
  font-stretch: 88%;
  letter-spacing: -.02em;
  color: var(--text);
  max-width: 13em;
}
@media (prefers-reduced-motion: no-preference) {
  html.anim .step { transition: opacity .6s ease; }
  html.anim .step:not(.is-active) { opacity: .5; }
  html.anim .step__n { transition: transform .6s var(--ease-out); }
  html.anim .step.is-active .step__n { transform: translateX(6px); }
}

/* Ventana de eCapital (captura en HTML con datos ficticios) */
.app {
  background: #141310;
  color: var(--text);
  border: 1px solid var(--ec-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 50px 90px -40px rgba(0, 0, 0, .9);
  font-size: 14px;
  overflow: hidden;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--ec-line);
  background: #191712;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}
.app__bar b { color: var(--ec); font-weight: 600; }
.app__crumbs { overflow: hidden; text-overflow: ellipsis; }
.app__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  padding: 22px 20px 18px;
}
.app__title { font-size: 22px; font-weight: 600; font-stretch: 88%; letter-spacing: -.01em; }
.app__sub { font-size: 13.5px; color: var(--ec-text-2); margin-top: 4px; }
.app__field { position: relative; display: inline-block; }
.app__field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ec);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 9px;
  color: var(--ec);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.table-scroll { overflow-x: auto; }
.app table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.app th, .app td { padding: 10px 20px; text-align: right; white-space: nowrap; }
.app th:first-child, .app td:first-child { text-align: left; }
.app thead th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-3);
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
  background: #17150f;
}
.app tbody td { border-bottom: 1px solid #221f18; color: var(--text-2); }
.app tbody td:last-child { color: var(--text); }
.app tbody tr.more td { color: var(--text-3); font-family: var(--sans); font-size: 13px; }
.app tfoot td { font-weight: 500; border-top: 1px solid var(--ec); color: var(--text); }
.app tfoot td:last-child { color: var(--ec); }
.app__progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px 6px; font-size: 13px; color: var(--text-2); }
.app__progress .mono { font-size: 12.5px; }
.bar { position: relative; display: block; height: 6px; background: #26231c; }
.bar i { position: absolute; inset: 0; background: var(--ec); transform-origin: 0 50%; transform: scaleX(var(--w, 1)); }
.app__done {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 20px;
  font-size: 13px;
  color: var(--ec-text-2);
}
.app__done svg { width: 16px; height: 16px; color: var(--ec); flex: none; }
.app__done svg path { stroke-width: 1.8; }

/* Estados del capital call: 0 nada · 1 parámetros · 2 cálculo · 3 envío · 4 al día */
@media (prefers-reduced-motion: no-preference) {
  html.anim .app__field::after { transition: transform .8s var(--ease-out); }
  html.anim .app__field + .app__field::after { transition-delay: .2s; }
  html.anim .app[data-state="0"] .app__sub { opacity: .35; }
  html.anim .app__sub { transition: opacity .6s ease; }
  html.anim .app tbody tr, html.anim .app tfoot tr { transition: opacity .6s ease, transform .7s var(--ease-out); }
  html.anim .app[data-state="0"] tbody tr, html.anim .app[data-state="1"] tbody tr,
  html.anim .app[data-state="0"] tfoot tr, html.anim .app[data-state="1"] tfoot tr { opacity: 0; transform: translateX(-12px); transition-delay: 0s; }
  html.anim .app tbody tr:nth-child(2) { transition-delay: .09s; }
  html.anim .app tbody tr:nth-child(3) { transition-delay: .18s; }
  html.anim .app tbody tr:nth-child(4) { transition-delay: .27s; }
  html.anim .app tbody tr:nth-child(5) { transition-delay: .36s; }
  html.anim .app tfoot tr { transition-delay: .5s; }
  html.anim .app .bar i { transition: transform 1.8s var(--ease-io); }
  html.anim .app[data-state="0"] .bar i, html.anim .app[data-state="1"] .bar i, html.anim .app[data-state="2"] .bar i { transform: scaleX(0); transition-duration: .4s; }
  html.anim .app .pill, html.anim .app__done { transition: opacity .5s ease, transform .6s var(--ease-out); }
  html.anim .app .pill { transition-delay: 1.7s; }
  html.anim .app[data-state="0"] .pill, html.anim .app[data-state="1"] .pill, html.anim .app[data-state="2"] .pill { opacity: 0; transform: translateY(4px); transition-delay: 0s; }
  html.anim .app:not([data-state="4"]) .app__done { opacity: 0; transform: translateY(6px); }
  html.anim .app[data-state="0"] .app__field::after { transform: scaleX(0); }
}
.app__field::after { transform: scaleX(1); }
html.anim .app[data-state="0"] .app__field::after { transform: scaleX(0); }

@media (max-width: 899px) {
  .story { display: flex; flex-direction: column; }
  .story__title { order: 0; }
  .story__stage {
    order: 1;
    z-index: 2;
    min-width: 0;
    align-self: stretch;
    top: 52px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 14px;
    background: var(--ec-bg);
  }
  .story__steps { order: 2; }
  .step { min-height: 44svh; grid-template-columns: 44px minmax(0, 1fr); }
  .step:last-child { min-height: 30svh; }
  .step p { font-size: clamp(21px, 6vw, 28px); }
}
@media (max-width: 560px) {
  .app th, .app td { padding: 8px 10px; }
  .app table { font-size: 11.5px; }
  .app th:nth-child(3), .app td:nth-child(3) { display: none; }
  .app__bar { padding: 9px 12px; }
  .app__head { padding: 14px 12px 12px; }
  .app__title { font-size: 18px; }
  .app__sub { font-size: 12.5px; }
  .app__progress { padding: 12px 12px 4px; grid-template-columns: minmax(0, 1fr) auto; }
  .app__progress > span:first-child { display: none; }
  .app__done { padding: 8px 12px 14px; font-size: 12px; }
}
@media (max-width: 400px) {
  .app th, .app td { padding: 7px 6px; }
  .app th:first-child, .app td:first-child { padding-left: 12px; }
  .app th:last-child, .app td:last-child { padding-right: 12px; }
  .app table { font-size: 10.5px; }
}

/* ---------- Listas de funciones ---------- */

.feat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(96px, 12vw, 180px);
}
.feat__title {
  grid-column: 1 / span 3;
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 26px;
}
.product--ec .feat__title { color: var(--ec); }
.product--ff .feat__title { color: var(--ff-green); }
.specs {
  grid-column: 4 / span 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 56px);
}
.specs li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}
.product--ec .specs li { border-color: var(--ec-line); }
.product--ff .specs li { border-color: var(--ff-line); }
.specs li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--text);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .7s var(--ease-out);
}
.product--ec .specs li::before { background: var(--ec); }
.product--ff .specs li::before { background: var(--ff-green); }
.specs li:hover::before { transform: none; }
.specs .num { padding-top: .4em; color: var(--text-3); }
.specs h4 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.2;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -.01em;
  transition: transform .5s var(--ease-out);
}
.specs li:hover h4 { transform: translateX(4px); }
.specs p { grid-column: 2; margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.product--ec .specs p { color: var(--ec-text-2); }
.product--ff .specs p { color: var(--ff-fog); }
@media (max-width: 899px) {
  .feat__title { grid-column: 1 / -1; padding: 0 0 18px; }
  .specs { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs li { padding-bottom: 26px; }
}

/* ---------- Gestoras: marquesina ---------- */

.clients { margin-top: clamp(96px, 12vw, 180px); }
.clients__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.clients h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ec);
}
.marquee {
  margin-top: 26px;
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
  overflow: hidden;
}
.marquee__track { display: flex; }
.marquee__list {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 32px) var(--gutter);
  gap: 4px 0;
}
.marquee__list li {
  display: flex;
  align-items: center;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.1;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: var(--text);
  transition: opacity .4s ease;
}
.marquee__list li::after {
  content: "";
  flex: none;
  width: .14em;
  height: .14em;
  margin: 0 .55em;
  background: var(--ec);
  transform: translateY(.06em);
}
.marquee__list:hover li { opacity: .35; }
.marquee__list li:hover { opacity: 1; }
.marquee__btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--ec-line);
  color: var(--ec-text-2);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.marquee__btn:hover { border-color: var(--ec); color: var(--ec); }

/* Con movimiento: una sola línea que se desplaza lentamente; se pausa al pasar el ratón o con el botón */
@media (prefers-reduced-motion: no-preference) {
  html.anim .is-running .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  html.anim .is-running .marquee__track { width: max-content; animation: np-marquee var(--dur, 120s) linear infinite; }
  html.anim .is-running .marquee__list { flex-wrap: nowrap; max-width: none; margin: 0; padding-left: 0; padding-right: 0; flex: none; }
  html.anim .is-running .marquee__list li { font-size: clamp(44px, 7.6vw, 124px); line-height: 1.05; }
  html.anim .is-running .marquee:hover .marquee__track,
  html.anim .is-running.is-paused .marquee__track,
  html.anim .is-running.is-off .marquee__track { animation-play-state: paused; }
}
@keyframes np-marquee { to { transform: translateX(-50%); } }

/* ---------- FounderFold: ficha de idea ---------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: clamp(80px, 10vw, 150px);
  align-items: start;
}
.showcase__main { grid-column: 1 / span 8; }
.showcase__side { grid-column: 9 / span 4; }
.showcase figcaption { margin-top: 14px; }
.product--ff .note { color: var(--ff-fog); }

.card-wrap { --f: 28px; position: relative; }
.card {
  position: relative;
  background: var(--ff-graph);
  border: 1px solid var(--ff-line);
  padding: clamp(20px, 2.6vw, 32px);
  clip-path: polygon(0 0, calc(100% - var(--f)) 0, 100% var(--f), 100% 100%, 0 100%);
}
.card__top { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ff-fog); padding-right: 28px; }
.card__state { color: var(--ff-green); display: inline-flex; align-items: center; gap: 8px; }
.card__state::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.card__title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; font-weight: 600; font-stretch: 88%; letter-spacing: -.015em; margin: 14px 0 8px; max-width: 22em; color: var(--ff-paper); }
.card__summary { color: var(--ff-fog); font-size: 15px; max-width: 40em; }
.card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ff-line); }
.card h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ff-fog); margin-bottom: 14px; }
.score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.score b { font-family: var(--mono); font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ff-paper); }
.score span { font-family: var(--mono); font-size: 13px; color: var(--ff-fog); }
.dims { display: grid; gap: 9px; font-size: 13.5px; }
.dims li { display: grid; grid-template-columns: minmax(0, 1fr) 64px max-content; gap: 12px; align-items: center; }
.dims .bar { background: var(--ff-line); height: 5px; }
.dims .bar i { background: var(--ff-green); }
.dims li:nth-child(1) { --w: .833; }
.dims li:nth-child(2) { --w: .8; }
.dims li:nth-child(3) { --w: .9; }
.dims li:nth-child(4) { --w: .45; }
.dims li:nth-child(5) { --w: .6; }
.dims .mono { font-size: 12px; color: var(--ff-fog); text-align: right; white-space: nowrap; min-width: 4.6em; }
.checks, .evidence { display: grid; gap: 9px; font-size: 13.5px; }
.checks li { display: flex; justify-content: space-between; gap: 12px; }
.checks .mono { color: var(--ff-green); font-size: 12px; }
.evidence { margin-top: 24px; }
.evidence li { padding-left: 16px; position: relative; color: var(--ff-paper); }
.evidence li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--ff-fog); }
.evidence .src { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ff-fog); margin-top: 3px; }
.flag {
  display: table;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ff-paper);
  border: 1px dashed var(--ff-fog);
  padding: 1px 7px;
  margin-top: 6px;
}
.card__next { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ff-line); font-size: 14px; color: var(--ff-fog); }
.card__next b { color: var(--ff-paper); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  html.anim .card-wrap .bar i { transition: transform 1.2s var(--ease-out); }
  html.anim .card-wrap:not(.is-in) .bar i { transform: scaleX(0); }
  html.anim .dims li:nth-child(1) .bar i { transition-delay: .7s; }
  html.anim .dims li:nth-child(2) .bar i { transition-delay: .8s; }
  html.anim .dims li:nth-child(3) .bar i { transition-delay: .9s; }
  html.anim .dims li:nth-child(4) .bar i { transition-delay: 1s; }
  html.anim .dims li:nth-child(5) .bar i { transition-delay: 1.1s; }
  html.anim .checks li, html.anim .evidence li { transition: opacity .6s ease, transform .7s var(--ease-out); }
  html.anim .card-wrap:not(.is-in) .checks li, html.anim .card-wrap:not(.is-in) .evidence li { opacity: 0; transform: translateX(-8px); }
  html.anim .checks li:nth-child(1) { transition-delay: 1s; }
  html.anim .checks li:nth-child(2) { transition-delay: 1.12s; }
  html.anim .checks li:nth-child(3) { transition-delay: 1.24s; }
  html.anim .evidence li:nth-child(1) { transition-delay: 1.45s; }
  html.anim .evidence li:nth-child(2) { transition-delay: 1.6s; }
}
@media (max-width: 960px) {
  .showcase__main, .showcase__side { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .card__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Motivos de descarte */
.reasons h3 { font-size: 20px; line-height: 1.2; font-weight: 600; font-stretch: 90%; margin-bottom: 18px; color: var(--ff-paper); max-width: 14em; }
.reasons ol { display: grid; gap: 10px; font-size: 14px; }
.reasons li { display: grid; grid-template-columns: minmax(0, 1fr) 2.6em; gap: 6px 12px; color: var(--ff-paper); }
.reasons li .bar { grid-column: 1 / -1; height: 4px; background: var(--ff-line); }
.reasons li .bar i { background: var(--ff-fog); }
.reasons li:first-child .bar i { background: var(--ff-paper); }
.reasons .mono { text-align: right; color: var(--ff-fog); font-size: 13px; }
.reasons li:nth-child(1) { --w: 1; }
.reasons li:nth-child(2) { --w: .578; }
.reasons li:nth-child(3) { --w: .406; }
.reasons li:nth-child(4) { --w: .32; }
.reasons li:nth-child(5) { --w: .258; }
.reasons li:nth-child(6) { --w: .195; }
.reasons li:nth-child(7) { --w: .141; }
.reasons > p { margin-top: 20px; font-size: 15px; color: var(--ff-fog); }
.reasons > .note { margin-top: 12px; font-size: 11.5px; }
@media (prefers-reduced-motion: no-preference) {
  html.anim .reasons .bar i { transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--k, 0) * 90ms + 300ms); }
  html.anim .reasons:not(.is-in) .bar i { transform: scaleX(0); }
  html.anim .reasons li:nth-child(2) { --k: 1; }
  html.anim .reasons li:nth-child(3) { --k: 2; }
  html.anim .reasons li:nth-child(4) { --k: 3; }
  html.anim .reasons li:nth-child(5) { --k: 4; }
  html.anim .reasons li:nth-child(6) { --k: 5; }
  html.anim .reasons li:nth-child(7) { --k: 6; }
}

/* Cierre de FounderFold */
.ff-quote {
  margin-top: clamp(96px, 12vw, 180px);
  padding-top: 32px;
  border-top: 1px solid var(--ff-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.ff-quote__text {
  font-size: clamp(38px, 6.2vw, 104px);
  line-height: .95;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -.034em;
  max-width: 11em;
  text-wrap: balance;
  color: var(--ff-paper);
}

/* ---------- Criterio común ---------- */

.why { padding: var(--section) 0; }
.why__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.why__intro .label { grid-column: 1 / -1; }
.why__intro h2 { grid-column: 1 / span 7; }
.why__intro .lead { grid-column: 8 / span 5; align-self: end; }

.principles-wrap { position: relative; margin-top: clamp(64px, 9vw, 140px); }
.principles__rail { position: absolute; left: 8px; top: 48px; bottom: 56px; width: 1px; background: var(--line); }
.principles__rail i { position: absolute; inset: 0; background: linear-gradient(var(--ec), var(--text) 50%, var(--ff-green)); transform-origin: 50% 0; }
html.anim .principles__rail i { transform: scaleY(0); }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 24px;
  align-items: start;
  padding: 40px 0 48px;
}
.principle::after { content: ""; position: absolute; left: 112px; right: 0; top: 0; height: 1px; background: var(--line); }
.principle__node {
  position: absolute;
  left: 0; top: 46px;
  width: 17px; height: 17px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  transition: border-color .5s ease;
}
.principle__node::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 5px; height: 5px;
  background: var(--text);
  transition: transform .5s var(--ease-out);
}
html.anim .principle:not(.is-lit) .principle__node::after { transform: scale(0); }
.principle.is-lit .principle__node, html:not(.anim) .principle__node { border-color: var(--text); }
.principle .num { grid-column: 1; padding: 6px 0 0 40px; color: var(--text-3); }
.principle h3 {
  grid-column: 2;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -.03em;
  max-width: 11em;
  text-wrap: balance;
}
.principle p { grid-column: 3; font-size: 17px; color: var(--text-2); max-width: 26em; padding-top: 6px; }
@media (max-width: 899px) {
  .why__intro h2, .why__intro .lead { grid-column: 1 / -1; }
  .why__intro .lead { margin-top: 28px; }
  .principle { grid-template-columns: 40px minmax(0, 1fr); padding: 32px 0 36px; }
  .principle::after { left: 40px; }
  .principle .num { grid-column: 2; padding: 0; }
  .principle h3, .principle p { grid-column: 2; }
  .principle__node { top: 34px; }
}

/* ---------- Empresa y contacto ---------- */

.company { padding: var(--section) 0 clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.company__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.company__intro .label { grid-column: 1 / -1; }
.company__intro h2 { grid-column: 1 / span 7; }
.company__intro .lead { grid-column: 8 / span 5; align-self: end; }

.contact { margin-top: clamp(80px, 10vw, 150px); }
.contact__kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .18em;
  margin-top: 14px;
  padding-bottom: .1em;
  font-size: clamp(30px, 7.9vw, 136px);
  line-height: 1.02;
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: -.04em;
  text-decoration: none;
  max-width: 100%;
}
.mail::before, .mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: .03em;
  min-height: 2px;
  background: var(--line-2);
}
.mail::after {
  background: var(--text);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .9s var(--ease-out);
}
.mail:hover::after, .mail:focus-visible::after { transform: none; }
.mail__t { overflow-wrap: anywhere; }
.mail__i { width: .55em; height: .55em; flex: none; transition: transform .6s var(--ease-out); }
.mail__i path { stroke-width: 1.4; }
.mail:hover .mail__i { transform: translate(.08em, -.08em); }

.contact__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: clamp(48px, 6vw, 88px);
}
.contact__list > div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.contact__list dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.contact__list dd { margin-top: 8px; font-size: 17px; line-height: 1.5; }
.contact__list dd small { display: block; font-size: 14px; color: var(--text-3); }
.contact__list a { text-decoration-color: var(--text-3); }
@media (max-width: 899px) {
  .company__intro h2, .company__intro .lead { grid-column: 1 / -1; }
  .company__intro .lead { margin-top: 24px; }
  .contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 480px) {
  .contact__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pie ---------- */

.foot { position: relative; border-top: 1px solid var(--line); padding-top: 28px; overflow: hidden; overflow: clip; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--text-3); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__nav a { color: var(--text-2); }
.foot__word {
  margin-top: clamp(40px, 6vw, 96px);
  height: 11.6vw;
  font-size: 15.4vw;
  line-height: .9;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: #16181c;
  user-select: none;
}
.foot__word span { display: block; transition: transform 1.6s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  html.anim .foot:not(.is-in) .foot__word span { transform: translateY(40%); }
}

/* ---------- Páginas de texto (aviso legal, 404) ---------- */

.doc { padding: calc(var(--top-h) + clamp(40px, 7vw, 96px)) 0 var(--section); }
.doc h1 { font-size: clamp(44px, 7vw, 104px); line-height: .92; font-weight: 600; font-stretch: 84%; letter-spacing: -.035em; max-width: 11em; text-wrap: balance; }
.doc__body { max-width: 44em; margin-top: clamp(32px, 4vw, 56px); }
.doc__body h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 600; font-stretch: 88%; letter-spacing: -.015em; margin: 56px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc__body p, .doc__body li { color: var(--text-2); }
.doc__body p + p { margin-top: 12px; }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body a:not(.btn):not(.textlink) { color: var(--text); text-decoration-color: var(--text-3); }
.doc__body ul + p { margin-top: 16px; }
.doc__body ul { margin-top: 12px; display: grid; gap: 8px; }
.doc__body ul li { padding-left: 20px; position: relative; }
.doc__body ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--text-3); }
.doc__body dl { margin-top: 12px; border-top: 1px solid var(--line); }
.doc__body dl div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc__body dt { color: var(--text-3); font-size: 15px; }
.doc__body dd { color: var(--text); }
.doc__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 22px; }
.doc .lead { color: var(--text-2); }
.doc .actions { margin-top: 36px; }
@media (max-width: 560px) {
  .doc__body dl div { grid-template-columns: minmax(0, 1fr); }
}

/* Página 404: un hilo descartado */
.lost { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: end; }
.lost__text { grid-column: 1 / span 7; }
.lost__art { grid-column: 8 / span 5; color: var(--text-3); }
.lost__art svg { width: 100%; height: auto; overflow: visible; }
.lost__art .t { stroke: var(--line-2); stroke-width: 1; }
.lost__art .t--ok { stroke: var(--text-3); }
.lost__art .t--cut { stroke: var(--text); stroke-width: 1.5; }
.lost__art .g { stroke: var(--line-2); stroke-dasharray: 3 4; }
.lost__art .n { fill: var(--text); stroke: none; }
.lost__art text { fill: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
@media (max-width: 899px) {
  .lost__text, .lost__art { grid-column: 1 / -1; }
}

/* ---------- Modo estático: movimiento reducido o captura ---------- */

html.is-static .step { min-height: 0; padding-bottom: 28px; }
html.is-static .story__stage { position: static; }
@media (min-width: 900px) { html.is-capture .hero { min-height: 900px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .step { min-height: 0; padding-bottom: 28px; }
}

/* ---------- Transiciones entre páginas (navegadores que las admiten) ---------- */

@view-transition { navigation: auto; }
.top { view-transition-name: top; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media print {
  .top { position: static; }
  .hero__fx, .bgfx, .foot__word, .marquee__btn { display: none !important; }
  html, body, .product, .tile::before { background: #fff !important; color: #000 !important; }
}
