/* ==========================================================================
   Aaron Gálvez Salido — estilos
   Minimalismo funcional inspirado en Apple: tipografía grande, mucho aire,
   superficies suaves y un único color de acento.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, .09);
  --nav-bg: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 18px 48px rgba(0,0,0,.10);
  --hero-grad: linear-gradient(90deg, #0071e3 0%, #34c759 55%, #30b0c7 100%);

  --c-research: #0071e3;
  --c-education: #af52de;
  --c-publication: #34c759;
  --c-conference: #ff9f0a;
  --c-course: #30b0c7;
  --c-other: #ff375f;

  --radius: 22px;
  --radius-s: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0d0d0f;
    --surface: #1c1c1e;
    --surface-2: #161618;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, .10);
    --line-2: rgba(255, 255, 255, .18);
    --accent: #2997ff;
    --accent-hover: #47a5ff;
    --accent-soft: rgba(41, 151, 255, .14);
    --nav-bg: rgba(22, 22, 23, .72);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
    --shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.55);
    --hero-grad: linear-gradient(90deg, #2997ff 0%, #30d158 55%, #40c8e0 100%);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0d0d0f;
  --surface: #1c1c1e;
  --surface-2: #161618;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --accent: #2997ff;
  --accent-hover: #47a5ff;
  --accent-soft: rgba(41, 151, 255, .14);
  --nav-bg: rgba(22, 22, 23, .72);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.55);
  --hero-grad: linear-gradient(90deg, #2997ff 0%, #30d158 55%, #40c8e0 100%);
}

/* ─────────── Base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ─────────── Navegación ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 52px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__brand:hover { text-decoration: none; }
.nav__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--text); opacity: .8; font-size: 13px; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; text-decoration: none; }
.nav__links a.is-active { color: var(--accent); }
.nav__tools { display: flex; align-items: center; gap: 6px; }

.pill-toggle {
  display: flex; padding: 3px; border: 0; border-radius: 999px;
  background: var(--bg-alt); cursor: pointer; font-size: 12px; font-weight: 600;
}
.pill-toggle span { padding: 3px 9px; border-radius: 999px; color: var(--text-2); transition: background .25s, color .25s; }
html[lang="es"] .pill-toggle [data-lang="es"],
html[lang="en"] .pill-toggle [data-lang="en"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

.nav__burger { display: none; }
.nav__burger span { position: absolute; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger { position: relative; }
.nav__burger span:first-child { transform: translateY(-3.5px); }
.nav__burger span:last-child { transform: translateY(3.5px); }
.nav.is-open .nav__burger span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: grid; }
  .nav__links {
    position: fixed; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 22px 22px; margin: 0;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__tools { margin-left: auto; }
}

/* ─────────── Botones ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }

.link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }

/* ─────────── Hero ─────────── */
.hero { padding: 140px 0 110px; text-align: center; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 30% 40%, rgba(0,113,227,.10), transparent 70%),
    radial-gradient(35% 35% at 70% 35%, rgba(52,199,89,.10), transparent 70%);
  filter: blur(20px);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin-bottom: 26px;
  background: linear-gradient(135deg, #e8e8ed, #d2d2d7);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line), var(--shadow);
}
:root[data-theme="dark"] .avatar { background: linear-gradient(135deg, #2c2c2e, #1c1c1e); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: 42px; font-weight: 700; letter-spacing: -.02em; color: var(--text-2); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-bottom: 10px; }
.section__head .eyebrow { color: var(--accent); }
.hero__title {
  font-size: clamp(44px, 8.4vw, 92px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
}
.hero__role {
  margin-top: 16px; max-width: 760px;
  font-size: clamp(21px, 3vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em;
  background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 22px; }
.hero__links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); transition: color .2s, background .2s;
}
.hero__links a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.hero__links svg { width: 17px; height: 17px; }


/* ─────────── Secciones ─────────── */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 52px; max-width: 760px; }
.section__title { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
.section__sub { margin-top: 14px; font-size: 21px; line-height: 1.4; color: var(--text-2); letter-spacing: -.02em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; letter-spacing: -.02em; color: var(--text); }
.mini-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 14px; }
.mini-title:not(:first-child) { margin-top: 34px; }
.sub-title { font-size: 21px; margin-bottom: 18px; }
@media (max-width: 640px) { .section { padding: 84px 0; } .section__head { margin-bottom: 36px; } .section__sub { font-size: 18px; } }

/* ─────────── Sobre mí ─────────── */
.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 14px;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
}
.edu li { position: relative; padding: 0 0 18px 22px; }
.edu li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.edu li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.edu li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 1px; background: var(--line-2); }
.edu li:last-child::after { display: none; }
.edu strong { display: block; font-size: 16px; font-weight: 600; }
.edu span { font-size: 14px; color: var(--text-2); }

