/* layout y transiciones */
:root {
  --wizard-width: 100dvw;
  --wizard-height: 100dvh;

  --desktop-nav-height: 112px;
  --mobile-top-nav-height: 64px;

  --color-bg-default: var(--color-n0);
}

#wizard {
  overflow: hidden;
  width: var(--wizard-width);
  height: var(--wizard-height);
  position: relative;
}

.steps-track,
.step-box,
.step-content,
.substep {
  height: 100%;
  width: 100%;
}

.steps-track {
  display: flex;
  /* width: fit-content; */
}

.step-box {
  flex-shrink: 0;
  transition: transform .7s ease-in-out;
}

.step-box.next-step,
.step-box.prev-step {
  z-index: -1;
  position: absolute;
}


/* efecto swipe para mobile */
.wizard.swipe .step-box.next-step {
  transform: translateX(var(--wizard-width));
  z-index: 99;
}

.wizard.swipe .step-box.prev-step {
  transform: translateX(calc(var(--wizard-width) * -1));
}

.wizard.swipe .step-box.show {
  z-index: 1;
  transform: translateX(0);
}

/* efecto fade para desktop */
.wizard.fade .step-box.next-step {
  z-index: -1;
}

.wizard.fade .step-box.show {
  z-index: 1;
}

.wizard.fade .step-box {
  opacity: 1;
  transition: opacity .3s ease-in-out;
}

.wizard.fade .step-box.fadeOut {
  opacity: 0;
}

.step {
  height: 100%;
  width: 100%;
}

.step-content.behind {
  overflow: hidden;
}

.step-content,
.substep {
  background: var(--color-bg-default);
}

.substep {
  background: var(--color-bg-default);
  position: absolute;
  height: 100dvh;
  width: 100vw;
  left: 0;
  padding-top: 0;
  transform: translateY(100vh);
  transition: transform .5s ease-in-out;
  z-index: 999;
}

.substep.show {
  transform: translateY(0);
  overflow-y: auto;
  z-index: 9999;
}