:root {
  --bg-deep: #0c1320;
  --bg-card: rgba(11,18,34,0.92);
  --bg-surface: #101827;
  --primary: #14b8a6;
  --accent: #0ea5e9;
  --accent-soft: #22d3ee;
  --electric: #2dd4bf;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --green: #22c55e;
  --slate: #94a3b8;
  --success: #22c55e;
  --text: #e2e8f0;
  --text-bright: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(45,212,191,0.14);
  --glow: 0 0 40px rgba(45,212,191,0.12);
  --glass: rgba(15,23,42,0.65);
}

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

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(circle at top, rgba(56,189,248,0.12), transparent 24%), var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── CANVAS PARTÍCULAS ── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem;
  background: rgba(8,14,25,0.95);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(45,212,191,0.12);
  transition: background 0.3s, padding 0.3s;
}
.logo {
  position: absolute; left: 2.5rem;
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: var(--text-bright);
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: .78rem; font-weight: 600;
  color: white;
}
.nav-links { display: flex; gap: .3rem; list-style: none; align-items: center; justify-content: center; }
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .92rem; font-weight: 500;
  padding: .7rem .95rem; border-radius: 999px;
  transition: color .2s, background .2s, transform .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-bright);
  background: rgba(45,212,191,0.18);
  transform: translateY(-1px);
}
.nav-actions {
  position: absolute; right: 2.5rem;
  display: flex; align-items: center; gap: .9rem;
}
.nav-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.4rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
}
.nav-cta,
.nav-actions a.btn-secondary,
.btn-primary,
.btn-secondary {
  border: none;
  box-shadow: 0 10px 30px rgba(45,212,191,0.18);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}
.nav-actions a.btn-secondary,
.btn-secondary {
  background: linear-gradient(135deg, rgba(45,212,191,0.22), rgba(14,165,233,0.22));
  color: var(--text-bright);
  border: 1px solid rgba(45,212,191,0.22);
}
.nav-cta:hover,
.nav-actions a.btn-secondary:hover,
.btn-primary:hover,
.btn-secondary:hover {
  opacity: .95;
  transform: translateY(-2px);
}
.nav-actions a.btn-secondary:hover,
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(45,212,191,0.32), rgba(14,165,233,0.32));
  border-color: rgba(45,212,191,0.28);
}
.nav-cv { color: var(--text-bright); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  padding: .5rem;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; scroll-margin-top: 110px; }

