/* abonar-styles.css — Flujo "Abonar a mi boleta"
   Diseñado para adultos mayores: tipografía grande, espaciado generoso,
   contraste alto, hit-targets ≥ 56px. */

:root {
  /* Reutilizamos la paleta del hub principal */
  --black-900: #0A0A0A;
  --black-800: #1A1A1A;
  --black-700: #2A2A2A;
  --gray-500: #555555;
  --gray-300: #C9C7BE;
  --gray-200: #E5E3DA;
  --gray-100: #EEEEEE;

  --cream-50:  #FAFAF7;
  --cream-100: #F2F1EC;
  --cream-200: #E5E3DA;

  --mint: #9BFAB0;
  --mint-light: #C4FBD0;
  --mint-dark: #6FE08C;

  --ink: #0A0A0A;
  --ink-soft: #2E2E2E;
  --ink-mute: #6E6E6E;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  --danger: #B83227;
  --success: #1B7A3E;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);

  /* Tipografía de marca = Inter (estilo Apple/SF Pro) en TODO. Antes --serif era
     Cormorant Garamond (serif clásica) y rompía la consistencia con home/canales/ganadores. */
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  font-size: 19px; /* alineado a la escala del home; los inputs (tel/monto) quedan más grandes aparte para adultos mayores */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ─── Shell ─── */
.abonar {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 120px;
  position: relative;
  min-height: 100vh;
  background: var(--cream-50);
}

/* ─── Top bar (negro full-width) ─── */
.ab-topbar {
  background: var(--black-900);
  /* Sale del padre (max-width 480px) y se extiende a todo el viewport.
     El padding lateral crece en pantallas anchas para mantener el contenido
     centrado en la columna de 480px. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 16px max(18px, calc(50vw - 240px));
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ab-back {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(250,250,247,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.ab-back:hover { background: rgba(255,255,255,0.15); }
.ab-back:active { transform: scale(0.95); }
.ab-topbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.ab-topbar-title {
  flex: 1;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: rgba(250,250,247,0.95);
  letter-spacing: -0.01em;
  margin: 0;
  text-align: right;
}

/* ─── Stepper ─── */
.ab-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px 0;
  background: var(--cream-50);
}
.ab-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  transition: background .3s;
}
.ab-step-dot.active { background: var(--black-900); }
.ab-step-label {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 8px;
  padding: 0 18px;
}

/* ─── Contenido ─── */
.ab-content {
  padding: 18px 18px 0;
}

/* Bloque intro de cada paso */
.ab-intro {
  margin: 8px 0 24px;
}
.ab-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.ab-titulo {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black-900);
  margin: 0 0 12px;
  line-height: 1.15;
}
.ab-mensaje {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}
.ab-mensaje strong { color: var(--black-900); font-weight: 600; }

/* ─── Card de aviso (info) ─── */
.ab-aviso {
  background: var(--black-900);
  color: rgba(250,250,247,0.95);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 22px;
}
.ab-aviso-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ab-aviso-t {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--mint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ab-aviso-d {
  font-size: 17px;
  margin: 0;
  color: rgba(250,250,247,0.9);
  line-height: 1.5;
}

/* ─── Form ─── */
.ab-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ab-label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--black-900);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.ab-help {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 6px 0 0;
}

/* Phone group: bandera + número */
.ab-phone-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ab-country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 14px;
  height: 64px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 19px;
  color: var(--black-900);
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color .15s;
}
.ab-country-btn:hover { border-color: var(--black-900); }
.ab-country-btn:focus-visible {
  outline: none;
  border-color: var(--black-900);
}
.ab-flag {
  font-size: 24px;
  line-height: 1;
}
.ab-country-code {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ab-chevron {
  width: 14px; height: 14px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.ab-phone-input {
  flex: 1;
  height: 64px;
  padding: 0 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 21px;
  font-weight: 500;
  color: var(--black-900);
  background: white;
  letter-spacing: 0.02em;
  transition: border-color .15s;
  font-variant-numeric: tabular-nums;
  width: 100%;
  min-width: 0;
}
.ab-phone-input:focus {
  outline: none;
  border-color: var(--black-900);
}
.ab-phone-input::placeholder {
  color: var(--gray-300);
  font-weight: 400;
}

/* ─── Country picker (modal sheet) ─── */
.ab-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ab-sheet {
  background: var(--cream-50);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ab-sheet-handle {
  width: 44px; height: 4px;
  background: var(--gray-300);
  border-radius: 4px;
  margin: 10px auto 8px;
  flex-shrink: 0;
}
.ab-sheet-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.ab-sheet-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--black-900);
}
.ab-sheet-search {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 18px;
  background: white;
}
.ab-sheet-search:focus {
  outline: none;
  border-color: var(--black-900);
}
.ab-sheet-list {
  overflow-y: auto;
  padding: 8px 0 24px;
  flex: 1;
}
.ab-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 18px;
  color: var(--black-900);
  border-bottom: 1px solid var(--gray-100);
  transition: background .1s;
}
.ab-sheet-item:hover, .ab-sheet-item.selected { background: var(--cream-100); }
.ab-sheet-item .ab-flag { font-size: 26px; }
.ab-sheet-item-name {
  flex: 1;
  font-weight: 500;
}
.ab-sheet-item-code {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ─── Botones primarios y secundarios ─── */
.ab-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  background: var(--black-900);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background .15s, transform .1s;
  margin-top: 8px;
}
.ab-btn-primary:hover { background: var(--black-700); }
.ab-btn-primary:active { transform: scale(0.985); }
.ab-btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}

