/* ==========================================================================
   Cómo funciona — La ruta del boleto
   Presentación scoped bajo .bd-how. Usa los tokens globales de gold.css.
   ========================================================================== */

.bd-how {
  overflow-x: clip;
  background: var(--lux-ink);
  color: var(--lux-body);
  font-family: var(--body-font);
}

.bd-how *,
.bd-how *::before,
.bd-how *::after {
  box-sizing: border-box;
}

.bd-how a {
  text-decoration: none;
}

.bd-how :where(a):focus-visible {
  outline: 2px solid var(--lux-gold-300);
  outline-offset: 3px;
}

.bd-how__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 01. Hero y controles ---------------------------------------------------- */

.bd-how__hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px);
  background: radial-gradient(58% 70% at 50% 0%, var(--lux-glow-gold), transparent 72%);
}

.bd-how__hero-inner {
  max-width: 58rem;
}

.bd-how__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--lux-gold-300);
  font-family: var(--lux-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.bd-how__eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--lux-gold-400);
}

.bd-how h1,
.bd-how h2,
.bd-how h3 {
  margin: 0;
  color: var(--lux-text);
  font-family: var(--lux-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.bd-how h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);
  line-height: 1.06;
}

.bd-how h1 em {
  background: var(--lux-gold-grad);
  background-clip: text;
  color: transparent;
  font-style: normal;
  -webkit-background-clip: text;
}

.bd-how__lede {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--lux-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.1875rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.bd-how__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bd-how__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.2s var(--lux-ease), opacity 0.2s var(--lux-ease);
}

.bd-how__button:hover {
  transform: translateY(-2px);
}

.bd-how__button--gold {
  background: var(--lux-gold-grad);
  box-shadow: var(--lux-gold-glow);
  color: var(--lux-ink);
}

.bd-how__button--ghost {
  border-color: var(--lux-line-strong);
  background: transparent;
  color: var(--lux-text);
}

.bd-how__button--ghost:hover {
  color: var(--lux-gold-300);
}

/* 02. Encabezado de sección ---------------------------------------------- */

.bd-how__route {
  position: relative;
  padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px);
  scroll-margin-top: 96px;
}

.bd-how__section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lux-line);
}

.bd-how__section-head h2,
.bd-how__band h2 {
  font-size: clamp(1.875rem, 1.45rem + 2.1vw, 2.75rem);
  line-height: 1.12;
}

.bd-how__section-head p:not(.bd-how__eyebrow):not(.bd-how__progress) {
  max-width: 56ch;
  margin: 12px 0 0;
  color: var(--lux-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.bd-how__progress {
  margin: 0 0 4px;
  color: var(--lux-muted);
  font-family: var(--lux-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-how__progress strong {
  color: var(--lux-gold-300);
  font-weight: 700;
  white-space: nowrap;
}

/* 03. Riel sticky --------------------------------------------------------- */

.bd-how__route-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.bd-how__rail {
  position: sticky;
  top: 104px;
  height: min(64vh, 520px);
  min-height: 340px;
}

.bd-how__rail-line,
.bd-how__rail-fill {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
}

.bd-how__rail-line {
  background: var(--lux-line-strong);
}

.bd-how__rail-fill {
  background: var(--lux-gold-grad);
  transform: scaleY(var(--bd-p, 1));
  transform-origin: top;
}

.bd-how__rail-marker {
  position: absolute;
  z-index: 2;
  top: calc(13px + (100% - 44px) * var(--bd-p, 1));
  left: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lux-gold-grad);
  box-shadow: var(--lux-gold-glow);
}

.bd-how__rail-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bd-how__rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--lux-muted);
  font-family: var(--lux-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s var(--lux-ease), opacity 0.2s var(--lux-ease);
}

.bd-how__rail-item i {
  display: block;
  flex: none;
  width: 36px;
  height: 8px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 4px;
  background: var(--lux-ink);
  box-shadow: 0 0 0 3px var(--lux-ink);
}

.bd-how__rail-item.is-done i {
  border-color: var(--lux-gold-400);
  background: var(--lux-gold-grad-soft);
}

.bd-how__rail-item.is-current {
  color: var(--lux-gold-300);
  font-weight: 700;
  transform: translateX(2px);
}

.bd-how__rail-item.is-current i {
  border-color: var(--lux-gold-300);
  background: var(--lux-gold-grad);
}

/* 04. Recorrido y nodos --------------------------------------------------- */

.bd-how__track {
  --bd-track-pad: clamp(28px, 3vw, 44px);
  --bd-track-center: 20px;
  position: relative;
  min-width: 0;
  padding-left: var(--bd-track-pad);
}

.bd-how__track-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.bd-how__track-base,
.bd-how__track-gold {
  fill: none;
  stroke-linecap: round;
}

.bd-how__track-base {
  stroke: var(--lux-line-strong);
  stroke-width: 2;
}

.bd-how__track-gold {
  stroke: url(#bd-how-gold-line);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--bd-p, 1));
}

.bd-how__stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  min-width: 0;
  padding-block: clamp(28px, 3vw, 44px);
}

.bd-how__stop + .bd-how__stop {
  border-top: 1px solid var(--lux-line);
}

.bd-how__node {
  position: absolute;
  top: clamp(36px, 4vw, 52px);
  left: calc(var(--bd-track-center) - var(--bd-track-pad) - 9px);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--lux-line-strong);
  border-radius: 50%;
  background: var(--lux-ink);
  transition: transform 0.3s var(--lux-ease), opacity 0.3s var(--lux-ease);
}

.bd-how__node::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lux-muted);
}

