/* ============================================================
   swap.bitmaxis.com — estilos
   Tema oscuro de la marca BitMaxis (naranja Bitcoin + violeta).
   Móvil primero; una sola columna compacta centrada en el widget.
   ============================================================ */
:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --surface: #13151c;
  --card: #161921;
  --card-2: #1b1f29;
  --field: #0c0e13;
  --line: #262a36;
  --line-2: #1e222c;
  --text: #e9ebf2;
  --muted: #9aa1b2;
  --muted-2: #7c8395;
  --btc: #f7931a;
  --btc-2: #fbb03b;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --green: #19d292;
  --red: #ff5d6c;
  --yellow: #f5c451;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 80% -10%, rgba(247, 147, 26, 0.14), transparent 60%),
    radial-gradient(620px 420px at 10% 0%, rgba(139, 92, 246, 0.14), transparent 58%);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--btc-2); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.apps {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
}
.apps a { padding: 5px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.apps a:hover { color: var(--text); }
.apps a.on { background: var(--btc); color: #1a1206; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.75rem; }
.lang button { background: none; border: 0; color: var(--muted); padding: 6px 10px; font-weight: 700; min-width: 36px; }
.lang button[aria-pressed='true'] { background: var(--card-2); color: var(--text); }

/* ---------- intro ---------- */
.main { padding: 22px 16px 8px; }
.intro, .card { max-width: 480px; margin-inline: auto; }
.intro { text-align: center; margin-bottom: 16px; }
.intro h1 { font-size: clamp(1.55rem, 5.4vw, 2.15rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.12; }
.grad {
  background: linear-gradient(100deg, var(--btc-2), var(--btc) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 5px; }
.trust .i { color: var(--btc-2); width: 15px; height: 15px; }

/* ---------- tarjeta del widget ---------- */
.card {
  background: linear-gradient(170deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  scroll-margin-top: 70px;
}
.view { animation: fade-in 0.25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* pasos 1·2·3 */
.progress { display: flex; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0 2px; }
.progress li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--muted-2); min-width: 0; }
.progress li b {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.progress li:not(:last-child)::after { content: ''; flex: 1; height: 2px; min-width: 8px; border-radius: 2px; background: var(--line); }
.progress li.on { color: var(--text); }
.progress li.on b { background: var(--btc); border-color: var(--btc); color: #1a1206; }
.progress li.done b { background: rgba(25, 210, 146, 0.14); border-color: var(--green); color: var(--green); }
.progress li.done::after { background: var(--green); }

/* aviso de orden en curso */
.resume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
  font-size: 0.84rem;
  text-align: left;
}
.resume .i { color: var(--violet-2); }
.resume span { flex: 1; min-width: 0; }
.resume b { color: var(--violet-2); }

/* cajas de monto */
.amt {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}
.amt:focus-within { border-color: rgba(247, 147, 26, 0.7); }
.amt.invalid { border-color: rgba(255, 93, 108, 0.6); }
.amt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.amt-head label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.tag-soft { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted-2); }
.tag-soft:not(:empty)::before { content: '· '; }
.tag-soft.ok { color: var(--green); }
.unit { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.unit button { background: none; border: 0; color: var(--muted); padding: 2px 10px; font-size: 0.7rem; font-weight: 700; line-height: 1.6; }
.unit button[aria-pressed='true'] { background: var(--btc); color: #1a1206; }
.amt-row { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.amt-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  padding: 4px 0;
  font-size: 1.65rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.amt-row input::placeholder { color: #3a3f4d; }
.amt-row input[readonly] { color: var(--violet-2); }
.amt-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 0.76rem; color: var(--muted-2); }
#boxFrom .amt-foot { min-height: 18px; } /* reserva el espacio de USD/límites: sin saltos al cotizar */
.lim { text-align: right; }
.lim.bad { color: var(--red); font-weight: 700; }

.ccy {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease;
}
.ccy:hover { border-color: var(--btc); }
.ccy img { width: 26px; height: 26px; border-radius: 50%; }
.ccy-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.ccy-meta b { font-size: 0.92rem; }
.ccy-meta small { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.ccy .chev { color: var(--muted-2); width: 15px; height: 15px; }

.flip-wrap { display: flex; justify-content: center; margin: -7px 0; position: relative; z-index: 1; }
.flip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--card-2);
  border: 3px solid var(--bg-2);
  color: var(--btc-2);
  transition: transform 0.2s ease, color 0.15s ease;
}
.flip:hover { color: var(--btc); transform: rotate(180deg); }
.flip .i { width: 16px; height: 16px; }

/* tipo de tarifa */
.ratetype { margin: 12px 0 0; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--field); border: 1px solid var(--line); border-radius: 13px; }
.seg button {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.seg button small { font-size: 0.72rem; font-weight: 600; color: var(--muted-2); }
.seg button[aria-checked='true'] { background: var(--card-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
.seg button[aria-checked='true'] small { color: var(--btc-2); }
.seg button:disabled { opacity: 0.38; cursor: not-allowed; }
.hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 6px; line-height: 1.45; }
.hint.center { text-align: center; }

/* desglose de comisiones */
.fees { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 14, 19, 0.6); }
.fees summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
}
.fees summary::-webkit-details-marker { display: none; }
.fees-rate { color: var(--muted); font-variant-numeric: tabular-nums; }
.fees-sum { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.fees .chev { width: 15px; height: 15px; color: var(--muted-2); transition: transform 0.2s ease; }
.fees[open] .chev { transform: rotate(180deg); }
.fees.empty summary { pointer-events: none; }
.fees.empty .fees-rate { color: var(--muted-2); }
.fees.empty .chev { display: none; }
.fee-list { margin: 0; padding: 0 12px 8px; }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 0.8rem; }
.fee-row dt { color: var(--muted); }
.fee-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.fee-row dd small { margin-left: 6px; color: var(--muted-2); }

/* destino */
.dest { margin-top: 12px; }
.dest-label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.dest-row { display: flex; gap: 6px; align-items: stretch; }
.dest-row input,
.dest-tag input,
#emgAddr {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  transition: border-color 0.15s ease;
}
.dest-row input:focus, .dest-tag input:focus, #emgAddr:focus { border-color: rgba(247, 147, 26, 0.7); }
.dest-row[data-state='ok'] input { border-color: rgba(25, 210, 146, 0.55); }
.dest-row[data-state='warn'] input { border-color: rgba(245, 196, 81, 0.6); }
.dest-row[data-state='bad'] input { border-color: rgba(255, 93, 108, 0.6); }
.dest-tag { margin-top: 10px; }
.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--btc-2);
  transition: border-color 0.15s ease;
}
.icon-btn:hover { border-color: var(--btc); }
.field-msg { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 0.78rem; color: var(--muted-2); line-height: 1.4; }
.field-msg:empty { display: none; }
.field-msg .i { width: 15px; height: 15px; margin-top: 1px; }
.field-msg[data-state='ok'] { color: var(--green); }
.field-msg[data-state='warn'] { color: var(--yellow); }
.field-msg[data-state='bad'] { color: var(--red); }

/* alertas */
.alert { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.85rem; line-height: 1.45; }
.alert.err { background: rgba(255, 93, 108, 0.1); border: 1px solid rgba(255, 93, 108, 0.32); color: #ffb3bb; }
.alert.warn { background: rgba(245, 196, 81, 0.08); border: 1px solid rgba(245, 196, 81, 0.35); color: #f8dc95; }
.alert-title { display: flex; align-items: center; gap: 7px; font-weight: 800; margin-bottom: 4px; }

/* botón principal: su texto dice qué falta */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: linear-gradient(100deg, var(--btc-2), var(--btc));
  color: #1c1305;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 30px -14px rgba(247, 147, 26, 0.7);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.cta:hover:not(:disabled) { box-shadow: 0 16px 36px -12px rgba(247, 147, 26, 0.85); }
.cta:active:not(:disabled) { transform: translateY(1px); }
.cta:disabled { background: var(--surface); border-color: var(--line); color: var(--muted); box-shadow: none; cursor: default; }
.cta.busy::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.cta-2 { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.45); color: var(--text); box-shadow: none; font-size: 0.95rem; }
.cta-2 .i { color: var(--violet-2); }
.cta-2:hover:not(:disabled) { box-shadow: none; border-color: var(--violet-2); }
.ff-notice { margin-top: 10px; font-size: 0.76rem; line-height: 1.45; color: var(--muted); text-align: center; }
.ff-notice a { color: var(--btc-2); text-decoration: underline; text-underline-offset: 2px; }

/* botones secundarios */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: linear-gradient(100deg, var(--btc-2), var(--btc));
  color: #1c1305;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--btc); }
.btn-block { display: flex; width: 100%; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.link:hover { color: var(--btc-2); }

/* ---------- vista de pago ---------- */
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-id { font-size: 0.8rem; color: var(--muted-2); }
.order-id b { color: var(--text); margin-left: 2px; }

.track { display: flex; list-style: none; margin: 12px 0 14px; padding: 0; }
.track li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font-size: 0.68rem; font-weight: 600; color: var(--muted-2); text-align: center; }
.track li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.track li.done { color: var(--muted); }
.track li.done i { background: var(--green); border-color: var(--green); }
.track li.done::before, .track li.on::before { background: var(--green); }
.track li.on { color: var(--text); font-weight: 800; }
.track li.on i { background: var(--btc); border-color: var(--btc); box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.2); animation: pulse 1.6s ease-in-out infinite; }
.track[data-status='EXPIRED'] li:first-child i { background: var(--muted-2); border-color: var(--muted-2); }
.track[data-status='EMERGENCY'] li i { animation: none; }

.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.qr { margin: 0; display: grid; gap: 6px; justify-items: center; }
.qr img { width: 156px; height: 156px; border-radius: 12px; background: #fff; padding: 7px; image-rendering: pixelated; }
.qr-tabs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qr-tabs:empty { display: none; }
.qr-tabs button { background: none; border: 0; color: var(--muted); padding: 3px 9px; font-size: 0.68rem; font-weight: 700; }
.qr-tabs button[aria-pressed='true'] { background: var(--card-2); color: var(--text); }
.pay-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.kicker { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.pay-amt { font-size: 1.45rem; font-weight: 850; color: var(--btc-2); line-height: 1.15; font-variant-numeric: tabular-nums; word-break: break-word; }
.pay-sub { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-sub:empty { display: none; }
.net-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.net-badge.ln { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.4); color: var(--violet-2); }
.net-badge .i { width: 13px; height: 13px; }
.timer { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timer b { color: var(--text); }
.timer.urgent, .timer.urgent b { color: var(--red); }
.timer .i { width: 14px; height: 14px; }

.pay-wait > .kicker { margin: 14px 0 6px; }
.copy-field { display: flex; gap: 6px; align-items: stretch; }
.copy-field code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--btc-2);
  word-break: break-all;
  line-height: 1.45;
}
.btn-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}
.btn-copy .i { width: 15px; height: 15px; color: var(--btc-2); }
.btn-copy.ok { border-color: var(--green); color: var(--green); }
.btn-copy.ok .i { color: var(--green); }
#payTagRow .kicker { margin: 12px 0 6px; }
.pay-wait .cta-2 { margin-top: 10px; }

.pay-status { text-align: center; padding: 6px 4px 2px; }
.status-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.status-ico .i { width: 30px; height: 30px; }
.status-ico.ok { background: rgba(25, 210, 146, 0.12); border-color: rgba(25, 210, 146, 0.5); color: var(--green); }
.status-ico.ok .i { stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.5s 0.1s ease-out forwards; }
.status-ico.expired { color: var(--muted-2); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--btc); animation: spin 0.9s linear infinite; }
.pay-status h2 { font-size: 1.15rem; font-weight: 800; }
.pay-status p { margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.tx-links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.tx-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--violet-2); }
.tx-links .i { width: 13px; height: 13px; }

