/* ============ ODOMETER ============ */
.odometer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px;
  background: oklch(0.14 0.01 60);
  color: var(--cream-50);
  border: 1px solid oklch(0.3 0.015 60);
  border-radius: 4px;
  font-family: var(--font-mono);
  max-width: fit-content;
}
.odometer__label {
  font-size: 10px;
  letter-spacing: 0.25em;
  opacity: 0.6;
}
.odometer__digits {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.odometer__digit.is-num {
  display: inline-block;
  min-width: 0.65em;
  padding: 6px 8px;
  background: oklch(0.2 0.015 60);
  border: 1px solid oklch(0.28 0.015 60);
  border-radius: 3px;
  color: var(--accent);
  text-align: center;
  box-shadow: inset 0 1px 0 oklch(0.32 0.015 60), 0 1px 0 oklch(0.1 0.01 60);
}
.odometer__digit.is-sep {
  align-self: flex-end;
  padding-bottom: 4px;
  opacity: 0.5;
}
.odometer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.6;
}
.odometer__dot {
  width: 8px; height: 8px;
  background: oklch(0.7 0.2 150);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
[data-motion="off"] .odometer__dot { animation: none; opacity: 0.8; }

/* ============ CHILE MAP ============ */
.chile-map {
  background: oklch(0.14 0.01 60);
  color: var(--cream-50);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.chile-map__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 900px) {
  .chile-map__inner { grid-template-columns: 1fr; }
}
.chile-map__side .eyebrow {
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 24px;
}
.chile-map__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
}
.chile-map__title em {
  font-style: italic;
  color: var(--accent);
}
.chile-map__body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  opacity: 0.8;
  max-width: 420px;
  margin-bottom: 40px;
}
.chile-map__readout {
  border-left: 2px solid var(--accent);
  padding: 12px 20px;
  font-family: var(--font-mono);
}
.chile-map__readout-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  opacity: 0.5;
  margin-bottom: 6px;
}
.chile-map__readout-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
}
.chile-map__readout-km {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 4px;
}

.chile-map__svg-wrap {
  display: flex;
  justify-content: center;
  height: 700px;
  color: var(--cream-50);
}
.chile-map__svg {
  height: 100%;
  width: auto;
  max-width: 100%;
}

/* ============ LIVE RUNS ============ */
.live-runs {
  background: linear-gradient(180deg, oklch(0.13 0.008 60), oklch(0.16 0.012 60));
  color: var(--cream-50);
  padding: clamp(80px, 10vw, 120px) 0;
  border-block: 1px solid oklch(0.25 0.015 60);
}
.live-runs .eyebrow { color: var(--accent); }
.live-runs__head {
  max-width: 1280px;
  margin: 0 auto 48px auto;
  padding: 0 clamp(24px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.live-runs__pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: oklch(0.7 0.01 60);
}
.live-runs__dot {
  width: 8px; height: 8px;
  background: oklch(0.65 0.22 25);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}
.live-runs__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .live-runs__grid { grid-template-columns: 1fr; }
}
.live-run {
  background: oklch(0.2 0.012 60);
  border: 1px solid oklch(0.3 0.015 60);
  color: var(--cream-50);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
[data-theme="dark"] .live-run {
  background: oklch(0.22 0.012 60);
}
.live-run:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.08);
}
.live-run__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.live-run__id {
  color: var(--accent);
  font-weight: 600;
}
.live-run__status {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  font-size: 10px;
}
.live-run__status-dot {
  width: 6px; height: 6px;
  background: oklch(0.65 0.22 145);
  border-radius: 50%;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.live-run__truck {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}
.live-run__route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.live-run__line {
  position: relative;
  height: 2px;
  background: oklch(0.88 0.008 85);
  border-radius: 2px;
}
[data-theme="dark"] .live-run__line { background: oklch(0.3 0.015 60); }
.live-run__line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .8s cubic-bezier(.4,.2,.2,1);
}
.live-run__line-truck {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left .8s cubic-bezier(.4,.2,.2,1);
}
.live-run__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid oklch(0.9 0.008 85);
}
[data-theme="dark"] .live-run__meta { border-top-color: oklch(0.3 0.015 60); }
.live-run__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-bottom: 4px;
}
.live-run__meta-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}

/* ============ LICENSE PLATE DIVIDER ============ */
.license-plate-divider {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
  background: var(--cream-50);
}
[data-theme="dark"] .license-plate-divider { background: oklch(0.14 0.01 60); }
.license-plate {
  background: oklch(0.98 0.012 85);
  border: 3px solid oklch(0.14 0.01 60);
  border-radius: 8px;
  padding: 8px 32px;
  text-align: center;
  font-family: var(--font-mono);
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.1), inset 0 0 0 2px oklch(0.98 0.012 85);
  position: relative;
}
.license-plate::before,
.license-plate::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  background: oklch(0.8 0.005 85);
  border-radius: 50%;
  transform: translateY(-50%);
}
.license-plate::before { left: 8px; }
.license-plate::after { right: 8px; }
.license-plate__top {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: oklch(0.14 0.01 60);
  opacity: 0.7;
}
.license-plate__main {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  color: oklch(0.14 0.01 60);
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin: 2px 0;
}
.license-plate__bot {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: oklch(0.14 0.01 60);
  opacity: 0.7;
}

/* ============ LOGISTICS TICKER ============ */
.logistics-ticker {
  display: flex;
  align-items: center;
  background: oklch(0.1 0.008 60);
  color: var(--cream-50);
  border-block: 1px solid oklch(0.25 0.015 60);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.logistics-ticker__label {
  flex-shrink: 0;
  background: var(--accent);
  color: oklch(0.14 0.01 60);
  padding: 14px 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.logistics-ticker__track {
  display: flex;
  gap: 48px;
  padding: 14px 24px;
  animation: tickerSlide 60s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
[data-motion="off"] .logistics-ticker__track { animation: none; }
[data-motion="low"] .logistics-ticker__track { animation-duration: 120s; }
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logistics-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logistics-ticker__bullet {
  color: oklch(0.65 0.22 145);
  font-size: 8px;
}
