:root {
  --bg: #07070a;
  --bg-2: #0d0d13;
  --text: #f3f2ee;
  --soft: #c3c2cd;
  --muted: #8e8d9b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --lime: #c6ff3d;
  --teal: #19e3c4;
  --violet: #7c5cff;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--lime); color: var(--bg); }
a { color: inherit; }
canvas { display: block; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Capas globales: grano, progreso, cursor ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); }
  60% { transform: translate(-2%, 5%); }
  80% { transform: translate(6%, -2%); }
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--lime));
}

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--lime); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.cursor-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.cursor-ring.is-hover::after { transform: scale(1.8); background: rgba(198, 255, 61, .1); border-color: var(--lime); }
.cursor-ring.is-down::after { transform: scale(.8); }

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, padding .3s;
}
.nav.scrolled {
  padding-block: 12px;
  background: rgba(7, 7, 10, .62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.logo { font: 700 24px/1 var(--display); letter-spacing: -.05em; text-decoration: none; }
.logo span { color: var(--lime); }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font: 500 13px/1 var(--mono);
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav nav .nav-cta { color: var(--bg); background: var(--lime); }
.nav nav .nav-cta:hover { color: var(--bg); background: #d8ff75; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-canvas.ready { opacity: 1; }
.no-webgl .hero-canvas { display: none; }
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 72% 28%, rgba(124, 92, 255, .38), transparent 70%),
    radial-gradient(40% 40% at 28% 58%, rgba(25, 227, 196, .18), transparent 70%),
    radial-gradient(30% 30% at 82% 72%, rgba(198, 255, 61, .12), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-inner { width: 100%; max-width: 1240px; margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 12.5px/1 var(--mono);
  color: var(--soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); }
}

.headline {
  margin: 0;
  font: 700 clamp(3.4rem, 16vw, 11.5rem)/.86 var(--display);
  letter-spacing: -.055em;
}
.headline .line {
  display: block;
  overflow: hidden;
  padding: 0 .04em .13em 0;
  margin-bottom: -.1em;
}
.headline em {
  font: italic 400 1.05em/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--lime);
}
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.js .headline .char {
  opacity: 0;
  transform: translateY(110%) rotate(8deg);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d) * 34ms + 150ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.rotator {
  margin: 26px 0 0;
  min-height: 1.4em;
  font: 500 clamp(1rem, 2.2vw, 1.35rem)/1.4 var(--mono);
}
.rotator .prompt { color: var(--lime); margin-right: .3em; }
.rotator .glitch { color: var(--teal); }
.caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -.2em;
  background: var(--lime);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lede {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--soft);
}
.lede strong { color: var(--text); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 96px);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Botones ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn span { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover, .btn.is-done { color: var(--lime); border-color: var(--lime); }

/* ---------- Cinta de tecnologías ---------- */

.marquee {
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: 500 clamp(1.4rem, 3vw, 2.4rem)/1.1 var(--display);
  letter-spacing: -.02em;
  color: #d9d8e0;
  white-space: nowrap;
}
.marquee-track span:nth-child(3n) { font: italic 400 clamp(1.6rem, 3.4vw, 2.7rem)/1.1 var(--serif); color: var(--lime); }
.marquee-track span::after { content: "✦"; font: 400 .5em/1 var(--display); color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

.section-head { margin-bottom: clamp(40px, 7vw, 80px); }
.kicker { margin: 0 0 18px; font: 500 13px/1 var(--mono); color: var(--lime); letter-spacing: .04em; }
h2 {
  margin: 0;
  max-width: 14ch;
  font: 700 clamp(2.4rem, 6.4vw, 5.6rem)/.95 var(--display);
  letter-spacing: -.045em;
}
h2 em { font: italic 400 1.05em/1 var(--serif); letter-spacing: -.01em; color: var(--muted); }

/* ---------- El stack en 3D ---------- */

.stack-section { padding: clamp(100px, 14vw, 180px) 0 clamp(40px, 6vw, 80px); }
.stack-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); }
.stack-visual { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.stack-scene { width: min(440px, 90%); aspect-ratio: 1; perspective: 1800px; }
.stack {
  --sep: 0;
  --gap: calc(16px + var(--sep) * 56px);
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--ty, 0deg))) rotateZ(calc(-42deg + var(--tx, 0deg)));
  transition: transform .6s var(--ease);
}
.stack::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .5), transparent);
  filter: blur(30px);
  transform: translateZ(-70px);
}
.layer {
  position: absolute;
  inset: 10%;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, .035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, .035) 23px 24px),
    rgba(13, 13, 19, .86);
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform .7s var(--ease), border-color .4s, box-shadow .4s, background-color .4s;
  cursor: pointer;
}
.layer.is-active {
  border-color: var(--lime);
  background-color: rgba(28, 36, 10, .92);
  box-shadow: 0 0 0 1px rgba(198, 255, 61, .25), 0 0 80px rgba(198, 255, 61, .22);
  transform: translateZ(calc(var(--i) * var(--gap) + 34px));
}
.layer-label { position: absolute; left: 22px; bottom: 18px; font: 500 14px/1 var(--mono); color: var(--muted); transition: color .3s; }
.layer-glyph { position: absolute; right: 22px; top: 18px; font: 500 28px/1 var(--mono); color: rgba(255, 255, 255, .2); transition: color .3s; }
.layer.is-active .layer-label, .layer.is-active .layer-glyph { color: var(--lime); }

