/* ==========================================================================
   inghumbertohenriquez.com — PERFIL PROFESIONAL
   "The Flow Canvas" — dark workflow-editor theme, same family as optimatiza.com
   Space Grotesk (display) · Inter (body) · IBM Plex Mono (metadata)
   ========================================================================== */

/* ---------- 0. FONTS (self-hosted) ---------- */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- 1. TOKENS ---------- */
:root {
  /* canvas & surfaces */
  --paper-0: #0A0F1A;
  --paper-1: #101828;
  --paper-2: #060B14;
  --band:    #0D1626;

  --ink:      #EDF3FA;
  --ink-700:  #C4D1E0;
  --ink-body: #9BABBF;
  --ink-dim:  #75859B;

  --line:        rgba(148,163,184,0.16);
  --line-strong: rgba(196,209,224,0.55);

  /* interactive */
  --steel:      #5BA8E8;
  --steel-deep: #8CC3F2;

  /* live telemetry */
  --live:        #2DD4BF;
  --live-bright: #14B8A6;

  /* semantic */
  --ok-text: #34D399; --ok-mark: #10B981;
  --danger:  #F87171;
  --amber-ink: #FBBF24; --btc: #F7931A;
  --wa: #25D366;

  /* band scoped */
  --band-text:  #F2EFE7;
  --band-muted: rgba(242,239,231,0.62);
  --band-line:  rgba(242,239,231,0.14);
  --band-accent:#7FB4E0;

  /* flow accents */
  --acc-blue:   #3B82F6;
  --acc-violet: #8B5CF6;
  --grad-ai: linear-gradient(120deg, #14B8A6 0%, #3B82F6 55%, #8B5CF6 100%);
  --glow-teal:   0 0 0 1px rgba(20,184,166,0.35), 0 0 28px rgba(20,184,166,0.18);
  --node-bg: #0E1626;
  --node-line: rgba(148,163,184,0.22);

  /* type */
  --ff-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ff-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --t-0: 0.6875rem;
  --t-1: 0.8125rem;
  --t-2: 0.9375rem;
  --t-3: 1.0625rem;
  --t-4: 1.375rem;
  --t-5: clamp(1.625rem, 2.6vw, 1.875rem);
  --t-6: clamp(2rem, 3.6vw, 2.625rem);
  --t-7: clamp(2.5rem, 4.8vw, 3.625rem);
  --t-8: clamp(2.75rem, 5.4vw, 4.75rem);

  /* spacing 8px grid */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px;
  --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;

  /* geometry */
  --maxw: 1320px;
  --r-0: 14px;
  --r-s: 8px;
  --r-pill: 999px;

  /* shadows */
  --shadow-card: 0 1px 0 rgba(0,0,0,0.35), 0 16px 40px rgba(2,8,20,0.5);
  --shadow-modal: 0 24px 80px rgba(2,8,20,0.75);

  /* motion */
  --ease-draw: cubic-bezier(.65,0,.35,1);
  --ease-text: cubic-bezier(.16,1,.3,1);
  --dur-micro: .18s; --dur-std: .9s; --dur-draw: 1.4s;
}

html[lang="en"] { --t-8: clamp(2.75rem, 5.6vw, 5rem); }

@media (max-width: 420px) {
  :root { --t-8: clamp(2rem, 10vw, 2.75rem); --t-7: clamp(2rem, 9vw, 2.5rem); --t-6: clamp(1.75rem, 8vw, 2rem); }
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: var(--t-3);
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--paper-0);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(20,184,166,0.07), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(139,92,246,0.06), transparent 46%),
    radial-gradient(rgba(148,163,184,0.13) 1px, transparent 1.4px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  background-attachment: fixed;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--dur-micro) ease; }
a:hover { color: var(--steel-deep); }
strong { font-weight: 600; color: var(--ink); }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--ink); color: var(--paper-0); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-4); }

/* ---------- 3. REVEAL SYSTEM (gated under html.js-anim) ---------- */
.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; }
html.js-anim .rv .line-mask .line { transform: translateY(110%); transition: transform var(--dur-std) var(--ease-text); }
html.js-anim .rv.is-in .line-mask .line { transform: translateY(0); }
html.js-anim .rv .line-mask:nth-child(2) .line { transition-delay: 90ms; }
html.js-anim .rv .line-mask:nth-child(3) .line { transition-delay: 180ms; }

