/* ============================================================
   PALANCA CAPITAL — Editorial template (v2)
   Papel cálido · serif grande · reglas finas · cifras mono
   Reutiliza app.js (mismos ids/clases). Solo cambia presentación.
   ============================================================ */

:root {
  --bg: #EFE7D7;
  --surface: #FBF6EC;
  --surface-2: #E7DBC4;
  --ink: #1A1611;
  --ink-soft: #43392E;
  --muted: #80735F;
  --line: #D6C9AF;
  --line-strong: #C0AF8C;

  --accent: #9B2E22;     /* oxblood — tweakable */
  --on-accent: #FBF6EC;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 6px;
}

/* Type variations (Tweak: data-type on <html>) */
html[data-type="grotesk"] { --font-display: "Hanken Grotesk", system-ui, sans-serif; }
html[data-type="mono"]    { --font-display: "IBM Plex Mono", ui-monospace, monospace; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }

/* Paper grain overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdHlwZT0nc2F0dXJhdGUnIHZhbHVlcz0nMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJyBmaWx0ZXI9J3VybCgjbiknIG9wYWNpdHk9JzAuMDM1Jy8+PC9zdmc+");
  mix-blend-mode: multiply;
}
main, .nav, .footer { position: relative; z-index: 2; }

/* ---- Display / type helpers ---- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[data-type="grotesk"] .h-display { font-weight: 700; letter-spacing: -0.03em; }
html[data-type="mono"] .h-display { font-weight: 500; letter-spacing: -0.04em; }

.label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.section__no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
}
.lede { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: pretty; }

/* Section header with hairline rule + § number */
.shead { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
  border-top: 1.5px solid var(--ink); padding-top: 18px; margin-bottom: clamp(36px, 4vw, 60px); }
.shead .label { align-self: center; }

/* ============================================================
   NAV — masthead
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; border-bottom: 1.5px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--ink); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 12px; transform: translateY(-4px); }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 25px; letter-spacing: -0.01em; white-space: nowrap; }
.brand .ed { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang, .cur { display: inline-flex; border: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.lang button, .cur button { background: transparent; border: 0; padding: 7px 10px; color: var(--muted); transition: all 0.2s; letter-spacing: 0.04em; }
.lang button.active, .cur button.active { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  padding: 12px 20px; line-height: 1; transition: all 0.25s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); gap: 14px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--lg { padding: 16px 26px; font-size: 13.5px; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 132px; padding-bottom: clamp(30px, 5vw, 64px); }
.hero__kicker { display: flex; align-items: center; gap: 16px; border-bottom: 1.5px solid var(--ink);
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.hero__kicker .label { color: var(--ink); }
.hero__kicker .dateline { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(52px, 9vw, 130px); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em { font-style: italic; color: var(--accent); }
html[data-type="grotesk"] .hero h1 em, html[data-type="mono"] .hero h1 em { font-style: normal; }
.hero__sub { max-width: 40ch; margin: 30px 0 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); display: flex; align-items: center; gap: 9px; text-transform: uppercase; }
.hero__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Raise the lever figure so it sits high, aligned with the headline (desktop only) */
@media (min-width: 961px) {
  .hero__visual { align-self: start; transform: translateY(-40px); }
}