.stack-steps { margin: 0; padding: 0; list-style: none; }
.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  opacity: .25;
  transition: opacity .5s;
}
.step.is-active { opacity: 1; }
.step-num { font: 500 13px/1 var(--mono); color: var(--lime); }
.step h3 { margin: 14px 0; font: 700 clamp(2rem, 4.2vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; }
.step p { margin: 0; max-width: 42ch; font-size: 1.08rem; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 12.5px/1 var(--mono);
  color: #d4d3dc;
  transition: border-color .4s;
}
.step.is-active .tags li { border-color: rgba(198, 255, 61, .4); }

/* ---------- Bento ---------- */

.bento-section { padding: clamp(80px, 12vw, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-2);
  transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, .1), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card-label { display: block; font: 500 12.5px/1.3 var(--mono); color: var(--muted); letter-spacing: .03em; }
.card h3 { margin: 12px 0 10px; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -.035em; }
.card p { margin: 0; color: var(--soft); }

.card-years {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: radial-gradient(120% 80% at 0% 100%, rgba(124, 92, 255, .3), transparent 60%), var(--bg-2);
}
.big {
  display: block;
  margin-bottom: 12px;
  font: 700 clamp(6rem, 13vw, 11rem)/.8 var(--display);
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #fff 25%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card .route { margin-top: 18px; font: 500 13px/1.6 var(--mono); color: var(--muted); }
.route b { color: var(--text); font-weight: 500; }
.route span { color: var(--lime); }

.card-pango { grid-column: span 4; min-height: 270px; padding-right: 48%; }
.city {
  position: absolute;
  inset: 0 0 0 54%;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--lime));
  box-shadow: 0 0 18px var(--c, var(--lime));
}
.pin::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--c, var(--lime));
  border-radius: 50%;
  animation: pulse 2.6s var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(4.2); opacity: 0; }
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 13px/1 var(--mono);
  color: var(--text);
  text-decoration: none;
  transition: color .25s, border-color .25s, background-color .25s;
}
.card-link span { display: inline-block; transition: transform .3s var(--ease); }
.card-link:hover { color: var(--lime); border-color: var(--lime); background: rgba(198, 255, 61, .06); }
.card-link:hover span { transform: translate(2px, -2px); }

