/* Pixel Cuba Shop — estilos */
:root {
  --bg: #0d0b1e;
  --bg-2: #13102a;
  --surface: #1a1636;
  --surface-2: #221d45;
  --line: #2e2858;
  --text: #f1eefe;
  --muted: #a39fc4;
  --accent: #b6ff3b;
  --accent-ink: #14200a;
  --accent-2: #ff4fd8;
  --info: #5ad8ff;
  --warn: #ffc23d;
  --danger: #ff5c7a;
  --ok: #4ff0a0;
  --radius: 16px;
  --radius-sm: 10px;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 66px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -200px, #2b1f6b 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px);
}
body.admin { padding-bottom: 0; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
em { font-style: normal; color: var(--muted); font-weight: 400; }

.wrap { max-width: 560px; margin: 0 auto; padding: 12px 16px 24px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; image-rendering: pixelated; }
.brand-text { font-family: var(--pixel); font-size: 11px; line-height: 1.5; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-a { color: var(--accent); }
.brand-b { color: var(--text); }
.topbar-title { font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer;
}
.iconbtn:hover { text-decoration: none; border-color: var(--accent); }
.iconbtn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.balance-chip .ic { width: 18px; height: 18px; color: var(--accent); }
.balance-chip:hover { text-decoration: none; border-color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--font); cursor: pointer;
  box-shadow: 0 4px 0 #6fa51b;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #6fa51b; }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: 0 4px 0 #120f28; border: 1px solid var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 #120f28; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #9c2a40; }
.btn-ok { background: var(--ok); color: #05301b; box-shadow: 0 4px 0 #1e8c57; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; box-shadow: 0 3px 0 #6fa51b; }
.btn-ghost.btn-sm { box-shadow: 0 3px 0 #120f28; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Avisos ---------- */
.flash {
  margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border-left: 4px solid var(--ok); font-size: 15px;
}
.flash-err { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.flash-info { border-color: var(--info); }
.announce {
  margin: 4px 0 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 25%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--line));
  font-size: 14px; font-weight: 500;
}
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 22px 20px; border-radius: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, #2a1f72 0%, #1a1446 55%, #3a1150 100%);
  border: 1px solid #3b3180;
}
.hero-pixels {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent-2) 0 0), linear-gradient(var(--info) 0 0),
    linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent-2) 0 0);
  background-size: 10px 10px, 10px 10px, 8px 8px, 6px 6px, 12px 12px;
  background-position: calc(100% - 22px) 20px, calc(100% - 42px) 40px, calc(100% - 18px) 62px, calc(100% - 70px) 24px, calc(100% - 30px) calc(100% - 26px);
  background-repeat: no-repeat;
}
.hero-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.hero-title span { color: var(--accent); }
.hero-sub { color: #cfc8f5; margin-bottom: 16px; max-width: 34ch; }
.hero-hi { color: #cfc8f5; margin-bottom: 4px; }
.hero-balance span { display: block; font-size: 13px; color: #b9b1e8; text-transform: uppercase; letter-spacing: .08em; }
.hero-balance strong { display: block; font-size: 32px; font-weight: 700; margin: 2px 0 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 48px; border-radius: 14px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 400 16px var(--font); outline: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 14px; border-radius: 19px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500;
}
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.block { margin: 18px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.block-head h2 { font-size: 18px; font-weight: 700; }
.block-head a { font-size: 14px; }
.pagetitle { font-size: 22px; margin: 6px 0 14px; }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 480px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .pcard { scroll-snap-align: start; }
@media (min-width: 480px) { .hscroll { grid-auto-columns: 30%; } }

.pcard {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .12s, border-color .12s;
}
.pcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.pcard-body strong { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-body small { color: var(--accent); font-weight: 600; font-size: 13px; }
.pcard-body small.cup, .variant .cup, .walletcard .cup { color: var(--muted); font-weight: 400; font-size: 12px; }
.walletcard .cup { margin: -10px 0 14px; }
.thumb { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-gen {
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, hsl(var(--h) 70% 42%), hsl(calc(var(--h) + 50) 75% 28%));
  position: relative;
}
.thumb-gen::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 12px 12px;
}
.thumb-gen span { font-family: var(--pixel); font-size: 28px; color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.35); position: relative; z-index: 1; }
.thumb-lg { width: 96px; height: 96px; border-radius: 18px; flex: none; }
.thumb-lg.thumb-gen span { font-size: 24px; }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge-inline { position: static; display: inline-block; margin: 6px 0; }

.howto { margin: 26px 0 10px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line); }
.howto h2 { font-size: 17px; margin-bottom: 12px; }
.howto ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto li > b { font-family: var(--pixel); font-size: 12px; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--accent); }
.howto li strong { display: block; font-size: 15px; }
.howto li span { color: var(--muted); font-size: 14px; }
.sitefoot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
.sitefoot-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .btn { margin-top: 6px; }

/* ---------- Producto ---------- */
.product-head { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 18px; }
.product-head h2 { font-size: 21px; margin-bottom: 4px; }
.product-head p { font-size: 15px; margin-top: 6px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 18px 0 10px; }
.step b { font-family: var(--pixel); font-size: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant-box {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line);
  transition: border-color .1s, background .1s;
}
.variant-name { font-weight: 600; font-size: 15px; }
.variant-price { color: var(--muted); font-size: 14px; }
.variant input:checked + .variant-box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.variant input:checked + .variant-box .variant-price { color: var(--accent); font-weight: 600; }
.variant input:focus-visible + .variant-box { outline: 2px solid var(--info); outline-offset: 2px; }

.buybar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.buybar small { display: block; font-size: 12px; color: var(--muted); }
.buybar strong { display: block; font-size: 20px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; color: #d9d4f5; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font: 400 16px var(--font); outline: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[type=file] { color: var(--muted); font: 14px var(--font); padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-2); width: 100%; }
input[type=file]::file-selector-button { font: 600 14px var(--font); border: 0; border-radius: 8px; padding: 8px 12px; margin-right: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.authbox { max-width: 400px; margin: 16px auto; }
.authbox h2 { font-size: 24px; margin-bottom: 4px; }
.authbox .form { margin: 18px 0; }
.auth-logo .logo-mark { width: 48px; height: 48px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-size: 14px; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--danger); }

/* ---------- Saldo ---------- */
.walletcard {
  padding: 22px; border-radius: 22px; margin: 6px 0 16px; text-align: center;
  background: linear-gradient(160deg, #1f3b0e, #13102a 70%);
  border: 1px solid #3a5a1d;
}
.walletcard span { font-size: 13px; color: #c6e6a3; text-transform: uppercase; letter-spacing: .08em; }
.walletcard strong { display: block; font-size: 36px; margin: 4px 0 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { background: var(--surface-2); color: var(--text); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list > li { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.list > li:not(:has(.list-link)) { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.list-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.list-link:hover { text-decoration: none; }
.list > li:has(.list-link):hover { border-color: var(--accent); }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-main strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.list-main span { font-size: 14px; color: #d0cbef; }
.list-main small { font-size: 13px; }
.list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.amount { font-weight: 600; font-size: 15px; white-space: nowrap; }
.amount.pos { color: var(--ok); } .amount.neg { color: var(--text); }
.notifs li.unread { border-color: color-mix(in srgb, var(--accent-2) 60%, var(--line)); background: color-mix(in srgb, var(--accent-2) 8%, var(--surface)); }

.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill-processing { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); }
.pill-completed, .pill-approved { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill-cancelled, .pill-rejected { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.pill-muted { background: var(--surface-2); color: var(--muted); }

.methods { display: grid; gap: 10px; margin-top: 12px; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.method:hover { text-decoration: none; border-color: var(--accent); }
.method-ic { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); flex: none; }
.method-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.method-txt strong { font-size: 16px; }
.method-txt small { color: var(--muted); font-size: 13px; }
.chev { font-size: 24px; color: var(--muted); }
.paybox { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.paybox .step { margin-top: 0; }
.instructions, .delivery pre {
  white-space: pre-wrap; word-break: break-word; margin: 0 0 10px;
  font: 500 15px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line);
}
.credit-preview { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.credit-preview strong { color: var(--accent); font-size: 16px; }

/* ---------- Pedido ---------- */
.ordercard { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-top: 6px; display: grid; gap: 16px; }
.ordercard-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ordercard-head h2 { font-size: 19px; }
.ordercard-head p { margin: 2px 0 0; }
.tracker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; font-size: 13px; color: var(--muted); text-align: center; }
.tracker::before { content: ""; position: absolute; top: 9px; left: 16%; right: 16%; height: 3px; background: var(--line); }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tracker li span { width: 20px; height: 20px; border-radius: 5px; background: var(--surface-2); border: 3px solid var(--line); position: relative; z-index: 1; }
.tracker li.done { color: var(--text); font-weight: 600; }
.tracker li.done span { background: var(--accent); border-color: var(--accent); }
.delivery { padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); }
.delivery small { display: block; color: var(--ok); font-weight: 600; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-word; font-weight: 500; }

/* ---------- Perfil ---------- */
.profilecard { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.profilecard h2 { font-size: 20px; }
.profilecard p { margin: 0; }
.avatar { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-family: var(--pixel); font-size: 20px; background: linear-gradient(135deg, var(--accent-2), #6a3dff); color: #fff; flex: none; }
.statrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.statrow > div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.statrow strong { display: block; font-size: 18px; }
.statrow small { color: var(--muted); font-size: 13px; }
.card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 12px 0; }
details.card > summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-family: var(--pixel); font-size: 12px; color: var(--accent); }
details.card[open] > summary::after { content: "–"; }
details.card > .form, details.card > p { padding: 0 16px 16px; margin: 0; }
details.card > p { color: #d0cbef; }
.menu { display: grid; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); border-top: 1px solid var(--line); }
.menu a:first-child { border-top: 0; }
.menu a:hover { text-decoration: none; background: var(--surface-2); }
.menu a.danger { color: var(--danger); }
.menu .ic { color: var(--muted); }
.menu a.danger .ic { color: var(--danger); }

/* ---------- Navegación inferior ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 560px; margin: 0 auto;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .bottomnav { border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.bottomnav a:hover { text-decoration: none; color: var(--text); }
.bottomnav a.on { color: var(--accent); }
.bottomnav a.on .ic { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 60%, transparent)); }
.fab-support {
  position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 25;
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: #25d366; color: #05301b; box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}
.fab-support:hover { text-decoration: none; transform: scale(1.05); }
body:has(.buybar) .fab-support { display: none; }

.faq { margin-top: 6px; }

/* ---------- Panel de administración ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 250px; flex: none; padding: 18px 14px; background: var(--bg-2); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { padding: 4px 8px 10px; }
.admin-badge { margin: 0 8px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); font-weight: 700; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
.admin-side nav a:hover { text-decoration: none; color: var(--text); background: var(--surface); }
.admin-side nav a.on { color: var(--text); background: var(--surface-2); }
.admin-side nav a.on .ic { color: var(--accent); }
.admin-side nav a.sep { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.admin-side .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-2); color: #fff; font-size: 12px; display: grid; place-items: center; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); z-index: 10; }
.admin-top h1 { font-size: 20px; }
.menu-toggle { display: none; }
.admin-content { padding: 20px 24px 60px; max-width: 1100px; }
@media (max-width: 860px) {
  .admin-side { position: fixed; z-index: 50; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 40px rgba(0,0,0,.5); }
  body.menu-open .admin-side { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
  .menu-toggle { display: inline-grid; }
  .admin-top { padding: 12px 16px; }
  .admin-content { padding: 16px 16px 60px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); display: block; }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat small { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 24px; margin-top: 4px; }
.stat.alert { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.stat.alert strong { color: var(--warn); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.panel > h2 { font-size: 16px; margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .tabs { margin: 0; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.toolbar input[type=search] { min-height: 40px; }

.tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .mini-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; }
.tbl .mini-thumb.thumb-gen span { font-size: 12px; }

.review { display: grid; gap: 12px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.review-item.is-pending { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.review-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.review-top strong { font-size: 16px; }
.review-meta { color: var(--muted); font-size: 13px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.review-actions form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; flex: 1; }
.review-actions input[type=text], .review-actions textarea { min-height: 40px; flex: 1; min-width: 160px; }
.review-actions textarea { min-height: 70px; }
.proof-link img { max-height: 200px; border-radius: 10px; border: 1px solid var(--line); }
.copyval { font: 500 14px ui-monospace, Menlo, Consolas, monospace; background: var(--bg-2); padding: 2px 8px; border-radius: 6px; cursor: copy; border: 1px solid var(--line); word-break: break-all; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.vrow { display: grid; grid-template-columns: 1fr 140px auto auto; gap: 8px; align-items: center; }
.vrow input { min-height: 42px; }
@media (max-width: 600px) { .vrow { grid-template-columns: 1fr 110px auto; } .vrow .check span { display: none; } }
.vrows { display: grid; gap: 8px; }
.iconbtn.del { width: 42px; height: 42px; color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 6px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px); transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 100; animation: fade 1.6s forwards; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.hero-balance .cup { display: block; margin: -12px 0 16px; color: #b9b1e8; font-size: 13px; }
.search input[type=search] { border: 0; background: none; box-shadow: none; min-height: 0; padding: 0; }
.btn-google { background: #fff; color: #1f1f1f; box-shadow: 0 4px 0 #b9b6cc; }
.btn-google:active { box-shadow: 0 1px 0 #b9b6cc; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0 -4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vrow { grid-template-columns: 1fr 110px 140px auto auto; }
@media (max-width: 600px) { .vrow { grid-template-columns: 1fr 90px auto; } .vrow .vref { grid-column: 1 / 2; } }
.provlog { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; max-height: 160px; overflow: auto; color: var(--muted); margin: 0; }
.pill-auto { background: color-mix(in srgb, var(--accent-2) 20%, transparent); color: var(--accent-2); }
.variant .instant { font-size: 11px; font-weight: 700; color: var(--accent-2); }
.vhead { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
@media (max-width: 600px) { .vhead { display: none; } }
.pill-awaiting_payment { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.buy-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.buybar.two { flex-wrap: wrap; }
.buybar.two .buy-actions { flex: 1 1 200px; }
.paysum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 14px; }
.paysum strong { font-size: 22px; }
.method .send { margin-left: auto; text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; }
.paysum strong { white-space: nowrap; }
.refbanner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); font-size: 14px; }
.refbanner:hover { text-decoration: none; border-color: var(--accent); }
.refbanner .ic { color: var(--accent); }
.refbanner .chev { margin-left: auto; }
.refhero { padding: 20px; border-radius: 22px; margin: 6px 0 14px; background: linear-gradient(140deg, #1f3b0e, #2a1f72 80%); border: 1px solid #3b5a2a; }
.refhero h2 { font-size: 22px; margin-bottom: 6px; }
.refhero p { color: #d6d0f5; }
.reflink { margin: 12px 0; }
.reflink .copyval { display: block; padding: 10px 12px; font-size: 13px; }
.statrow-3 { grid-template-columns: repeat(3, 1fr); }
.statrow-3 strong { font-size: 16px; }
.refhero .hero-actions { margin-bottom: 14px; }

/* ===== Estilo sobrio (v2): azul marino, grafito y un azul de acción ===== */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #131c2e;
  --surface-2: #1a2438;
  --line: #243049;
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-ink: #ffffff;
  --accent-2: #93c5fd;
  --info: #60a5fa;
  --warn: #f5b942;
  --danger: #ef5350;
  --ok: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --pixel: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { background: var(--bg); }
a { color: #7fb0ff; }
.brand-text { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand-a { color: var(--text); }
.brand-b { color: var(--muted); font-weight: 600; }
.logo-mark { width: 28px; height: 28px; }

.btn { border-radius: 10px; box-shadow: none; font-weight: 600; }
.btn:hover { filter: none; background: #2f6fe0; }
.btn:active { transform: none; box-shadow: none; background: #275fc4; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: #212d45; }
.btn-ghost:active { box-shadow: none; background: #1d283e; }
.btn-ghost.btn-sm, .btn-sm { box-shadow: none; }
.btn-danger { background: #c62828; box-shadow: none; }
.btn-danger:hover { background: #b71c1c; }
.btn-ok { background: #15803d; color: #fff; box-shadow: none; }
.btn-ok:hover { background: #166534; }
.btn-google { background: #fff; color: #1f2937; box-shadow: none; border: 1px solid #d1d5db; }
.btn-google:hover { background: #f3f4f6; }

.iconbtn, .balance-chip { border-radius: 10px; }
.iconbtn .dot { background: #ef5350; }
.balance-chip .ic { color: var(--accent-2); }

.announce { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.hero { background: linear-gradient(160deg, #13203a 0%, #0f172a 100%); border: 1px solid var(--line); border-radius: 16px; }
.hero-pixels { display: none; }
.hero-title span { color: var(--accent-2); }
.hero-sub, .hero-hi { color: #b6c2d4; }
.hero-balance span { color: var(--muted); }

.chip { border-radius: 10px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pcard { border-radius: 12px; }
.pcard:hover { transform: none; border-color: #3a4a6b; }
.pcard-body small { color: var(--accent-2); }
.thumb-gen { background: linear-gradient(135deg, hsl(var(--h) 28% 30%), hsl(calc(var(--h) + 30) 32% 18%)); }
.thumb-gen::after { background-image: none; }
.thumb-gen span { font-family: var(--font); font-weight: 700; font-size: 34px; text-shadow: none; color: rgba(255,255,255,.92); }
.thumb-lg.thumb-gen span { font-size: 30px; }
.badge { background: #1e3a8a; color: #dbeafe; border-radius: 6px; font-weight: 600; }

.howto { border-style: solid; background: var(--bg-2); }
.howto li > b, .step b { font-family: var(--font); font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--accent-2); border: 1px solid var(--line); }
.step b { background: var(--accent); color: #fff; border: 0; }
.variant-box { border-radius: 10px; border-width: 1px; }
.variant input:checked + .variant-box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: 0 0 0 1px var(--accent) inset; }
.variant input:checked + .variant-box .variant-price { color: var(--accent-2); }
.variant .instant { color: var(--accent-2); }
.buybar { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea { border-radius: 10px; }

.walletcard { background: linear-gradient(160deg, #13203a, #0f172a); border: 1px solid var(--line); border-radius: 16px; }
.walletcard span { color: var(--muted); }
.refhero { background: linear-gradient(160deg, #13203a, #0f172a); border: 1px solid var(--line); border-radius: 16px; }
.refhero p { color: #b6c2d4; }
.refbanner { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.refbanner .ic { color: var(--accent-2); }
.notifs li.unread { border-color: #2f4a7a; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.pill-awaiting_payment, .pill-auto { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2); }
.tracker li span { border-radius: 50%; }
.tracker li.done span { background: var(--accent); border-color: var(--accent); }
.delivery small { color: var(--ok); }
.avatar { font-family: var(--font); font-weight: 700; font-size: 22px; background: #1e3a8a; color: #dbeafe; border-radius: 14px; }
.tabs a.on { background: var(--surface-2); }
.bottomnav a.on { color: var(--accent-2); }
.bottomnav a.on .ic { filter: none; }
.fab-support { border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.toast { background: var(--accent); color: #fff; }
details.card > summary::after { font-family: var(--font); font-size: 18px; color: var(--muted); }

.admin-badge { color: var(--muted); }
.admin-side .count { background: var(--accent); }
.admin-side nav a.on .ic { color: var(--accent-2); }
.stat.alert { border-color: #6b5420; }
.rates { display: grid; gap: 8px; }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rate-name { font-weight: 600; }
.rate-input { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rate-input input { width: 120px; min-height: 40px; text-align: right; }
.rates .form-actions { margin-top: 6px; justify-content: flex-start; gap: 14px; }
.rate-input .muted:last-child { min-width: 3.2em; }
.method-pick { cursor: pointer; position: relative; }
.method-pick input { position: absolute; opacity: 0; pointer-events: none; }
.method-pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.method-pick .send { color: var(--accent-2); }
.chips.quick { margin: 0 0 10px; padding: 0; }
.chips.quick .chip { cursor: pointer; font: 600 15px var(--font); }
.summary { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-top: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; }
.summary > div span { color: var(--muted); }
.summary .total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; }
.summary .total span { color: var(--text); font-weight: 600; }
textarea[name^="f"] { min-height: 90px; }
.tbl.fees input[type=text] { min-height: 38px; width: 90px; text-align: right; }
.tbl.fees input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
/* Remesa fija: montos grandes para elegir */
.chips.quick.big { overflow: visible; flex-wrap: wrap; margin: 0 0 8px; padding: 2px 0; }
.chips.quick.big .chip { flex: 1 1 120px; justify-content: center; text-align: center; padding: 14px 16px; font-size: 17px; font-weight: 700; }
/* Botón de WhatsApp */
.btn.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.btn-wa:hover { background: #1a9149; }
.btn.btn-wa .ic { width: 20px; height: 20px; }
