/* ============================================================
   LÍNEA DEL TIEMPO · 1300–1800
   Paleta:
     --space-indigo: #2d3047
     --pine-blue:    #357266   (Renacimiento)
     --sunlit-clay:  #e0a458   (Manierismo)
     --hunter-green: #34623f   (Barroco/Rococó)
     --white:        #ffffff
   ============================================================ */

:root {
  --space-indigo: #2d3047;
  --space-indigo-deep: #1d1f30;
  --space-indigo-soft: #3a3e5b;
  --pine-blue: #357266;
  --pine-blue-soft: #4a8a7d;
  --sunlit-clay: #e0a458;
  --sunlit-clay-soft: #efbf83;
  --white: #ffffff;
  --hunter-green: #34623f;
  --hunter-green-soft: #4a8455;

  /* Sistema base */
  --bg: var(--space-indigo);
  --bg-deep: var(--space-indigo-deep);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.7);
  --text-dim: rgba(245, 245, 247, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Espaciado */
  --container: 1200px;
  --container-narrow: 720px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 24px 60px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
strong { font-weight: 600; color: var(--white); }
em { font-style: italic; color: var(--sunlit-clay-soft); }
kbd {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8em;
  color: var(--white);
}

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pine-blue), var(--sunlit-clay), var(--hunter-green));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(45, 48, 71, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.is-visible { transform: translateY(0); }

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sunlit-clay);
  box-shadow: 0 0 10px rgba(224, 164, 88, 0.6);
}
.nav__title { color: var(--white); }

.nav__units {
  display: none;
  gap: 4px;
}
.nav__unit {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.nav__unit:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav__unit.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.nav__unit[data-unit="renacimiento"].is-active { background: rgba(53, 114, 102, 0.5); }
.nav__unit[data-unit="manierismo"].is-active { background: rgba(224, 164, 88, 0.4); color: var(--space-indigo); }
.nav__unit[data-unit="barroco"].is-active { background: rgba(52, 98, 63, 0.5); }

.nav__toggle {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil */
@media (max-width: 767px) {
  .nav.is-open {
    flex-wrap: wrap;
  }
  .nav.is-open .nav__units {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .nav.is-open .nav__unit {
    padding: 10px 14px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .nav { padding: 16px 32px; }
  .nav__units { display: flex; }
  .nav__toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% 110%, rgba(53, 114, 102, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(224, 164, 88, 0.2), transparent 60%),
    radial-gradient(700px 500px at 10% 30%, rgba(52, 98, 63, 0.25), transparent 60%),
    linear-gradient(180deg, var(--space-indigo-deep) 0%, var(--space-indigo) 100%);
}

.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: var(--pine-blue);
}
.hero__blob--2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: var(--sunlit-clay);
  animation-delay: -6s;
  opacity: 0.3;
}
.hero__blob--3 {
  width: 350px; height: 350px;
  top: 40%; right: 10%;
  background: var(--hunter-green);
  animation-delay: -12s;
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero__inner {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw + 1rem, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--white);
}
.hero__title-accent {
  display: block;
  background: linear-gradient(120deg, var(--sunlit-clay), var(--pine-blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw + 0.6rem, 1.35rem);
  color: var(--text-muted);
  margin: 0 0 32px;
  font-weight: 400;
}

.hero__range {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 36px;
}
.hero__year {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw + 0.8rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero__range-line {
  width: clamp(60px, 12vw, 140px);
  height: 2px;
  background: linear-gradient(90deg, var(--pine-blue), var(--sunlit-clay), var(--hunter-green));
}

.hero__intro {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--sunlit-clay);
  color: var(--space-indigo);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 30px rgba(224, 164, 88, 0.3);
}
.hero__cta svg { width: 18px; height: 18px; }
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(224, 164, 88, 0.45);
  background: var(--sunlit-clay-soft);
}

.hero__units {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 56px auto 0;
}
@media (min-width: 640px) {
  .hero__units { grid-template-columns: repeat(3, 1fr); }
}

.unit-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.unit-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.9;
}
.unit-pill--renacimiento::before { background: var(--pine-blue); }
.unit-pill--manierismo::before  { background: var(--sunlit-clay); }
.unit-pill--barroco::before     { background: var(--hunter-green); }
.unit-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.unit-pill__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.unit-pill__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.unit-pill__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: var(--sunlit-clay);
  border-radius: 2px;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0);  opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (min-height: 740px) {
  .hero__scroll { display: flex; }
}