/* ─────────── Toolbar / filtros ─────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.segmented {
  display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.section--alt .segmented { background: var(--line); }
.segmented button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.segmented button .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.segmented button small { color: var(--text-3); margin-left: 4px; font-weight: 500; }

.search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; min-width: 220px;
  border-radius: 12px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line);
}
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 15px; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
@media (max-width: 640px) { .search { flex: 1 1 100%; } }

/* ─────────── Publicaciones ─────────── */
.pubs { border-top: 1px solid var(--line); }
.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-year__label { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--text-3); position: sticky; top: 76px; align-self: start; }
.pub-year__items { display: grid; gap: 28px; }
@media (max-width: 720px) { .pub-year { grid-template-columns: 1fr; gap: 12px; } .pub-year__label { position: static; font-size: 22px; } }

.pub__title { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.pub__authors { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.pub__authors b { color: var(--text); font-weight: 600; }
.pub__venue { margin-top: 2px; font-size: 15px; color: var(--text-2); }
.pub__venue em { color: var(--text); font-style: italic; }
.pub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--accent-soft); color: var(--accent);
}
.badge--oa { background: rgba(52,199,89,.13); color: #1f9d48; }
:root[data-theme="dark"] .badge--oa { color: #30d158; }
.badge--muted { background: var(--bg-alt); color: var(--text-2); }
.empty { padding: 40px 0; color: var(--text-2); text-align: center; }

/* ─────────── Tarjetas de software ─────────── */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  display: flex; flex-direction: column; padding: 30px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card--wide { grid-column: span 3; }
@media (max-width: 960px) { .card, .card--wide { grid-column: span 3; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card, .card--wide { grid-column: auto; padding: 26px; } }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__title { font-size: 22px; letter-spacing: -.025em; }
.card__year { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.card__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); flex: 1; }
.card__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.card__stack span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--text-2); }
.card__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ─────────── Cuadernos ─────────── */
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.nb {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border-radius: var(--radius-s); background: var(--bg-alt); color: var(--text);
  transition: background .25s, transform .3s var(--ease);
}
.nb:hover { text-decoration: none; transform: translateY(-2px); background: var(--surface); box-shadow: var(--shadow); }
.nb__top { display: flex; align-items: center; justify-content: space-between; }
.nb__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,159,10,.14); color: #e8710a; }
.nb__logo svg { width: 20px; height: 20px; }
.nb__topic { font-size: 12px; font-weight: 600; color: var(--text-3); }
.nb__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.nb__desc { font-size: 14px; color: var(--text-2); flex: 1; }
.nb__cta { font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.nb__cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.nb:hover .nb__cta svg { transform: translate(2px, -2px); }

/* ─────────── Congresos ─────────── */
.confs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .confs { grid-template-columns: 1fr; } }
.conf { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.conf__date { text-align: center; padding-top: 2px; }
.conf__month { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--c-other); letter-spacing: .04em; }
.conf__year { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.conf__title { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.conf__event { margin-top: 8px; font-size: 14px; color: var(--text); }
.conf__place { font-size: 14px; color: var(--text-2); }
.conf__authors { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.conf__authors b { color: var(--text-2); }

/* ─────────── Proyectos ─────────── */
.projects { display: grid; gap: 16px; }
.project {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; padding: 28px 30px;
  border-radius: var(--radius); background: var(--bg-alt);
}
.project__title { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.project__meta { margin-top: 8px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.project__side { text-align: right; white-space: nowrap; }
.project__period { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.project__role { font-size: 13px; color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1f9d48; margin-top: 6px; }
:root[data-theme="dark"] .live { color: #30d158; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 640px) { .project { grid-template-columns: 1fr; padding: 24px; } .project__side { text-align: left; } }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; margin-top: 60px; } }
.plain li { padding: 14px 0; border-top: 1px solid var(--line); }
.plain strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.plain span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }

/* ─────────── Línea del tiempo ─────────── */
.tl { position: relative; max-width: 820px; margin: 0 auto; }
.tl::before { content: ""; position: absolute; left: 112px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.tl__item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 40px; padding: 14px 0; }
.tl__item[hidden] { display: none; }
.tl__date { text-align: right; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl__dot {
  position: absolute; left: 107px; top: 21px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); box-shadow: inset 0 0 0 2.5px var(--c, var(--accent));
}
.tl__item.is-latest .tl__dot { background: var(--c, var(--accent)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); }
.tl__body { font-size: 16px; line-height: 1.45; }
.tl__cat { display: block; font-size: 12px; font-weight: 600; color: var(--c, var(--accent)); margin-bottom: 2px; }
.tl__year {
  position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 40px; padding: 26px 0 8px;
  font-size: 22px; font-weight: 700; letter-spacing: -.03em;
}
.tl__year span { text-align: right; }
.tl__year[hidden] { display: none; }
.tl + .center { margin-top: 32px; }
@media (max-width: 640px) {
  .tl::before { left: 5px; }
  .tl__item, .tl__year { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .tl__year span { text-align: left; }
  .tl__dot { left: 0; top: 18px; }
  .tl__date { text-align: left; }
}

/* ─────────── Contacto / footer ─────────── */
.contact { padding: 140px 0; }
.contact__title { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.045em; line-height: 1.02; }
.contact .section__sub { max-width: 560px; margin-left: auto; margin-right: auto; }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--text-3); background: var(--bg-alt); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--text-2); }

/* ─────────── Animaciones de entrada ─────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .nb, .btn { transition: none; }
  .live::before { animation: none; }
}