#emergency .row-btns .btn { flex: 1; }
#emgRefundWrap { margin-top: 10px; }
#emergency .field-msg { color: inherit; }

.summary { margin: 14px 0 0; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(12, 14, 19, 0.5); }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.8rem; border-top: 1px solid var(--line-2); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted-2); flex: 0 0 auto; }
.summary dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.summary dd.mono { font-size: 0.76rem; font-weight: 500; }

.notify { margin-top: 12px; }
.notify label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 0.8rem; color: var(--muted); }
.notify .i { color: var(--btc-2); }
.notify input { font-family: var(--font) !important; }
.notify .btn { flex: 0 0 auto; }

/* ---------- secciones informativas (compactas) ---------- */
.how, .faq, .community { max-width: 860px; margin: 34px auto 0; }
.how h2, .faq h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; text-align: center; }
.how ol { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  counter-increment: s;
}
.how li::before {
  content: counter(s);
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(120deg, var(--btc), var(--violet));
  color: #150e04;
}
.how b { font-size: 0.9rem; }
.how span { font-size: 0.8rem; color: var(--muted); }

/* una sola columna de ancho fijo: abrir una pregunta no la ensancha ni deja huecos al lado */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: 760px; }
.faq h2 { margin-bottom: 4px; }
.faq details { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; }
.faq summary { padding: 12px 14px; font-weight: 700; font-size: 0.9rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--btc-2); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 14px 12px; font-size: 0.85rem; color: var(--muted); overflow-wrap: break-word; }
.faq details > div p + p { margin-top: 8px; }
.faq ul { margin: 6px 0; padding-left: 18px; }
.faq li { margin: 3px 0; }
.faq b { color: var(--text); }