.ab-btn-mint {
  background: var(--mint);
  color: var(--black-900);
}
.ab-btn-mint:hover { background: var(--mint-light); }

.ab-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  background: transparent;
  color: var(--black-900);
  border: 2px solid var(--black-900);
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .15s;
}
.ab-btn-secondary:hover { background: var(--black-900); color: white; }

.ab-btn-wa {
  background: var(--whatsapp);
  color: white;
}
.ab-btn-wa:hover { background: var(--whatsapp-dark); }

/* ─── Boletas (lista en paso 2) ─── */
.ab-cliente-card {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  padding: 18px 20px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
}
.ab-cliente-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin: 0 0 4px;
}
.ab-cliente-nombre {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black-900);
  margin: 0 0 4px;
  line-height: 1.15;
}
.ab-cliente-ciudad {
  font-size: 17px;
  color: var(--ink-mute);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ab-section-titulo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black-900);
  margin: 24px 0 14px;
  line-height: 1.2;
}
.ab-section-titulo:first-child { margin-top: 8px; }

.ab-boleta {
  background: white;
  border-radius: var(--r-md);
  border: 2px solid var(--gray-200);
  padding: 18px 18px;
  margin: 0 0 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.ab-boleta.pendiente {
  cursor: pointer;
}
.ab-boleta.pendiente:hover {
  border-color: var(--black-900);
  box-shadow: var(--shadow-md);
}
.ab-boleta.selected {
  border-color: var(--black-900);
  background: var(--cream-100);
}
.ab-boleta.paga {
  background: var(--cream-100);
  border-color: var(--gray-200);
  border-style: dashed;
}

.ab-check {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid var(--gray-300);
  background: white;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ab-boleta.selected .ab-check {
  background: var(--black-900);
  border-color: var(--black-900);
  color: var(--mint);
}

.ab-boleta-content {
  flex: 1;
}
.ab-boleta-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.ab-boleta-numero {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--black-900);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  display: inline-block;
}
.ab-boleta-numero-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
  display: inline-block;
}
.ab-boleta-status {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}
.ab-boleta-status.paga {
  background: var(--mint);
  color: var(--black-900);
}
.ab-boleta-status.pendiente {
  background: var(--cream-200);
  color: var(--black-900);
}

.ab-boleta-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 8px;
}
.ab-amount-block {
  display: flex;
  flex-direction: column;
}
.ab-amount-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 2px;
}
.ab-amount-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--black-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.ab-amount-value.saldo {
  color: var(--black-900);
}

.ab-boleta-paga-msg {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  line-height: 1.4;
}
.ab-boleta-paga-msg strong { color: var(--black-900); }

/* Toggle "ver historial" */
.ab-historial-toggle {
  background: transparent;
  border: none;
  color: var(--black-900);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ab-historial {
  margin: 14px 0 0;
  padding: 14px 14px 4px;
  background: var(--cream-100);
  border-radius: var(--r-sm);
  border: 1px solid var(--gray-200);
}
.ab-historial-titulo {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.ab-historial-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 16px;
  align-items: baseline;
}
.ab-historial-row:last-child { border-bottom: none; }
.ab-historial-fecha { color: var(--ink-soft); }
.ab-historial-monto {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--black-900);
}