/* ============================================================
   UNIT HEADER (separador entre unidades)
   ============================================================ */
.unit-header {
  position: relative;
  padding: 80px 20px 40px;
  text-align: center;
  z-index: 2;
}
.unit-header__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.unit-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.unit-header__sub {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
}
.unit-header[data-unit="renacimiento"] .unit-header__title { color: var(--pine-blue-soft); }
.unit-header[data-unit="manierismo"]  .unit-header__title { color: var(--sunlit-clay); }
.unit-header[data-unit="barroco"]     .unit-header__title { color: var(--hunter-green-soft); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 20px 0 80px;
  background: var(--bg);
}

.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--pine-blue) 4%,
    var(--pine-blue) 40%,
    var(--sunlit-clay) 50%,
    var(--sunlit-clay) 62%,
    var(--hunter-green) 72%,
    var(--hunter-green) 96%,
    transparent 100%);
  opacity: 0.7;
  left: 28px;
}

.timeline__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 20px 0 56px;
}

/* ============================================================
   HITO CARD
   ============================================================ */
.hito {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hito.is-visible { opacity: 1; transform: translateY(0); }

.hito__dot {
  position: absolute;
  left: -42px;
  top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--space-indigo);
  border: 2px solid var(--pine-blue);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hito[data-unit="renacimiento"] .hito__dot { border-color: var(--pine-blue); }
.hito[data-unit="manierismo"]  .hito__dot { border-color: var(--sunlit-clay); }
.hito[data-unit="barroco"]     .hito__dot { border-color: var(--hunter-green); }

.hito.is-visible .hito__dot {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05);
}
.hito[data-unit="renacimiento"].is-visible .hito__dot { background: var(--pine-blue); }
.hito[data-unit="manierismo"].is-visible  .hito__dot { background: var(--sunlit-clay); }
.hito[data-unit="barroco"].is-visible     .hito__dot { background: var(--hunter-green); }

.hito__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hito__card:hover {
  border-color: var(--border-strong);
}

.hito__header {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

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

.hito__number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.hito__unit-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.hito[data-unit="renacimiento"] .hito__unit-badge {
  background: rgba(53, 114, 102, 0.18);
  color: var(--pine-blue-soft);
}
.hito[data-unit="manierismo"] .hito__unit-badge {
  background: rgba(224, 164, 88, 0.18);
  color: var(--sunlit-clay);
}
.hito[data-unit="barroco"] .hito__unit-badge {
  background: rgba(52, 98, 63, 0.22);
  color: var(--hunter-green-soft);
}

.hito__mx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--border-strong);
}
.hito__mx-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006847 50%, #ce1126 50%);
}

.hito__year {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.8rem, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 4px 0 0;
}
.hito[data-unit="renacimiento"] .hito__year {
  background: linear-gradient(135deg, var(--pine-blue-soft), #82c1b3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hito[data-unit="manierismo"] .hito__year {
  background: linear-gradient(135deg, var(--sunlit-clay), #f5d39a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hito[data-unit="barroco"] .hito__year {
  background: linear-gradient(135deg, var(--hunter-green-soft), #7eaa84);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hito__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
  color: var(--white);
}

.hito__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 40%, rgba(224, 164, 88, 0.08), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(53, 114, 102, 0.1), transparent 60%),
    linear-gradient(135deg, var(--space-indigo-soft), var(--space-indigo-deep));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hito[data-unit="renacimiento"] .hito__media {
  background:
    radial-gradient(circle at 30% 40%, rgba(53, 114, 102, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(53, 114, 102, 0.08), transparent 60%),
    linear-gradient(135deg, var(--space-indigo-soft), var(--space-indigo-deep));
}
.hito[data-unit="manierismo"] .hito__media {
  background:
    radial-gradient(circle at 30% 40%, rgba(224, 164, 88, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(224, 164, 88, 0.08), transparent 60%),
    linear-gradient(135deg, var(--space-indigo-soft), var(--space-indigo-deep));
}
.hito[data-unit="barroco"] .hito__media {
  background:
    radial-gradient(circle at 30% 40%, rgba(52, 98, 63, 0.22), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(52, 98, 63, 0.1), transparent 60%),
    linear-gradient(135deg, var(--space-indigo-soft), var(--space-indigo-deep));
}
.hito__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hito__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 10px;
}
.hito__placeholder-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.hito__placeholder-icon svg { width: 24px; height: 24px; }
.hito__placeholder-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hito__placeholder-query {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  font-style: italic;
}

.hito__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  font-size: 12px;
  color: var(--text-muted);
}

.hito__body {
  padding: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.hito__body p { margin: 0 0 14px; }
.hito__body p:last-child { margin-bottom: 0; }

.hito__fact {
  margin: 0 24px 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--sunlit-clay);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hito[data-unit="renacimiento"] .hito__fact { border-left-color: var(--pine-blue-soft); }
.hito[data-unit="manierismo"]  .hito__fact { border-left-color: var(--sunlit-clay); }
.hito[data-unit="barroco"]     .hito__fact { border-left-color: var(--hunter-green-soft); }

.hito__fact-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(224, 164, 88, 0.18);
  color: var(--sunlit-clay);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.hito__fact-content {
  flex: 1;
  min-width: 0;
}
.hito__fact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunlit-clay);
  margin: 0 0 6px;
}
.hito__fact-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hito__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 24px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}
.hito__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--white);
}
.hito__link svg { width: 14px; height: 14px; }