.community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(247, 147, 26, 0.12), rgba(139, 92, 246, 0.12));
}
.community > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.community span { font-size: 0.85rem; color: var(--muted); }
.community .row-btns { margin-top: 0; }

.foot { margin-top: 40px; padding: 26px 0 30px; border-top: 1px solid var(--line-2); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.foot-brand img { height: 26px; width: auto; }
.foot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted-2); font-weight: 600; }
.flag { height: 0.8em; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; font-size: 0.84rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--btc-2); }
.foot-legal { margin-top: 14px; max-width: 80ch; font-size: 0.76rem; color: var(--muted-2); line-height: 1.55; }

/* ---------- hojas (selector, escáner) ---------- */
.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 6, 9, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.18s ease;
}
.sheet {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  padding-bottom: env(safe-area-inset-bottom);
  animation: sheet-up 0.22s ease;
}
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; background: var(--card); border-bottom: 1px solid var(--line-2); }
.sheet-head .icon-btn { width: 38px; min-height: 38px; color: var(--muted); }
.sheet-body { padding: 10px 12px 16px; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } }
@keyframes fade { from { opacity: 0; } }

.pk-group + .pk-group { margin-top: 8px; }
.pk-title { padding: 6px 8px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.pk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
}
.pk-item:hover:not(:disabled) { background: rgba(255, 255, 255, 0.04); }
.pk-item.on { background: rgba(247, 147, 26, 0.08); border-color: rgba(247, 147, 26, 0.35); }
.pk-item:disabled { opacity: 0.4; cursor: not-allowed; }
.pk-item img { width: 32px; height: 32px; border-radius: 50%; }
.pk-main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.pk-main b { font-size: 0.95rem; }
.pk-main small { font-size: 0.78rem; color: var(--muted); }
.pk-badge { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.pk-badge.rec { background: rgba(247, 147, 26, 0.12); border-color: rgba(247, 147, 26, 0.35); color: var(--btc-2); }
.pk-check { color: var(--btc-2); }

.scan-video { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; }
.scan-video video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 15%; border: 3px solid rgba(247, 147, 26, 0.9); border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.3); }
#scanMsg { margin: 10px 0; }
#scanMsg.err { color: var(--red); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 200;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  animation: fade 0.15s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 147, 26, 0.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .sheet-bg { align-items: center; padding: 18px; }
  .sheet { border-radius: 22px; }
  .card { padding: 18px; }
  .qr img { width: 172px; height: 172px; }
}
@media (min-width: 760px) {
  .main { padding-top: 34px; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
}
/* escritorio: texto + pasos a la izquierda, widget a la derecha (todo a la vista) */
@media (min-width: 1000px) {
  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    grid-template-areas: 'intro card' 'how card' 'faq faq' 'comm comm';
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
    padding-top: 48px;
  }
  .intro { grid-area: intro; max-width: 470px; margin: 40px 0 0; text-align: left; }
  .intro h1 { font-size: 2.6rem; }
  .trust { justify-content: flex-start; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 0.9rem; }
  .card { grid-area: card; margin: 0; }
  .how { grid-area: how; max-width: 470px; margin: 28px 0 0; }
  .how h2 { text-align: left; }
  .how ol { grid-template-columns: 1fr; }
  .faq { grid-area: faq; justify-self: center; margin-top: 56px; }
  .community { grid-area: comm; max-width: none; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .apps a { padding: 5px 10px; }
  .amt-row input { font-size: 1.4rem; }
  .pay-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-info { align-items: center; }
  .track li { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .status-ico.ok .i { stroke-dashoffset: 0; }
}
