/* ===================================================
   DESIGN 3 — GLASSMORPHISM NEON
   Estética: dark purple, glass cards, neon accents,
   gradientes vibrantes, futurista.
   Inspiración: synthwave + UI premium SaaS
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --void:    #07050f;
  --deep:    #0d0b1a;
  --dark:    #120f22;
  --card:    rgba(255,255,255,0.04);
  --card2:   rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border2: rgba(255,255,255,0.18);

  --neon1:  #a855f7;   /* violet */
  --neon2:  #06b6d4;   /* cyan */
  --neon3:  #f472b6;   /* pink */
  --neon4:  #34d399;   /* emerald */

  --text:   #f0ecff;
  --text2:  #c4bde8;
  --muted:  #7b6fa0;
  --dim:    #3d3560;

  --grad1: linear-gradient(135deg, var(--neon1), var(--neon2));
  --grad2: linear-gradient(135deg, var(--neon3), var(--neon1));
  --grad3: linear-gradient(135deg, var(--neon2), var(--neon4));
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Background aurora ── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.aurora-blob.b1 {
  width: 800px; height: 800px;
  background: var(--neon1);
  top: -300px; left: -200px;
  animation: floatBlob 18s ease-in-out infinite;
}
.aurora-blob.b2 {
  width: 600px; height: 600px;
  background: var(--neon2);
  top: 40%; right: -100px;
  animation: floatBlob 22s ease-in-out infinite reverse;
}
.aurora-blob.b3 {
  width: 500px; height: 500px;
  background: var(--neon3);
  bottom: -100px; left: 30%;
  animation: floatBlob 26s ease-in-out infinite 4s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -60px) scale(1.08); }
  66%       { transform: translate(-30px, 30px) scale(0.95); }
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll bar ── */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--grad1);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--neon1);
}

/* ── Cursor ── */
.cursor-glow {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: none;
}

/* ══════════════════════════════════════════
   NAV — pill flotante desktop + drawer mobile
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 0 20px 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13,11,26,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.3s, border-color 0.3s, max-width 0.3s;
}

.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 500;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: block;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--card2);
}

/* ── nav-actions: theme + cv + hamburguesa ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Theme toggle ── */
.btn-theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border2);
  background: var(--card);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-theme-toggle:hover {
  color: var(--neon1);
  border-color: var(--neon1);
  background: rgba(168,85,247,0.12);
  box-shadow: 0 0 14px rgba(168,85,247,0.25);
  transform: rotate(20deg);
}
[data-theme="dark"]  .theme-icon-light { display: none; }
[data-theme="dark"]  .theme-icon-dark  { display: flex; align-items: center; }
[data-theme="light"] .theme-icon-dark  { display: none; }
[data-theme="light"] .theme-icon-light { display: flex; align-items: center; }