html.js-anim .rv .rule-x { transform: scaleX(0); transform-origin: left; transition: transform var(--dur-draw) var(--ease-draw) .1s; }
html.js-anim .rv.is-in .rule-x { transform: scaleX(1); }

html.js-anim .rv .stamp,
html.js-anim .rv.stamp-self { opacity: 0; transform: scale(1.04); transition: opacity var(--dur-std) ease, transform var(--dur-std) var(--ease-text); }
html.js-anim .rv.is-in .stamp,
html.js-anim .rv.is-in.stamp-self { opacity: 1; transform: scale(1); }
html.js-anim .rv .stamp:nth-child(2) { transition-delay: 60ms; }
html.js-anim .rv .stamp:nth-child(3) { transition-delay: 120ms; }
html.js-anim .rv .stamp:nth-child(4) { transition-delay: 180ms; }

html.js-anim .rv[data-fade] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-std) ease, transform var(--dur-std) var(--ease-text); }
html.js-anim .rv.is-in[data-fade] { opacity: 1; transform: none; }

/* ---------- 3.5 3D FLOW LAYER (flow3d.js — progressive enhancement) ----------
   Fixed WebGL constellation behind everything; sections with their own
   background (band, well) naturally mask it. Empty canvas = invisible. */
.bg3d {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
/* attenuate the layer under the text column so bright pulses never
   compromise local contrast (mobile dims via JS instead) */
@media (min-width: 901px) {
  .bg3d {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,1) 62%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,1) 62%);
  }
}

/* FX toggle (WCAG 2.2.2 pause/stop/hide) — revealed by flow3d.js */
.fx-toggle {
  font-family: var(--ff-mono); font-size: var(--t-0); font-weight: 500;
  letter-spacing: 0.08em; color: var(--live); padding: 5px 9px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  transition: color var(--dur-micro) ease, border-color var(--dur-micro) ease;
}
.fx-toggle:hover { border-color: var(--line-strong); }
.fx-toggle.off { color: var(--ink-dim); text-decoration: line-through; }

