/* ============================================================
   PROGAMINS — Portfolio · Identidad visual
   Dark · Editorial · Premium · Solo anima transform/opacity
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-2: #0e0e12;
  --panel: #14141a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f6;
  --muted: #9b9ba6;
  --dim: #5f5f6a;

  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --blue: #4f9dff;
  --magenta: #ec4899;

  --grad: linear-gradient(96deg, var(--violet) 0%, var(--cyan) 55%, var(--magenta) 100%);

  --font-display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 3000;
  padding: 10px 18px; background: var(--panel); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.8rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Fondo: noise + spotlight ---------- */
.noise {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10), transparent 62%);
  will-change: transform;
}

/* ---------- Aurora: blobs de color animados ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(90px); will-change: transform;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.30), transparent 70%);
}
.aurora span:nth-child(2) {
  width: 38vw; height: 38vw; right: -10vw; top: 24vh;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  animation-delay: -9s; animation-duration: 32s;
}
.aurora span:nth-child(3) {
  width: 42vw; height: 42vw; left: 30vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16), transparent 70%);
  animation-delay: -17s; animation-duration: 38s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 2500;
  pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--text); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}
.cursor-ring.is-hover { width: 52px; height: 52px; border-color: var(--cyan); }
@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-ring, .spotlight { display: none; }
}

/* ---------- Tipografía auxiliar ---------- */
.mono { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.sec-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 64px;
}
.sec-head .kicker { white-space: nowrap; color: var(--text); }
.sec-head .kicker b { color: var(--cyan); font-weight: 500; }
.sec-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 26px; border: 1px solid var(--line-strong);
  border-radius: 4px; background: transparent; color: var(--text);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  z-index: 1200;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 32px;
  background: rgba(10, 10, 13, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s var(--ease);
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700; color: var(--text);
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu .menu-cta { margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 80px;
}
.hero .kicker { margin-bottom: 26px; }
.hero-title { margin-bottom: 28px; }
.hero-line { overflow: hidden; display: block; }
.hero-line span {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 12.5vw, 10.5rem);
  line-height: 0.98; letter-spacing: -0.035em;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
.hero-line:nth-child(2) span { animation-delay: 0.12s; }
.hero-line:nth-child(3) span { animation-delay: 0.24s; }
.hero-line.grad span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: lineUp 1s var(--ease) forwards, shimmer 9s linear infinite;
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub {
  font-family: var(--font-mono); font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-sub b { color: var(--text); font-weight: 500; }
.type-static { color: var(--text); }
.type-sep { color: var(--dim); }
.type-role { color: var(--cyan); font-weight: 500; }
.type-caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--cyan); margin-left: 3px;
  vertical-align: -0.12em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.62s forwards;
}
.hero-meta {
  position: absolute; left: 28px; right: 28px; bottom: 44px;
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 0; align-items: center;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}
.hero-meta span { padding: 0 18px; border-left: 1px solid var(--line); }
.hero-meta span:first-child { border-left: 0; padding-left: 0; }
.hero-meta .live { color: var(--magenta); }
.hero-scroll {
  position: absolute; right: 28px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--dim); text-transform: uppercase;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--dim), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  white-space: nowrap;
}
.marquee-item .sep { color: var(--violet); margin-left: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Work ---------- */
.project {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 84px); align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project.flip .p-info { order: 2; }
.project.flip .p-media { order: 1; }
.p-info { position: relative; }
.p-idx {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.2em; color: var(--muted); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.p-idx::after { content: ""; width: 44px; height: 1px; background: var(--line-strong); }
.p-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 20px;
  position: relative; display: inline-block;
}
.p-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.project:hover .p-title::after { transform: scaleX(1); }
.p-desc { color: var(--muted); max-width: 46ch; margin-bottom: 24px; font-size: 0.98rem; }
.p-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.p-stack span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 3px;
  color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.project:hover .p-stack span { color: var(--text); }
.p-links { display: flex; gap: 28px; flex-wrap: wrap; }
.p-links a {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); display: inline-flex; gap: 8px; align-items: center;
  transition: color 0.2s;
}
.p-links a .arr { transition: transform 0.25s var(--ease); }
.p-links a:hover { color: var(--cyan); }
.p-links a:hover .arr { transform: translate(3px, -3px); }
.p-links .demo { color: var(--magenta); }
.p-links .demo:hover { color: var(--magenta); opacity: 0.85; }

