/* ==========================================================================
   06 · TIMELINE — Fechas clave
   ========================================================================== */

.timeline {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(40, 100, 255, 0.08), transparent 35%),
    var(--paper);
}
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.timeline-track::before {
  position: absolute;
  top: 48px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: #bec8db;
}
.timeline-track article {
  position: relative;
  padding-right: 24px;
}
.timeline-index {
  display: block;
  margin-bottom: 26px;
  color: #8995ae;
  font-size: 0.62rem;
  font-weight: 700;
}
.timeline-dot {
  position: relative;
  z-index: 2;
  width: 13px;
  height: 13px;
  margin-bottom: 28px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.timeline-track article:last-child .timeline-dot {
  background: var(--violet);
  box-shadow:
    0 0 0 1px var(--violet),
    0 0 26px rgba(131, 56, 255, 0.42);
}
.timeline-track time {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.timeline-track h3 {
  max-width: 165px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .timeline-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 55px 0;
  }
  .timeline-track::before {
    display: none;
  }
  .timeline-track article {
    border-top: 1px solid #bec8db;
    padding-top: 20px;
  }
  .timeline-index {
    margin-bottom: 14px;
  }
  .timeline-dot {
    position: absolute;
    top: -6px;
    left: 0;
  }
}
@media (max-width: 820px) {
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 16px;
  }
}
.timeline {
  color: #0a0a0a;
  border-bottom: 2px solid #0a0a0a;
  background: #f2f2ef;
}
.timeline-track {
  border-top: 2px solid #0a0a0a;
}
.timeline-track::before {
  background: #0a0a0a;
}
.timeline-track article {
  min-height: 205px;
  padding-top: 25px;
  border-right: 1px solid #a8a8a8;
}
.timeline-track article:last-child {
  border-right: 0;
}
.timeline-index {
  color: #666666;
}
.timeline-dot,
.timeline-track article:last-child .timeline-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #f2f2ef;
  background: #0a0a0a;
}
.timeline-track time {
  color: #0a0a0a;
  font-size: 0.82rem;
}
.timeline-track h3 {
  font-size: 1rem;
}
@media (max-width: 820px) {
  .timeline-track article {
    min-height: 0;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid #8f8f8f;
  }
  .timeline-track article:last-child {
    border-bottom: 0;
  }
}
.timeline {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-bottom-color: rgba(0, 174, 217, 0.55) !important;
  background-color: #000000 !important;
  background-image: linear-gradient(
    120deg,
    #000000 0%,
    rgba(0, 174, 217, 0.06) 100%
  ) !important;
}
.timeline .section-label,
.timeline .section-kicker,
.timeline .section-aside,
.timeline-track h3 {
  color: #ffffff !important;
}
.timeline-track time {
  color: var(--ta-green) !important;
}
.timeline .section-label span {
  color: var(--ta-cyan) !important;
}
.timeline .section-aside,
.timeline-index {
  color: rgba(255, 255, 255, 0.58) !important;
}
.timeline-track {
  border-top-color: rgba(255, 255, 255, 0.58) !important;
}
.timeline-track::before {
  background: linear-gradient(
    90deg,
    var(--ta-green),
    var(--ta-cyan)
  ) !important;
}
.timeline-track article {
  border-right-color: rgba(255, 255, 255, 0.2) !important;
}
.timeline-dot,
.timeline-track article:last-child .timeline-dot {
  border-color: #000000 !important;
  background: var(--ta-cyan) !important;
  box-shadow: 0 0 0 0 rgba(0, 174, 217, 0.34) !important;
  animation: ta-timeline-pulse 3s ease-out infinite;
}
.timeline-track article:nth-child(2) .timeline-dot {
  animation-delay: 0.25s;
}
.timeline-track article:nth-child(3) .timeline-dot {
  animation-delay: 0.5s;
}
.timeline-track article:nth-child(4) .timeline-dot {
  animation-delay: 0.75s;
}
.timeline-track article:nth-child(5) .timeline-dot {
  animation-delay: 1s;
}
.timeline-track article:nth-child(6) .timeline-dot {
  animation-delay: 1.25s;
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .purpose::after,
  .categories::after,
  .timeline-dot,
  .criterion-bar span {
    animation: none !important;
  }
}

@keyframes ta-timeline-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

/* --- Tamaños Fechas / timeline (guía PDF) --- */
.timeline-index {
  font-size: var(--fs-nota) !important;
}
.timeline-track time {
  font-size: var(--fs-cuerpo) !important;
}
.timeline-track h3 {
  font-size: var(--fs-cuerpo) !important;
  max-width: none !important;
  line-height: 1.25 !important;
}