/* ---------- 4. SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200;
  background: var(--grad-ai);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------- 5. NAV ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.navbar.scrolled { border-bottom-color: var(--line-strong); box-shadow: 0 12px 32px rgba(2,8,20,0.55); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: var(--sp-6); gap: var(--sp-3); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--steel); color: var(--ink);
  font-family: var(--ff-display); font-size: 15px; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-word { font-family: var(--ff-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links a {
  font-family: var(--ff-mono); font-size: var(--t-1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700);
  position: relative; padding: 4px 0; display: inline-flex; gap: 6px; align-items: baseline;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--steel); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-micro) ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-num { font-size: var(--t-0); color: var(--live); }

.nav-right { display: flex; align-items: center; gap: var(--sp-2); }
.nav-clock { font-size: var(--t-1); color: var(--live); }
.lang-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 2px; }
.lang-btn {
  font-family: var(--ff-mono); font-size: var(--t-0); font-weight: 500;
  letter-spacing: 0.08em; color: var(--ink-dim); padding: 4px 8px; border-radius: 6px;
}
.lang-btn:hover { color: var(--ink-700); }
.lang-btn.active { color: var(--ink); background: var(--paper-1); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--dur-micro) ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 6. BUTTONS ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-mono); font-size: var(--t-1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid transparent; border-radius: var(--r-0);
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.btn-ink { color: #071018; }
.btn-ink::after { content: ''; position: absolute; inset: 0; background: var(--grad-ai); z-index: -2; }
.btn-ink::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.22);
  transform: translateY(101%); transition: transform var(--dur-micro) ease; z-index: -1;
}
.btn-ink:hover { color: #071018; transform: translateY(-1px); box-shadow: 0 0 32px rgba(59,130,246,0.35), 0 0 14px rgba(20,184,166,0.3); }
.btn-ink:hover::before { transform: translateY(0); }
.btn-lg { padding: var(--sp-2) var(--sp-4); font-size: var(--t-1); }
.nav-cta { padding: 10px var(--sp-2); }

.btn-link {
  font-family: var(--ff-body); font-size: var(--t-2); font-weight: 500; color: var(--steel);
  position: relative; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.btn-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--steel-deep); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-micro) ease;
}
.btn-link:hover { color: var(--steel-deep); }
.btn-link:hover::after { transform: scaleX(1); }

/* ---------- 7. CHIPS & STAMPS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: var(--t-0); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px var(--sp-1); border-radius: var(--r-s);
  border: 1px solid rgba(91,168,232,0.5); color: var(--steel);
}
.chip-founder { border-color: rgba(139,92,246,0.55); color: #B8A3F5; }
.chip-btc { border-color: rgba(247,147,26,0.55); color: var(--btc); }
.chip-ok { border-color: rgba(16,185,129,0.5); color: var(--ok-text); }

.stamp-label {
  position: absolute; right: 12px; bottom: 12px;
  transform: rotate(-4deg);
  font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ok-text); border: 1.5px solid var(--ok-text); border-radius: var(--r-s);
  padding: 3px 8px; background: rgba(6,11,20,0.7);
}

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live-bright); animation: statusPulse 2.4s ease-out infinite; }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(20,184,166,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}

/* ---------- 8. SECTIONS & CHAPTER HEADS ---------- */
.section { position: relative; padding: var(--sp-8) 0; }
.section-well { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band {
  background: var(--band); color: var(--band-text); position: relative;
  --line: var(--band-line); --line-strong: rgba(242,239,231,0.5);
}
.band::before, .band::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--band-text); }
.band::before { top: 0; opacity: 0.5; }
.band::after { top: 4px; opacity: 0.35; }
.band .section-title { color: var(--band-text); }
.band .section-subtitle { color: var(--band-muted); }
.band strong { color: var(--band-text); }
.band .btn-link { color: var(--band-accent); }
.band .ch-index { color: var(--band-muted); }

.section-close { border-top: 1px solid var(--line-strong); position: relative; }
.section-close::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-strong); opacity: 0.5; }

.ch-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.ch-index { font-size: var(--t-1); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700); white-space: nowrap; }
.ch-rule { flex: 1; height: 1px; background: var(--line-strong); }

.section-header { max-width: 68ch; margin-bottom: var(--sp-6); }
.section-title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: var(--t-6); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
}
.section-title em { font-style: normal; color: var(--steel); }
.section-subtitle { font-size: var(--t-3); color: var(--ink-body); max-width: 60ch; margin-top: var(--sp-2); }

