/* ═══════════════════════════════════════════════════════
   Nicolás Londoño M. — CV Personal
   Diseño nuevo desde cero — 2026
   ═══════════════════════════════════════════════════════ */

/* --- Google Fonts --- */
/* google fonts import removed (was blocking render) */
@import url("../css/fontawesome-all.min.css");

/* ─── Tokens ─── */
:root {
  /* tipografía */
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* radios y spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* transiciones */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .28s;

  /* ─── Light theme (por defecto) ─── */
  --bg-primary:    #fafafa;
  --bg-secondary:  #ffffff;
  --bg-tertiary:   #f1f1f4;
  --bg-code:       #f4f4f8;
  --text-primary:  #111118;
  --text-secondary:#555566;
  --text-tertiary: #888899;
  --border:        #e2e2ea;
  --border-hover:  #d0d0dd;
  --accent:        #6c3ce0;
  --accent-soft:   rgba(108, 60, 224, .08);
  --accent-hover:  #5a2dc9;
  --accent-text:   #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --shadow-accent: 0 8px 28px rgba(108, 60, 224, .22);
  --gradient-hero: linear-gradient(135deg, #6c3ce0 0%, #9d6aff 50%, #c9a7ff 100%);
  --gradient-card: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  --tag-bg:        #eeedf5;
  --tag-text:      #6c3ce0;
  --scrollbar-bg:  #e2e2ea;
  --scrollbar-thumb:#c4c4d0;
}

/* ─── Dark theme ─── */
html.dark {
  --bg-primary:    #0c0c14;
  --bg-secondary:  #161622;
  --bg-tertiary:   #1e1e2e;
  --bg-code:       #1a1a28;
  --text-primary:  #ededf4;
  --text-secondary:#a0a0b8;
  --text-tertiary: #6e6e88;
  --border:        #2a2a3c;
  --border-hover:  #3a3a50;
  --accent:        #9d6aff;
  --accent-soft:   rgba(157, 106, 255, .1);
  --accent-hover:  #b48aff;
  --accent-text:   #0c0c14;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,.35);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.45);
  --shadow-accent: 0 8px 28px rgba(157, 106, 255, .2);
  --gradient-hero: linear-gradient(135deg, #9d6aff 0%, #6c3ce0 50%, #3d1e8f 100%);
  --gradient-card: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  --tag-bg:        rgba(157, 106, 255, .12);
  --tag-text:      #b48aff;
  --scrollbar-bg:  #1a1a28;
  --scrollbar-thumb:#3a3a50;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

html.dark { color-scheme: dark; }

body {
  font-family: var(--ff-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

img { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, .82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

html.dark .header {
  background: rgba(12, 12, 20, .82);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.header__logo span { color: var(--accent); }

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Theme toggle */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--dur) var(--ease);
  margin-left: 6px;
  flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-btn .fa-sun  { display: none; }
.theme-btn .fa-moon { display: inline; }
html.dark .theme-btn .fa-sun  { display: inline; }
html.dark .theme-btn .fa-moon { display: none; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__eyebrow i { font-size: .7rem; }

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero__title span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 380px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.hero__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-hero);
  z-index: -1;
  opacity: .25;
  filter: blur(24px);
}

.hero__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-accent);
}

.hero__card-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero__card-role {
  font-size: .9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__card-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.hero__stat {
  text-align: center;
}
.hero__stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.hero__stat-label {
  font-size: .72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

/* Glow orb behind hero card */
.hero__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--gradient-hero);
  opacity: .12;
  filter: blur(90px);
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 60, 224, .3);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 7px 16px;
  font-size: .82rem;
}

.btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.btn--icon:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-tertiary);
  transition: background var(--dur) var(--ease);
}