/* ===== Lista de enlaces "Leer más" ===== */
.hito__links {
  margin: 0 24px 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.hito__links-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.hito__links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hito__links-item {
  border-top: 1px solid var(--border);
}
.hito__links-item:first-child {
  border-top: none;
}
.hito__links-link {
  display: block;
  padding: 12px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  transition: background 0.18s ease;
}
.hito__links-link:hover {
  background: rgba(255, 255, 255, 0.04);
}
.hito__links-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hito__links-link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.hito__links-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.18s ease, color 0.18s ease;
}
.hito__links-link:hover .hito__links-arrow {
  color: var(--sunlit-clay);
  transform: translate(2px, -2px);
}
.hito__links-link-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ============================================================
   DESKTOP — Timeline 2 columnas con hitos compartiendo filas
   ============================================================ */
@media (min-width: 1024px) {
  .timeline {
    padding: 40px 0 100px;
  }

  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.9;
    width: 2px;
    box-shadow: 0 0 12px rgba(224, 164, 88, 0.15);
  }

  .timeline__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
    row-gap: 60px;
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
  }

  /* Unit-headers ocupan ambas columnas */
  .unit-header {
    grid-column: 1 / -1;
    padding: 80px 20px 40px;
  }

  /* Hitos alternados por posición sin contar headers */
  .hito {
    width: 100%;
  }
  .hito[data-side="left"]  { grid-column: 1; }
  .hito[data-side="right"] { grid-column: 2; margin-top: 80px; }

  .hito__dot {
    top: 36px;
  }
  .hito[data-side="left"] .hito__dot {
    left: auto;
    right: -57px;
  }
  .hito[data-side="right"] .hito__dot {
    left: -57px;
  }

  .hito__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
  }
}

@media (min-width: 1280px) {
  .timeline__content {
    column-gap: 140px;
  }
  .hito[data-side="left"] .hito__dot  { right: -77px; }
  .hito[data-side="right"] .hito__dot { left: -77px; }
}

/* ============================================================
   OUTRO
   ============================================================ */
.outro {
  position: relative;
  padding: 100px 20px 120px;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(224, 164, 88, 0.15), transparent 70%),
    radial-gradient(700px 400px at 50% 100%, rgba(53, 114, 102, 0.2), transparent 70%),
    var(--space-indigo-deep);
  text-align: center;
  overflow: hidden;
}

.outro__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.outro__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.outro__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw + 1rem, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--white);
}
.outro__title-accent {
  display: inline-block;
  background: linear-gradient(120deg, var(--sunlit-clay), var(--hunter-green-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.outro__body {
  font-size: clamp(0.95rem, 0.6vw + 0.8rem, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.outro__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.outro__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}
.outro__cta svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 20px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.footer__main {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--white);
}
.footer__credit {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer__tip {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .hito {
    opacity: 1;
    transform: none;
  }
}