/* ── CV pill (desktop only) ── */
.btn-nav-pill {
  font-size: 12px;
  font-weight: 600;
  color: #07050f;
  background: var(--grad1);
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-nav-pill:hover {
  opacity: 0.9;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(168,85,247,0.4);
}

/* ── Hamburguesa (solo mobile) ── */
.btn-hamburger {
  display: none;                  /* oculto en desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: var(--card);
  border: 1px solid var(--glass-border2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hamburger:hover {
  background: rgba(168,85,247,0.12);
  border-color: var(--neon1);
}
.ham-line {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
/* Animación → X cuando abierto */
.btn-hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open .ham-line:nth-child(2) { opacity: 0; width: 0; }
.btn-hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   DRAWER — panel lateral mobile
══════════════════════════════════════════ */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: 280px;
  z-index: 290;
  background: rgba(10, 8, 20, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid var(--glass-border);
  padding: 88px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -16px 0 60px rgba(0,0,0,0.5);
}
.nav-drawer.open {
  transform: translateX(0);
}
[data-theme="light"] .nav-drawer {
  background: rgba(235,230,248,0.97);
  border-left-color: var(--glass-border);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.drawer-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.drawer-link:hover,
.drawer-link.active {
  color: var(--text);
  background: var(--card2);
  padding-left: 22px;
}
/* Número delante de cada link */
.drawer-links li { counter-increment: drawerCounter; }
.drawer-link::before {
  content: "0" counter(drawerCounter) " ";
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--neon1);
  margin-right: 8px;
  opacity: 0.8;
}
.drawer-links { counter-reset: drawerCounter; }

.drawer-cv {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

/* ── Overlay oscuro ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── FAB scroll-to-top ── */
.fab-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 150;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad1);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(168,85,247,0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s;
  pointer-events: none;
}
.fab-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 40px rgba(168,85,247,0.6);
}
.fab-top:active { transform: scale(0.94); }

/* ── LIGHT MODE overrides ── */
[data-theme="light"] {
  --void:          #f0edf8;
  --deep:          #e8e4f4;
  --dark:          #ddd8f0;
  --card:          rgba(255,255,255,0.70);
  --card2:         rgba(255,255,255,0.92);
  --glass-border:  rgba(120,100,200,0.15);
  --glass-border2: rgba(120,100,200,0.28);
  --text:          #1a1530;
  --text2:         #3d3460;
  --muted:         #6b5fa0;
  --dim:           #a090cc;
  --neon1:         #7c3aed;
  --neon2:         #0891b2;
  --neon3:         #db2777;
  --neon4:         #059669;
}
[data-theme="light"] body             { background: var(--void); }
[data-theme="light"] .aurora-blob     { opacity: 0.08; }
[data-theme="light"] nav              { background: rgba(240,237,248,0.88); }
[data-theme="light"] .glass           { background: rgba(255,255,255,0.65); box-shadow: 0 4px 24px rgba(120,100,200,0.12), inset 0 1px 0 rgba(255,255,255,0.9); }
[data-theme="light"] .glass:hover     { background: rgba(255,255,255,0.90); box-shadow: 0 12px 48px rgba(120,100,200,0.20), 0 0 0 1px rgba(124,58,237,0.12); }
[data-theme="light"] .hero-big .name1 { color: var(--text); }
[data-theme="light"] footer            { border-top-color: var(--glass-border); }
[data-theme="light"] .btn-theme-toggle { background: rgba(255,255,255,0.8); }
[data-theme="light"] .fab-top          { box-shadow: 0 8px 32px rgba(124,58,237,0.35); }
[data-theme="light"] .btn-nav-pill     { color: #fff; }
[data-theme="light"] .btn-hamburger    { background: rgba(255,255,255,0.6); }

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 48px;
}

/* ── SECTION HEADER ── */
.s-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--neon1);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-label::before { content: '//'; color: var(--dim); }

.s-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}
.s-title .g1 { background: var(--grad1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.s-title .g2 { background: var(--grad2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── GLASS CARD mixin ── */
.glass {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.glass:hover {
  background: var(--card2);
  border-color: var(--glass-border2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(168,85,247,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
  gap: 0;
}

.hero-badge-pill {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--neon2);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badge-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--neon2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon2);
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* ── Hero identity: foto + nombre en fila ── */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Avatar wrapper con anillo animado */
.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Anillo giratorio neon */
.hero-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    var(--neon1) 0deg,
    var(--neon2) 120deg,
    var(--neon3) 240deg,
    var(--neon1) 360deg
  );
  animation: spinRing 4s linear infinite;
  z-index: 0;
}
.hero-avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--void);
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* La foto */
.hero-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  display: block;
}

/* Fallback initials si no hay imagen */
.hero-avatar-fallback {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon1), var(--neon2));
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  letter-spacing: -2px;
}

/* Indicador de estado (punto verde "disponible") */
.hero-avatar-status {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 18px; height: 18px;
  background: var(--neon4);
  border-radius: 50%;
  border: 3px solid var(--void);
  z-index: 2;
  box-shadow: 0 0 10px rgba(52,211,153,0.7);
  animation: pulse 2s ease-in-out infinite;
}

[data-theme="light"] .hero-avatar-ring::after { background: var(--void); }
[data-theme="light"] .hero-avatar-status { border-color: var(--void); }

