/* ============================================================
   JAIME FRANKO CV — Futuristic Landing Page
   Inspired by mimenudigitalqr.com visual style
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg:           #07070f;
  --bg-alt:       #0d0d1a;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-hov:  rgba(255, 255, 255, 0.08);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hov:   rgba(108, 99, 255, 0.4);

  --primary:      #6c63ff;
  --primary-dark: #5046e5;
  --primary-glow: rgba(108, 99, 255, 0.35);
  --cyan:         #00d4ff;
  --cyan-glow:    rgba(0, 212, 255, 0.25);
  --accent:       #ff6b6b;

  --text:         #e8e8f0;
  --text-muted:   #8888aa;
  --text-dim:     #55556a;

  --radius:       14px;
  --radius-lg:    20px;
  --radius-sm:    8px;

  --nav-h:        72px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
  --font:         'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt-2 { margin-top: 1.5rem; }

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

/* ── GLASSMORPHISM CARD ─────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hov);
  box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(0,212,255,0.08);
}

/* ── GRADIENT TEXT ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.btn:hover::after {
  animation: shimmer 0.6s ease forwards;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* Primary 3D button */
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, var(--cyan) 100%);
  background-size: 200% auto;
  color: #fff;
  box-shadow:
    0 6px 24px var(--primary-glow),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  animation: gradientShift 4s ease infinite, glowPulse 3s ease-in-out infinite;
}

/* Glow periódico — resplandor que aparece cada cierto tiempo */
@keyframes glowPulse {
  0%   {
    box-shadow:
      0 6px 24px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 0 -2px 0 rgba(0,0,0,0.3);
  }
  40%  {
    box-shadow:
      0 6px 24px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 0 -2px 0 rgba(0,0,0,0.3);
  }
  55%  {
    box-shadow:
      0 8px 32px rgba(108,99,255,0.7),
      0 0 60px rgba(108,99,255,0.45),
      0 0 100px rgba(0,212,255,0.25),
      inset 0 1px 0 rgba(255,255,255,0.4),
      inset 0 -2px 0 rgba(0,0,0,0.3);
  }
  70%  {
    box-shadow:
      0 6px 24px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 0 -2px 0 rgba(0,0,0,0.3);
  }
  100% {
    box-shadow:
      0 6px 24px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 0 -2px 0 rgba(0,0,0,0.3);
  }
}

/* Outline button */
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow:
    0 4px 16px var(--primary-glow),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: glowPulseOutline 3s ease-in-out infinite 1.5s;
}

@keyframes glowPulseOutline {
  0%   {
    box-shadow:
      0 4px 16px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.07);
  }
  40%  {
    box-shadow:
      0 4px 16px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.07);
  }
  55%  {
    box-shadow:
      0 8px 32px rgba(108,99,255,0.6),
      0 0 50px rgba(108,99,255,0.3),
      0 0 80px rgba(0,212,255,0.15),
      inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: var(--cyan);
    color: var(--cyan);
  }
  70%  {
    box-shadow:
      0 4px 16px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.07);
    border-color: var(--primary);
    color: var(--primary);
  }
  100% {
    box-shadow:
      0 4px 16px var(--primary-glow),
      inset 0 1px 0 rgba(255,255,255,0.07);
  }
}

.btn--outline:hover {
  background: rgba(108,99,255,0.12);
}

/* 3D press effect — pausa el glow periódico al hover para no competir */
.btn--3d:hover {
  transform: translateY(-3px) scale(1.02);
  animation-play-state: paused;
  box-shadow:
    0 14px 48px rgba(108,99,255,0.75),
    0 0 80px rgba(0,212,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.25);
}
.btn--3d:active {
  transform: translateY(1px) scale(0.99);
  animation-play-state: paused;
  box-shadow:
    0 3px 12px var(--primary-glow),
    inset 0 2px 4px rgba(0,0,0,0.35);
}

.btn--sm  { padding: 9px 20px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-bracket { color: var(--primary); }

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: 1rem;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: auto; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  z-index: 1;
}

/* Grid de fondo */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  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%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(0,212,255,0.06);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__typed {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.hero__typed #typed-text {
  color: var(--cyan);
  font-weight: 600;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__desc strong { color: var(--text); }

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Socials row */
.hero__socials {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-2px);
}

.social-icon--lg {
  width: 48px; height: 48px;
}
.social-icon--lg svg { width: 22px; height: 22px; }

/* ── HERO VISUAL ─────────────────────────────────────────────── */
.hero__card-3d {
  position: relative;
}
.card-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Terminal */
.hero__terminal {
  background: rgba(7,7,15,0.9);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(108,99,255,0.15),
    0 0 80px rgba(0,212,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-red    { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #27c93f; }
.t-title  {
  margin-left: 8px;
  font-size: .78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.terminal__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 2;
}
.t-prompt { color: var(--primary); margin-right: 6px; }
.t-cmd    { color: var(--cyan); }
.t-output { color: #aaa; padding-left: 16px; }
.t-highlight { color: #4ade80 !important; font-weight: 700; }
.t-blink  {
  color: var(--primary);
  animation: blink-cursor 1.1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Stats pills */
.hero__stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  transition: border-color var(--transition);
}
.stat-pill:hover { border-color: var(--border-hov); }
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--primary);
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: .75rem; }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: bounceY 2.5s ease infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__tag {
  display: inline-block;
  font-size: .78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section__subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}

.about__avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 260px; height: 260px;
}
.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .8rem;
}
.avatar-placeholder svg {
  width: 80px; height: 80px;
}
.avatar-placeholder p { font-size: .78rem; color: var(--text-dim); }

/* Profile image (when added) */
.avatar-frame img,
.avatar-img {
  width: 100%; height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(108,99,255,0.5);
  box-shadow: 0 0 30px rgba(108,99,255,0.25);
}

.avatar-ring {
  position: absolute;
  border-radius: 30px;
  border: 1px solid rgba(108,99,255,0.2);
  animation: ringPulse 4s ease-in-out infinite;
}
.avatar-ring--1 {
  inset: -18px;
  animation-delay: 0s;
}
.avatar-ring--2 {
  inset: -36px;
  border-color: rgba(0,212,255,0.1);
  animation-delay: 1s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.03); }
}