/* ---------- 9. HERO ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--sp-6) + var(--sp-5)); }
.hero-dochead { margin-bottom: var(--sp-6); }
.dochead-strip {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  font-size: var(--t-1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-700); padding-bottom: var(--sp-1); flex-wrap: wrap;
}
.dochead-mid { color: var(--ink-dim); }
.dochead-mid [data-clock] { color: var(--live); }
.dochead-status { display: inline-flex; align-items: center; color: var(--live); }
.dochead-rule { height: 1px; background: var(--line-strong); }

.hero-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-6); align-items: center; margin-bottom: var(--sp-7); }
.hero-kicker { font-size: var(--t-1); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--sp-3); }
.hero-title { font-family: var(--ff-display); font-weight: 700; font-size: var(--t-8); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); margin-bottom: var(--sp-3); }
.hero-title em { font-style: normal; color: var(--steel); }
.hero-title em.em-btc { color: #F7931A; }
/* Acentos de titular con gradiente: base sólida arriba; el gradiente-clip solo
   se aplica donde background-clip:text está soportado (universal moderno), así el
   acento nunca queda invisible. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title em, .section-title em {
    background-image: var(--grad-ai);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .hero-title em.em-btc { background-image: linear-gradient(120deg, #F7931A 0%, #FBBF24 100%); }
}
/* Modo Alto Contraste (Windows/forced-colors): restaurar texto del sistema. */
@media (forced-colors: active) {
  .hero-title em, .hero-title em.em-btc, .section-title em {
    -webkit-text-fill-color: currentColor; color: CanvasText; background-image: none;
  }
}
.hero-subtitle { font-size: var(--t-4); line-height: 1.5; color: var(--ink-body); max-width: 58ch; margin-bottom: var(--sp-4); }
.hero-subtitle a { border-bottom: 1px solid var(--line-strong); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.hero-chips { display: flex; gap: var(--sp-1); flex-wrap: wrap; }

.hero-photo { justify-self: end; max-width: 380px; width: 100%; perspective: 900px; }
.photo-frame {
  position: relative; border: 1px solid var(--node-line); border-radius: var(--r-0);
  padding: var(--sp-1); background: var(--paper-1); box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
}
.photo-frame::before {
  content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 2px;
  background: var(--grad-ai); border-radius: 2px;
}
.photo-frame img { border-radius: calc(var(--r-0) - 6px); filter: saturate(1.02); }
.hero-photo figcaption { margin-top: var(--sp-1); font-size: var(--t-0); letter-spacing: 0.1em; color: var(--ink-dim); text-transform: uppercase; }

/* proof table */
.proof-table {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.proof-cell { padding: var(--sp-4) var(--sp-3); border-right: 1px solid var(--line); }
.proof-cell:last-child { border-right: none; }
.proof-num { font-size: var(--t-6); font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: var(--sp-1); }
.proof-label { display: block; font-size: var(--t-2); color: var(--ink-700); margin-bottom: 4px; }
.proof-sub { display: block; font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); text-transform: uppercase; }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-1) 0; }
.marquee-track { display: flex; width: max-content; animation: marqueeX 60s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-seg { font-size: var(--t-1); letter-spacing: 0.08em; color: var(--ink-dim); white-space: nowrap; }
@keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-marquee { margin-top: auto; }

/* ---------- 10. HISTORIA ---------- */
.hist-layout { display: grid; grid-template-columns: 4fr 8fr; gap: var(--sp-6); margin-bottom: var(--sp-7); }
.hist-aside { position: relative; }
.fact-card {
  position: sticky; top: calc(var(--sp-6) + var(--sp-3));
  background: var(--paper-1); border: 1px solid var(--line); border-radius: var(--r-0);
  box-shadow: var(--shadow-card); padding: var(--sp-4);
}
.fact-head {
  font-size: var(--t-0); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--live); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--sp-2);
}
.fact-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: none; }
.fact-row dt { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.08em; color: var(--ink-dim); padding-top: 3px; }
.fact-row dd { font-size: var(--t-2); color: var(--ink-700); }

.hist-body p { max-width: 68ch; margin-bottom: var(--sp-3); }
.pull-quote { border-left: 2px solid var(--steel); padding-left: var(--sp-3); margin-top: var(--sp-4); }
.pull-quote p { font-family: var(--ff-display); font-size: var(--t-5); font-style: normal; line-height: 1.3; color: var(--ink); margin-bottom: var(--sp-1); }
.pull-quote cite { font-style: normal; font-size: var(--t-0); letter-spacing: 0.1em; color: var(--ink-dim); }

/* journey rail */
.journey { position: relative; }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); position: relative; }
.journey-steps::before {
  content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px;
  background: var(--line-strong);
}
.journey-step { position: relative; padding-top: var(--sp-3); }
.j-dot {
  position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-0); border: 2px solid var(--live-bright);
}
.journey-step:last-child .j-dot { background: var(--live-bright); animation: statusPulse 2.4s ease-out infinite; }
.j-year { display: block; font-size: var(--t-1); font-weight: 500; letter-spacing: 0.08em; color: var(--live); margin-bottom: var(--sp-1); }
.j-title { font-family: var(--ff-display); font-weight: 400; font-size: var(--t-4); color: var(--ink); line-height: 1.2; margin-bottom: var(--sp-1); }
.j-body { font-size: var(--t-2); color: var(--ink-body); }

