/* Pace – transición entre menús (limpia y discreta) */

.pace {
  -webkit-pointer-events: auto;
  pointer-events: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  inset: 0;
  position: fixed;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999 !important;
  cursor: progress;
}

.pace-inactive {
  visibility: hidden;
  opacity: 0;
  pointer-events: none !important;
  -webkit-transition: opacity 280ms ease, visibility 280ms ease;
  transition: opacity 280ms ease, visibility 280ms ease;
}

/* Barra superior fina – verde oscuro Dudu */
.pace .pace-progress {
  background: #e11d48;
  position: fixed;
  z-index: 9999998;
  top: 0;
  right: 100%;
  width: 100%;
  height: 2px;
}

.pace .pace-progress-inner {
  display: none;
}

/* Centro: anillo + icono */
.pace .pace-activity {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
  content: none;
  pointer-events: none;
}

.pace .pace-activity::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(89, 182, 177, 0.22);
  border-top-color: #59b6b1;
  animation: dudu-pace-spin 0.85s linear infinite;
}

.pace .pace-activity::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: url('../images/icon-dudu.svg') center / contain no-repeat;
  opacity: 0.9;
}

@keyframes dudu-pace-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bloqueo total mientras corre */
body.pace-running {
  overflow: hidden !important;
  cursor: progress;
}

body.pace-running main,
body.pace-running .side-nav,
body.pace-running .container {
  pointer-events: none !important;
}

body.pace-running::after {
  content: "";
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 99998;
  cursor: progress;
}