.about__lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about__lead strong { color: var(--primary); }
.about__text p { color: var(--text-muted); margin-bottom: 1rem; }
.about__text p strong { color: var(--text); }

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--primary);
}
.tag--sm {
  padding: 3px 10px;
  font-size: .73rem;
}

/* ── SKILLS ─────────────────────────────────────────────────── */
.skills__categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}
.skill-category:hover { border-color: var(--border-hov); }

.skill-category__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-icon { font-size: 1.2rem; }

.skill-bars { display: flex; flex-direction: column; gap: 16px; }

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: 6px;
}
.skill-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

.skill-bar__track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 0 8px var(--primary-glow);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-badge {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.tech-badge:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ── TIMELINE (EXPERIENCE) ──────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), var(--cyan), transparent);
}

.timeline__item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}

.timeline__dot {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 1;
}

.timeline__card {
  padding: 24px 28px;
}
.timeline__card--featured {
  border-color: rgba(108,99,255,0.5);
  overflow: hidden;
  position: relative;
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.timeline__header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.timeline__company {
  font-size: .85rem;
  color: var(--primary);
  margin-top: 3px;
  font-family: var(--font-mono);
}
.timeline__date {
  font-size: .78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 4px 12px;
  background: rgba(108,99,255,0.1);
  border-radius: 50px;
  border: 1px solid rgba(108,99,255,0.2);
  white-space: nowrap;
}
.timeline__card > p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.timeline__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── PROJECTS ───────────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.project-card__icon { font-size: 2rem; }
.project-card__links { display: flex; gap: 10px; }
.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}
.project-link svg { width: 16px; height: 16px; }
.project-link:hover { color: var(--primary); border-color: var(--primary); }

.project-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.project-card__desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.project-card__btn-group {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-card__btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: .82rem;
  padding: 8px 18px;
}

/* CTA project card */
.project-card--cta {
  background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(0,212,255,0.06));
  border-color: rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.project-card__cta-inner h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.project-card__cta-inner p { color: var(--text-muted); }

.cta-glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 3s ease infinite;
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
}

/* ── SERVICES ───────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── EDUCATION & CERTIFICATIONS ─────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.edu-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.edu-col__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.edu-col__title span { font-size: 1.4rem; }

/* Reutiliza .timeline__item sin la línea vertical */
.edu-col .timeline__item { padding-left: 48px; margin-bottom: 20px; }

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cert-badge {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cert-badge:hover {
  transform: translateY(-3px);
}
.cert-badge__icon { font-size: 1.6rem; }
.cert-badge p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .edu-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .certs-grid { grid-template-columns: 1fr 1fr; }
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.contact-item__icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-item__label {
  display: block;
  font-size: .73rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.contact-item a {
  color: var(--text-muted);
  font-size: .9rem;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--primary); }

.contact__socials-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Form */
.contact__form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-note {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── FOOTER — Border Beam ──────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: #050509;
  overflow: hidden;
}

/* ── FEATURED card — border beam recorre todo el borde ────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.project-card--featured {
  border-color: rgba(108,99,255,0.5);
  overflow: hidden;
}

.timeline__card--featured {
  border: 1px solid rgba(108,99,255,0.3);
  overflow: visible;
  position: relative;
}
.timeline__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
  opacity: 0.9;
}

.border-travel {
  position: absolute;
  inset: -1.5px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 72%,
    var(--cyan) 83%,
    #fff 87%,
    var(--primary) 90%,
    transparent 95%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: travelBorder 3s linear infinite;
}

@keyframes travelBorder {
  to { --border-angle: 360deg; }
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer__beam {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 45%;
  background: linear-gradient(90deg, transparent, var(--primary), var(--cyan), transparent);
  border-radius: 2px;
  animation: borderBeam 3.5s linear infinite;
}
.footer__beam--2 {
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--primary), transparent);
  animation: borderBeam 3.5s linear infinite 1.75s;
  opacity: 0.6;
}

@keyframes borderBeam {
  0%   { left: -50%; }
  100% { left: 110%; }
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer__brand .nav__logo { font-size: 1.4rem; }
.footer__brand p {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 6px;
  font-family: var(--font-mono);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: .88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary); }

.footer__socials { display: flex; gap: 10px; }

.footer__bottom {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .8rem;
  color: var(--text-dim);
}
.footer__bottom strong { color: var(--text-muted); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .skills__categories { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__socials { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__stats { justify-content: center; }

  .about__grid { grid-template-columns: 1fr; text-align: center; }
  .about__tags { justify-content: center; }

  .contact__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,7,15,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
  }
  .nav__links.open a { font-size: 1.1rem; }
  .nav__cta.open { display: flex; margin: 0 1.5rem 1rem; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; }
  .hero__actions { flex-direction: column; align-items: center; }
  .contact__form { padding: 24px 18px; }
}