.section__header {
  text-align: center;
  margin-bottom: 52px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   SKILL GRID
   ═══════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card:hover::before { opacity: .04; }

.skill-card > * { position: relative; z-index: 1; }

.skill-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.skill-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-card__desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card__img {
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.project-card__img img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
  transition: transform var(--dur) var(--ease);
}

.project-card:hover .project-card__img img {
  transform: scale(1.06);
}

.project-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__title {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-card__desc {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}
.project-card__link i { font-size: .75rem; transition: transform var(--dur) var(--ease); }
.project-card__link:hover i { transform: translateX(3px); }

.project-card__placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 28px 12px;
}

/* ═══════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  z-index: 1;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.timeline__item--active .timeline__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   TIMELINE GRID (horizontal)
   ═══════════════════════════════════════════════════════ */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  transition: all var(--dur) var(--ease);
  text-align: center;
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.timeline-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  margin: 0 auto 12px;
  transition: background var(--dur) var(--ease);
}

.timeline-card--active .timeline-card__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-card--active {
  border-top: 3px solid var(--accent);
}

.timeline-card__date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.timeline-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-card__desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE CARDS (experiencia.html)
   ═══════════════════════════════════════════════════════ */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.exp-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.exp-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.exp-card--current {
  border-top: 3px solid var(--accent);
}

.exp-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.exp-card__role {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.exp-card__badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.exp-card__company {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  line-height: 1.4;
}

.exp-card__period {
  font-size: .82rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.exp-card__list {
  list-style: none;
}
.exp-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 4px;
}
.exp-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   INFRA / TECH BANNER
   ═══════════════════════════════════════════════════════ */
.infra-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  transition: all var(--dur) var(--ease);
}

.infra-banner:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.infra-banner__icon {
  width: 144px;
  height: 144px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-banner__icon img {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.infra-banner__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.infra-banner__desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   CONTACT / FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  transition: border-color var(--dur) var(--ease);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.footer__brand span { color: var(--accent); }

.footer__bio {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
}

.footer__heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer__list li {
  margin-bottom: 8px;
}
.footer__list a {
  font-size: .88rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__list a:hover { color: var(--accent); }
.footer__list a i { width: 16px; text-align: center; font-size: .85rem; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-tertiary);
}

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

.footer__socials a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: .9rem;
  transition: all var(--dur) var(--ease);
}
.footer__socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
   ═══════════════════════════════════════════════════════ */
.page-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease);
}

.page-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════════
   GRADUATION CARD
   ═══════════════════════════════════════════════════════ */
.grad-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  margin-top: 48px;
  transition: all var(--dur) var(--ease);
}

.grad-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.grad-card__img {
  height: 100%;
  object-fit: cover;
}

.grad-card__body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grad-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.grad-card__quote {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__desc { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero__card { padding: 28px 24px; }
  .section { padding: 56px 0; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-banner { grid-template-columns: 1fr; text-align: center; }
  .infra-banner__icon { margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .grad-card { grid-template-columns: 1fr; }
  .grad-card__img { height: 220px; width: 100%; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: 6px 10px; font-size: .8rem; }
  .header__inner { height: 56px; }
  .hero__card-stats { gap: 18px; }
  .hero__stat-num { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
 opacity: 1 !important;
 transform: none !important;
}

.fade-in.visible {
 opacity: 1;
 transform: none;
}

/* ═══════════════════════════════════════════════════════
   VAULT (panel oculto)
   ═══════════════════════════════════════════════════════ */
.vault-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 22px;
  align-items: start;
}

.vault-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.vault-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
}

.vault-item.is-editing {
  border-color: var(--accent);
}

.vault-item img,
.vault-item__ph {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-tertiary);
}

.vault-item__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
}

.vault-item__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.vault-item__meta {
  font-size: .78rem;
  color: var(--text-tertiary);
}