/* Bottom sticky bar (resumen + pagar) */
.ab-resumen-bar {
  position: sticky;
  bottom: 0;
  background: var(--cream-50);
  border-top: 1px solid var(--gray-200);
  padding: 16px 18px;
  margin: 24px -18px 0;
  z-index: 30;
}
.ab-resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 10px;
}
.ab-resumen-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.ab-resumen-value {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--black-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

/* ─── Step 3: Detalle + selector de monto ─── */
.ab-monto-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ab-monto-opt {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--black-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: border-color .15s, background .15s;
  min-height: 64px;
}
.ab-monto-opt:hover { border-color: var(--black-900); }
.ab-monto-opt.selected {
  background: var(--black-900);
  color: white;
  border-color: var(--black-900);
}
.ab-monto-opt.full {
  grid-column: 1 / -1;
  background: var(--mint);
  border-color: var(--mint);
  color: var(--black-900);
}
.ab-monto-opt.full.selected {
  background: var(--black-900);
  color: var(--mint);
  border-color: var(--black-900);
}
.ab-monto-opt-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.ab-monto-opt.selected .ab-monto-opt-label { color: rgba(255,255,255,0.7); }
.ab-monto-opt.full.selected .ab-monto-opt-label { color: rgba(155, 250, 176, 0.7); }

.ab-monto-custom {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  background: white;
  overflow: hidden;
  transition: border-color .15s;
}
.ab-monto-custom:focus-within { border-color: var(--black-900); }
.ab-monto-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-mute);
  background: var(--cream-100);
  flex-shrink: 0;
}
.ab-monto-input {
  flex: 1;
  border: none;
  background: transparent;
  height: 60px;
  padding: 0 14px;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--black-900);
}
.ab-monto-input:focus { outline: none; }

/* ─── Confirmación + Wompi ─── */
.ab-confirm-card {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  padding: 20px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}
.ab-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 17px;
}
.ab-confirm-row:last-child { border-bottom: none; }
.ab-confirm-row.total {
  padding: 18px 0 4px;
  margin-top: 6px;
  border-top: 2px solid var(--black-900);
  border-bottom: none;
}
.ab-confirm-label {
  color: var(--ink-soft);
}
.ab-confirm-value {
  font-weight: 700;
  color: var(--black-900);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ab-confirm-row.total .ab-confirm-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.ab-confirm-row.total .ab-confirm-value {
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.ab-wompi-card {
  background: var(--black-900);
  color: white;
  border-radius: var(--r-md);
  padding: 20px;
  margin: 0 0 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.ab-wompi-logo-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ab-wompi-text {
  flex: 1;
}
.ab-wompi-t {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.ab-wompi-d {
  font-size: 15px;
  margin: 0;
  color: rgba(250,250,247,0.75);
  line-height: 1.4;
}

.ab-metodos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.ab-metodo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-100);
  color: var(--black-900);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--gray-200);
}

.ab-secure-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--cream-100);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 16px 0 0;
  line-height: 1.4;
}
.ab-secure-note svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }

/* ─── Estado: no encontrado ─── */
.ab-empty {
  text-align: center;
  padding: 40px 20px 16px;
}
.ab-empty-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.ab-empty-titulo {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black-900);
  margin: 0 0 8px;
  line-height: 1.2;
}
.ab-empty-msg {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 320px;
  line-height: 1.5;
}
.ab-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

/* ─── Floating WhatsApp ─── */
.float-wa-ab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0,0,0,.2);
  z-index: 90;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.2), 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── Pago exitoso ─── */
.ab-success {
  text-align: center;
  padding: 32px 20px 0;
}
.ab-success-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: success-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.ab-success-icon.ab-success-icon-3d {
  background: transparent;
  border-radius: 0;
  width: 120px; height: 120px;
}
.ab-success-icon.ab-success-icon-3d img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(10, 10, 10, 0.22));
}
@keyframes success-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.ab-success-titulo {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black-900);
  margin: 0 0 10px;
}
.ab-success-msg {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ─── Tablet/desktop ─── */
@media (min-width: 600px) {
  .abonar { max-width: 540px; }
}

/* Small phones */
@media (max-width: 360px) {
  body { font-size: 18px; }
  .ab-titulo { font-size: 24px; }
  .ab-cliente-nombre { font-size: 20px; }
  .ab-boleta-numero { font-size: 20px; }
  .ab-resumen-value { font-size: 20px; }
}

/* ───── Computador / pantallas anchas ─────
   (Aplica a "Abonar" y a "Ver mi boleta", que comparten esta hoja.)
   Fondo crema con sutil resplandor menta + columna un poco más ancha, para que
   no se vea como una tira perdida. SOLO de 768px en adelante; el celular igual. */
@media (min-width: 768px) {
  body {
    background-color: var(--cream-100);
    background-image: radial-gradient(120% 60% at 50% 0%, rgba(155,250,176,0.10), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .abonar { max-width: 600px; }
}
