/* Wizard de alta de taller (Fase 2 — onboarding SaaS). Complementa style.css. */

.registro-container {
  width: 92%;
  max-width: 480px;
}
.registro-box {
  gap: 0.75rem;
}

/* Indicador de pasos */
.registro-steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
}
.registro-steps li {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  font-weight: 600;
}
.registro-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #777;
  margin-right: 0.3rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.registro-steps li.is-active { color: #3a7bd5; }
.registro-steps li.is-active span { background: #3a7bd5; color: #fff; }

/* Pasos */
.registro-step { display: none; flex-direction: column; gap: 0.5rem; }
.registro-step.is-active { display: flex; }

.registro-row {
  display: flex;
  gap: 0.75rem;
}
.registro-row > div { flex: 1; }
.registro-row input { width: 100%; }

/* Honeypot anti-bot: fuera de la vista y del foco */
.registro-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Navegación entre pasos */
.registro-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.login-box .registro-nav button {
  width: auto;
  flex: 1;
  padding: 0.85rem 1rem;
}
.login-box .registro-prev {
  background: transparent;
  color: #3a7bd5;
  border: 1px solid #3a7bd5;
  flex: 0 0 auto;
  min-width: 90px;
}
.login-box .registro-prev:hover { background: rgba(58, 123, 213, 0.1); transform: none; }
.registro-link {
  color: #3a7bd5;
  text-decoration: none;
  font-size: 0.85rem;
  align-self: center;
}
.registro-link:hover { text-decoration: underline; }

/* Resumen */
.registro-resumen-titulo { text-align: left !important; font-weight: 600; margin: 0; }
.registro-resumen {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}
.registro-resumen li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.registro-resumen li span { color: #777; }
.registro-resumen li strong { text-align: right; word-break: break-word; }

.registro-terminos {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  margin-top: 0.25rem;
}
.registro-terminos input { width: auto; margin-top: 0.2rem; }
.registro-info {
  font-size: 0.82rem;
  color: #777;
  text-align: left !important;
  margin: 0;
}
.registro-msg { margin: 0; }

/* Panel de éxito */
.registro-exito { text-align: center; align-items: center; }
.registro-exito-icon { font-size: 3rem; color: #27ae60; line-height: 1; }
.registro-exito-acciones {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  gap: 0.75rem;
}
.registro-link-manual {
  width: 100%;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 0.5rem 0 0;
}
.registro-link-manual a {
  display: inline-block;
  margin-top: 0.35rem;
}
.registro-volver {
  display: inline-block;
  margin-top: 0.5rem;
  color: #3a7bd5;
  font-weight: 700;
  text-decoration: none;
}
.registro-volver:hover { text-decoration: underline; }

/* Modo oscuro */
body.dark-mode .registro-steps li { color: #888; }
body.dark-mode .registro-steps li span { background: #2a2f3a; color: #aaa; }
body.dark-mode .registro-steps li.is-active { color: #6ea8fe; }
body.dark-mode .registro-steps li.is-active span { background: #3a7bd5; color: #fff; }
body.dark-mode .registro-resumen { background: rgba(255, 255, 255, 0.06); }
body.dark-mode .registro-resumen li span { color: #aaa; }
body.dark-mode .registro-terminos { color: #ccc; }
body.dark-mode .registro-info { color: #999; }
body.dark-mode .login-box .registro-prev { color: #6ea8fe; border-color: #6ea8fe; }
body.dark-mode .registro-link,
body.dark-mode .registro-volver { color: #6ea8fe; }

@media (max-width: 480px) {
  .registro-row { flex-direction: column; gap: 0.5rem; }
  .registro-steps li { font-size: 0.7rem; }
}
