/* ============================================================
   TIMELINE — Proceso + Diferenciales
   ============================================================ */

.timeline {
  border-top: 1px solid var(--color-bg-3);
}

.timeline .section-badge {
  padding: 9px 18px;
  font-size: 12px;
  margin-bottom: 16px;
}

.timeline {
  padding-block: 64px;
}

.timeline__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.timeline__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Left nav ── */
.timeline__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  width: 100%;
}

.timeline__item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.timeline__item.is-active {
  background: rgba(226, 75, 74, 0.08);
  border-color: rgba(226, 75, 74, 0.2);
}

.timeline__item-num {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #888780;
  letter-spacing: 0.08em;
  min-width: 24px;
  flex-shrink: 0;
}

.timeline__item.is-active .timeline__item-num {
  color: #E24B4A;
}

.timeline__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline__item-title {
  font-size: 14px;
  font-weight: 600;
  color: #D3D1C7;
  transition: color 0.25s;
}

.timeline__item.is-active .timeline__item-title {
  color: #FFFFFF;
}

.timeline__item-sub {
  font-size: 11px;
  color: #888780;
}

.timeline__item-arrow {
  color: #2C2C2C;
  transition: color 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
}

.timeline__item-arrow [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.timeline__item.is-active .timeline__item-arrow {
  color: #E24B4A;
  transform: translateX(4px);
}

.timeline__divider {
  height: 1px;
  background: #2C2C2C;
  margin: 12px 20px;
}

/* ── Right panel ── */
.timeline__panel {
  position: sticky;
  top: 100px;
  background: #1A1A1A;
  border: 1px solid #2C2C2C;
  border-radius: 16px;
  padding: 36px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.timeline__panel-content {
  display: none;
}

.timeline__panel-content.is-active {
  display: block;
  animation: panel-fade 0.3s ease;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline__panel-icon {
  width: 48px;
  height: 48px;
  background: rgba(226, 75, 74, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E24B4A;
  margin-bottom: 20px;
}

.timeline__panel-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.timeline__panel-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.timeline__panel-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #888780;
  margin-bottom: 20px;
}

.timeline__panel-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__panel-bullets li {
  font-size: 13px;
  color: #D3D1C7;
  padding-left: 16px;
  position: relative;
}

.timeline__panel-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #E24B4A;
  font-weight: 700;
}

.timeline__panel-stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2C2C2C;
}

.timeline__panel-stat-num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.timeline__panel-stat-label {
  font-size: 12px;
  color: #888780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Panel footer — always-visible mini stats ── */
.timeline__panel-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #2C2C2C;
  margin-top: 24px;
}

.timeline__panel-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.timeline__panel-mini-stat {
  text-align: center;
}

.timeline__panel-mini-num {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.timeline__panel-mini-label {
  display: block;
  font-size: 10px;
  color: #888780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .timeline__panel-content.is-active { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .timeline__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline__panel {
    position: static;
    padding: 24px 20px;
  }
}

/* ── Timeline Panel Footer (dynamic) ── */
.timeline__panel-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2C2C2C;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  animation: panel-fade 0.3s ease;
}

.timeline__panel-footer-stat {
  flex-shrink: 0;
  text-align: center;
  min-width: 60px;
}

.timeline__panel-footer-num {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #E24B4A;
  line-height: 1;
}

.timeline__panel-footer-label {
  display: block;
  font-size: 10px;
  color: #888780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  line-height: 1.3;
}

.timeline__panel-footer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline__panel-footer-highlight {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  display: block;
}

.timeline__panel-footer-note {
  font-size: 12px;
  color: #888780;
  line-height: 1.55;
  margin: 0;
}
