/* ============================================================
   Tokeniza — Landing
   Sistema de diseño: navy institucional + oro de custodia
   Display: Fraunces · Texto/UI: Inter · Datos/hashes: JetBrains Mono
   ============================================================ */

:root {
  /* Marca (heredada de la consola) */
  --navy:          #1B3A5C;
  --navy-deep:     #0E2236;
  --navy-deeper:   #0A1A29;
  --navy-hover:    #142D47;
  --blue:          #2E6DA4;
  --blue-soft:     rgba(46, 109, 164, 0.10);

  /* Acento de custodia */
  --gold:          #C9A227;
  --gold-soft:     rgba(201, 162, 39, 0.12);
  --gold-line:     rgba(201, 162, 39, 0.35);

  /* Estado */
  --green:         #1A7F5A;
  --amber:         #92610A;

  /* Superficies */
  --bg:            #F4F6F9;
  --surface:       #FFFFFF;
  --surface-2:     #EEF1F5;
  --surface-line:  #E5E7EB;

  /* Tinta */
  --ink:           #111827;
  --ink-2:         #4B5563;
  --ink-3:         #9CA3AF;
  --ink-inverse:   #FFFFFF;
  --ink-inverse-2: rgba(255, 255, 255, 0.72);
  --ink-inverse-3: rgba(255, 255, 255, 0.48);

  /* Tipografía */
  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Métrica */
  --maxw:    1180px;
  --gutter:  clamp(20px, 5vw, 48px);
  --radius:  14px;
  --radius-sm: 10px;
  --shadow:  0 1px 2px rgba(16, 37, 56, .04), 0 12px 32px -12px rgba(16, 37, 56, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 37, 56, .35);
  --ease:    cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── Utilidades de capa ────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold-line);
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold-line); }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem);
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem);
}
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--ink-2); max-width: 56ch; }
.on-dark .lede, .lede.on-dark { color: var(--ink-inverse-2); }

/* ── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(27,58,92,.7); }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deeper); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(201,162,39,.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border, var(--surface-line)); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.24); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.08); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,249,.78);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--surface-line); background: rgba(255,255,255,.85); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; font-size: 1.18rem; color: var(--navy); }
.brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 4px; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--surface-line);
    padding: 14px var(--gutter) 22px; box-shadow: var(--shadow);
  }
  .nav__links.open a { padding: 12px 4px; border-bottom: 1px solid var(--surface-2); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(46,109,164,.45), transparent 55%),
    radial-gradient(80% 70% at 8% 110%, rgba(201,162,39,.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-deeper) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px);
}
.hero h1 { margin: 18px 0 22px; color: #fff; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink-inverse-3); font-size: .82rem; font-family: var(--mono); letter-spacing: .03em; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Tarjeta-instrumento del hero */
.instrument {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.instrument__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.instrument__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-inverse-3); }
.chip { font-family: var(--mono); font-size: .72rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.chip--token { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.chip--ok { background: rgba(26,127,90,.18); color: #6fe3b6; border: 1px solid rgba(26,127,90,.4); }
.instrument__amount { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #fff; }
.instrument__amount small { font-size: .9rem; color: var(--ink-inverse-3); font-family: var(--mono); letter-spacing: .05em; }
.instrument__rows { margin-top: 20px; display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.instrument__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 15px; background: rgba(14,34,56,.55); font-size: .86rem; }
.instrument__row dt { color: var(--ink-inverse-3); }
.instrument__row dd { color: var(--ink-inverse-2); font-family: var(--mono); font-size: .8rem; text-align: right; }
.hash { color: var(--gold); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .instrument { order: 2; max-width: 460px; }
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.problem { background: var(--surface); }
.problem__head { max-width: 720px; margin-bottom: 54px; }
.problem__head h2 { margin: 16px 0 18px; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain {
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 26px 22px; background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.pain__ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.pain__ico svg { width: 21px; height: 21px; }
.pain h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.pain p { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 900px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .problem-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.solution { background: var(--surface-2); }
.solution__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.solution__copy h2 { margin: 16px 0 20px; }
.solution__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.solution__list li { display: flex; gap: 14px; align-items: flex-start; }
.solution__list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-top: 2px; }
.solution__list .tick svg { width: 13px; height: 13px; }
.solution__list b { font-weight: 650; }
.solution__list span { color: var(--ink-2); }

.layers { display: grid; gap: 14px; }
.layer {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.layer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); opacity: .65; }
.layer__n { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); width: 26px; flex: none; }
.layer__ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.layer__ico svg { width: 20px; height: 20px; }
.layer h4 { font-size: .98rem; font-weight: 650; }
.layer p { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 820px) { .solution__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CÓMO FUNCIONA + SIMULADOR
   ============================================================ */
.how { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% -10%, rgba(46,109,164,.35), transparent 60%);
  pointer-events: none;
}
.how__head { position: relative; text-align: center; max-width: 680px; margin: 0 auto 14px; }
.how__head h2 { color: #fff; margin: 16px 0 18px; }
.how__head .lede { margin-inline: auto; }

.sim {
  position: relative; margin-top: 48px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}
.sim__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sim__status { font-family: var(--mono); font-size: .82rem; color: var(--ink-inverse-2); display: flex; align-items: center; gap: 10px; }
.sim__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-inverse-3); transition: background .3s; }
.sim.playing .sim__dot { background: var(--gold); box-shadow: 0 0 0 0 rgba(201,162,39,.6); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(201,162,39,0); } 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); } }
.sim__controls { display: flex; gap: 10px; }

/* Pista de etapas */
.sim__track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.sim__track::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 28px; height: 2px;
  background: rgba(255,255,255,.12); z-index: 0;
}
.stage { position: relative; z-index: 1; text-align: center; }
.stage__node {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  color: var(--ink-inverse-2);
  transition: all .4s var(--ease);
}
.stage__node svg { width: 24px; height: 24px; }
.stage__name { font-size: .8rem; font-weight: 600; color: var(--ink-inverse-3); transition: color .3s; }
.stage__meta { font-family: var(--mono); font-size: .66rem; color: var(--ink-inverse-3); opacity: 0; transition: opacity .3s; margin-top: 3px; }
.stage.done .stage__node { background: rgba(46,109,164,.25); border-color: var(--blue); color: #cfe3f6; }
.stage.done .stage__name { color: var(--ink-inverse-2); }
.stage.active .stage__node {
  background: var(--gold); border-color: var(--gold); color: var(--navy-deeper);
  transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px -10px rgba(201,162,39,.6);
}
.stage.active .stage__name { color: #fff; }
.stage.active .stage__meta, .stage.done .stage__meta { opacity: 1; }

/* Panel del documento simulado */
.sim__doc {
  margin-top: 30px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px;
}
.doc-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; position: relative; overflow: hidden; }
.doc-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.doc-card__title { font-weight: 700; font-size: 1.05rem; }
.doc-badge { font-family: var(--mono); font-size: .72rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); transition: all .3s; letter-spacing: .03em; }
.doc-badge[data-tone="registro"]{ background: var(--blue-soft); color: var(--blue); }
.doc-badge[data-tone="custodia"]{ background: var(--surface-2); color: var(--ink-2); }
.doc-badge[data-tone="firma"]{ background: rgba(146,97,10,.12); color: var(--amber); }
.doc-badge[data-tone="token"]{ background: var(--gold-soft); color: #9a7d1d; }
.doc-badge[data-tone="cesion"]{ background: var(--blue-soft); color: var(--blue); }
.doc-badge[data-tone="ok"]{ background: rgba(26,127,90,.12); color: var(--green); }
.doc-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--surface-2); font-size: .88rem; }
.doc-row dt { color: var(--ink-3); }
.doc-row dd { font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--ink); max-width: 60%; overflow-wrap: anywhere; }
.doc-row dd.is-hash { color: #9a7d1d; }
.stamp {
  position: absolute; right: 18px; bottom: 16px; width: 92px; height: 92px;
  border: 2px solid var(--green); color: var(--green); border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-family: var(--mono);
  font-size: .58rem; line-height: 1.25; font-weight: 600; letter-spacing: .04em;
  transform: rotate(-12deg) scale(.4); opacity: 0; transition: all .45s var(--ease);
}
.stamp.show { opacity: .92; transform: rotate(-12deg) scale(1); }

/* Transferencia de cesión */
.transfer { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; }
.transfer__label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-inverse-3); margin-bottom: 16px; }
.transfer__flow { display: flex; align-items: center; gap: 12px; }
.party { flex: 1; text-align: center; padding: 16px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); transition: all .4s var(--ease); }
.party__role { font-size: .7rem; font-family: var(--mono); color: var(--ink-inverse-3); text-transform: uppercase; letter-spacing: .08em; }
.party__name { font-weight: 650; font-size: .92rem; color: #fff; margin-top: 4px; }
.party.lit { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 10px 24px -12px rgba(201,162,39,.5); }
.transfer__arrow { flex: none; color: var(--ink-inverse-3); transition: color .4s; }
.transfer__arrow svg { width: 30px; height: 30px; }
.transfer.moving .transfer__arrow { color: var(--gold); }
.transfer__note { margin-top: 16px; font-size: .82rem; color: var(--ink-inverse-2); min-height: 2.4em; }
.transfer__note b { color: var(--gold); }

@media (max-width: 820px) {
  .sim__track { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .sim__track::before { display: none; }
  .sim__doc { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .sim__track { grid-template-columns: repeat(2, 1fr); } .stage__node { width: 50px; height: 50px; } }

/* ============================================================
   CASOS DE USO
   ============================================================ */
.cases { background: var(--surface); }
.cases__head { max-width: 680px; margin-bottom: 50px; }
.cases__head h2 { margin: 16px 0 0; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  border: 1px solid var(--surface-line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case__top { padding: 24px 24px 0; }
.case__num { font-family: var(--mono); font-size: .76rem; color: var(--gold); letter-spacing: .12em; }
.case h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 10px 0 12px; letter-spacing: -.01em; }
.case p { font-size: .92rem; color: var(--ink-2); padding: 0 24px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 24px 26px; margin-top: auto; }
.case__tags span { font-size: .74rem; font-family: var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.case__viz { height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--gold)); }
@media (max-width: 860px) { .cases-grid { grid-template-columns: 1fr; max-width: 460px; } .cases__head, .cases-grid { margin-inline: auto; } }

/* ============================================================
   TECNOLOGÍA
   ============================================================ */
.tech { background: var(--navy-deeper); color: #fff; }
.tech__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.tech__copy h2 { color: #fff; margin: 16px 0 18px; }
.tech-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tech-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 18px; transition: border-color .25s, background .25s; }
.tech-item:hover { border-color: var(--gold-line); background: rgba(255,255,255,.06); }
.tech-item__ico { color: var(--gold); margin-bottom: 12px; }
.tech-item__ico svg { width: 22px; height: 22px; }
.tech-item h4 { font-size: .95rem; font-weight: 650; margin-bottom: 5px; }
.tech-item p { font-size: .82rem; color: var(--ink-inverse-2); }
.tech-item code { font-family: var(--mono); font-size: .78rem; color: var(--gold); }
@media (max-width: 820px) { .tech__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tech-list { grid-template-columns: 1fr; } }

/* ============================================================
   CTA FINAL + FOOTER
   ============================================================ */
.endcta { background: var(--navy); color: #fff; text-align: center; }
.endcta h2 { color: #fff; margin-bottom: 18px; }
.endcta .lede { margin-inline: auto; margin-bottom: 30px; }
.endcta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { background: var(--navy-deeper); color: var(--ink-inverse-2); padding-block: 64px 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: .88rem; color: var(--ink-inverse-3); max-width: 34ch; }
.footer__col h5 { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-inverse-3); margin-bottom: 16px; }
.footer__col a { display: block; font-size: .9rem; color: var(--ink-inverse-2); padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-inverse-3); }
.footer__bottom .mono { font-family: var(--mono); letter-spacing: .03em; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   SIMULADOR — bracket API + bóveda multi-pagaré
   ============================================================ */

/* ── Bracket "API REST /v1" bajo los primeros 4 nodos ── */
.sim__api-bracket {
  width: calc(100% * 4 / 6 - 6px);
  margin-top: 5px;
  margin-bottom: 18px;
  height: 14px;
  border-left: 1px solid rgba(201,162,39,.35);
  border-right: 1px solid rgba(201,162,39,.35);
  border-bottom: 1px solid rgba(201,162,39,.35);
  border-radius: 0 0 6px 6px;
  position: relative;
  display: flex;
  justify-content: center;
}
.sim__api-bracket span {
  position: absolute;
  bottom: -9px;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .1em;
  color: var(--gold);
  background: var(--navy-deep);
  padding: 0 8px;
}
@media (max-width: 820px) { .sim__api-bracket { display: none; } }

/* ── sim__vault: posición en la cuadrícula sim__doc ── */
.doc-card   { grid-column: 1; grid-row: 1; }
.sim__vault { grid-column: 1; grid-row: 1; display: none; }
.sim__vault.active { display: block; }
.transfer   { grid-column: 2; grid-row: 1; }

/* ── Bóveda ── */
.sim__vault {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  overflow: visible;
}
.vault-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--surface-2);
}
.vault-hdr__title { font-weight: 700; font-size: .9rem; }
.vault-hdr__api {
  font-family: var(--mono);
  font-size: .64rem;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ── Marco de selección (paquetización) ── */
.vault-selection {
  border: 2px dashed transparent;
  border-radius: 10px;
  margin: 6px 8px 0;
  padding-bottom: 2px;
  position: relative;
  transition: border-color .45s var(--ease);
}
.vault-selection.active { border-color: var(--gold); }
.vault-sel__label {
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .07em;
  background: #fff;
  color: var(--gold);
  padding: 0 6px;
  opacity: 0;
  transition: opacity .3s .2s;
  white-space: nowrap;
}
.vault-selection.active .vault-sel__label { opacity: 1; }

/* ── Filas de pagarés tokenizados ── */
.vault-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 0px solid var(--surface-2);
  transition: max-height .38s var(--ease), opacity .32s var(--ease),
              padding .32s var(--ease), border-top-width .32s;
}
.vault-row.in {
  max-height: 44px;
  opacity: 1;
  padding: 8px 10px;
  border-top-width: 1px;
}
.vault-row--excludable {
  margin: 0 8px 6px;
  transition: max-height .38s var(--ease), opacity .32s var(--ease),
              padding .32s var(--ease), border-top-width .32s, filter .4s;
}
.vault-row.excluded { opacity: .28 !important; filter: grayscale(.5); }
.vr-code  { font-family: var(--mono); font-size: .76rem; flex: 1; color: var(--ink-2); }
.vr-monto { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .vault-row, .vault-selection, .vault-sel__label { transition: none; }
}

/* ── Footer claro (logo letras oscuras) ── */
.footer { background: var(--surface); color: var(--ink-2); }
.footer__brand .brand { color: var(--navy); }
.footer__brand p { color: var(--ink-3); }
.footer__col h5 { color: var(--ink-3); }
.footer__col a { color: var(--ink-2); }
.footer__col a:hover { color: var(--navy); }
.footer__bottom { border-top-color: var(--surface-line); color: var(--ink-3); }
.footer__bottom .mono { color: var(--ink-3); }

/* ── Sección aliados: marquee infinito ── */
.allies {
  background: var(--navy-deep);
  padding-block: 40px 44px;
  overflow: hidden;
}
.allies__label {
  text-align: center;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-inverse-3);
  margin-bottom: 28px;
}
.allies__track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.allies__track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: allies-scroll 32s linear infinite;
}
.allies__track:hover { animation-play-state: paused; }
@keyframes allies-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ally-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  opacity: .55;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
  filter: brightness(1.15);
}
.ally-logo:hover { opacity: 1; filter: brightness(1.3); }
.ally-logo img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .allies__track { animation: none; }
}

/* ── Aliados: color de fondo actualizado ── */
.allies { background: #5b6f8acf; }

/* ── FAQ ── */
.faq { background: var(--surface); }
.faq__head { max-width: 640px; margin-bottom: 48px; }
.faq__head h2 { margin: 16px 0 0; }
.faq__list { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq-item[open] { border-color: var(--gold-line); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex: none;
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }

.faq-item__a {
  padding: 0 22px 20px;
  border-top: 1px solid var(--surface-2);
}
.faq-item__a p {
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 16px;
}
.faq-item__a code {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