/* ---------- 11. EDUCACIÓN ---------- */
.edu-rows { border-top: 1px solid var(--line-strong); }
.edu-row {
  display: grid; grid-template-columns: 160px 1fr auto; gap: var(--sp-4); align-items: start;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
}
.edu-years { font-size: var(--t-2); font-weight: 500; color: var(--live); letter-spacing: 0.04em; padding-top: 6px; }
.edu-degree { font-family: var(--ff-display); font-weight: 400; font-size: var(--t-5); color: var(--ink); line-height: 1.2; }
.edu-school { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--ink-dim); text-transform: uppercase; margin: 6px 0 var(--sp-1); }
.edu-note { font-size: var(--t-2); color: var(--ink-body); max-width: 60ch; }
.edu-badge { margin-top: 8px; }

/* ---------- 12. CERTIFICACIONES ---------- */
.cert-grid { display: grid; grid-template-columns: minmax(0, 760px); gap: var(--sp-4); }
.cert-card {
  background: var(--paper-1); border: 1px solid var(--line); border-radius: var(--r-0);
  box-shadow: var(--shadow-card); padding: var(--sp-4);
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.cert-card:hover { border-color: rgba(20,184,166,0.45); box-shadow: var(--glow-teal), var(--shadow-card); }
.cert-cat {
  font-size: var(--t-0); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--sp-1);
}
.cert-list li {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--sp-2); align-items: center;
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--line);
}
.cert-list li:last-child { border-bottom: none; }
.cert-code { font-size: var(--t-1); font-weight: 500; color: var(--ink); }
.cert-name { font-size: var(--t-2); color: var(--ink-700); }
.cert-list .ph-check { color: var(--ok-mark); font-size: var(--t-3); }
.cert-note { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); margin-top: var(--sp-3); line-height: 1.7; }

/* ---------- 13. PROYECTOS (band) ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.feat-card {
  position: relative;
  background: var(--node-bg); border: 1px solid var(--node-line); border-radius: var(--r-0);
  box-shadow: var(--shadow-card); padding: var(--sp-4);
  overflow: hidden;
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.feat-card::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 2px; border-radius: 2px; }
.feat-optz::before { background: var(--grad-ai); }
.feat-btc::before { background: linear-gradient(120deg, #F7931A, #FBBF24); }
.feat-optz:hover { border-color: rgba(139,92,246,0.45); box-shadow: 0 0 0 1px rgba(139,92,246,0.35), 0 0 28px rgba(139,92,246,0.18), var(--shadow-card); }
.feat-btc:hover { border-color: rgba(247,147,26,0.45); box-shadow: 0 0 0 1px rgba(247,147,26,0.3), 0 0 28px rgba(247,147,26,0.14), var(--shadow-card); }
.feat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--sp-3);
}
.feat-index { font-size: var(--t-4); font-weight: 500; color: var(--band-muted); }
.feat-title { font-family: var(--ff-display); font-weight: 700; font-size: var(--t-7); color: var(--band-text); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: var(--sp-2); }
.feat-body { font-size: var(--t-3); color: var(--band-muted); margin-bottom: var(--sp-3); max-width: 58ch; }
.feat-meta { margin-bottom: var(--sp-3); }
.feat-meta li {
  font-size: var(--t-0); font-weight: 500; letter-spacing: 0.08em; color: var(--band-muted);
  padding: var(--sp-1) 0; border-bottom: 1px solid var(--line);
}
.feat-meta li:last-child { border-bottom: none; }
.feat-shots { display: flex; gap: var(--sp-2); align-items: flex-end; margin-bottom: var(--sp-3); }
.feat-shots img { border: 1px solid var(--node-line); border-radius: var(--r-s); }
.feat-shots img:first-child { flex: 1; min-width: 0; }
.feat-shots img:last-child { width: 26%; flex-shrink: 0; }

.ev-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.ev-rows { border-top: 1px solid var(--line-strong); }
.ev-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--sp-4); align-items: center;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.ev-num { font-size: var(--t-1); font-weight: 500; color: var(--band-muted); }
.ev-title { font-family: var(--ff-display); font-weight: 400; font-size: var(--t-4); color: var(--band-text); line-height: 1.2; margin-bottom: 4px; }
.ev-body { font-size: var(--t-2); color: var(--band-muted); max-width: 68ch; }
.ev-outcome {
  font-size: var(--t-0); font-weight: 500; letter-spacing: 0.08em; color: var(--ok-text);
  border: 1px solid rgba(16,185,129,0.5); border-radius: var(--r-s); padding: 4px 10px;
  white-space: nowrap; transform: rotate(-2deg);
}

/* ---------- 14. TARIFARIO ---------- */
.tar-rows { border-top: 1px solid var(--line-strong); margin-bottom: var(--sp-5); }
.tar-row {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); align-items: center;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
}
.tar-band {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-s);
  border: 1px solid var(--node-line); background: var(--node-bg);
  font-size: var(--t-4); font-weight: 500; color: var(--live);
}
.tar-body { font-size: var(--t-3); color: var(--ink-body); max-width: 75ch; }
.tar-foot { max-width: 68ch; }
.tar-note { font-size: var(--t-2); color: var(--ink-body); margin-bottom: var(--sp-2); }
.tar-note.mono { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); }
.tar-ctas { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-4); }