/* ── HERO ── */
#inicio {
  width: 100%;
  min-height: calc(100vh - 100px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative;
}
.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.09);
  color: var(--success);
  font-size: .8rem; font-weight: 500;
  padding: .4rem 1rem; border-radius: 100px;
  margin-bottom: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
}
.status-pill::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.avatar-wrapper {
  position: relative; width: 120px; height: 120px;
  margin: 0 auto 2.5rem;
}
.avatar-wrapper::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-inner {
  position: absolute; inset: 3px;
  border-radius: 50%; overflow: hidden;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.avatar-badge {
  position: absolute; bottom: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; z-index: 2;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800; line-height: 1.05;
  color: var(--text-bright); margin-bottom: 1rem;
}
.hero-title .gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero-role {
  color: var(--electric);
  font-size: 1rem;
  margin: 0 auto 1.4rem;
  max-width: 720px;
  letter-spacing: .04em;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--slate);
  max-width: 700px; margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-subtitle .tech { color: var(--electric); font-weight: 500; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-btns a { min-width: 170px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary {
  padding: .85rem 2rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 32px rgba(45,212,191,0.22);
}
.btn-primary:hover { opacity: .95; transform: translateY(-2px); }
.btn-secondary {
  padding: .85rem 2rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(45,212,191,0.18), rgba(14,165,233,0.18));
  color: var(--text-bright); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid rgba(45,212,191,0.22); cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(45,212,191,0.28), rgba(14,165,233,0.28));
  border-color: rgba(45,212,191,0.28);
}
.btn-ghost {
  padding: .85rem 2rem; border-radius: 10px;
  border: 1px solid rgba(136,198,255,0.3);
  color: var(--text); font-weight: 600; font-size: .95rem;
  text-decoration: none; background: transparent;
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
}
.btn-ghost:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.stat {
  text-align: center;
  min-width: 150px;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.14);
  background: rgba(7,13,25,0.84);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, var(--electric), var(--violet-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl {
  font-size: .72rem; color: var(--slate);
  text-transform: uppercase; letter-spacing: .08em;
  font-family: 'JetBrains Mono', monospace;
  margin-top: .65rem;
  line-height: 1.4;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; color: var(--slate); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  animation: float-ud 2s ease-in-out infinite;
}
@keyframes float-ud {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-arrow { font-size: 1.2rem; }

/* ── DIVIDER ── */
.divider {
  width: 60px; height: 3px; margin: 0 auto 1rem;
  background: linear-gradient(90deg, var(--electric), var(--violet));
  border-radius: 2px;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; color: var(--electric);
  letter-spacing: .15em; text-transform: uppercase;
  text-align: center; margin-bottom: .6rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--text-bright);
  text-align: center; margin-bottom: .75rem;
}
.section-desc {
  text-align: center; color: var(--slate);
  max-width: 520px; margin: 0 auto 3.5rem;
  font-size: .95rem;
}

/* ── SOBRE MÍ ── */
#sobre-mi { padding: 7rem 2rem; }
.about-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(460px, 1.4fr);
  gap: 4rem; align-items: center; justify-items: center;
}
.about-visual { position: relative; width: 100%; max-width: 420px; }
.about-content { width: 100%; max-width: 520px; }
.profile-card {
  width: 100%; background: linear-gradient(180deg, rgba(12,18,35,0.98), rgba(15,23,42,0.98));
  border: 1px solid rgba(45,212,191,0.14);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  text-align: center;
}
.profile-card-head {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.profile-chip {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-weight: 700;
  padding: .7rem 1rem; border-radius: 16px;
}
.profile-label {
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--accent-soft); font-size: .75rem; margin-bottom: .35rem;
}
.profile-card h3 {
  color: var(--text-bright); font-size: 1.6rem; margin: 0;
}
.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin: 1.75rem 0 1.25rem;
}
.profile-stats div {
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.16);
  border-radius: 16px;
  padding: 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.profile-stats strong {
  display: block; font-size: 1.7rem; color: var(--text-bright);
}
.profile-stats span {
  display: block; margin-top: .35rem; color: var(--slate); font-size: .84rem;
}
.profile-note {
  color: var(--slate); line-height: 1.8; font-size: 1rem;
  margin: 0 auto; max-width: 90%;
}
.code-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--violet));
}
.cb-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.2rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca42; }
.cb-filename { color: var(--slate); font-size: .75rem; margin-left: auto; }
.ln { display: flex; gap: 1rem; }
.ln-num { color: rgba(136,146,176,0.4); min-width: 16px; text-align: right; user-select: none; }
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.prop { color: #f78c6c; }
.cmt { color: rgba(136,146,176,0.6); font-style: italic; }
.about-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.95rem; font-weight: 700;
  color: var(--text-bright); margin-bottom: 1rem;
}
.about-lead {
  color: var(--text-bright);
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 1.35rem;
}
.about-detail {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: 1.25rem;
}
.about-points {
  display: grid; gap: .9rem;
  margin-top: 1rem;
}
.about-point {
  display: flex; align-items: flex-start; gap: .8rem;
  color: var(--slate);
  font-size: .98rem;
  line-height: 1.75;
}
.about-point span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(56,189,248,0.12);
  color: var(--electric);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-tags { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.tag {
  padding: .55rem .95rem; border-radius: 999px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.18);
  color: var(--electric); font-size: .85rem;
  display: inline-flex;
  align-items: center;
}
.ability-item-icon {
  display: inline-flex; width: 25px; height: 25px;
  align-items: center; justify-content: center;
  margin-right: .85rem;
  border-radius: 8px;
  background: rgba(56,189,248,0.12);
  color: var(--electric);
  font-size: .95rem;
}