.vault-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vault-btn {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.vault-btn:hover { border-color: var(--accent); color: var(--accent); }
.vault-btn--danger:hover { border-color: #e25555; color: #e25555; }
.vault-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.vault-btn--primary:hover { background: var(--accent-hover); color: var(--accent-text); }

.vault-form {
  display: grid;
  gap: 12px;
}

.vault-form label {
  display: grid;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
}

.vault-form input,
.vault-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.vault-form textarea { min-height: 96px; resize: vertical; }
.vault-form input:focus,
.vault-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.vault-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vault-note,
.vault-status {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.vault-status.is-ok { color: #2f9e62; }
.vault-status.is-warn { color: #c9842a; }
.vault-status.is-err { color: #e25555; }

.vault-preview {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: none;
}
.vault-preview.is-on { display: block; }

@media (max-width: 768px) {
  .vault-layout,
  .vault-form__row,
  .vault-item {
    grid-template-columns: 1fr;
  }
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: .07s; }
.stagger > .fade-in:nth-child(3) { transition-delay: .14s; }
.stagger > .fade-in:nth-child(4) { transition-delay: .21s; }
.stagger > .fade-in:nth-child(5) { transition-delay: .28s; }
.stagger > .fade-in:nth-child(6) { transition-delay: .35s; }
.stagger > .fade-in:nth-child(7) { transition-delay: .42s; }
.stagger > .fade-in:nth-child(8) { transition-delay: .49s; }

/* === centered projects grid (portafolio + featured) === */
#projects-grid.projects-grid--centered,
#featured-projects.projects-grid--featured,
.projects-grid.projects-grid--centered,
.projects-grid.projects-grid--featured {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: none !important;
}

/* Desktop / tablet ancha: 4 por fila */
#projects-grid.projects-grid--centered > .project-card,
#featured-projects.projects-grid--featured > .project-card,
.projects-grid.projects-grid--centered > .project-card,
.projects-grid.projects-grid--featured > .project-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 54px) / 4);
  max-width: calc((100% - 54px) / 4);
  width: calc((100% - 54px) / 4);
  min-width: 0;
}

/* Movil / tablet: siempre 2 por fila */
@media (max-width: 860px) {
  #projects-grid.projects-grid--centered > .project-card,
  #featured-projects.projects-grid--featured > .project-card,
  .projects-grid.projects-grid--centered > .project-card,
  .projects-grid.projects-grid--featured > .project-card {
    flex: 0 0 calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
  }
}

/* === mobile hamburger / left drawer === */
.header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 8, 14, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: min(300px, 84vw);
  height: 100%;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0,0,0,.18);
  transform: translateX(-105%);
  transition: transform .28s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 24px;
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.nav-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.nav-drawer__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 560;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.nav-drawer__link:hover,
.nav-drawer__link--active {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; }
}

@media (min-width: 861px) {
  .nav-drawer,
  .nav-backdrop { display: none !important; }
}

body.nav-open {
  overflow: hidden;
}

/* === safe mobile + leer mas === */
@media (max-width: 860px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .project-card__more:not([hidden]) { display: inline-flex; }
}
.project-card__more {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--accent);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.desc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.desc-modal[hidden] { display: none !important; }
.desc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, .55);
}
.desc-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(78vh, 560px);
  overflow: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px 20px 20px;
}
.desc-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.desc-modal__title {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 36px 12px 0;
}
.desc-modal__body {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
}
body.desc-modal-open { overflow: hidden; }

/* === pricing plans page === */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.plan-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.plan-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-card__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 20, .72);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-card__badge--accent {
  background: var(--accent);
  color: var(--accent-text);
}
.plan-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.plan-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}
.plan-card__ideal,
.plan-card__lead {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.plan-card__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plan-card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.plan-card__list i {
  color: var(--accent);
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.plan-card__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-card__price-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-tertiary);
}
.plan-card__price-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.plan-card__price-value small {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.plan-card__cta {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
.plans-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}
.plans-cta__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.plans-cta__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 520px;
}
@media (max-width: 860px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-cta { padding: 22px; }
}
/* nav fit precios */
@media (max-width: 1024px) and (min-width: 861px) {
  .nav__link { padding: 6px 9px; font-size: .8rem; }
}
