/* ============================================================
   CV INTERACTIVO — PEDRO GÓMEZ
   Diseño basado en "CV REFERENCE": fondo claro, tarjetas blancas,
   acentos magenta (#f00060) e índigo (#181890).
   ============================================================ */

/* ---------- Variables / Temas ---------- */
:root {
  --pink: #f00060;
  --pink-soft: rgba(240, 0, 96, 0.1);
  --blue: #181890;
  --blue-bright: #3d3dcc;

  --bg: #f6f6f8;
  --bg-alt: #eef0f5;
  --card: #ffffff;
  --text: #16161e;
  --text-muted: #5c5c6b;
  --line: rgba(22, 22, 30, 0.08);
  --shadow: 0 10px 30px rgba(24, 24, 60, 0.08);
  --shadow-hover: 0 20px 45px rgba(24, 24, 60, 0.14);
  --nav-bg: rgba(246, 246, 248, 0.82);

  --grad: linear-gradient(90deg, var(--pink) 0%, var(--blue-bright) 100%);
}

[data-theme="dark"] {
  --bg: #0d0e17;
  --bg-alt: #12141f;
  --card: #171927;
  --text: #eceef6;
  --text-muted: #a2a4b8;
  --line: rgba(236, 238, 246, 0.09);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(13, 14, 23, 0.85);
  --pink-soft: rgba(255, 47, 118, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); transition: background-color 0.4s ease; }

h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; line-height: 1.2; }

::selection { background: var(--pink); color: #fff; }

/* Barra de scroll personalizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink), var(--blue)); border-radius: 99px; }

/* ============================================================
   BARRA DE PROGRESO SCROLL
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 1001;
  transition: width 0.05s linear;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(24, 24, 60, 0.08);
}

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

.nav__logo { display: flex; align-items: center; gap: 10px; font-family: "Montserrat", sans-serif; }
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: gradShift 6s ease infinite;
}
.nav__logo-text { font-weight: 500; font-size: 1.05rem; }
.nav__logo-text b { font-weight: 800; color: var(--pink); }

.nav__menu { display: flex; gap: 26px; }
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(15deg); box-shadow: var(--shadow-hover); }
.theme-toggle svg { width: 19px; height: 19px; position: absolute; transition: transform 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease; }

.icon-moon { opacity: 0; transform: translateY(18px) rotate(-90deg); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: translateY(-18px) rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: translateY(0) rotate(0deg); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.blob--pink { width: 420px; height: 420px; background: var(--pink); top: -80px; left: -120px; }
.blob--blue { width: 380px; height: 380px; background: var(--blue-bright); bottom: -60px; right: -100px; animation-delay: -7s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.15); }
}

.hero__container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero__greeting {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
  animation: slideUp 0.8s ease both;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: 1px;
  animation: slideUp 0.8s 0.15s ease both;
}

.gradient-text {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
  min-height: 1.6em;
  animation: slideUp 0.8s 0.3s ease both;
}
.typed-cursor { color: var(--pink); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__description {
  max-width: 560px;
  color: var(--text-muted);
  margin-top: 18px;
  font-size: 0.98rem;
  animation: slideUp 0.8s 0.45s ease both;
}
.hero__description strong { color: var(--text); }

.hero__cta { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; animation: slideUp 0.8s 0.6s ease both; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s ease; }
.btn--primary { background: var(--grad); background-size: 180% 180%; color: #fff; box-shadow: 0 10px 26px rgba(240, 0, 96, 0.35); animation: gradShift 6s ease infinite; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(240, 0, 96, 0.45); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 2px solid var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-3px); }
.btn--lg { padding: 17px 40px; font-size: 1rem; }

.hero__socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: slideUp 0.8s 0.75s ease both; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.social-chip svg { width: 15px; height: 15px; color: var(--pink); }
.social-chip:not(.social-chip--static):hover { transform: translateY(-3px); color: var(--text); border-color: var(--pink); box-shadow: var(--shadow-hover); }

/* Foto hero */
.hero__photo { position: relative; display: flex; justify-content: center; animation: fadeIn 1s 0.4s ease both; }
.photo-frame {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 4 / 4.6;
  border-radius: 36px;
  overflow: hidden;
  background: var(--grad);
  background-size: 220% 220%;
  animation: gradShift 8s ease infinite, floatY 6s ease-in-out infinite;
  box-shadow: var(--shadow-hover);
  padding: 6px;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--bg-alt);
  border-radius: 30px;
  z-index: 0;
}
.photo-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 14px 24px rgba(24, 24, 60, 0.25));
  transition: transform 0.5s ease;
}
.photo-frame:hover .photo-img { transform: scale(1.04); }