/* ── SERVICIOS ── */
#servicios { padding: 7rem 2rem; }
.services-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 1.8rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: rgba(124,58,237,0.3);
}
.service-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(0,180,255,0.12);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-bright); margin-bottom: .7rem;
}
.service-card p { color: var(--slate); font-size: .94rem; line-height: 1.7; }

/* ── HABILIDADES ── */
#habilidades { padding: 7rem 2rem; background: linear-gradient(180deg, rgba(8,15,29,0.95), rgba(8,15,29,0.98)); }
.abilities-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.ability-card {
  background: rgba(10,16,26,0.96);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 24px;
  padding: 2rem 2.2rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  min-height: 320px;
}
.ability-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,189,248,0.28);
  box-shadow: 0 28px 90px rgba(0,0,0,0.3);
}
.ability-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.35rem;
}
.ability-label {
  width: 48px; height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: white; font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.ability-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--text-bright);
  margin: 0;
}
.ability-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}
.ability-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate);
  line-height: 1.85;
  font-size: .95rem;
}
.ability-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .9rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--electric);
}

@media (max-width: 960px) {
  .abilities-grid { grid-template-columns: 1fr; }
}

/* ── TIMELINE ── */
#experiencia { padding: 7rem 2rem; background: linear-gradient(180deg, transparent, rgba(13,21,37,0.5), transparent); }

/* ── PROYECTOS ── */
#proyectos { padding: 7rem 2rem; }
.projects-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow);
  border-color: rgba(0,180,255,0.3);
}
.project-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative; overflow: hidden;
}
.project-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card));
}
.p1-bg { background: linear-gradient(135deg, #0d1525, #1a2a4a); }
.p2-bg { background: linear-gradient(135deg, #120d25, #2a1a4a); }
.p3-bg { background: linear-gradient(135deg, #0d2513, #1a4a2a); }
.project-body { padding: 1.5rem; }
.project-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-bright); margin-bottom: .5rem;
}
.project-body p { font-size: .88rem; color: var(--slate); margin-bottom: 1rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.proj-tag {
  padding: .25rem .6rem; border-radius: 5px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--violet-light); font-size: .73rem;
  font-family: 'JetBrains Mono', monospace;
}
.proj-links { display: flex; gap: .75rem; }
.proj-link {
  font-size: .82rem; color: var(--electric);
  text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: .3rem;
  transition: color .2s;
}
.proj-link:hover { color: var(--violet-light); }

/* ── EXPERIENCIA ── */
#experiencia { padding: 7rem 2rem; background: linear-gradient(180deg, transparent, rgba(13,21,37,0.55), transparent); }
.experience-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid rgba(45,212,191,0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.2);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.exp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,0.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.22);
}
.exp-card-head {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.3rem;
}
.exp-badge {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-size: 1.1rem;
}
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; color: var(--electric);
  margin-bottom: .25rem; letter-spacing: .08em;
}
.exp-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-bright); margin-bottom: .35rem;
}
.tl-company {
  font-size: .9rem; color: var(--accent-soft); margin-bottom: .85rem;
}
.exp-card p {
  color: var(--slate); font-size: .96rem;
  line-height: 1.8; margin-bottom: 1rem;
}
.exp-card ul {
  padding-left: 1.15rem; color: var(--slate);
  line-height: 1.75; list-style: disc;
}
.exp-card li { margin-bottom: .7rem; }

