/* =========================================================
   AEHF — Portafolio profesional
   Sistema de diseño: navy tecnológico, inspirado en Vercel/Stripe/Linear
   ========================================================= */

:root {
  /* Paleta (definida por el brief) */
  --color-bg: #0F172A;
  --color-bg-alt: #111C33;
  --color-surface: #1E293B;
  --color-surface-2: #24314A;
  --color-accent: #2563EB;
  --color-accent-2: #1D4ED8;
  --color-detail: #38BDF8;
  --color-text: #F8FAFC;
  --color-text-dim: #94A3B8;
  --color-text-faint: #64748B;
  --color-border: rgba(148, 163, 184, 0.14);
  --color-border-strong: rgba(148, 163, 184, 0.28);

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-w: 1140px;
  --section-pad: 128px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--color-accent); color: var(--color-text); }

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

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

.section { padding: var(--section-pad) 0; position: relative; overflow-x: hidden; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(30,41,59,0.35) 12%, rgba(30,41,59,0.35) 88%, transparent); }

.section::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  top: 10%;
  right: -180px;
}
.section:nth-of-type(even)::before { left: -180px; right: auto; background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%); }

.section-head { margin-bottom: 56px; max-width: 640px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-detail);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: linear-gradient(90deg, var(--color-detail), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   CIRCUITO DE PROGRESO — elemento distintivo (hardware/software)
   ========================================================= */
.circuit-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  width: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circuit-line { width: 4px; height: 100%; overflow: visible; }

.circuit-track {
  stroke: var(--color-border);
  stroke-width: 2;
  fill: none;
}

.circuit-progress {
  stroke: var(--color-detail);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.65));
  transition: stroke-dashoffset 0.15s linear;
}

.circuit-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-text-faint);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.node.active {
  border-color: var(--color-detail);
  background: var(--color-detail);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transform: scale(1.15);
}

@media (max-width: 960px) {
  .circuit-rail { display: none; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.logo-bracket { color: var(--color-detail); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-dim);
  position: relative;
  transition: color 0.25s var(--ease);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--color-detail);
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-text);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  border-color: var(--color-detail);
  background: rgba(56, 189, 248, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 110;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
}
.btn-primary:hover {
  background: var(--color-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.55);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-detail);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 32px 80px;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 15%, transparent 75%);
  will-change: transform;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  will-change: transform;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  background: var(--color-accent);
  top: -120px; left: 8%;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: var(--color-detail);
  bottom: -140px; right: 6%;
  opacity: 0.18;
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-dim);
  animation: float-y 6s ease-in-out infinite;
}
.hero-float-1 { top: 22%; left: 6%; animation-delay: 0s; }
.hero-float-2 { bottom: 20%; right: 6%; animation-delay: 1.2s; color: var(--color-detail); }
.hero-float .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-red { background: #F87171; }
.dot-yellow { background: #FBBF24; }
.dot-green { background: #34D399; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 960px) {
  .hero-float { display: none; }
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-detail);
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border-strong);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(30, 41, 59, 0.4);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-name .line { display: block; }
.hero-name .line:last-child {
  background: linear-gradient(100deg, var(--color-text) 30%, var(--color-detail) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--color-detail);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.dot-sep { color: var(--color-text-faint); margin: 0 2px; }

.hero-description {
  color: var(--color-text-dim);
  font-size: 17px;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--color-text-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(var(--color-detail), transparent);
  animation: scroll-cue 2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* =========================================================
   SOBRE MÍ
   ========================================================= */
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  position: relative;
  padding-bottom: 28px;
}
.about-lead::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-detail));
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.trait-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(160deg, var(--color-surface), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--color-text-dim);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.trait-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--color-detail), transparent 42%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.trait-card svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--color-detail);
  transition: transform 0.35s var(--ease);
}
.trait-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  color: var(--color-text);
  box-shadow: 0 18px 34px -20px rgba(37, 99, 235, 0.55);
}
.trait-card:hover::before { opacity: 1; }
.trait-card:hover svg { transform: scale(1.12) rotate(-4deg); }

/* =========================================================
   HABILIDADES
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 14px;
}
.skill-name { font-weight: 600; color: var(--color-text); }
.skill-percent { font-family: var(--font-mono); color: var(--color-detail); font-size: 13px; }

.skill-track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-detail));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 1.4s var(--ease);
}

/* =========================================================
   TECNOLOGÍAS
   ========================================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}

.tech-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, var(--color-surface), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--color-detail), var(--color-accent) 60%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.tech-card svg { width: 30px; height: 30px; color: var(--color-text-dim); transition: color 0.3s var(--ease), transform 0.35s var(--ease); }
.tech-card span { font-size: 13px; font-weight: 500; color: var(--color-text-dim); transition: color 0.3s var(--ease); }

.tech-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 18px 32px -20px rgba(56, 189, 248, 0.55);
}
.tech-card:hover::before { opacity: 1; }
.tech-card:hover svg { transform: scale(1.1); }
.tech-card:hover svg,
.tech-card:hover span { color: var(--color-detail); }

/* =========================================================
   METODOLOGÍAS
   ========================================================= */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.method-card {
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--color-surface), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-detail) 65%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.method-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 20px 36px -22px rgba(37, 99, 235, 0.5);
}
.method-card:hover::before { opacity: 1; }

.method-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--color-detail);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.method-card:hover .method-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(56, 189, 248, 0.18);
}
.method-icon svg { width: 21px; height: 21px; }

.method-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.method-card p {
  font-size: 13.8px;
  color: var(--color-text-dim);
  line-height: 1.65;
}

/* =========================================================
   EXPERIENCIA — timeline
   ========================================================= */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline-track {
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--color-detail), var(--color-border) 70%);
}

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-detail);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-detail);
}
.timeline-dot.pulse { animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--color-detail); }
  50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25); }
}

.timeline-future .timeline-dot {
  background: var(--color-bg);
  border: 2px solid var(--color-text-faint);
  box-shadow: none;
}

.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.timeline-placeholder { border-style: dashed; background: transparent; }

.timeline-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-detail);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.timeline-tag-muted { color: var(--color-text-faint); background: transparent; border: 1px solid var(--color-border-strong); }

.timeline-card h3 { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 8px; }
.timeline-card p { font-size: 14px; color: var(--color-text-dim); line-height: 1.6; }

/* =========================================================
   CERTIFICACIONES
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  padding: 30px;
  background: linear-gradient(160deg, var(--color-surface), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 20px 38px -22px rgba(37, 99, 235, 0.5);
}

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
}

.cert-slot {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-detail);
  display: flex; align-items: center; justify-content: center;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cert-card p {
  font-size: 13.5px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 26px;
  background: linear-gradient(160deg, var(--color-surface), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--color-detail), var(--color-accent) 65%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 18px 34px -20px rgba(37, 99, 235, 0.5);
}
.contact-card:hover::before { opacity: 1; }

.contact-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.35s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.1) rotate(-4deg); }
.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.contact-value { font-size: 15px; font-weight: 500; color: var(--color-text); word-break: break-word; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo { font-family: var(--font-mono); font-size: 15px; color: var(--color-text-dim); }
.footer-quote {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-text-dim);
  font-style: italic;
  max-width: 480px;
}
.footer-copy { font-size: 12.5px; color: var(--color-text-faint); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  :root { --section-pad: 92px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 78vw);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--color-border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 8px; }

  .trait-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 22px 70px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .section-title { font-size: 26px; }
}