.bd-how__stop.is-done .bd-how__node {
  border-color: var(--lux-gold-400);
}

.bd-how__stop.is-done .bd-how__node::after {
  background: var(--lux-gold-400);
}

.bd-how__stop.is-current .bd-how__node {
  border-color: var(--lux-gold-300);
  box-shadow: var(--lux-gold-glow);
  transform: scale(1.15);
}

.bd-how__stop.is-current .bd-how__node::after {
  background: var(--lux-gold-300);
}

.bd-how__copy {
  min-width: 0;
}

.bd-how__step {
  display: block;
  margin-bottom: 12px;
  color: var(--lux-gold-400);
  font-family: var(--lux-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-how__stop h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.28rem + 1.1vw, 2rem);
  line-height: 1.15;
}

.bd-how__copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--lux-body);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.bd-how__copy ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.bd-how__copy li {
  position: relative;
  padding-left: 24px;
  color: var(--lux-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bd-how__copy li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lux-gold-grad);
  transform: rotate(45deg);
}

/* 05. Tarjetas de micro-visualización ----------------------------------- */

.bd-how__viz {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  background: var(--lux-surface);
  box-shadow: var(--lux-shadow), inset 0 1px 0 var(--lux-line);
  color: var(--lux-body);
}

.lux-js .bd-how .bd-how__viz {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--lux-ease-out-expo), transform 0.7s var(--lux-ease-out-expo);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__viz {
  opacity: 1;
  transform: none;
}

.bd-how__viz-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lux-text);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.bd-how__viz-label i {
  color: var(--lux-gold-300);
  font-size: 1.25rem;
}

.bd-how__viz-cap {
  margin: 16px 0 0;
  color: var(--lux-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.bd-how__viz-cap i {
  margin-right: 4px;
  color: var(--lux-emerald-300);
}

.bd-how__facts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.bd-how__fact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-body);
  font-size: 0.8125rem;
}

.bd-how__fact i {
  color: var(--lux-gold-300);
  font-size: 1.125rem;
}

