/* ==========================================================================
   BTG Timeline
   --------------------------------------------------------------------------
   Componente: templates/components/btg-component-timeline.php
   ACF:        acf-json/group_42eefbe17d22d.json (_btg-timeline)

   Traducción de `TimelineDna` (btg-lp) a los tokens del theme. CSS plano
   (no hay fuentes SCSS en el repo). Breakpoints del theme: 712 · 1024.
   ========================================================================== */

.btg-timeline {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: var(--neutral-base);
  color: var(--emphasis-base-high);
}

.btg-timeline--variant-gray {
  background-color: var(--background-base);
}

@media (min-width: 712px) {
  .btg-timeline {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Header
   ========================================================================== */

.btg-timeline__header__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.333333;
  text-wrap: balance;
  color: var(--emphasis-base-high);
}

.btg-timeline__header__text {
  margin: 16px 0 0;
  max-width: 872px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--emphasis-base-medium);
}

@media (min-width: 1024px) {
  .btg-timeline__header__title {
    font-size: 28px;
    line-height: 1.285714;
  }
}

/* Pista
   ========================================================================== */

.btg-timeline__body {
  margin-top: 40px;
}

.btg-timeline__header + .btg-timeline__body {
  margin-top: 40px;
}

.btg-timeline__track {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.btg-timeline__track:focus-visible {
  outline: 2px solid var(--primary-base);
  outline-offset: 4px;
}

.btg-timeline__item {
  position: relative;
  display: flex;
  flex: 0 0 240px;
  flex-direction: column;
  scroll-snap-align: start;
}

/* La línea sale del punto y llega al punto siguiente (240 + 40 de calle). */
.btg-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: calc(100% + 40px);
  height: 1px;
  background-color: var(--primary-base);
}

.btg-timeline__item__dot {
  position: relative;
  width: 16px;
  height: 16px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: var(--primary-base);
}

.btg-timeline__item__date {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.333333;
  color: var(--emphasis-base-high);
}

.btg-timeline__item__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--emphasis-base-medium);
}
