/* Contenedor principal del formulario por pasos */
.step-form {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 8px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
  margin: 20px auto;
  position: relative;
}

/* Indicadores de paso */
.steps-indicator {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 20px 0;
  margin-inline: auto;
}

.steps-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ddd;
  z-index: 0;
  transform: translateY(-50%);
}

.steps-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background-color: #4caf50;
  z-index: 0;
  transform: translateY(-50%);
  width: var(--progress-width, 0%);
  /* Aquí usamos la variable CSS */
  transition: width 0.5s ease;
}

/* Paso individual */
.step {
  position: relative;
  z-index: 1;
  width: 75px;
  height: 75px;
  background-color: #ddd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s;
}

.step.completed {
  background-color: #4caf50;
  color: transparent;
  /* Esconde el número original */
}

.step.completed::before {
  content: "✓";
  font-size: 18px;
  color: white;
  position: absolute;
}

.step:not(.completed)::before {
  content: none;
  /* Evita mostrar el símbolo si no tiene la clase */
}

.step.active {
  background: #007bff;
  color: white;
}

.step.disabled {
  pointer-events: none;
  /* Deshabilita completamente la interacción */
  color: #aaa;
  cursor: not-allowed;
  background-color: #e0e0e0;
}

.step.disabled.completed {
  pointer-events: none;
  /* Deshabilita completamente la interacción */
  color: transparent;
  cursor: not-allowed;
  background-color: #4caf50;
}



/* Contenedor de pasos */
.steps-container {
  display: flex;
  transition: transform 0.6s ease-in-out;
  /* width: 400%; */
  /* Depende del número de pasos */
  position: relative;
  overflow: hidden;
  /* Oculta el contenido que sale del contenedor */
  height: 100%;
  /* Ajusta según tus necesidades */
}


.step-panel {
  position: absolute;
  top: 0;
  left: 100%;
  /* Fuera de la vista inicialmente */
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
  /* Efecto de transición */
  opacity: 0;
  z-index: 0;
}

.step-panel.active {
  left: 0;
  /* Panel visible */
  opacity: 1;
  z-index: 1;
  position: relative;
  /* Para que ocupe espacio en el flujo */
}

.step-panel.previous {
  left: -100%;
  /* Panel desplazado hacia la izquierda */
  opacity: 0;
  z-index: 0;
}

/* Botones de navegación */
.navigation {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #f5f5f5;
}

button.prev-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #6c757d;
  color: white;
  margin-right: auto;
  /* Envía este botón hacia la izquierda */
}

button.next-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #007bff;
  color: white;
  margin-left: auto;
  /* Envía este botón hacia la derecha */
}

.next-btn,
.prev-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.next-btn:hover,
.prev-btn:hover {
  background-color: #0056b3;
}

.next-btn:disabled,
.prev-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.next-btn,
.prev-btn {
  visibility: visible;
}

.next-btn.hidden,
.prev-btn.hidden {
  visibility: hidden;
}