.prev:disabled {
    visibility: hidden;
}

.container-step {
  margin-block: auto;
  width: min(100%);
  display: grid;
  gap: 50px;
}

.progress-container {
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #eee;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.progress {
  width: 100%;
  height: 100%;
  background: coral;
  transform: scaleX(0);
  transform-origin: 0;
  transition: 0.3s;
}

.steps {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
}

.step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: 0.3s all 0.3s;
  transform: none;
  position: relative;
}

.step .label {
  position: absolute;
  top: 60px;
  width: max-content;
  max-width: 150px; /* límite para no romper */
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  white-space: normal;
}

.step.active {
  background: coral;
  color: #fff;
}

.step.active:not(:first-child) {
  animation: pulsate 0.3s ease-in-out 0.3s;
}

@keyframes pulsate {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

.nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-buttons button {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: crimson;
  color: #fff;
  padding: 8px 16px;
  font-size: 1rem;
}

.nav-buttons button:disabled {
  background: lightcoral;
  cursor: not-allowed;
}

.step-content {
    margin-top: 20px;
}

.content {
    display: none;
    animation: fade 0.3s ease;
}

.content.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

label.error{
	color: #C10000;
	font-size: 0.9em;
	line-height: 18px;
	padding: 5px 0 0;
	visibility: hidden;
}
