/* ============================================
   STEPPER (bm-stepper) - CENTRADO Y SIN SOLAPES
   ============================================ */

.bm-stepper {
  /* ✅ en vez de fixed: se mantiene arriba, pero NO sale del flujo */
  position: sticky;
  top: 0;

  z-index: 5;
  background: #fff;

  /* “card look” */
  padding: 18px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);

  /* ✅ centrado perfecto dentro del dialog */
  width: calc(100% - 40px);
  max-width: 980px;
  margin: 18px auto 18px auto;

  /* layout interno */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  user-select: none;
}

/* ✅ IMPORTANTE: si tu dialog content tiene overflow, sticky necesita esto */
md-dialog-content,
.bm-dialog-content {
  position: relative;
  overflow-y: auto;
}

/* Ya NO hace falta compensar el contenido por padding-top para fixed */
/* Dejalo en 0 para evitar espacios raros */
.bm-dialog-content {
  padding-top: 0 !important;
}

.bm-dialog-content > * {
  margin-top: 0 !important;
}

/* ============================================
   Pasos / Estados (mantengo tu look rosa)
   ============================================ */

.bm-stepper .bm-step {
  position: relative;
  display: flex;
  align-items: center;
  color: #9e9e9e;
}

.bm-stepper .bm-step .circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 2px solid #ec407a;
  color: #ec407a;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 10px;
  padding: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bm-stepper .bm-step .circle.clickable:hover {
  background: #ffe6ef;
  box-shadow: 0 2px 8px rgba(236, 64, 122, 0.25);
}

.bm-stepper .bm-step .label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  margin-right: 16px;
}

.bm-stepper .bm-step.is-active .circle {
  background: #ec407a;
  color: #fff;
  border-color: #ec407a;
}

.bm-stepper .bm-step.is-completed .circle {
  background: #f06292;
  color: #fff;
  border-color: #f06292;
}

/* Conector */
.bm-stepper .connector {
  width: 80px;
  height: 4px;
  background: #f3bfd0;
  border-radius: 2px;
  overflow: hidden;
  margin-left: 12px;
  margin-right: 4px;
}

.bm-stepper .connector .bar {
  height: 100%;
  background: #ec407a;
  border-radius: 2px;
  width: 0%;
  transition: width .25s ease;
}

/* md-icon dentro del círculo */
.bm-stepper .bm-step .circle md-icon {
  font-size: 18px;
  line-height: 18px;
  width: 18px;
  height: 18px;
}