/* ---------- 15. INTERESES ---------- */
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.int-card {
  background: var(--paper-1); border: 1px solid var(--line); border-radius: var(--r-0);
  box-shadow: var(--shadow-card); padding: var(--sp-4);
  display: flex; flex-direction: column;
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.int-card:hover { border-color: var(--line-strong); }
.int-icon { font-size: 28px; margin-bottom: var(--sp-2); }
.icon-btc { color: var(--btc); }
.icon-live { color: var(--live-bright); }
.icon-violet { color: var(--acc-violet); }
.icon-steel { color: var(--steel); }
.icon-wa { color: var(--wa); }
.int-title { font-family: var(--ff-display); font-weight: 400; font-size: var(--t-4); color: var(--ink); margin-bottom: var(--sp-1); }
.int-body { font-size: var(--t-2); color: var(--ink-body); flex: 1; margin-bottom: var(--sp-3); }
.int-tag { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.08em; color: var(--ink-dim); border-top: 1px solid var(--line); padding-top: var(--sp-2); }

/* ---------- 16. CONTACTO ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-6); }
.contact-rows { border-top: 1px solid var(--line-strong); margin-bottom: var(--sp-3); }
.contact-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.contact-row > i { font-size: 22px; color: var(--steel); flex-shrink: 0; }
.contact-row > i.icon-wa { color: var(--wa); }
.contact-label { display: block; font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--ink-dim); margin-bottom: 2px; }
.contact-row a { font-size: var(--t-3); }
.contact-note { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--live); }

.contact-form {
  background: var(--paper-1); border: 1px solid var(--line); border-radius: var(--r-0);
  box-shadow: var(--shadow-card); padding: var(--sp-4);
}
.form-field { margin-bottom: var(--sp-3); }
.form-field label { display: block; font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--ink-dim); margin-bottom: var(--sp-1); }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--ff-body); font-size: var(--t-2); color: var(--ink);
  background: var(--node-bg); border: 1px solid rgba(148,163,184,0.45); border-radius: 10px;
  padding: 12px 14px; resize: vertical;
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-dim); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--live-bright); box-shadow: var(--glow-teal); }
.form-alt { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); margin-top: var(--sp-2); }

/* ---------- 17. FOOTER ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line-strong); }
.footer-certs { border-bottom: 1px solid var(--line); }
.footer-certs .marquee { border: none; }
.footer-content {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5);
  padding-top: var(--sp-6); padding-bottom: var(--sp-6);
}
.footer-descriptor { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--steel); margin-top: var(--sp-2); }
.footer-registry { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); margin-top: var(--sp-1); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-1); }
.footer-links a {
  font-family: var(--ff-mono); font-size: var(--t-1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700);
  position: relative; align-self: flex-start; padding: 2px 0;
}
.footer-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-micro) ease;
}
.footer-links a:hover::after { transform: scaleX(1); }
.footer-side { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a { font-size: var(--t-4); color: var(--ink-700); }
.footer-social a:hover { color: var(--steel); }
.footer-external { display: flex; flex-direction: column; gap: 4px; }
.footer-external a { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.08em; }
.footer-clock { font-size: var(--t-0); letter-spacing: 0.08em; color: var(--ink-dim); }
.footer-clock [data-clock] { color: var(--live); }
.footer-colophon { border-top: 1px solid var(--line); padding-top: var(--sp-3); padding-bottom: var(--sp-4); }
.colophon-motto { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--ink-700); margin-bottom: 4px; }
.colophon-line { font-size: var(--t-0); letter-spacing: 0.04em; color: var(--ink-dim); margin-bottom: var(--sp-1); }
.footer-copy { font-size: var(--t-1); color: var(--ink-dim); }

/* ---------- 18. STICKY PILL ---------- */
.sticky-pill {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 900;
  display: flex; align-items: center; gap: 4px;
  background: var(--paper-1); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  box-shadow: var(--shadow-modal); padding: 6px;
}
.sticky-pill[hidden] { display: none; }
.pill-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wa); color: #06230f; font-size: 22px;
}
.pill-wa:hover { color: #06230f; filter: brightness(1.1); }
.pill-contact { font-size: var(--t-0); font-weight: 500; letter-spacing: 0.1em; color: var(--ink); padding: 0 var(--sp-2); }
.pill-close { color: var(--ink-dim); font-size: var(--t-3); padding: 0 10px 0 4px; }
.pill-close:hover { color: var(--ink); }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1560px) {
  .nav-clock { display: none; }
}