.float-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  font-family: "Montserrat", sans-serif;
  animation: floatY 5s ease-in-out infinite;
}
.float-badge svg { width: 22px; height: 22px; }
.float-badge b { display: block; font-size: 0.8rem; }
.float-badge small { color: var(--text-muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.float-badge--1 { top: 12%; left: -4%; }
.float-badge--1 svg { color: var(--pink); }
.float-badge--2 { bottom: 14%; right: -6%; animation-delay: -2.5s; }
.float-badge--2 svg { color: var(--blue-bright); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  animation: bounceDown 2s ease infinite;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.scroll-down:hover { color: var(--pink); border-color: var(--pink); }
.scroll-down svg { width: 18px; height: 18px; }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats-section { padding: 10px 0 0; position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  padding: 26px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.stat__num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   ENCABEZADOS DE SECCIÓN
   ============================================================ */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head__tag {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 1px;
}
.accent-dot { color: var(--pink); }

/* ============================================================
   PERFIL
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-card { padding: 38px; }
.profile-card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(240, 0, 96, 0.3);
}
.profile-card__icon svg { width: 27px; height: 27px; }
.profile-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.profile-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; text-align: justify; }
.profile-card p:last-child { margin-bottom: 0; }

.profile-highlights { display: grid; gap: 16px; }
.mini-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mini-card:hover { transform: translateX(8px); box-shadow: var(--shadow-hover); border-color: var(--pink); }
.mini-card svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--pink); margin-top: 2px; }
.mini-card:nth-child(even) svg { color: var(--blue-bright); }
.mini-card h4 { font-size: 0.98rem; margin-bottom: 3px; }
.mini-card p { font-size: 0.84rem; color: var(--text-muted); }

/* ============================================================
   EDUCACIÓN
   ============================================================ */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.edu-card {
  position: relative;
  padding: 34px 30px 30px;
  overflow: hidden;
}
.edu-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.edu-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.edu-card:hover::after { transform: scaleX(1); }

.edu-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.edu-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 999px;
}
.edu-card__badge--current { color: #fff; background: var(--grad); border: none; box-shadow: 0 6px 16px rgba(240, 0, 96, 0.35); }
.edu-card__date { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

.edu-card__logo {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--pink-soft);
  color: var(--pink);
  margin-bottom: 18px;
  transition: transform 0.4s ease, background-color 0.4s ease;
}
.edu-card:hover .edu-card__logo { transform: rotate(-8deg) scale(1.08); }
.edu-card__logo svg { width: 30px; height: 30px; }

.edu-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.edu-card__school { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: var(--blue-bright);
  background: rgba(61, 61, 204, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
}
[data-theme="dark"] .tag { background: rgba(93, 93, 235, 0.16); color: #9d9dff; }

/* ============================================================
   EXPERIENCIA — TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 900px; margin-inline: auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--pink), var(--blue-bright));
}

.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  position: absolute;
  left: -34px;
  top: 30px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--card);
  border: 4px solid var(--pink);
  box-shadow: 0 0 0 5px var(--pink-soft);
  z-index: 1;
  transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-item__dot { transform: scale(1.25); border-color: var(--blue-bright); }

.timeline-card { padding: 30px 32px; }
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.timeline-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.timeline-card__head h3 { font-size: 1.06rem; }
.timeline-card__company { color: var(--pink); font-weight: 600; font-size: 0.88rem; margin-top: 4px; }
.timeline-card__period {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 0.91rem;
}
.timeline-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 11px; height: 11px;
  border-radius: 4px;
  background: var(--grad);
  opacity: 0.85;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.chip:hover { transform: translateY(-2px); color: var(--pink); border-color: var(--pink); }
.chip--pink { color: var(--pink); border-color: rgba(240, 0, 96, 0.4); background: var(--pink-soft); }
.chip--blue { color: var(--blue-bright); border-color: rgba(61, 61, 204, 0.4); background: rgba(61, 61, 204, 0.08); }
[data-theme="dark"] .chip--blue { color: #9d9dff; }

/* ============================================================
   CAPACITACIONES
   ============================================================ */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.filter-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.filter-btn.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(240, 0, 96, 0.35);
}
.filter-count {
  display: inline-block;
  margin-left: 7px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 8px;
  border-radius: 99px;
}
[data-theme="dark"] .filter-btn:not(.is-active) .filter-count { background: rgba(255, 255, 255, 0.1); }
.filter-btn.is-active .filter-count { background: rgba(255, 255, 255, 0.22); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.course-card {
  position: relative;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.4s ease, border-color 0.35s ease;
}
.course-card.hidden { display: none; }
.course-card:hover { transform: translateY(-7px) rotate(-0.5deg); box-shadow: var(--shadow-hover); border-color: var(--pink); }

.course-card__year {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  color: var(--blue-bright);
  background: rgba(61, 61, 204, 0.1);
  padding: 4px 11px;
  border-radius: 999px;
}
[data-theme="dark"] .course-card__year { color: #9d9dff; background: rgba(93, 93, 235, 0.16); }

.course-card h3 { font-size: 0.94rem; padding-right: 54px; }
.course-card h3 em { font-style: normal; color: var(--pink); }
.course-card__org { font-size: 0.8rem; color: var(--text-muted); flex-grow: 1; }
.course-card__hours { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 10px; }

.empty-msg { text-align: center; color: var(--text-muted); padding: 30px 0; font-style: italic; }

/* Tarjeta de curso clicable + hint de certificado */
.course-card { cursor: pointer; outline-offset: 3px; }
.course-card:focus-visible { outline: 2px solid var(--pink); }
.course-card:hover, .course-card:focus-visible { border-color: var(--pink); }
.cert-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 10px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(240, 0, 96, 0.4);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cert-hint svg { width: 14px; height: 14px; }
.course-card:hover .cert-hint,
.course-card:focus-visible .cert-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   VISOR DE CERTIFICADOS (LIGHTBOX)
   ============================================================ */
body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__box {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox__box { transform: scale(1) translateY(0); }

.lightbox__figure {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.lightbox__media {
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  max-height: calc(100vh - 220px);
  min-height: 240px;
  overflow: hidden;
}
.lightbox__media img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  display: block;
}

.lightbox__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 70px 30px;
  color: var(--text-muted);
}
.lightbox__placeholder svg { width: 64px; height: 64px; color: var(--pink); opacity: 0.75; margin-bottom: 8px; }
.lightbox__placeholder b { font-family: "Montserrat", sans-serif; font-size: 1rem; color: var(--text); }
.lightbox__placeholder small { font-size: 0.84rem; line-height: 1.5; }

.lightbox.is-swapping .lightbox__media img,
.lightbox.is-swapping .lightbox__caption { animation: lbSwap 0.32s ease; }
@keyframes lbSwap {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.lightbox__caption h3 { font-size: 0.98rem; }
.lightbox__caption p { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.lightbox__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lightbox__meta span {
  font-family: "Montserrat", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.lightbox__close, .lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-hover);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.lightbox__close svg, .lightbox__nav svg { width: 19px; height: 19px; }
.lightbox__close { position: absolute; top: -6px; right: -6px; z-index: 2; }
.lightbox__close:hover, .lightbox__nav:hover {
  color: #fff;
  background: var(--pink);
  border-color: transparent;
  transform: scale(1.08);
}
.lightbox__nav:active { transform: scale(0.95); }

@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox__box { gap: 8px; }
  .lightbox__close { top: -4px; right: -2px; width: 40px; height: 40px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { position: absolute; left: 4px; bottom: 90px; z-index: 2; }
  .lightbox__nav--next { position: absolute; right: 4px; bottom: 90px; z-index: 2; }
  .lightbox__media img { max-height: 56vh; }
  .lightbox__media { max-height: 56vh; }
  .cert-hint { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   HABILIDADES
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }

.skills-panel { padding: 34px 32px; }
.skills-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  margin-bottom: 26px;
}
.skills-panel__title svg { width: 24px; height: 24px; color: var(--pink); }

.skill { margin-bottom: 20px; }
.skill:last-child { margin-bottom: 0; }
.skill__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.89rem;
  font-weight: 600;
}
.skill__info b {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.skill__bar {
  height: 9px;
  border-radius: 99px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.skill__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
  transition: width 1.3s cubic-bezier(0.25, 1, 0.35, 1);
  position: relative;
}
.skill__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 2.4s ease infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.soft-skills { display: flex; flex-wrap: wrap; gap: 10px; }
.soft-skill {
  font-size: 0.83rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: default;
}
.soft-skill:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(240, 0, 96, 0.35);
}

.lang-box {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 14px;
}
.lang-box__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.dots { display: inline-flex; gap: 7px; }
.dots i {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.dots i.on { background: var(--grad); border: none; box-shadow: 0 3px 8px rgba(240, 0, 96, 0.4); }

/* ============================================================
   INTERESES
   ============================================================ */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.interest {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 16px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}
.interest span { font-size: 2rem; display: block; margin-bottom: 10px; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.interest p { font-size: 0.86rem; font-weight: 600; }
.interest:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); background: var(--grad); }
.interest:hover span { transform: scale(1.3) rotate(-8deg); }
.interest:hover p { color: #fff; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-section { overflow: hidden; }
.contact-section .container { position: relative; z-index: 1; }
.hero__bg--contact .blob--pink { top: auto; bottom: -140px; opacity: 0.18; }
.hero__bg--contact .blob--blue { top: -140px; right: -120px; opacity: 0.18; }

.contact-intro { text-align: center; color: var(--text-muted); max-width: 560px; margin: -26px auto 46px; font-size: 0.95rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: block;
}
a.contact-card:hover, .contact-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: var(--pink); }
.contact-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--pink-soft);
  color: var(--pink);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.contact-card__icon svg { width: 25px; height: 25px; }
.contact-card:hover .contact-card__icon { background: var(--grad); color: #fff; transform: rotate(-8deg) scale(1.1); }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.84rem; color: var(--text-muted); word-break: break-word; }

.contact-cta { text-align: center; margin-top: 44px; }

/* ============================================================
   FOOTER / BACK TOP
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  background-size: 180% 180%;
  animation: gradShift 6s ease infinite;
  color: #fff;
  box-shadow: 0 10px 26px rgba(240, 0, 96, 0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }
.back-top svg { width: 20px; height: 20px; }

/* ============================================================
   ANIMACIONES REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__photo { order: 1; margin-bottom: 10px; }
  .hero__description { margin-inline: auto; }
  .hero__cta, .hero__socials { justify-content: center; }
  .float-badge--1 { left: 4%; }
  .float-badge--2 { right: 4%; }
  .profile-grid, .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(24, 24, 60, 0.15);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    padding: 10px 0 18px;
  }
  .nav__menu.open { clip-path: inset(0 0 0 0); }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: none; }
  .nav__link { display: block; padding: 15px 8%; font-size: 0.95rem; }
  .nav__link::after { display: none; }
  .nav__link.active { color: var(--pink); }

  .edu-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .timeline-item__dot { left: -26px; width: 15px; height: 15px; border-width: 3px; }
  .timeline-card { padding: 24px 22px; }
  .scroll-down { display: none; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 8px; }
  .stat__num { font-size: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-badge { display: none; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { width: 100%; }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
