/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   LIGHT THEME (default)
=========================== */
:root {
  --bg:           #fafafa;
  --bg-alt:       #f4f4f7;
  --surface:      #ffffff;
  --surface-hover:#f8f7fc;
  --border:       #e6e6ed;
  --border-light: #d0cfdb;
  --accent:       #7c3aed;
  --accent-dim:   #6d28d9;
  --accent-soft:  rgba(124, 58, 237, 0.08);
  --accent-mid:   rgba(124, 58, 237, 0.15);
  --accent-glow:  rgba(124, 58, 237, 0.25);
  --text:         #111118;
  --text-muted:   #6b6b80;
  --text-dim:     #b0afc0;
  --nav-bg:       rgba(250, 250, 250, 0.88);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.1);
  --font-sans:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --nav-h:        64px;
  --radius:       10px;
  --radius-lg:    14px;
  --transition:   0.22s ease;

  /* Code snippet colors (light) */
  --code-bg:      #1a1a2e;
  --code-border:  #2a2a45;
  --code-bar:     #12121f;
}

/* ===========================
   DARK THEME
=========================== */
[data-theme="dark"] {
  --bg:           #0c0c0f;
  --bg-alt:       #101014;
  --surface:      #16161b;
  --surface-hover:#1e1e26;
  --border:       #1e1e28;
  --border-light: #2e2e40;
  --accent:       #a78bfa;
  --accent-dim:   #8b5cf6;
  --accent-soft:  rgba(167, 139, 250, 0.1);
  --accent-mid:   rgba(167, 139, 250, 0.18);
  --accent-glow:  rgba(167, 139, 250, 0.3);
  --text:         #e4e4f0;
  --text-muted:   #7e7e98;
  --text-dim:     #3a3a52;
  --nav-bg:       rgba(12, 12, 15, 0.88);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);

  --code-bg:      #0e0e18;
  --code-border:  #1e1e30;
  --code-bar:     #08080f;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Dot grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

[data-theme="dark"] .hero-bg-grid {
  opacity: 0.35;
}

.hero-content {
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.02;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.hero-role {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  min-height: 1.6em;
}

.hero-role-static {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.accent-sep {
  color: var(--text-dim);
  margin: 0 0.3rem;
}

/* Typed cursor */
.typed-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.location-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* ===========================
   PHP SNIPPET DECORATION
=========================== */
.hero-snippet {
  position: absolute;
  right: max(2rem, calc(50% - 560px + 2rem));
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  font-family: var(--font-mono);
  user-select: none;
  animation: floatSnippet 6s ease-in-out infinite;
}

@keyframes floatSnippet {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50%       { transform: translateY(-50%) translateY(-8px); }
}

.snippet-bar {
  background: var(--code-bar);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--code-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.snippet-filename {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  margin-left: 0.3rem;
  letter-spacing: 0.03em;
}

.snippet-code {
  display: block;
  padding: 1rem 1.1rem;
  font-size: 0.7rem;
  line-height: 1.8;
  color: #c9d1e0;
  white-space: pre;
  overflow-x: hidden;
}

/* Syntax colors */
.s-tag    { color: #a78bfa; }
.s-var    { color: #60a5fa; }
.s-str    { color: #86efac; }
.s-fn     { color: #f472b6; }
.s-comment{ color: #4b5568; font-style: italic; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-soft);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cv {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.btn-cv svg { width: 15px; height: 15px; }

.btn-cv:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===========================
   SCROLL INDICATOR
=========================== */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.5) translateY(16px); }
}

/* ===========================
   STATS STRIP
=========================== */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 3rem;
  flex: 1;
  min-width: 140px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 3rem;
  color: var(--text);
}

.accent { color: var(--accent); }

/* ===========================
   SCROLL REVEAL
=========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="0"] { transition-delay: 0ms; }
[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }

/* ===========================
   SOBRE MÍ
=========================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sobre-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sobre-block:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.sobre-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sobre-icon { color: var(--accent); font-size: 0.7rem; }

.enfoque-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.enfoque-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.enfoque-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.enfoque-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.enfoque-list p,
.proceso-list p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.proceso-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.proceso-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.paso-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

.proceso-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* ===========================
   STACK
=========================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.stack-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stack-card-wip {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.stack-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.stack-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.stack-card-header h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}

.stack-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-strong {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}

/* PHP tag — special treatment */
.tag-php {
  background: linear-gradient(135deg, var(--accent-soft), rgba(139, 92, 246, 0.12));
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  box-shadow: 0 0 8px var(--accent-soft);
}

.tag-wip {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}

.stack-wip-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-style: italic;
}

/* ===========================
   PROYECTOS
=========================== */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proyecto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.proyecto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.proyecto-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.proyecto-card:hover::before {
  opacity: 1;
}

.proyecto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proyecto-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.proyecto-tipo {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proyecto-nombre {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.proyecto-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.proyecto-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
}

.proyecto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.proyecto-tags .tag {
  font-size: 0.68rem;
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}

.proyecto-footer {
  padding-top: 0.25rem;
}

.btn-proyecto {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-proyecto svg {
  width: 13px;
  height: 13px;
  transition: transform var(--transition);
}

.btn-proyecto:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-proyecto:hover svg {
  transform: translate(2px, -2px);
}

/* ===========================
   CONTACTO
=========================== */
.contacto-wrapper { max-width: 640px; }

.contacto-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.contacto-item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.contacto-item:hover .contacto-icon {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}

.contacto-item-wip {
  opacity: 0.45;
  pointer-events: none;
}

.contacto-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.contacto-icon svg { width: 17px; height: 17px; }

.contacto-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.1rem;
}

.contacto-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacto-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contacto-soon {
  color: var(--text-dim);
  font-style: italic;
}

.contacto-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.contacto-item:hover .contacto-arrow { color: var(--accent); }

.contacto-cv {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg-alt);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .hero-snippet { display: none; }
}

@media (max-width: 900px) {
  .stack-grid,
  .proyectos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stack-card:last-child { grid-column: span 2; }

  .stat-item { padding: 0.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .sobre-grid,
  .stack-grid,
  .proyectos-grid {
    grid-template-columns: 1fr;
  }

  .stack-card:last-child { grid-column: span 1; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .nav-toggle { display: flex; }

  .contacto-wrapper { max-width: 100%; }

  .stats-inner { gap: 0; }
  .stat-sep { display: none; }
  .stat-item {
    padding: 0.75rem 1rem;
    min-width: 120px;
    border-right: 1px solid var(--border);
  }
  .stat-item:last-child { border-right: none; }
}