/* Lever — engraving line style */
.lever-stage { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1/1; }
.lever-stage .lv { width: 100%; height: 100%; overflow: visible; }
.lv-frame { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.lv-base { stroke: var(--ink); stroke-width: 2; }
.lv-fulcrum { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.lv-hatch { stroke: var(--accent); stroke-width: 1; opacity: 0.8; }
.lv-trail-ghost { stroke: var(--line-strong); stroke-width: 1.3; stroke-dasharray: 2 6; stroke-linecap: round; fill: none; }
.lv-trail { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: traildraw 3s var(--ease) 0.5s forwards; }
@keyframes traildraw { to { stroke-dashoffset: 0; } }
.lv-dot { fill: var(--accent); }
.lv-beam { transform-box: view-box; transform-origin: 200px 224px; animation: beamtilt 6.5s var(--ease) infinite alternate; }
.lv-beam-bar { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.lv-node-you { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.lv-node-load { fill: var(--accent); }
.lv-tag { fill: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: 16px; letter-spacing: 0.02em; }
.lv-cap { fill: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
@keyframes beamtilt { 0% { transform: rotate(-7deg); } 100% { transform: rotate(6deg); } }
.lv { animation: lvIn 1.1s var(--ease) both; }
@keyframes lvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lv-beam, .lv { animation: none; }
  .lv-trail { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   MARKET TAPE (ticker)
   ============================================================ */
.ticker { border-block: 1.5px solid var(--ink); overflow: hidden; white-space: nowrap; background: var(--surface);
  margin-top: clamp(36px, 5vw, 64px); position: relative; }
.ticker__track { display: inline-flex; align-items: stretch; animation: tickerRight 64s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 10px; padding: 15px 26px;
  border-right: 1px solid var(--line); white-space: nowrap; font-family: var(--font-mono); }
.t-name { font-weight: 600; font-size: 13.5px; color: var(--ink); letter-spacing: 0.03em; }
.t-val { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.4s; }
.t-chg { font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.t-chg.up { color: #5E6B3A; }
.t-chg.down { color: var(--accent); }
.t-chg::before { content: "▲"; margin-right: 3px; font-size: 9px; }
.t-chg.down::before { content: "▼"; }
.ticker__item.tick-up { animation: flashUp 0.7s var(--ease); }
.ticker__item.tick-down { animation: flashDown 0.7s var(--ease); }
@keyframes flashUp { 0% { background: rgba(94,107,58,.14); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: color-mix(in srgb, var(--accent) 13%, transparent); } 100% { background: transparent; } }
@keyframes tickerRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker__live { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 0 var(--pad-x) 0 24px; font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  background: linear-gradient(90deg, transparent, var(--surface) 28%); }
.ticker__live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; transform: translateX(-50%); } .ticker__item.tick-up,.ticker__item.tick-down,.ticker__live .live-dot { animation: none; } }

/* ============================================================
   STATS strip
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1.5px solid var(--ink); }
.stat { padding: clamp(30px, 4vw, 52px) clamp(18px,2vw,32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.02em; }
html[data-type="grotesk"] .stat__num, html[data-type="mono"] .stat__num { font-weight: 600; }
.stat__num .unit { color: var(--accent); }
.stat__label { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; max-width: 22ch; }

/* ============================================================
   ABOUT — article columns + drop cap
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.about__lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.01em; }
.about__lead em { font-style: italic; color: var(--accent); }
html[data-type="grotesk"] .about__lead, html[data-type="mono"] .about__lead { font-weight: 600; }
html[data-type="grotesk"] .about__lead em, html[data-type="mono"] .about__lead em { font-style: normal; }
.about__body { columns: 2; column-gap: 36px; }
.about__body p { margin-bottom: 16px; color: var(--ink-soft); break-inside: avoid; }
.about__body p:first-child::first-letter { font-family: var(--font-display); font-size: 3.4em; line-height: 0.78; float: left; padding: 6px 10px 0 0; color: var(--accent); }
.about__meta { margin-top: 28px; columns: 1; }
.about__meta .row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.about__meta .row .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.about__meta .row .v { color: var(--ink-soft); font-size: 15px; }
.about__meta .row .v b { color: var(--ink); font-weight: 700; }
.about__photo { display: block; width: 100%; height: clamp(220px, 22vw, 300px); margin-top: 28px; border: 1.5px solid var(--ink); background: var(--surface-2); object-fit: contain; }

/* ============================================================
   BENEFITS — numbered editorial list
   ============================================================ */
.bene__intro { max-width: 60ch; margin-bottom: clamp(30px, 4vw, 52px); }
.bene__intro h2 { font-size: clamp(30px, 4.2vw, 56px); }
.bene__list { border-top: 1px solid var(--line); }
.bene__row { display: grid; grid-template-columns: 70px 1fr 1.2fr; gap: clamp(18px, 3vw, 48px); align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.35s var(--ease); }
.bene__row:hover { padding-left: 10px; }
.bene__no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.bene__row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.01em; line-height: 1.04; }
html[data-type="grotesk"] .bene__row h3, html[data-type="mono"] .bene__row h3 { font-weight: 600; }
.bene__row p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.calc__intro h2 { font-size: clamp(30px, 4.2vw, 56px); }
.calc__intro p { color: var(--muted); margin-top: 18px; max-width: 30ch; }
.calc__panel { border: 1.5px solid var(--ink); background: var(--surface); padding: clamp(26px, 3.2vw, 42px); }
.calc__controls { display: flex; flex-direction: column; gap: 22px; }
.calc__ctrl { display: flex; flex-direction: column; gap: 12px; }
.calc__ctrl .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc__ctrl .top .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.calc__ctrl .top .v { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
html[data-type="grotesk"] .calc__ctrl .top .v, html[data-type="mono"] .calc__ctrl .top .v { font-weight: 600; font-family: var(--font-mono); }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--line-strong); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--surface); }
.calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--surface); }
.calc__chart { width: 100%; height: 120px; display: block; margin-top: 26px; overflow: visible; }
.calc__result { margin-top: 24px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.calc__result .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc__big { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5.6vw, 70px); letter-spacing: -0.02em; line-height: 1; margin-top: 6px; color: var(--accent); }
html[data-type="grotesk"] .calc__big, html[data-type="mono"] .calc__big { font-weight: 600; }
.calc__break { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.calc__break .it { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-soft); }
.calc__break .it strong { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__break .sw { width: 11px; height: 11px; flex: none; }
.calc__break .sw.a { background: var(--line-strong); }
.calc__break .sw.g { background: var(--accent); }
.calc__fine { margin-top: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted); }

/* ============================================================
   STEPS — dark folio
   ============================================================ */
.steps { background: var(--ink); color: var(--bg); }
.steps .label { color: color-mix(in srgb, var(--accent) 78%, white); }
.steps .shead { border-top-color: var(--bg); }
.steps .section__no { color: rgba(239,231,215,.6); }
.steps__head { margin-bottom: clamp(40px, 5vw, 70px); }
.steps__head h2 { font-size: clamp(30px, 4.2vw, 56px); color: var(--bg); max-width: 20ch; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 32px 26px 0 0; border-top: 1.5px solid rgba(239,231,215,.22); position: relative; }
.step__line { position: absolute; top: -1.5px; left: 0; height: 1.5px; width: 0; background: var(--accent); transition: width 1s var(--ease); }
.step.in .step__line { width: 100%; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px,2.2vw,30px); margin: 18px 0 12px; color: var(--bg); line-height: 1.02; }
html[data-type="grotesk"] .step h3, html[data-type="mono"] .step h3 { font-weight: 600; }
.step p { color: rgba(239,231,215,.62); font-size: 14.5px; line-height: 1.55; padding-right: 12px; }
.steps__photo { display: block; width: 100%; height: clamp(260px, 28vw, 380px); margin-top: clamp(40px,5vw,64px); border: 1.5px solid rgba(239,231,215,.3); background: #221E17; object-fit: contain; }

/* ============================================================
   CALENDAR (events)
   ============================================================ */
.events { background: var(--surface-2); }
.events__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(30px,4vw,52px); flex-wrap: wrap; }
.events__head h2 { font-size: clamp(30px, 4.2vw, 56px); }
.events__head p { color: var(--muted); max-width: 28ch; }
.events__list { border-top: 1.5px solid var(--ink); }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: clamp(18px,3vw,44px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.event:hover { padding-left: 10px; }
.event__date { display: flex; align-items: baseline; gap: 7px; }
.event__day { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
html[data-type="grotesk"] .event__day, html[data-type="mono"] .event__day { font-weight: 600; }
.event__mon { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.event__main h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px,1.9vw,26px); letter-spacing: -0.01em; margin-bottom: 7px; line-height: 1.04; }
html[data-type="grotesk"] .event__main h3, html[data-type="mono"] .event__main h3 { font-weight: 600; }
.event__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); }
.event__tag { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.event__city { color: var(--muted); font-size: 12.5px; letter-spacing: 0.03em; }
.event__impact { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-family: var(--font-mono); }
.event__impact .lvl { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.event__impact .dots { display: inline-flex; gap: 4px; }
.event__impact .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.event__impact .dots i.on { background: var(--accent); }

/* ============================================================
   TESTIMONIALS — pull quotes
   ============================================================ */
.tst__head { margin-bottom: clamp(36px,4vw,60px); }
.tst__head h2 { font-size: clamp(30px,4.2vw,56px); }
.tst__head .lede { margin-top: 28px; max-width: 64ch; }
.tst__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.quote { padding: clamp(28px,3vw,40px) clamp(22px,2.4vw,34px) clamp(28px,3vw,40px) 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.quote:last-child { border-right: 0; }
.quote__mark { font-family: var(--font-display); font-size: 60px; line-height: 0.5; height: 28px; color: var(--accent); }
.quote p { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px,1.7vw,23px); line-height: 1.28; color: var(--ink); flex: 1; }
html[data-type="grotesk"] .quote p, html[data-type="mono"] .quote p { font-weight: 500; font-family: var(--font-body); font-size: 18px; line-height: 1.4; }
.quote__who { display: flex; align-items: center; gap: 13px; }
.quote__av-img { display: block; width: 44px; height: 44px; flex: none; border: 1.5px solid var(--ink); }
.quote__av-img::part(frame) { background: var(--surface-2); }
.quote__who .n { font-weight: 700; font-size: 14.5px; }
.quote__who .role { font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; letter-spacing: 0.03em; }

/* ============================================================
   TEAM / QUIÉNES SOMOS
   ============================================================ */
.team__intro { max-width: 60ch; margin-bottom: clamp(30px,4vw,52px); }
.team__intro h2 { font-size: clamp(30px,4.2vw,56px); }
.team__intro p { color: var(--muted); margin-top: 16px; max-width: 40ch; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,2.4vw,40px); max-width: 880px; margin-inline: auto; }
.member { display: flex; flex-direction: column; gap: 16px; }
.member__photo { display: block; width: 100%; max-width: 230px; aspect-ratio: 4/5; border: 1.5px solid var(--ink); }
img.member__photo { object-fit: cover; object-position: center top; }
.member__photo::part(frame) { background: var(--surface-2); }
.member__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px,2.2vw,28px); letter-spacing: -0.01em; line-height: 1; }
html[data-type="grotesk"] .member__name, html[data-type="mono"] .member__name { font-weight: 600; }
.member__role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 7px; }
.member__bio { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.member__links { display: flex; gap: 14px; margin-top: 2px; }
.member__links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.member__links a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie { position: fixed; left: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 200; max-width: 420px;
  background: var(--surface); border: 1.5px solid var(--ink); padding: 22px 24px;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.4); transform: translateY(140%); transition: transform 0.5s var(--ease); }