.hero-big {
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: left;
  margin-bottom: 0;
}
.hero-big .name1 { display: block; color: var(--text); }
.hero-big .name2 {
  display: block;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(168,85,247,0.4));
}

.hero-sub3 {
  font-size: 16px;
  font-weight: 300;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-sub3 .hl { font-weight: 600; color: var(--neon2); }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 72px;
}

.btn-glow {
  font-size: 14px;
  font-weight: 600;
  color: var(--void);
  background: var(--grad1);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(168,85,247,0.4);
}
.btn-glass-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--glass-border2);
  padding: 13px 28px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-glass-pill:hover {
  background: var(--card2);
  border-color: var(--neon2);
  color: var(--neon2);
}

.hero-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 24px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}
.sp-val {
  font-size: 28px;
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.sp-lbl {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ── ABOUT ── */
.about-grid3 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}
.about-text3 {}
.about-text3 p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 18px;
}
.about-text3 p strong { font-weight: 600; color: var(--text); }

.about-skill-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.skill-card3 {
  padding: 20px;
  border-radius: 12px;
}
.sc3-title {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.sc3-tags { display: flex; flex-direction: column; gap: 7px; }
.sc3-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc3-tag::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neon1);
  flex-shrink: 0;
}

/* ── EXPERIENCE ── */
.exp-cards3 { display: flex; flex-direction: column; gap: 20px; }
.exp-card3 { padding: 32px 36px; border-radius: 16px; }
.exp-head3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.exp-title3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.exp-org3 {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--neon2);
}
.exp-period3 {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--glass-border);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.exp-desc3 {
  font-size: 14px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 20px;
}
.exp-tags3 { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-tag3 {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--neon1);
  background: rgba(168,85,247,0.08);
}

/* ══════════════════════════════════════════
   GALERÍA referencia — ver bloque completo
   abajo del CSS de contact
══════════════════════════════════════════ */

/* ── PROJECTS grid ── */
.proj-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proj-card3 {
  padding: 28px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.proj-card3.big { grid-column: span 2; }

.proj-card3::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad1);
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-card3:hover::before { opacity: 1; }

.proj-num3 {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.proj-title3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.proj-desc3 {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}
.proj-footer3 {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.proj-stack3 { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tech3 {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: var(--dim);
  border: 1px solid var(--glass-border);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proj-link3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--neon1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.proj-link3:hover { gap: 10px; color: var(--neon2); }

/* ══════════════════════════════════════════
   GALERÍA DE PROYECTOS — slider automático
══════════════════════════════════════════ */

.gallery-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.35);
  /* Pausa al hacer hover */
}
.gallery-wrap:hover .gallery-progress-bar { animation-play-state: paused; }

/* ── Track: fila de slides ── */
.gallery-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.gallery-track.dragging { transition: none; cursor: grabbing; }

/* ── Slide individual ── */
.gallery-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--dark);
  flex-shrink: 0;
}

.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.92;
}
.gallery-slide img[src=""],
.gallery-slide img:not([src]) { opacity: 0; }

/* Zoom suave al estar activo */
.gallery-slide.active img { transform: scale(1.02); opacity: 1; }

