/* ==========================================================
   SUPER CARS — PROCESS MOTION
========================================================== */

body.page-template-page-proceso .page-hero {
  overflow: hidden;
}

body.page-template-page-proceso .page-hero-bg {
  transform: scale(1.06);
  animation: sciProcessHero 14s ease-out forwards;
}

.road-section {
  position: relative;
  overflow: hidden;
}

.road-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 52%,
      rgba(201,168,76,.10),
      transparent 42%
    );
  opacity: 0;
  transition: opacity 1s ease;
}

body.sci-process-motion-active .road-section::before {
  opacity: 1;
}

.proc-stats .ps-item {
  opacity: 0;
  transform: translateY(22px);
}

body.sci-process-motion-active .proc-stats .ps-item {
  animation: sciProcessStat .7s ease forwards;
}

body.sci-process-motion-active .proc-stats .ps-item:nth-child(1) {
  animation-delay: .05s;
}

body.sci-process-motion-active .proc-stats .ps-item:nth-child(2) {
  animation-delay: .14s;
}

body.sci-process-motion-active .proc-stats .ps-item:nth-child(3) {
  animation-delay: .23s;
}

body.sci-process-motion-active .proc-stats .ps-item:nth-child(4) {
  animation-delay: .32s;
}

.road-track-wrap {
  opacity: 0;
  transform: translateY(44px) scale(.985);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.22,.8,.28,1);
}

body.sci-process-motion-active .road-track-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.road-hint {
  animation: sciProcessHint 2.3s ease-in-out infinite;
}

#roadProgress {
  filter: drop-shadow(0 0 8px rgba(201,168,76,.38));
}

#carGroup {
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.55));
}

#cpCircle1,
#cpCircle2,
#cpCircle3,
#cpCircle4,
#cpCircle5,
#cpCircle6,
#cpCircle7 {
  transform-box: fill-box;
  transform-origin: center;
  animation: sciProcessNode 2.8s ease-in-out infinite;
}

#cpCircle2 { animation-delay: .18s; }
#cpCircle3 { animation-delay: .36s; }
#cpCircle4 { animation-delay: .54s; }
#cpCircle5 { animation-delay: .72s; }
#cpCircle6 { animation-delay: .90s; }
#cpCircle7 { animation-delay: 1.08s; }

.sci-process-replay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin: 18px auto 28px;
  padding: 0 24px;
  border: 1px solid rgba(201,168,76,.55);
  background: transparent;
  color: #c9a84c;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color .25s ease,
    color .25s ease,
    transform .25s ease;
}

.sci-process-replay::before {
  content: "↻";
  font-size: 16px;
  line-height: 1;
}

.sci-process-replay:hover {
  background: #c9a84c;
  color: #111;
  transform: translateY(-2px);
}

@keyframes sciProcessHero {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@keyframes sciProcessStat {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sciProcessHint {
  0%,
  100% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sciProcessNode {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 768px) {
  .sci-process-replay {
    min-height: 40px;
    margin-bottom: 20px;
    padding: 0 18px;
    font-size: 9px;
  }

  .road-track-wrap {
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-proceso .page-hero-bg,
  .road-hint,
  #cpCircle1,
  #cpCircle2,
  #cpCircle3,
  #cpCircle4,
  #cpCircle5,
  #cpCircle6,
  #cpCircle7 {
    animation: none !important;
  }

  .proc-stats .ps-item,
  .road-track-wrap {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
