/* Experiencia: regiones a un lado y mapa de Chile al otro (visión inmediata de la ubicación). */
.experience {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: var(--ink-950);
}

.experience__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.experience__lead {
  max-width: 46ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
}

.places {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.place {
  position: relative;
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.9375rem;
  transition: background-color 0.35s var(--ease);
}

.place span {
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Barra de avance del recorrido automático */
.place::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.place.is-active {
  background: rgb(232 136 43 / 0.08);
}

.place.is-active::after {
  animation: place-progress var(--place-duration, 3s) linear forwards;
}

.places.is-paused .place.is-active::after {
  animation-play-state: paused;
}

@keyframes place-progress {
  to { transform: scaleX(1); }
}

.experience__map {
  height: min(82svh, 46rem);
  aspect-ratio: 260 / 1000;
  margin-inline: auto;
}

.experience__map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-region {
  fill: var(--ink-800);
  stroke: var(--ink-950);
  stroke-width: 0.6;
  transition: fill 0.5s var(--ease);
}

.map-region--active {
  fill: var(--teal);
}

.map-region.is-active {
  fill: var(--orange);
}

.map-point__dot {
  fill: var(--white);
}

.map-point__pulse {
  fill: none;
  stroke: var(--white);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.map-point.is-active .map-point__pulse {
  animation: map-pulse 1.4s var(--ease) infinite;
}

@keyframes map-pulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(2.8); opacity: 0; }
}

@media (min-width: 64em) {
  .experience__grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

@media (max-width: 63.99em) {
  .experience__map {
    order: -1;
    height: 60svh;
  }
}
