/* Vertical editorial history */
.trayectoria.timeline {
  padding: 76px 0;
  background: #f3f6f0;
  border-bottom: 1px solid #dce5da;
  color: #102b21;
  font-family: var(--alt-font, 'Merriweather'), serif;
}
.timeline-sticky { padding: 0; }
.timeline-sticky > .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 80px;
}
.trayectoria.timeline .trayectoria-content {
  position: sticky;
  top: 130px;
  margin: 0;
}
.trayectoria.timeline .trayectoria-kicker { margin-bottom: 20px; }
.trayectoria.timeline .trayectoria-content h2 {
  margin-bottom: 24px;
  font-size: clamp(27px, 2.8vw, 39px);
  line-height: 1.35;
  letter-spacing: -.035em;
  text-wrap: initial;
}
.trayectoria.timeline .trayectoria-description { font-size: 14px; line-height: 1.9; }
.timeline-window { min-width: 0; outline-offset: 8px; }
.timeline-heading, .timeline-count, .timeline-bottom { display: none; }
.timeline-panels { position: relative; padding-left: 34px; }
.timeline-panels::before,
.timeline-panels::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #c4d5c5;
}
.timeline-panels::after {
  background: #008637;
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
}
.timeline-panel {
  position: relative;
  padding: 0 0 64px;
  min-height: 46vh;
}
.timeline-panel:last-child { padding-bottom: 0; min-height: 0; }
.timeline-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -34px;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 2px solid #f3f6f0;
  border-radius: 50%;
  background: #a8beac;
  box-shadow: 0 0 0 1px #a8beac;
}
.timeline-panel.is-active::before { background: #008637; box-shadow: 0 0 0 5px #00863718; }
.timeline-panel.is-past::before { background: #008637; box-shadow: 0 0 0 1px #008637; }
.timeline-era {
  margin-bottom: 18px;
  color: #008637;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.timeline-story h3 {
  margin: 0 0 24px;
  color: #102b21;
  font-family: inherit;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.timeline-story dl { margin: 0; }
.timeline-story dt {
  margin: 18px 0 7px;
  color: #008637;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.timeline-story dd { margin: 0; max-width: 510px; color: #536159; font-size: 14px; line-height: 1.9; }
.timeline-progress-label { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #d3dfd2; color: #008637; font-size: 11px; line-height: 1.8; }
@media (max-width: 991px) {
  .timeline-sticky > .container { gap: 38px; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .trayectoria.timeline .trayectoria-content h2 { font-size: 27px; }
  .trayectoria.timeline .trayectoria-description { font-size: 12px; }
  .timeline-story dd { font-size: 13px; }
}
@media (max-width: 767px) {
  .trayectoria.timeline { padding: 42px 0; }
  .timeline-sticky > .container { grid-template-columns: 1fr; gap: 36px; }
  .trayectoria.timeline .trayectoria-content { position: static; }
  .timeline-panel { min-height: 0; padding-bottom: 50px; }
  .timeline-story h3 { font-size: 21px; margin-bottom: 18px; }
  .trayectoria.timeline .trayectoria-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .trayectoria.timeline .trayectoria-content { position: static; } }

/* Crossfade the section photograph with the current year. */
.trayectoria.timeline.has-year-background { position: relative; isolation: isolate; background: #102b21; color: #fff; }
.timeline-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.timeline-background-frame { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.timeline-background-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.timeline-background-image.is-visible { opacity: 1; }
.timeline-background-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,24,16,.92),rgba(5,24,16,.78) 55%,rgba(5,24,16,.72)); }
.has-year-background .trayectoria-content h2,
.has-year-background .timeline-story h3 { color: #fff !important; }
.has-year-background .trayectoria-description,
.has-year-background .timeline-story dd { color: #e0e9e2; }
.has-year-background .trayectoria-description strong { color: #fff; }
.has-year-background .trayectoria-kicker,
.has-year-background .timeline-era,
.has-year-background .timeline-story dt,
.has-year-background .timeline-progress-label { color: #8ee8a8; }
.has-year-background .timeline-progress-label { border-color: #ffffff30; }
.has-year-background .timeline-panels::before { background: #ffffff40; }
.has-year-background .timeline-panels::after { background: #8ee8a8; }
.has-year-background .timeline-panel::before { border-color: #163b28; background: #829a89; box-shadow: 0 0 0 1px #829a89; }
.has-year-background .timeline-panel.is-past::before { background: #8ee8a8; box-shadow: 0 0 0 1px #8ee8a8; }
.has-year-background .timeline-panel.is-active::before { background: #8ee8a8; box-shadow: 0 0 0 5px #8ee8a82b; }
@media (prefers-reduced-motion: reduce) { .timeline-background-image { transition: none; } }