/* ── Caption sobre la imagen ── */
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 28px 22px;
  background: linear-gradient(0deg, rgba(7,5,15,0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
[data-theme="light"] .gallery-caption {
  background: linear-gradient(0deg, rgba(10,5,30,0.75) 0%, transparent 100%);
}

.gc-project {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--neon1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gc-desc {
  font-size: 15px;
  font-weight: 600;
  color: #f0ecff;
  letter-spacing: -0.01em;
}

/* ── Botones prev / next ── */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,5,15,0.65);
  backdrop-filter: blur(12px);
  color: #f0ecff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}
.gallery-wrap:hover .gallery-btn { opacity: 1; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-btn:hover {
  background: var(--neon1);
  border-color: var(--neon1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 18px rgba(168,85,247,0.5);
}
.gallery-btn:active { transform: translateY(-50%) scale(0.95); }

/* ── Dots de navegación ── */
.gallery-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.gallery-dot.active {
  background: var(--neon1);
  width: 20px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(168,85,247,0.6);
}
.gallery-dot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ── Barra de progreso autoplay ── */
.gallery-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.gallery-progress-bar {
  height: 100%;
  background: var(--grad1);
  width: 0%;
  box-shadow: 0 0 6px rgba(168,85,247,0.5);
  animation: galleryProgress 4s linear infinite;
}
@keyframes galleryProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Placeholder cuando no hay imagen ── */
.gallery-slide .img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface2, #1c2a1e);
}
.gallery-slide .img-placeholder span {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--dim);
}

/* ── Responsive galería ── */
@media (max-width: 600px) {
  .gallery-slide { aspect-ratio: 16 / 9; }
  .gallery-btn   { display: none; }
  .gallery-caption { padding: 32px 16px 16px; }
  .gc-desc       { font-size: 13px; }
}

/* ── PROYECTOS grid ── */
.contact-wrap3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-left3 {
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cl3-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.cl3-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.8;
}
.cl3-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cl3-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.cl3-link:hover {
  background: var(--card2);
  border-color: var(--neon1);
  color: var(--neon1);
  transform: translateX(4px);
}
.cl3-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

/* FORM */
.contact-form3 {
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.f3-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.f3-input, .f3-textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.f3-input:focus, .f3-textarea:focus {
  border-color: var(--neon1);
  background: rgba(168,85,247,0.06);
}
.f3-textarea { min-height: 110px; resize: none; }
.f3-submit {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--void);
  background: var(--grad1);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.f3-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168,85,247,0.4);
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-logo3 {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.foot-info3 {
  font-size: 11px;
  color: var(--dim);
}
.foot-up3 {
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-up3:hover { color: var(--neon1); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; } .d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .proj-grid3          { grid-template-columns: 1fr 1fr; }
  .proj-card3.big      { grid-column: span 2; }
  .about-grid3         { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap3       { grid-template-columns: 1fr; }
}

/* Breakpoint hamburguesa: 860px
   (cuando los 5 links ya no caben cómodamente en la pill) */
@media (max-width: 860px) {
  /* Ocultar links desktop */
  .nav-links       { display: none !important; }
  /* Ocultar CV pill de desktop */
  .btn-cv-desktop  { display: none !important; }
  /* Mostrar hamburguesa */
  .btn-hamburger   { display: flex; }

  /* Nav pill más compacta: solo logo + acciones */
  nav {
    gap: 12px;
    padding: 0 14px 0 20px;
  }
}

/* Mobile: 600px */
@media (max-width: 600px) {
  section          { padding: 72px 20px; }
  #home            { padding-top: 100px; padding-bottom: 60px; }

  /* Hero foto + nombre apilados */
  .hero-identity   { flex-direction: column; gap: 20px; text-align: center; }
  .hero-big        { text-align: center; font-size: 56px; }
  .hero-avatar     { width: 100px; height: 100px; }
  .hero-avatar-fallback { width: 100px; height: 100px; font-size: 28px; }

  /* Stats en 2×2 */
  .hero-stats-row  { grid-template-columns: 1fr 1fr; display: grid; gap: 10px; }
  .stat-pill       { justify-content: center; }

  /* Proyectos 1 col */
  .proj-grid3      { grid-template-columns: 1fr; }
  .proj-card3.big  { grid-column: span 1; }

  /* Skills 1 col */
  .about-skill-cards { grid-template-columns: 1fr; }

  /* Experiencia: fecha encima */
  .exp-head3       { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Footer apilado */
  footer           { flex-direction: column; gap: 10px; padding: 20px; text-align: center; }

  /* FAB más pequeño */
  .fab-top         { bottom: 20px; right: 20px; width: 42px; height: 42px; }

  /* Drawer ancho completo en móvil pequeño */
  .nav-drawer      { width: 100%; border-left: none; border-bottom: 1px solid var(--glass-border); }
}