.cookie.show { transform: none; }
.cookie p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cookie p a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cookie__row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 16px; font-size: 11.5px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding-block: clamp(48px,6vw,80px); flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,4vw,58px); line-height: 1; letter-spacing: -0.01em; color: var(--on-accent); max-width: 18ch; }
.cta-band h2 em { font-style: italic; }
html[data-type="grotesk"] .cta-band h2, html[data-type="mono"] .cta-band h2 { font-weight: 600; }
html[data-type="grotesk"] .cta-band h2 em, html[data-type="mono"] .cta-band h2 em { font-style: normal; }
.cta-band .btn { border-color: var(--on-accent); color: var(--on-accent); }
.cta-band .btn:hover { background: var(--on-accent); color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(36px,5vw,80px); align-items: start; }
.faq h2 { font-size: clamp(30px,4.2vw,56px); }
.faq__intro p { color: var(--muted); margin-top: 18px; max-width: 26ch; }
.faq__list { border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; background: transparent; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px,1.8vw,26px); color: var(--ink); letter-spacing: -0.01em; line-height: 1.05; }
html[data-type="grotesk"] .qa__q, html[data-type="mono"] .qa__q { font-weight: 600; }
.qa__sign { position: relative; width: 16px; height: 16px; flex: none; }
.qa__sign::before, .qa__sign::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.35s var(--ease); }
.qa__sign::before { top: 50%; left: 0; right: 0; height: 1.8px; transform: translateY(-50%); }
.qa__sign::after { left: 50%; top: 0; bottom: 0; width: 1.8px; transform: translateX(-50%); }
.qa.open .qa__sign::after { transform: translateX(-50%) scaleY(0); }
.qa__a { overflow: hidden; height: 0; transition: height 0.4s var(--ease); }
.qa__a-inner { padding-bottom: 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 62ch; }