.p-media { position: relative; will-change: transform; }
.p-media .frame {
  display: block; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: var(--bg-2);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project:hover .p-media .frame {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 24px 60px -24px rgba(139, 92, 246, 0.35);
}
.p-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  transform: scale(1.001);
}
.project:hover .p-media img { transform: scale(1.035); filter: saturate(1); }
.p-media .cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 10, 13, 0.72); padding: 6px 10px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.p-media .tile {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 4px;
  background:
    linear-gradient(rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.05)),
    var(--bg-2);
  position: relative; overflow: hidden;
}
.p-media .tile .big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  transition: -webkit-text-stroke-color 0.4s;
}
.project:hover .p-media .tile .big { -webkit-text-stroke-color: rgba(34, 211, 238, 0.7); }
.p-media .tile .lang {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.p-media .tile .no {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--dim);
}
.p-media .tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(139, 92, 246, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.project:hover .p-media .tile::before { transform: translateX(100%); }
.ghost-no {
  position: absolute; top: -46px; right: -8px; z-index: -1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-bottom: 48px;
}
.stack-cell {
  background: var(--bg); padding: 28px 24px;
  position: relative; transition: background 0.3s;
}
.stack-cell::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.stack-cell:hover::after { transform: scaleY(1); }
.stack-cell:hover { background: var(--bg-2); }
.stack-cell h3 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px; display: flex; gap: 10px; align-items: center;
}
.stack-cell h3::before { content: ""; width: 14px; height: 1px; background: var(--cyan); }
.stack-cell ul { display: flex; flex-direction: column; gap: 8px; }
.stack-cell li {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--muted); transition: color 0.2s, transform 0.2s var(--ease);
  display: inline-flex; width: max-content;
}
.stack-cell li:hover { color: var(--text); transform: translateX(4px); }
.stack-icons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  border: 1px solid var(--line); padding: 14px; border-radius: 4px;
}
.tech-chip {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 10px 16px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg);
  transition: border-color 0.3s var(--ease), background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.tech-chip img {
  width: 42px; height: 42px;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.tech-chip span {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim);
  transition: color 0.3s;
}
.tech-chip:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--bg-2);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(139, 92, 246, 0.4);
}
.tech-chip:hover img { filter: grayscale(0) opacity(1); transform: scale(1.12); }
.tech-chip:hover span { color: var(--text); }
.stack-note {
  margin-top: 22px; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}

/* ---------- About ---------- */
.about-statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.14; letter-spacing: -0.02em;
  max-width: 22ch; margin-bottom: 28px;
}
.about-statement .hl {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-copy { color: var(--muted); max-width: 60ch; margin-bottom: 48px; }
.about-copy b { color: var(--text); font-weight: 500; }
.about-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.about-cell { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-cell .lbl {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 10px;
}
.about-cell .val { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.about-cell .val small { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* ---------- Contadores animados ---------- */
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin: 48px 0 44px;
}
.stat { background: var(--bg); padding: 26px 24px; }
.stat .num, .stat .suf {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); margin-top: 12px;
}

/* ---------- Currently learning (rotación) ---------- */
.learning .lbl {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 16px;
}
.learning-track { position: relative; height: 2.4em; overflow: hidden; }
.learning-item {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.3;
  color: var(--text); white-space: nowrap;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.learning-item.active { opacity: 1; transform: none; }
.learning-item::before { content: "→ "; color: var(--cyan); }

/* ---------- GitHub ---------- */
.gh-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: start; }
.gh-list { border-top: 1px solid var(--line); }
.gh-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), background 0.3s;
}
.gh-row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.06), transparent); }
.gh-row .no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); }
.gh-row .name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.gh-row .desc { font-size: 0.88rem; color: var(--muted); grid-column: 2 / 4; margin-top: -10px; }
.gh-row .meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); text-align: right; white-space: nowrap; }
.gh-row .lang { display: inline-flex; align-items: center; gap: 6px; }
.gh-row .lang::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--cyan)); }
.gh-loading, .gh-error {
  padding: 22px 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.gh-stats { border-top: 1px solid var(--line); }
.gh-stat { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gh-stat .lbl {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.gh-stat .val { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.gh-stat .val small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.gh-note { margin-top: 22px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Footer ---------- */
.footer { padding: 130px 0 40px; }
.footer-cta {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 44px;
}
.footer-cta .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 90px; }
.footer-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim);
}
.footer-meta a { color: var(--muted); transition: color 0.2s; }
.footer-meta a:hover { color: var(--text); }
.footer-learning { color: var(--cyan); }
.footer-learning::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-right: 8px; vertical-align: 1px;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .project { grid-template-columns: 1fr; gap: 36px; padding: 52px 0; }
  .project.flip .p-info { order: 1; }
  .project.flip .p-media { order: 2; }
  .gh-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero-meta span:nth-child(3), .hero-meta span:nth-child(4) { display: none; }
  .hero-scroll { display: none; }
  .container { padding: 0 20px; }
  .hero-meta { left: 20px; right: 20px; }
  .sec-head { margin-bottom: 44px; }
}
@media (max-width: 520px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 18px; }
  .learning-item { font-size: 1.05rem; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-icons { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; padding: 10px; }
  .tech-chip { padding: 16px 8px 12px; }
  .hero { padding: 120px 0 70px; }
  .footer { padding: 90px 0 32px; }
  .footer-actions { margin-bottom: 60px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .cursor-dot, .cursor-ring, .spotlight, .aurora { display: none; }
  .learning-item { position: static; opacity: 1; transform: none; }
  .learning-item:not(:first-child) { display: none; }
}
