/* Secciones de la página */
/* 5. Secciones --------------------------------------------------------- */
/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-faint);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.nav__brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }

/* Botón hamburguesa: oculto en escritorio */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 104px;
}
.hero__glow {
  position: absolute;
  left: -200px;
  top: -120px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(114, 214, 155, 0.10), rgba(114, 214, 155, 0));
  pointer-events: none;
}
.hero__text {
  position: relative;
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__prompt { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }
.hero__title {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead { font-size: 21px; line-height: 1.55; color: var(--text-soft); max-width: 34ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); }
.hero__status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__photo { position: relative; flex: 1 1 340px; max-width: 420px; }
.hero__photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #141A22;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  color: #6E7681;
  font-family: var(--font-mono);
  font-size: 14px;
}
.hero__photo-caption {
  position: absolute;
  left: -20px;
  bottom: 28px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #161B22;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(4, 8, 12, 0.55);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.hero__photo-caption span { color: var(--text); }

/* Cifras */
.stats { padding-bottom: 104px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--border-faint);
  padding-top: 40px;
}
.stats__value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stats__value--accent { color: var(--accent); font-variant-numeric: normal; }
.stats__label { color: var(--text-muted); font-size: 16px; }

/* Secciones con fondo alterno */
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.section--bordered { border-top: 1px solid var(--border-faint); }

.section__title {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Sobre mí */
.about { display: flex; flex-direction: column; gap: 32px; padding-top: 112px; padding-bottom: 120px; }
.about__kicker { font-size: 18px; font-weight: 500; color: var(--text-muted); }
.about__quote {
  max-width: 30ch;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.about__quote span { color: var(--accent); }
.about__cols { display: flex; flex-wrap: wrap; gap: 32px 56px; color: var(--text-soft); font-size: 18px; }
.about__cols p { flex: 1 1 320px; max-width: 60ch; }

/* Stack */
.stack { display: flex; flex-direction: column; gap: 48px; padding-top: 112px; padding-bottom: 112px; }
.stack__group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border-faint);
  align-items: baseline;
}
.stack__group-title {
  flex: 0 0 220px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.stack__items { flex: 1 1 480px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Proyectos */
.projects { display: flex; flex-direction: column; gap: 40px; padding-top: 112px; padding-bottom: 112px; }
.projects__head { display: flex; flex-direction: column; gap: 24px; }
.projects__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Formación */
.education { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 112px; padding-bottom: 120px; }
.education__title { flex: 1 1 280px; }
.timeline { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 20px; }
.timeline__marker { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 11px;
  height: 11px;
  margin-top: 9px;
  border-radius: 50%;
  box-sizing: border-box;
}
.timeline__dot--on { background: var(--accent); }
.timeline__dot--off { border: 1.5px solid #484F58; }
.timeline__line { width: 1px; flex-grow: 1; background: var(--border-soft); }
.timeline__content { padding-bottom: 40px; display: flex; flex-direction: column; gap: 4px; }
.timeline__when { font-family: var(--font-mono); font-size: 14px; color: var(--text-faint); }
.timeline__title { font-size: 21px; font-weight: 600; }
.timeline__desc { font-size: 16px; color: var(--text-muted); max-width: 60ch; }

/* Contacto */
.contact {
  max-width: 860px;
  margin: 0 auto;
  padding: 128px 24px 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.contact__title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.contact__lead { font-size: 20px; color: var(--text-soft); max-width: 46ch; }
.contact__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-top: 8px; font-size: 16px; }
.contact__social .navlink { padding: 10px 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-faint);
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--text-faint);
}