.lux-js .bd-how .bd-how__fact {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--lux-ease), transform 0.5s var(--lux-ease);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__fact {
  opacity: 1;
  transform: none;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__fact:nth-child(2) {
  transition-delay: 0.12s;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__fact:nth-child(3) {
  transition-delay: 0.24s;
}

/* 06. Selección de números y confirmación -------------------------------- */

.bd-how__modes,
.bd-how__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-how__modes {
  margin-bottom: 16px;
}

.bd-how__modes span,
.bd-how__attachments span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 999px;
  color: var(--lux-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.bd-how__modes span:first-child {
  border-color: var(--lux-gold-400);
  background: var(--lux-gold-grad-soft);
  color: var(--lux-gold-300);
  font-weight: 700;
}

.bd-how__number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bd-how__number-grid > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-muted);
}

.bd-how__number-grid > span.is-selected {
  border-color: transparent;
  background: var(--lux-gold-grad);
  color: var(--lux-ink);
  font-weight: 700;
}

.bd-how__number-grid > span.is-unavailable {
  background: var(--lux-surface);
  color: var(--lux-muted);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__number-grid > span.is-selected {
  animation: bd-how-pick 0.7s var(--lux-ease-out-expo) both;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__number-grid > span.is-selected:nth-child(7) {
  animation-delay: 0.12s;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__number-grid > span.is-selected:nth-child(12) {
  animation-delay: 0.24s;
}

@keyframes bd-how-pick {
  from {
    opacity: 0.4;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bd-how__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--lux-line-strong);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-body);
  font-size: 0.8125rem;
}

.bd-how__phone span:first-child {
  padding-right: 12px;
  border-right: 1px solid var(--lux-line-strong);
  color: var(--lux-text);
  font-family: var(--lux-font-mono);
  font-weight: 700;
}

.bd-how__otp-label {
  margin-top: 16px;
  color: var(--lux-muted);
  font-size: 0.75rem;
}

.bd-how__otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.bd-how__otp span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 44px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 8px;
  background: var(--lux-surface-2);
}

.bd-how__otp span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lux-gold-300);
}

.lux-js .bd-how .bd-how__otp span {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--lux-ease), transform 0.4s var(--lux-ease);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span {
  opacity: 1;
  transform: none;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span:nth-child(2) { transition-delay: 0.06s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span:nth-child(3) { transition-delay: 0.12s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span:nth-child(4) { transition-delay: 0.18s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span:nth-child(5) { transition-delay: 0.24s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__otp span:nth-child(6) { transition-delay: 0.3s; }

/* 07. Pago y validación --------------------------------------------------- */

.bd-how__payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bd-how__shield {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lux-emerald-400);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-emerald-grad-soft);
  color: var(--lux-emerald-300);
  font-size: 1.375rem;
}

.lux-js .bd-how .bd-how__shield {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s var(--lux-ease-out-expo), transform 0.6s var(--lux-ease-out-expo);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__shield {
  opacity: 1;
  transform: none;
}

.bd-how__payment-rows {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.bd-how__payment-rows span {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lux-line);
  color: var(--lux-body);
  font-size: 0.8125rem;
}

.bd-how__payment-rows span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--lux-gold-300);
  font-weight: 700;
}

.bd-how__states {
  display: grid;
  gap: 8px;
}

.bd-how__state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-body);
  font-size: 0.8125rem;
}

.bd-how__state i {
  color: var(--lux-gold-300);
  font-size: 1.125rem;
}

.bd-how__state.is-review {
  border-color: var(--lux-gold-400);
  background: var(--lux-gold-grad-soft);
  color: var(--lux-gold-300);
  font-weight: 700;
}

.bd-how__state.is-approved {
  border-color: var(--lux-emerald-400);
  background: var(--lux-emerald-grad-soft);
  color: var(--lux-emerald-300);
  font-weight: 700;
}

.bd-how__state.is-approved i {
  color: var(--lux-emerald-300);
}

