.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  position: relative;
}
/* Estilo base (celulares por defecto) */
.steps .step {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  width: 5rem;
  position: relative;
  margin-right: 2rem; /* separación entre pasos */
  width: inherit;
}


/* Elimina margen en el último paso */
.steps .step:last-child {
  margin-right: 0;
}

/* Línea que conecta al siguiente paso */
.steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34%;
  left: 77%;
  width: 8rem;
  height: 2px;
  background-color: #adb5bd;
  transform: translateY(-50%);
  z-index: 0;
}

/* Estilo para tabletas y monitores */
@media (min-width: 768px) {
  .steps .step {
    margin-right: 6rem; /* más espacio entre pasos */
    width: inherit; /* mayor tamaño del paso */
  }

  .steps .step:not(:last-child)::after {
    width: 10rem;
  }
}

/* Círculo */
.step-circle {
  position: relative;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  text-align: center;
  color: #adb5bd;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  background-color: #fff;
  font-size: 2rem;
  z-index: 1;
}

/* Texto debajo del círculo */
.step-text {
  color: #adb5bd;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  word-break: break-word;
  max-width: 100%;
  display: block;
  font-size: 1.5rem;
}

/* Estados visuales */
.step-active .step-circle {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}

.step-active .step-text {
  color: #337ab7;
}

.step-error .step-circle {
  color: #fff;
  background-color: #d9534f;
  border-color: #d9534f;
}

.step-error .step-text {
  color: #d9534f;
}

.step-success .step-circle {
  color: #5cb85c;
  background-color: #fff;
  border-color: #5cb85c;
}

.step-success .step-text {
  color: #5cb85c;
}