/* TsBot War — «Empieza tu guerra» (#/start) y el flujo de compra: elegir plan, la guerra, quién paga, la pantalla de
   pago y «pagado». Mismo aspecto que la maqueta aprobada del cobro (tarjetas de plan, pasos numerados, píldoras de
   estado), con los colores y las tipografías de app.css. Nada remoto. Regla de la casa: ningún texto se sale de su
   caja (todo lo que lleva texto puede encogerse y partir línea) y a ancho de teléfono las columnas se apilan. */
.wa-page.wb { max-width: 1080px; gap: 36px; }
.wb-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.wb-hero .wa-h1, .wb-hero .wa-lead, .wb-sec .wa-h2, .wb-how .wa-h2, .wb-gate .wa-h1, .wb-gate .wa-lead, .wb-pay .wa-h2 { overflow-wrap: anywhere; }
.wb-hero .wa-h1 { max-width: 760px; }
.wb-badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-bg); color: var(--coral-soft); font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.wb-badge.wait { border-color: var(--amber); background: rgba(232, 184, 74, .08); color: var(--amber-soft); }
.wb-badge.ok { border-color: rgba(62, 207, 142, .5); background: rgba(62, 207, 142, .08); color: var(--green-soft); }
.wb-badge i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: wb-pulse 1.8s ease-in-out infinite; }
@keyframes wb-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.wb-cta { gap: 12px; margin-top: 6px; max-width: 100%; }
/* un botón con un texto largo (ES / PT) parte línea antes que salirse de la pantalla */
.wb .wa-btn { max-width: 100%; min-width: 0; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }
.wb .wa-btn.sm { padding-top: 4px; padding-bottom: 4px; }
.wb-sec { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ── planes ── */
.wb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.wb-plan { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--card-line); border-radius: 14px;
  background: linear-gradient(180deg, #0f1922, #0b1118); transition: border-color .2s, box-shadow .2s, transform .2s; }
.wb-plan:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 188, 214, .35), 0 0 50px rgba(0, 124, 153, .25); transform: translateY(-2px); }
.wb-plan.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 188, 214, .35), 0 0 50px rgba(0, 124, 153, .25); }
.wb-plan .tag { position: absolute; top: -10px; right: 16px; max-width: calc(100% - 32px); padding: 4px 8px; border-radius: 6px; background: var(--cyan); color: var(--bg);
  font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.wb-plan h3 { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.wb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.wb-price b { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1; color: var(--strong); }
.wb-price span { font-size: 13px; color: var(--muted); }
.wb-price s { font-size: 15px; color: var(--muted-2); }
.wb-plan ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--soft); }
.wb-plan li { position: relative; min-width: 0; padding-left: 20px; overflow-wrap: anywhere; }
.wb-plan li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); }
.wb-plan li.no { color: var(--muted-2); }
.wb-plan li.no::before { content: "\2013"; color: var(--muted-2); }
.wb-plan .wa-btn { margin-top: auto; }

/* ── pasos numerados (cómo es la compra, y la pantalla de pago) ── */
.wb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.wb-steps.col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wb-step { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.wb-step .k, .wb-num .k { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--teal-line);
  border-radius: 50%; background: var(--teal-deep); color: var(--cyan-soft); font: 600 13px/1 var(--mono); }
.wb-step .t { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.wb-step .t strong { color: var(--strong); font-weight: 600; }
.wb-step .t .wa-btn.pri { align-self: flex-start; margin-top: 4px; }
.wb-noted { border-color: rgba(62, 207, 142, .5); }
.wb-noted span { min-width: 0; overflow-wrap: anywhere; }
.wb-foot { font-size: 13px; }
.wb-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ── el formulario: plan, guerra y quién paga ── */
.wb-form { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.wb-num { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.wb-sum { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--teal-line);
  border-radius: 12px; background: var(--teal-deep); color: var(--soft); overflow-wrap: anywhere; }
.wb-sum b { font-family: var(--display); font-size: 26px; color: var(--strong); white-space: nowrap; }

.wb-wl { align-items: center; flex-wrap: wrap; }
.wb-wl span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }

/* ── la pantalla de pago ── */
.wb-pay { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 760px; min-width: 0; }
.wb-val { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--bg);
  color: var(--text); overflow-wrap: anywhere; }
.wb-val.ok { border-color: rgba(62, 207, 142, .55); }
.wb-amount { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; border: 1px solid var(--teal-line); border-radius: 12px;
  background: var(--teal-deep); min-width: 0; }
.wb-amount b { font-family: var(--display); font-size: 30px; color: var(--strong); white-space: nowrap; }
.wb-amount span { color: var(--soft); }
.wb-amount .mono { color: var(--cyan-soft); font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.wb-confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-bg); }
.wb-confirm .wa-hint { color: var(--soft); }

/* ── pagado, caducada, lista de espera ── */
.wb-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; max-width: 640px; min-width: 0; margin: 0 auto; }
.wb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.wb-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
  overflow-wrap: anywhere; }
.wb-fact b { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--strong); }
.wb-fact span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .wb-plans, .wb-steps, .wb-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wa-page.wb { gap: 26px; }
  .wb-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .wb-cta .wa-btn { width: 100%; }
  .wb-cta .wb-badge { align-self: flex-start; }
  .wb-step .t .wa-btn.pri { align-self: stretch; }
  .wb-plan { padding: 18px; }
  .wb-price b { font-size: 34px; }
  .wb-amount b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-badge i { animation: none; }
  .wb-plan { transition: none; }
  .wb-plan:hover { transform: none; }
}