.lux-js .bd-how .bd-how__state {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--lux-ease), transform 0.5s var(--lux-ease);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__state {
  opacity: 1;
  transform: none;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__state:nth-child(2) { transition-delay: 0.16s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__state:nth-child(3) { transition-delay: 0.32s; }

/* 08. Sorteo y resultado -------------------------------------------------- */

.bd-how__draw {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.bd-how__ball {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 50%;
  background: var(--lux-surface-2);
  color: var(--lux-muted);
  font-size: 1.25rem;
}

.bd-how__ball.is-winner {
  border-color: transparent;
  background: var(--lux-gold-grad);
  box-shadow: var(--lux-gold-glow);
  color: var(--lux-ink);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__ball {
  animation: bd-how-settle 0.7s var(--lux-ease-out-expo) both;
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__ball:nth-child(2) { animation-delay: 0.1s; }
.lux-js .bd-how .bd-how__stop.is-in .bd-how__ball:nth-child(3) { animation-delay: 0.2s; }

@keyframes bd-how-settle {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bd-how__draw-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--lux-line-strong);
  color: var(--lux-muted);
  font-size: 0.75rem;
}

.bd-how__draw-labels span:last-child {
  color: var(--lux-gold-300);
  font-weight: 700;
}

.bd-how__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--lux-emerald-400);
  border-radius: 999px;
  background: var(--lux-emerald-grad-soft);
  color: var(--lux-emerald-300);
  font-size: 0.8125rem;
  font-weight: 700;
  transform: rotate(-2deg);
}

.lux-js .bd-how .bd-how__stamp {
  opacity: 0;
  transform: rotate(-2deg) scale(0.9);
  transition: opacity 0.6s var(--lux-ease-out-expo), transform 0.6s var(--lux-ease-out-expo);
}

.lux-js .bd-how .bd-how__stop.is-in .bd-how__stamp {
  opacity: 1;
  transform: rotate(-2deg) scale(1);
}

.bd-how__winner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.bd-how__winner-list span {
  padding: 12px 8px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* 09. Banda de cierre ----------------------------------------------------- */

.bd-how__band {
  padding-block: clamp(40px, 6vw, 80px);
}

.bd-how__band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-lg);
  background: radial-gradient(60% 90% at 88% 10%, var(--lux-glow-gold), transparent 68%), var(--lux-surface);
  box-shadow: var(--lux-shadow), inset 0 1px 0 var(--lux-line);
}

.bd-how__band-inner > * {
  min-width: 0;
}

.bd-how__band p:not(.bd-how__eyebrow) {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--lux-body);
  line-height: 1.7;
}

.bd-how__band .bd-how__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.bd-how__band-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--lux-gold-grad);
}

/* 10. Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .bd-how__route-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-how__rail {
    display: none;
  }

  .bd-how__stop {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-how__viz {
    max-width: 34rem;
  }

  .bd-how__band-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-how__band .bd-how__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .bd-how__section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .bd-how__progress {
    margin: 0;
  }

  .bd-how__track {
    --bd-track-pad: 32px;
    --bd-track-center: 16px;
  }

  .bd-how__track-svg {
    width: 32px;
  }

  .bd-how__band .bd-how__actions,
  .bd-how__hero .bd-how__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bd-how__button {
    width: 100%;
  }
}

/* 11. Movimiento reducido ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bd-how {
    --bd-p: 1 !important;
  }

  .bd-how *,
  .bd-how *::before,
  .bd-how *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .bd-how .bd-how__viz,
  .bd-how .bd-how__fact,
  .bd-how .bd-how__otp span,
  .bd-how .bd-how__shield,
  .bd-how .bd-how__state,
  .bd-how .bd-how__stamp {
    opacity: 1;
  }

  .bd-how .bd-how__viz,
  .bd-how .bd-how__fact,
  .bd-how .bd-how__otp span,
  .bd-how .bd-how__shield,
  .bd-how .bd-how__state,
  .bd-how .bd-how__stop.is-current .bd-how__node,
  .bd-how .bd-how__rail-item.is-current {
    transform: none;
  }

  .bd-how .bd-how__button:hover {
    transform: none;
  }
}

/* 19. Contacto: la mesa de ayuda de la ruta ---------------------------------
   Reusa el lenguaje de la ruta (oro + obsidian + esmeralda de confianza) y el
   contrato del formulario del tema. Todo bajo .bd-contact.
   ========================================================================== */
.bd-contact {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 88px);
}

.bd-contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--lux-gold-300);
  font-family: var(--lux-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bd-contact__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--lux-gold-400);
}