/* ── CONTACTO ── */
#contacto { padding: 7rem 2rem; }
.contact-wrapper {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 3rem;
  position: relative; overflow: hidden;
}
.contact-wrapper::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,180,255,0.05), transparent 60%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; position: relative; }
.contact-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-size: .8rem; color: var(--slate);
  margin-bottom: .4rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .05em;
}
input, textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px; padding: .75rem 1rem;
  color: var(--text-bright); font-family: 'Inter', sans-serif;
  font-size: .9rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0,180,255,0.1);
}
textarea { resize: vertical; min-height: 120px; }
.send-btn {
  width: 100%; padding: .9rem;
  background: linear-gradient(135deg, var(--electric), var(--violet));
  color: white; font-weight: 600; font-size: .95rem;
  border: none; border-radius: 10px; cursor: pointer;
  margin-top: .5rem; transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 32px rgba(0,180,255,0.25);
  font-family: 'Space Grotesk', sans-serif;
}
.send-btn:hover { opacity: .9; transform: translateY(-1px); }
.social-row {
  display: flex; gap: 1rem; justify-content: center;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.social-links {
  margin-top: 1rem; text-align: center;
  color: var(--slate);
  font-size: .95rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.social-links p {
  margin: 0;
  color: var(--text-bright);
  font-weight: 600;
}
.social-links a {
  color: var(--electric);
  text-decoration: none;
}
.social-links a:hover {
  text-decoration: underline;
}
.social-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-size: .85rem; font-weight: 500;
  transition: border-color .2s, color .2s, transform .2s;
  background: rgba(255,255,255,0.02);
}
.social-btn img.social-icon,
.social-btn .social-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.social-btn:hover { border-color: var(--electric); color: var(--electric); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--slate); font-size: .82rem;
  font-family: 'JetBrains Mono', monospace;
}
footer span { color: var(--electric); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: .95rem 1rem; justify-content: space-between; }
  .logo { position: relative; left: 0; margin-bottom: 0; }
  .nav-toggle { display: flex; z-index: 130; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1rem 1.25rem;
    background: rgba(6,11,23,0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 18px 18px;
    backdrop-filter: blur(18px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, max-height .25s ease;
    z-index: 120;
  }
  .nav-links.open {
    opacity: 1;
    max-height: 520px;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    display: block;
    padding: .95rem 1rem;
    border-radius: 14px;
    text-align: center;
    font-size: 1rem;
  }
  .nav-mobile-action { display: block; }
  .nav-actions { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 2rem 1.5rem; }
  #inicio { padding: 7rem 1.5rem 4rem; }
}

@media (max-width: 1024px) {
  .about-grid { gap: 2.5rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats .stat { min-width: 180px; }
  .skills-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .experience-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .timeline { max-width: 100%; }
  .tl-item { gap: 1.25rem; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1rem; }
  .section-desc, .hero-subtitle, .hero-role { max-width: 100%; padding: 0 1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; max-width: 320px; }
  .hero-stats { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-stats .stat { width: 100%; max-width: 320px; }
  .about-grid { gap: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .timeline { max-width: 100%; }
  .tl-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .timeline::before { left: 12px; }
  .tl-dot { margin-left: 12px; }
  .contact-wrapper { padding: 1.5rem; }
  .social-row { justify-content: center; }
  .nav-links { top: 72px; left: .75rem; right: .75rem; }
}
  .about-grid { gap: 2.5rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats .stat { min-width: 180px; }
  .skills-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .experience-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .timeline { max-width: 100%; }
  .tl-item { gap: 1.25rem; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1rem; }
  .section-desc, .hero-subtitle, .hero-role { max-width: 100%; padding: 0 1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; max-width: 320px; }
  .hero-stats { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-stats .stat { width: 100%; max-width: 320px; }
  .about-grid { gap: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .timeline { max-width: 100%; }
  .tl-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .timeline::before { left: 12px; }
  .tl-dot { margin-left: 12px; }
  .contact-wrapper { padding: 1.5rem; }
  .social-row { justify-content: center; }
  .nav-links { top: 72px; left: .75rem; right: .75rem; }
}

/* ── FADE IN ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