@media (max-width: 1400px) {
  .nav-links .nav-num { display: none; }
}

@media (max-width: 1280px) {
  .int-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-clock { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-photo { justify-self: start; max-width: 320px; }
  .hist-layout { grid-template-columns: 1fr; gap: var(--sp-5); }
  .fact-card { position: static; }
  .journey-steps { grid-template-columns: 1fr; gap: var(--sp-4); padding-left: var(--sp-3); }
  .journey-steps::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .journey-step { padding-top: 0; padding-left: var(--sp-3); }
  .j-dot { top: 4px; left: -22px; }
  .cert-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed; inset: var(--sp-6) 0 0 0; z-index: 999;
    background: var(--paper-0);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: var(--sp-2); padding: var(--sp-5) var(--sp-4);
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-family: var(--ff-display); font-size: var(--t-6); text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-links .nav-num { display: inline; font-size: var(--t-1); color: var(--live); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 820px) {
  .section { padding: var(--sp-6) 0; }
  .hero { padding-top: calc(var(--sp-6) + var(--sp-4)); }
  .dochead-mid { display: none; }
  .ch-index { white-space: normal; }
  .footer-content { grid-template-columns: 1fr; gap: var(--sp-4); }
  .edu-row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .edu-years { padding-top: 0; }
  .edu-badge { justify-self: start; }
  .ev-row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .ev-outcome { justify-self: start; transform: none; }
  .tar-row { grid-template-columns: 56px 1fr; gap: var(--sp-3); }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--sp-3); }
  .proof-table { grid-template-columns: 1fr 1fr; border-bottom: none; }
  .proof-cell { border-bottom: 1px solid var(--line); }
  .proof-cell:nth-child(2n) { border-right: none; }
  .int-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: var(--sp-3); }
  .dochead-strip { font-size: var(--t-0); }
  .logo-word { display: none; }
  .feat-title { font-size: var(--t-6); }
  .tar-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding-inline: var(--sp-2); }
  .hero-chips { gap: 6px; }
  .sticky-pill { right: var(--sp-2); bottom: var(--sp-2); }
}

/* ---------- 20. REDUCED MOTION & PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
  html.js-anim .rv .line-mask .line,
  html.js-anim .rv .rule-x,
  html.js-anim .rv .stamp,
  html.js-anim .rv[data-fade] { transform: none; opacity: 1; }
}

@media print {
  body { background: #fff; color: #111; }
  .navbar, .sticky-pill, .scroll-progress, .marquee, .contact-form, .nav-toggle { display: none !important; }
  .section { padding: 24px 0; }
  .section-title, .hero-title, .feat-title, .edu-degree, .int-title, .j-title, .ev-title { color: #111; }
  a { color: #111; text-decoration: underline; }
}