.bd-contact__title {
  max-width: 22ch;
  margin: 0 0 16px;
  color: var(--lux-text);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.bd-contact__lede {
  max-width: 58ch;
  margin: 0;
  color: var(--lux-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.1875rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.bd-contact__body {
  margin-top: clamp(28px, 3vw, 44px);
}

.bd-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.bd-contact__side,
.bd-contact__main {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.bd-contact__h2 {
  margin: 0;
  color: var(--lux-text);
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bd-contact__h3 {
  margin: 0 0 12px;
  color: var(--lux-text);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Canales del CMS */
.bd-contact__channels {
  display: grid;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  background: var(--lux-surface);
  box-shadow: var(--lux-shadow), inset 0 1px 0 var(--lux-line);
  overflow: hidden;
}

.bd-contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--lux-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--lux-ease), background 0.2s var(--lux-ease);
}

.bd-contact__channel:last-child {
  border-bottom: 0;
}

a.bd-contact__channel:hover {
  transform: translateX(3px);
  background: var(--lux-surface-2);
}

.bd-contact__channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  background: var(--lux-gold-grad-soft);
  color: var(--lux-gold-300);
  font-size: 1.125rem;
  transition: background 0.24s var(--lux-ease), color 0.24s var(--lux-ease), box-shadow 0.24s var(--lux-ease);
}

a.bd-contact__channel:hover .bd-contact__channel-icon {
  background: var(--lux-gold-grad);
  color: var(--lux-ink);
  box-shadow: var(--lux-gold-glow);
}

.bd-contact__channel-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bd-contact__channel-copy b {
  color: var(--lux-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.bd-contact__channel-copy span {
  color: var(--lux-muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.bd-contact__channels-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  background: var(--lux-surface);
  color: var(--lux-muted);
  font-size: 0.875rem;
}

.bd-contact__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  background: var(--lux-surface);
  box-shadow: var(--lux-shadow);
}

.bd-contact__media img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 575 / 620;
  object-fit: cover;
  object-position: center 30%;
}

/* Qué pasa después de enviar */
.bd-contact__after {
  padding: 18px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  background: linear-gradient(160deg, var(--lux-surface-2), var(--lux-surface));
  box-shadow: var(--lux-shadow), inset 0 1px 0 var(--lux-line);
}

.bd-contact__flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bd-flow;
}

.bd-contact__flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--lux-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.bd-contact__flow-node i {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 50%;
  background: var(--lux-surface-2);
  color: var(--lux-gold-300);
  font-family: var(--lux-font-mono);
  font-size: 0.625rem;
  font-style: normal;
}

.bd-contact__flow-node:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -12px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--lux-line-strong);
}

.bd-contact__note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--lux-radius);
  background: var(--lux-emerald-grad-soft);
  color: #a7f3d0;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.bd-contact__note i {
  margin-top: 2px;
  color: var(--lux-emerald-300);
  font-size: 1rem;
}

/* Chips de estación */
.bd-contact__station {
  display: grid;
  gap: 10px;
}

.bd-contact__label {
  color: var(--lux-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-contact__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--lux-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s var(--lux-ease), border-color 0.2s var(--lux-ease), background 0.2s var(--lux-ease), transform 0.2s var(--lux-ease);
}

.bd-contact__chip i {
  color: var(--lux-faint);
  font-family: var(--lux-font-mono);
  font-size: 0.625rem;
  font-style: normal;
}

.bd-contact__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--lux-text);
}

.bd-contact__chip[aria-pressed="true"] {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--lux-gold-grad-soft);
  color: var(--lux-gold-300);
  font-weight: 700;
}

.bd-contact__chip[aria-pressed="true"] i {
  color: var(--lux-gold-400);
}

.bd-contact__hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: opacity 0.24s var(--lux-ease), transform 0.24s var(--lux-ease);
}

.bd-contact__hint::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 2px;
  background: var(--lux-gold-grad);
  transform: rotate(45deg);
}

.bd-contact__hint.is-swap {
  opacity: 0;
  transform: translateY(4px);
}

/* Tarjeta del formulario */
.bd-contact__card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-lg);
  background: var(--lux-surface);
  box-shadow: var(--lux-shadow), inset 0 1px 0 var(--lux-line);
}

