.stepper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  padding: 0 1rem;
}

.circle {
  width: 60px;  /* Aumento de tamaño */
  height: 60px;  /* Aumento de tamaño */
  border-radius: 50%;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;  /* Aumento del tamaño del icono */
  color: #6c757d;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.step.active .circle {
  background-color: #198754;
  color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 0 8px rgba(25, 135, 84, 0.2);
}

.label {
  margin-top: 0.7rem;
  font-size: 16px;  /* Aumento de tamaño */
  font-weight: 600;
  color: #343a40;
}

/* Línea horizontal continua y destacada */
.step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 3px;  /* Grosor de la línea */
  background-color: #dee2e6;
  z-index: 0;
  transform: translateX(-50%);
}

.step.active::after {
  background-color: #198754;
}

/* Ocultar la línea para el último paso */
.step:last-child::after {
  display: none;
}

/* Mejoras de responsividad */
@media (max-width: 768px) {
  .stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  .circle {
    width: 50px;  /* Ajuste en pantallas pequeñas */
    height: 50px;  /* Ajuste en pantallas pequeñas */
    font-size: 1.7rem;  /* Ajuste en pantallas pequeñas */
  }

  .label {
    margin-top: 0.5rem;
    font-size: 14px;
  }

  /* Sin línea para pantallas pequeñas */
  .step::after {
    display: none;
  }
}