/* ============================================================
   APPLY / FORM
   ============================================================ */
.apply { background: var(--surface-2); }
.apply__card { border: 1.5px solid var(--ink); background: var(--surface); display: grid; grid-template-columns: 0.92fr 1.08fr; overflow: hidden; }
.apply__intro { padding: clamp(34px,4vw,60px); border-right: 1.5px solid var(--ink); }
.apply__intro h2 { font-size: clamp(30px,3.6vw,52px); margin: 16px 0 16px; }
.apply__intro p { color: var(--ink-soft); max-width: 30ch; }
.apply__perks { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.apply__perks li { list-style: none; display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); text-transform: uppercase; }
.apply__perks .tick { width: 20px; height: 20px; border: 1.5px solid var(--accent); display: grid; place-items: center; flex: none; }
.apply__perks .tick svg { width: 12px; height: 12px; }
.form { padding: clamp(34px,4vw,60px); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 0; padding: 12px 14px; outline: none; transition: border-color 0.2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__fine { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted); text-align: center; text-transform: uppercase; }
.form__success { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; min-height: 360px; padding: 40px; }
.form__success .big { width: 60px; height: 60px; border: 1.5px solid var(--accent); display: grid; place-items: center; }
.form__success .big svg { width: 28px; height: 28px; }
.form__success h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.form__success p { color: var(--muted); max-width: 30ch; }
.apply.done .form { display: none; }
.apply.done .form__success { display: flex; }
.apply__cta { padding: clamp(34px,4vw,60px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.apply__cta-lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px,1.8vw,26px); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); max-width: 24ch; }
html[data-type="grotesk"] .apply__cta-lead, html[data-type="mono"] .apply__cta-lead { font-weight: 600; }
.apply__cta .btn { align-self: flex-start; }
.apply__cta .form__fine { text-align: left; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--bg); padding-block: clamp(50px,6vw,84px); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { max-width: 32ch; }
.footer__brand b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--bg); }
.footer__brand p { color: rgba(239,231,215,.55); font-size: 14.5px; margin-top: 14px; }
.footer__cols { display: flex; gap: clamp(36px,5vw,80px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(239,231,215,.45); margin-bottom: 14px; }
.footer__col a { display: block; color: rgba(239,231,215,.8); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: color-mix(in srgb, var(--accent) 80%, white); }
.footer__bottom { margin-top: clamp(44px,5vw,68px); padding-top: 24px; border-top: 1px solid rgba(239,231,215,.18); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); color: rgba(239,231,215,.5); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer__legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: rgba(239,231,215,.7); transition: color 0.2s; }
.footer__legal a:hover { color: color-mix(in srgb, var(--accent) 80%, white); }

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
.reveal-clip .word { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.reveal-clip.in .word { transform: none; }
.reveal-clip .word:nth-child(2) { transition-delay: 0.07s; }
.reveal-clip .word:nth-child(3) { transition-delay: 0.14s; }
.reveal-clip .word:nth-child(4) { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) { [data-reveal], .reveal-clip .word { opacity: 1 !important; transform: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Failsafe: force final visible state without relying on a transition
   (covers offscreen / throttled render contexts where compositing is paused) */
.reveal-now, .reveal-now .word { transition: none !important; opacity: 1 !important; transform: none !important; }

/* ============================================================
   DARK MODE
   ============================================================ */
html[data-theme="dark"] {
  --bg: #14110B;
  --surface: #1C1810;
  --surface-2: #221E15;
  --ink: #EFE7D6;
  --ink-soft: #CFC6B2;
  --muted: #948A75;
  --line: #2E2819;
  --line-strong: #443C28;
}
html[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.3; }
html[data-theme="dark"] .steps, html[data-theme="dark"] .footer { background: #0C0A06; }
html[data-theme="dark"] .steps__head h2, html[data-theme="dark"] .step h3 { color: var(--ink); }
html[data-theme="dark"] .nav.scrolled { border-bottom-color: var(--line-strong); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) { .calc__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .lever-stage { max-width: 340px; order: -1; }
  .about__grid, .faq__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__body { columns: 1; }
  .apply__card { grid-template-columns: 1fr; }
  .apply__intro { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .tst__grid { grid-template-columns: 1fr; }
  .quote { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .quote:last-child { border-bottom: 0; }
  .team__grid { grid-template-columns: 1fr; gap: 28px; }
  .member { flex-direction: row; align-items: flex-start; gap: 18px; }
  .member__photo { width: 130px; flex: none; }
  .bene__row { grid-template-columns: 50px 1fr; }
  .bene__row p { grid-column: 2; }
}
@media (max-width: 1024px) {
  .brand .ed { display: none; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1.5px solid var(--ink); padding: 16px var(--pad-x); gap: 4px; }
  .nav__links.open a { padding: 11px 0; font-size: 14px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); background: transparent; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 17px; height: 1.6px; background: var(--ink); position: relative; }
  .menu-toggle span::before { position: absolute; top: -5px; } .menu-toggle span::after { position: absolute; top: 5px; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .steps__list { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; row-gap: 12px; }
  .event__impact { grid-column: 2; justify-self: start; }
  .nav__right .btn--nav { display: none; }
}