.bd-contact__card-title {
  margin: 0 0 6px;
  color: var(--lux-text);
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bd-contact__card-lede {
  margin: 0 0 20px;
  color: var(--lux-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.bd-contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bd-contact__field {
  min-width: 0;
  margin: 0;
}

.bd-contact__field--full {
  grid-column: 1 / -1;
}

.bd-contact__form .form-control.form--control {
  min-height: 48px;
  border: 1px solid var(--lux-line-strong);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-surface-2);
  color: var(--lux-text);
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--lux-ease), box-shadow 0.2s var(--lux-ease), background 0.2s var(--lux-ease);
}

.bd-contact__form .form-control.form--control::placeholder {
  color: var(--lux-muted-2);
}

.bd-contact__form .form-control.form--control:focus {
  border-color: rgba(245, 158, 11, 0.5);
  background: #0f1620;
  box-shadow: var(--lux-gold-glow);
  outline: none;
}

.bd-contact__form textarea.form-control.form--control {
  min-height: 138px;
  resize: vertical;
}

.bd-contact__form select.form-control.form--control {
  cursor: pointer;
}

/* El bloque de captcha del tema trae margen propio hacia abajo pero no hacia
   arriba: se le da respiro para que no quede pegado al textarea anterior. */
.bd-contact__form > .form-group {
  margin-top: 18px;
}

.bd-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.bd-contact__actions small {
  max-width: 32ch;
  color: var(--lux-faint);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Preguntas */
.bd-contact__faq {
  display: grid;
  gap: 0;
}

.bd-contact__faq .bd-contact__h2 {
  margin-bottom: 10px;
}

.bd-contact__acc-item {
  border-bottom: 1px solid var(--lux-line);
}

.bd-contact__acc-heading {
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
}

.bd-contact__acc-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 16px 2px;
  border: 0;
  background: none;
  color: var(--lux-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--lux-ease);
}

.bd-contact__acc-btn:hover {
  color: var(--lux-gold-300);
}

.bd-contact__acc-btn > span[aria-hidden="true"]:first-child {
  color: var(--lux-faint);
  font-family: var(--lux-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.bd-contact__acc-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid var(--lux-line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--lux-ease), border-color 0.3s var(--lux-ease), background 0.3s var(--lux-ease);
}

.bd-contact__acc-icon::before,
.bd-contact__acc-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--lux-muted);
  transition: transform 0.3s var(--lux-ease), background 0.3s var(--lux-ease);
}

.bd-contact__acc-icon::before {
  width: 12px;
  height: 2px;
}

.bd-contact__acc-icon::after {
  width: 2px;
  height: 12px;
}

.bd-contact__acc-item.is-open .bd-contact__acc-icon {
  transform: rotate(90deg);
  border-color: rgba(245, 158, 11, 0.5);
  background: var(--lux-gold-grad-soft);
}

.bd-contact__acc-item.is-open .bd-contact__acc-icon::before,
.bd-contact__acc-item.is-open .bd-contact__acc-icon::after {
  background: var(--lux-gold-300);
}

.bd-contact__acc-item.is-open .bd-contact__acc-icon::after {
  transform: scaleY(0);
}

.bd-contact__acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--lux-ease);
}

.bd-contact__acc-item.is-open .bd-contact__acc-panel {
  grid-template-rows: 1fr;
}

.bd-contact__acc-inner {
  overflow: hidden;
}

.bd-contact__acc-inner p {
  max-width: 70ch;
  margin: 0;
  padding: 0 44px 20px 34px;
  color: var(--lux-body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .bd-contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-contact__main {
    order: -1;
  }
}

@media (max-width: 640px) {
  .bd-contact__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-contact__chip {
    width: 100%;
    justify-content: flex-start;
  }

  .bd-contact__actions .btn {
    width: 100%;
  }

  .bd-contact__acc-inner p {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-contact *,
  .bd-contact *::before,
  .bd-contact *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bd-contact__channel:hover,
  .bd-contact__chip:hover {
    transform: none;
  }

  .bd-contact__hint.is-swap {
    opacity: 1;
    transform: none;
  }
}