/* Móvil con la app: flota, se inclina y asoma por debajo de la tarjeta */
.phone {
  position: absolute;
  right: 14%;
  top: 30px;
  width: 180px;
  margin: 0;
  transform: rotate(-7deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 50px rgba(198, 255, 61, .14));
  animation: float 6s ease-in-out infinite;
  transition: transform .6s var(--ease);
}
.phone img { display: block; width: 100%; height: auto; }
.card-pango:hover .phone { transform: rotate(-2deg) scale(1.04); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.card-clock { grid-column: span 2; }
.card .time { margin-top: 18px; font: 500 clamp(2.8rem, 5vw, 3.8rem)/1 var(--mono); letter-spacing: -.05em; color: var(--text); }
.time .colon { animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { opacity: .25; } }
.card .coords { margin-top: 14px; font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.card .mood { margin-top: 10px; font: 500 12.5px/1.5 var(--mono); color: var(--lime); }

.card-ai { grid-column: span 2; }
.ai-log { min-height: 6.8em; margin-top: 16px; font: 500 12.5px/1.7 var(--mono); color: var(--teal); }
.ai-log div { opacity: .45; }
.ai-log div:last-child { opacity: 1; }

.card-mba {
  grid-column: span 6;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 0;
  padding: 34px 32px;
}
.card .quote { font: italic 400 clamp(1.9rem, 4.6vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.01em; color: var(--text); }
.quote span { color: var(--lime); }

/* ---------- Terminal ---------- */

.terminal-section { padding: clamp(60px, 10vw, 140px) 0; }
.terminal {
  max-width: 920px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 30%), #0a0a0f;
  box-shadow: 0 40px 120px -40px rgba(124, 92, 255, .5);
  cursor: text;
  transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.terminal:focus-within { border-color: rgba(198, 255, 61, .5); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar p { margin: 0 0 0 10px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.term-body {
  height: 360px;
  overflow-y: auto;
  padding: 18px 20px 22px;
  font: 400 14px/1.65 var(--mono);
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.term-row { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-row.is-muted { color: var(--muted); }
.term-row a, .term-row b { color: var(--lime); font-weight: 500; }
.term-prompt { margin-right: 10px; color: var(--lime); white-space: nowrap; }
.term-line { display: flex; align-items: center; margin: 0; }
.term-line input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font: inherit;
  caret-color: var(--lime);
}
.hint { margin: 18px 0 0; font: 500 13px/1.9 var(--mono); color: var(--muted); }
.hint code { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text); }

/* ---------- Contacto ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -35%;
  z-index: -1;
  width: min(1100px, 150vw);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, .38), rgba(25, 227, 196, .12) 55%, transparent);
  filter: blur(40px);
  pointer-events: none;
}
.contact-title { max-width: none; font-size: clamp(3.2rem, 11vw, 10rem); line-height: .9; }
.contact-title em { color: var(--lime); }
.mail {
  display: inline-block;
  margin-top: 44px;
  padding-bottom: 6px;
  font: 500 clamp(1.5rem, 4.4vw, 3.4rem)/1.1 var(--display);
  letter-spacing: -.03em;
  text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease), color .3s, transform .35s var(--ease);
}
.mail:hover { color: var(--lime); background-size: 100% 2px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  font: 500 12.5px/1.5 var(--mono);
  color: var(--muted);
}

/* ---------- Aparición al hacer scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-years { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .card-pango, .card-mba { grid-column: span 2; }
  .card-clock, .card-ai { grid-column: span 1; }
}

@media (max-width: 900px) {
  .stack-grid { grid-template-columns: 1fr; gap: 0; }
  .stack-visual {
    top: 56px;
    z-index: 2;
    height: 36vh;
    background: linear-gradient(to bottom, var(--bg) 80%, transparent);
  }
  .stack-scene { width: min(230px, 58vw); }
  .stack { --gap: calc(10px + var(--sep) * 22px); }
  .layer.is-active { transform: translateZ(calc(var(--i) * var(--gap) + 14px)); }
  .layer { border-radius: 16px; }
  .layer-label { left: 12px; bottom: 10px; font-size: 10px; }
  .layer-glyph { right: 12px; top: 10px; font-size: 16px; }
  .step { min-height: 55vh; }
}

@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .scroll-hint { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card-years, .card-pango, .card-clock, .card-ai, .card-mba { grid-column: auto; }
  .card-pango { padding-right: 28px; padding-bottom: 230px; }
  .city { inset: auto 0 0 0; height: 230px; }
  .phone { top: auto; right: auto; left: 50%; bottom: -125px; width: 170px; margin-left: -85px; }
  .term-body { height: 320px; font-size: 13px; padding: 14px 14px 18px; }
  .footer { justify-content: center; text-align: center; }
}

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