/* =====================================================================
   MALF Servicios — estilos (oscuro + dorado, pensado primero para celular)
   ===================================================================== */
:root {
  --bg: #0B0B0D;
  --surface: #16161B;
  --surface-2: #1E1E25;
  --border: #2A2A31;
  --gold: #D4AF37;
  --gold-light: #F2D57E;
  --gold-dark: #A67C1E;
  --gold-grad: linear-gradient(135deg, #F2D57E 0%, #D4AF37 45%, #A67C1E 100%);
  --silver: #A8ADB5;
  --text: #F5F5F5;
  --muted: #9AA0A8;
  --success: #3DBE7A;
  --danger: #E5534B;
  --warn: #E8B339;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", var(--font);
  --sidebar-w: 260px;
  --bottom-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.link { color: var(--gold); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.only-mobile { display: inline-flex; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #111; box-shadow: 0 6px 18px rgba(212, 175, 55, .25); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-dark); }
.btn-block { width: 100%; }
.icon-btn {
  align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer;
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-section { font-size: 16px; color: var(--gold); margin: 8px 0 0; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 13px; font-weight: 500; color: var(--silver); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: 400 16px/1.3 var(--font); /* 16px evita el zoom automático en iPhone */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12.5px; color: #ff8a83; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.pw-toggle:hover, .pw-toggle.is-on { color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.check a { color: var(--gold); }
.check--muted { color: var(--muted); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.form-row--end { justify-content: flex-end; margin-top: -6px; }

/* ---------- Avisos ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: rgba(61, 190, 122, .1); border-color: rgba(61, 190, 122, .35); color: #9be6bd; }
.alert-error { background: rgba(229, 83, 75, .1); border-color: rgba(229, 83, 75, .4); color: #ffb0ab; }
.alert-warn { background: rgba(232, 179, 57, .1); border-color: rgba(232, 179, 57, .4); color: #f3d68f; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-gold { background: rgba(212, 175, 55, .12); color: var(--gold-light); border: 1px solid rgba(212, 175, 55, .35); }

/* ---------- Pantallas de acceso ---------- */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(212, 175, 55, .14), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(168, 173, 181, .06), transparent 60%),
    var(--bg);
}
.auth-top { display: flex; justify-content: flex-end; padding: 14px 16px 0; }
.auth-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 8px 16px 96px; }
.auth-wrap--wide { max-width: 760px; }
.auth-card {
  background: rgba(22, 22, 27, .92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: var(--shadow);
}
.auth-logo { display: block; width: 112px; margin: -4px auto 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(212, 175, 55, .35), 0 10px 30px rgba(212, 175, 55, .15); }
.auth-logo img { border-radius: 50%; width: 100%; height: auto; }
.auth-title { font-size: 24px; text-align: center; margin-top: 6px; }
.auth-card > .badge { display: flex; width: max-content; margin: 0 auto 8px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.auth-switch { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.auth-footer { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.auth-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0; }
.auth-footer a { color: var(--silver); text-decoration: none; }
.auth-footer a:hover { color: var(--gold); }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a.is-active { background: var(--gold); color: #111; }

/* ---------- Textos legales ---------- */
.legal-body { font-size: 14.5px; color: #dcdcdc; }
.legal-body h2 { font-size: 17px; color: var(--gold); margin-top: 24px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--gold); }

/* ---------- Área con sesión (cliente y admin) ---------- */
.app-body { min-height: 100vh; padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w); max-width: 85vw;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform .22s ease;
}
.sidebar.is-open { transform: none; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sidebar.is-open + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 16px/1 var(--font-title); letter-spacing: .3px; }
.brand img { border-radius: 50%; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: grid; align-content: start; gap: 2px; }
.side-nav a, .side-logout {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--silver); text-decoration: none; font-weight: 500;
  background: none; border: 0; width: 100%; font: 500 15px/1.2 var(--font); cursor: pointer; text-align: left;
}
.side-nav a:hover, .side-logout:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: rgba(212, 175, 55, .12); color: var(--gold-light); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-foot { padding: 12px 10px 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.sidebar-foot .lang-switch { justify-self: start; margin-left: 12px; }

.app-main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 60px;
  background: rgba(11, 11, 13, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-size: 15px; }
.topbar-title { font-size: 17px; margin: 0; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.topbar-user span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 479px) { .topbar-user span { display: none; } }
.content { padding: 18px 16px 24px; max-width: 1200px; }
.app-footer { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px 24px; font-size: 12.5px; }
.app-footer a { color: var(--muted); text-decoration: none; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(22, 22, 27, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--gold); }

.page-head { margin-bottom: 18px; }
.page-head h2 { font-size: 22px; margin-bottom: 4px; }
.page-head p { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h3 { font-size: 16px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.quick {
  display: grid; gap: 10px; padding: 18px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s;
}
.quick .icon { width: 30px; height: 30px; color: var(--gold); }
.quick:hover { border-color: var(--gold-dark); transform: translateY(-2px); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font: 700 26px/1 var(--font-title); color: var(--gold-light); }

/* ---------- Catálogo y compra (etapa 4) ---------- */
.small { font-size: 13px; }
.mt { margin-top: 12px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-wa { background: #25D366; color: #fff; margin-top: 12px; }
.btn-wa .icon { width: 20px; height: 20px; }
.btn-danger-ghost { background: transparent; border-color: rgba(229, 83, 75, .45); color: #ff9e98; }
.btn-danger-ghost:hover { background: rgba(229, 83, 75, .1); }
.section-title { font-size: 17px; margin: 22px 0 12px; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.back-link:hover { color: var(--gold); }
.empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 28px 18px; }
.card-link { display: flex; align-items: center; gap: 12px; text-decoration: none; border-color: rgba(212, 175, 55, .35); }
.card-link .icon { color: var(--gold); }
.page-head--row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--silver); background: var(--surface); white-space: nowrap; }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 600; }

.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner {
  scroll-snap-align: start; min-height: 150px; border-radius: var(--radius); padding: 20px;
  display: flex; align-items: flex-end; text-decoration: none;
  background: radial-gradient(500px 200px at 100% 0%, rgba(212, 175, 55, .35), transparent 60%), linear-gradient(135deg, #1f1a0e, #121216);
  background-size: cover; background-position: center; border: 1px solid rgba(212, 175, 55, .3);
}
.banner-text { display: grid; gap: 6px; max-width: 420px; }
.banner-text strong { font: 800 21px/1.15 var(--font-title); }
.banner-text span { color: #ddd; font-size: 14px; }
.banner-btn { font-style: normal; justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold-grad); color: #111; font-weight: 600; font-size: 13px; }

.cat-desc { margin: -6px 0 12px; font-size: 13.5px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.pcard:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.pcard--featured { border-color: rgba(212, 175, 55, .45); background: linear-gradient(180deg, rgba(212, 175, 55, .08), var(--surface) 55%); }
.pcard-ribbon { position: absolute; top: 10px; right: -30px; transform: rotate(35deg); background: var(--gold-grad); color: #111; font-size: 11px; font-weight: 700; padding: 3px 34px; }
.pcard-top { display: flex; align-items: center; gap: 10px; }
.pcard-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 175, 55, .12); color: var(--gold); flex-shrink: 0; }
.pcard-img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.pcard-face { font: 800 17px/1.1 var(--font-title); color: var(--gold-light); }
.pcard-name { font: 600 14px/1.35 var(--font); margin: 0; color: var(--text); }
.pcard-meta { margin: 0; font-size: 12px; color: var(--muted); }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
.pcard-price { font: 700 17px/1 var(--font-title); }
.pcard-price small { font: 500 11px var(--font); color: var(--muted); }
.pcard-cta { font-size: 12px; font-weight: 600; color: var(--gold); }

.buy-layout { display: grid; gap: 16px; align-items: start; }
.buy-product h2 { font-size: 20px; margin-top: 10px; }
.buy-face { font: 800 28px/1 var(--font-title); color: var(--gold-light); margin: 4px 0 12px; }
.buy-facts { padding-left: 18px; color: var(--silver); font-size: 14px; }
.buy-price, .pay-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 12px; margin: 12px 0 0; }
.buy-price strong, .pay-total strong { font: 800 26px/1 var(--font-title); color: var(--gold-light); }
.prefix-wrap { display: flex; align-items: stretch; }
.prefix { display: grid; place-items: center; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--silver); font-weight: 600; }
.prefix-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; letter-spacing: .5px; }
.summary { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 8px; }
.summary > div, .summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-line { padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary strong, .summary-line > strong, .orow-side strong { white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--border); }
.summary-total strong { font: 800 22px/1 var(--font-title); color: var(--gold-light); }

.pay-box h3 { display: flex; align-items: center; gap: 8px; }
.pay-steps { padding-left: 20px; display: grid; gap: 10px; font-size: 14px; margin: 14px 0 0; }
.copy-row { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; flex-wrap: wrap; }
.copy-row code { font-size: 14px; padding: 8px 10px; word-break: break-all; flex: 1; min-width: 0; }
.cancel-form { margin-top: 12px; }
.pix-qr { display: grid; place-items: center; margin: 16px auto 6px; padding: 12px; background: #fff; border-radius: 12px; width: max-content; }
.pix-qr img, .pix-qr canvas { display: block; }
.pix-code { font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace !important; word-break: break-all; resize: none; }
.proof-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.pay-box .btn-block + .btn-block { margin-top: 10px; }

.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status--quote { color: #c9b8ff; border-color: rgba(160, 130, 255, .4); background: rgba(160, 130, 255, .1); }
.status--pending { color: #f3d68f; border-color: rgba(232, 179, 57, .4); background: rgba(232, 179, 57, .1); }
.status--paid, .status--processing { color: #9fd0ff; border-color: rgba(80, 160, 255, .4); background: rgba(80, 160, 255, .1); }
.status--delivered { color: #9be6bd; border-color: rgba(61, 190, 122, .4); background: rgba(61, 190, 122, .1); }
.status--cancelled { color: #ffb0ab; border-color: rgba(229, 83, 75, .4); background: rgba(229, 83, 75, .1); }

.olist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.orow { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.orow:hover { border-color: var(--gold-dark); }
.orow-main { display: grid; gap: 4px; min-width: 0; }
.orow-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow-main span { font-size: 12.5px; }
.orow-side { display: grid; gap: 6px; justify-items: end; align-content: start; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 18px; }
.timeline li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 12px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline .dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done .dot { background: var(--gold); border-color: var(--gold); }
.timeline li.is-done::before { background: var(--gold); }
.timeline small { font-size: 10.5px; }

/* ---------- Tiendas, carrito y remesas (etapa 6) ---------- */
.gold { color: var(--gold-light); }
.center { text-align: center; }
.nav-badge { font-style: normal; font-size: 11px; font-weight: 700; background: var(--gold); color: #111; border-radius: 999px; padding: 1px 7px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); font: 400 16px var(--font); }
.pcard-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pcard-top:has(.pcard-img) { flex-direction: column; align-items: stretch; }
.product-main-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.product-main-img--empty { display: grid; place-items: center; color: var(--gold); aspect-ratio: 16 / 7; }
.product-main-img--empty .icon { width: 64px; height: 64px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.add-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.qty-field { width: 90px; }
.cart-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cart-line img { border-radius: 8px; object-fit: cover; }
.cart-info { display: grid; gap: 2px; min-width: 0; }
.cart-info .link { color: var(--text); font-weight: 600; }
.qty-input { width: 64px; min-height: 40px; padding: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 16px; grid-column: 2; justify-self: start; }
.cart-sub { grid-column: 3; grid-row: 1; white-space: nowrap; }
.cart-line .icon-btn { grid-column: 3; grid-row: 2; justify-self: end; width: 34px; height: 34px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { font: 700 16px var(--font-title); margin-bottom: 12px; padding: 0; }
.form-grid-2c, .form-grid-3 { display: grid; gap: 12px; }
.rate-card { display: flex; justify-content: space-between; align-items: center; border-color: rgba(212, 175, 55, .4); }
.rate-card strong { font: 800 18px var(--font-title); color: var(--gold-light); }
.method-grid { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.method:hover { border-color: var(--gold-dark); }
.method-text { flex: 1; display: grid; gap: 2px; }
.how ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.usa-line { padding-bottom: 12px; border-bottom: 1px dashed var(--border); display: grid; gap: 10px; }
.usa-line[hidden] { display: none; }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; margin: 12px 0; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; text-align: right; }
.recipient-box { display: grid; gap: 2px; margin: 12px 0; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
@media (min-width: 640px) {
  .form-grid-2c { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 90px 1.4fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.app-body .wa-float { bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  .auth-card { padding: 32px 32px 34px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banners { grid-auto-columns: 70%; }
}

@media (min-width: 900px) {
  .buy-layout { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
  .app-body { padding-bottom: 0; }
  .sidebar { transform: none; }
  .sidebar-backdrop, .bottom-nav { display: none; }
  .app-main { margin-left: var(--sidebar-w); }
  .content { padding: 26px 32px 32px; }
  .topbar { padding: 12px 32px; }
  .app-footer { padding: 8px 32px 28px; }
  .app-body .wa-float { bottom: 24px; right: 24px; }
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .banners { grid-auto-columns: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
