/* Tema base: oscuro premium por defecto, claro opcional. Color de acento configurable (--accent). */
:root {
  --accent: #2563eb;
  --radius: 14px; --radius-sm: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #0b0c0f; --bg2: #111317; --card: #15171c; --card2: #1b1e24; --line: #262a32; --line2: #31363f;
  --text: #eceef2; --text2: #a3a9b4; --text3: #6f7682; --hover: #1f232a; --shadow: 0 10px 30px rgba(0,0,0,.45);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #60a5fa; color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f5f7; --bg2: #eef0f3; --card: #ffffff; --card2: #f7f8fa; --line: #e5e7eb; --line2: #d9dde3;
  --text: #0f1115; --text2: #5b6270; --text3: #8b919c; --hover: #f1f3f6; --shadow: 0 10px 30px rgba(15,17,21,.08);
  --ok: #059669; --warn: #b45309; --bad: #dc2626; --info: #2563eb; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--text2); } .dim { color: var(--text3); } .mono { font-family: var(--mono); font-size: .92em; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botones e inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card2); cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: var(--line2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--bad); } .btn.sm { height: 32px; padding: 0 12px; font-size: 13px; } .btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; } .btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; cursor: pointer; position: relative; color: var(--text2); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.dot-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg2); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text2); font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text2); cursor: pointer; }
label.check input { margin-top: 3px; accent-color: var(--accent); }
.searchbox { position: relative; } .searchbox .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); }
.searchbox .input { padding-left: 40px; border-radius: 999px; background: var(--card2); }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line2); border-radius: 6px; color: var(--text3); }

/* ---------- estructura ---------- */
.topbar { position: sticky; top: 12px; z-index: 30; max-width: 1240px; margin: 12px auto 0; padding: 0 16px; }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text2); font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.topbar .searchbox { flex: 1; max-width: 360px; margin-left: auto; } .topbar .searchbox .input { height: 40px; background: var(--bg2); }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; }
.balance-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-weight: 700; cursor: pointer; }
.balance-pill:hover { border-color: var(--line2); }
.page { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.layout > *, .acct > *, .pdp > *, .hero > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; } .pad-sm { padding: 14px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); font-weight: 700; }
.banner { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--text); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-weight: 500; }

/* ---------- sidebar categorias ---------- */
.sidebar { position: sticky; top: 92px; padding: 14px; }
.sidebar .searchbox .input { height: 38px; background: var(--bg2); }
.cat-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text2); font-weight: 500; }
.cat-list a:hover { background: var(--hover); color: var(--text); }
.cat-list a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 600; }
.cat-list a.on .ic { color: var(--accent); }
.cat-list .n { margin-left: auto; font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.side-help { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--card2); font-size: 13px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; padding: 28px; overflow: hidden; align-items: center; }
.hero .kicker { color: var(--text2); font-weight: 600; font-size: 13px; }
.hero h1 { font-size: 34px; margin: 10px 0 12px; font-weight: 800; }
.hero p { color: var(--text2); margin: 0 0 18px; max-width: 46ch; }
.hero .price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero .compare { color: var(--text3); text-decoration: line-through; font-size: 16px; margin-left: 8px; font-weight: 500; }

.dots { display: flex; gap: 6px; margin-top: 20px; } .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line2); padding: 0; cursor: pointer; transition: width .2s; }
.dots button.on { width: 22px; background: var(--accent); }

/* ---------- portadas de producto ---------- */
.art { position: relative; overflow: hidden; background: #0d0f13; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pcard:hover .art img { transform: scale(1.03); }
.hero-art { border-radius: 16px; aspect-ratio: 16 / 10; min-height: 0; }
/* portada pendiente: neutra y sobria, sin letras gigantes (se sustituye al subir la portada real) */
.art.pending { background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--tint) 32%, transparent), transparent 60%), linear-gradient(180deg, #14171d, #0c0e12); }
.art.pending::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); }
.art .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; color: #fff; }
.art .ph-name { font-size: 18px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; max-width: 85%; }
.hero-art .ph { padding: 28px; } .hero-art .ph-name { font-size: 30px; }
.art .ph-brand { font-size: 12px; opacity: .6; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- logos de marcas ---------- */
.logo { width: var(--s); height: var(--s); border-radius: 999px; flex-shrink: 0; display: inline-grid; place-items: center; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.logo img { width: 72%; height: 72%; object-fit: contain; }
.logo.fallback { background: var(--card2); color: var(--accent); }
.logo.xs { box-shadow: none; } .logo.xs img { width: 100%; height: 100%; }
.pm-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pm-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: transparent; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; width: 100%; }
.pm-row:first-child { border-top: 0; } .pm-row:hover { background: var(--hover); }
.pm-row b { display: block; font-size: 15px; } .pm-row span { font-size: 13px; color: var(--text2); }
.pm-row.selected { border: 1px solid var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.net-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.net { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; text-align: left; }
.net.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.net b { display: block; font-size: 13px; } .net small { color: var(--text2); font-size: 11px; }

/* ---------- toolbar / filtros ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin: 18px 0 10px; flex-wrap: wrap; }
.toolbar .searchbox { flex: 1; min-width: 220px; } .toolbar .searchbox .input { height: 44px; }
.toggle.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card2)); }
.stats { color: var(--text3); font-size: 13px; margin: 4px 0 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats b { color: var(--text); font-weight: 700; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text2); }
.chip.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--card2)); }
.chip:hover { border-color: var(--line2); }

/* ---------- grid de productos ---------- */
.h-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.h-section h2 { font-size: 22px; font-weight: 800; } .h-section h2 span { color: var(--text3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; cursor: pointer; }
.pcard:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: var(--shadow); }
.pcard .art { aspect-ratio: 16 / 10; }
.pcard .meta .logo { box-shadow: none; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .meta { font-size: 12px; color: var(--text3); font-weight: 500; }
.pcard .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.pcard .from { font-size: 12px; color: var(--text3); margin-right: 4px; font-weight: 500; }
.pcard .pr { font-size: 18px; font-weight: 800; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(15,17,21,.72); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 9px; background: #f59e0b; }
.tag.sale::before { background: #34d399; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 99px; border: 0; display: grid; place-items: center; background: rgba(15,17,21,.6); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.fav.on { color: #fb7185; } .fav.on svg path { fill: currentColor; }
.stock { font-size: 12px; font-weight: 600; color: var(--text2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: var(--ok); }
.stock.manual::before { background: var(--info); } .stock.out::before { background: var(--bad); }
.empty { padding: 48px 20px; text-align: center; color: var(--text2); }
.empty .ic { color: var(--text3); margin-bottom: 8px; }

/* ---------- ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.pdp .art { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text3); font-size: 13px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.buybox { position: sticky; top: 92px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.buybox h1 { font-size: 24px; font-weight: 800; }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.variant { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; }
.variant b { display: block; font-size: 13px; } .variant span { font-size: 12px; color: var(--text2); }
.variant.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.variant[disabled] { opacity: .45; cursor: not-allowed; }
.bigprice { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.info-list { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.info-list .it { display: flex; gap: 10px; align-items: flex-start; color: var(--text2); } .info-list .it .ic { color: var(--accent); margin-top: 1px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: var(--card2); cursor: pointer; font-size: 16px; }
.qty input { width: 44px; height: 36px; border: 0; text-align: center; background: var(--bg2); }
details.acc { border-top: 1px solid var(--line); padding: 14px 0; } details.acc:last-child { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc[open] summary .ic { transform: rotate(180deg); }
details.acc p, details.acc div.txt { color: var(--text2); margin: 10px 0 0; white-space: pre-line; }

/* ---------- cuenta / paneles ---------- */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side-nav { padding: 10px; position: sticky; top: 92px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text2); font-weight: 600; }
.side-nav a:hover { background: var(--hover); color: var(--text); }
.side-nav a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); } .side-nav a.on .ic { color: var(--accent); }
.side-nav .n { margin-left: auto; font-size: 11px; background: var(--bad); color: #fff; border-radius: 9px; padding: 1px 7px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px; } .kpi .l { color: var(--text2); font-size: 13px; font-weight: 500; } .kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--text3); margin-top: 2px; }
.wallet-hero { padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.wallet-hero .v { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--ok); font-variant-numeric: tabular-nums; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--text3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--ok); } .neg { color: var(--text); }
.tbl-wrap { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); --c: var(--text3); }
.badge.ok { --c: var(--ok); } .badge.warn { --c: var(--warn); } .badge.bad { --c: var(--bad); } .badge.info { --c: var(--info); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.method { text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.method:hover { border-color: var(--line2); } .method.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.method .ic { color: var(--accent); } .method b { font-size: 14px; } .method span { color: var(--text2); font-size: 12px; }
.pay-box { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; height: 220px; } .qr img { width: 100%; height: 100%; display: block; }
.copyline { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.copyline .grow { min-width: 0; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13px; } .kv dt { color: var(--text3); } .kv dd { margin: 0; }
.delivery { white-space: pre-wrap; font-family: var(--mono); font-size: 13px; padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); white-space: pre-wrap; }
.msg.me { margin-left: auto; background: color-mix(in srgb, var(--accent) 16%, var(--card2)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.msg .t { font-size: 11px; color: var(--text3); margin-top: 4px; }
.steps { display: flex; gap: 8px; align-items: center; color: var(--text3); font-size: 13px; flex-wrap: wrap; } .steps .on { color: var(--text); font-weight: 600; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--text2); font-size: 13px; }
.notice .ic { color: var(--info); margin-top: 1px; } .notice.warn .ic { color: var(--warn); }

/* ---------- menu de cuenta ---------- */
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 12px; z-index: 50; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.menu .who { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; }
.menu .who:hover { background: var(--hover); }
.menu .bal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.menu .bal .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.menu .acts { display: flex; justify-content: space-around; }
.menu .act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.menu .act span.c { width: 40px; height: 40px; border-radius: 99px; background: var(--card2); display: grid; place-items: center; border: 1px solid var(--line); }
.menu .act.pri span.c { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu .tile { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 13px; }
.menu .tile:hover { background: var(--hover); }
.menu .tile .ic { color: var(--text2); }
.menu .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- modal / toast / skeleton ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.6); display: grid; place-items: center; padding: 16px; animation: fade .15s; backdrop-filter: blur(3px); }
.modal-bg.out { opacity: 0; transition: opacity .15s; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; } .modal-x { position: absolute; top: 12px; right: 12px; }
.modal h3 { font-size: 19px; margin-bottom: 6px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: pop .2s ease-out; transition: opacity .3s, transform .3s; }
.toast.bad .ic { color: #f87171; } .toast.ok .ic { color: #34d399; } .toast.out { opacity: 0; transform: translateY(6px); }
.sk { background: linear-gradient(90deg, var(--card2) 0%, var(--hover) 50%, var(--card2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.auth { max-width: 420px; margin: 40px auto; padding: 28px; }
.auth h1 { font-size: 24px; margin-bottom: 4px; }
.footer { max-width: 1240px; margin: 0 auto; padding: 28px 16px 40px; color: var(--text3); font-size: 13px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .layout, .acct { grid-template-columns: 1fr; } .sidebar, .side-nav { position: static; }
  .sidebar .cat-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .sidebar .cat-list a { white-space: nowrap; } .side-help { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; } .side-nav a { white-space: nowrap; }
  .pdp { grid-template-columns: 1fr; } .buybox { position: static; }
  .hero { grid-template-columns: 1fr; } .hero-art { order: -1; }
}
@media (max-width: 720px) {
  .nav, .topbar .searchbox { display: none; } .topbar { top: 8px; } .topbar-in { height: 54px; }
  .hero { padding: 20px; } .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pcard .body { padding: 10px 12px 12px; } .pcard .name { font-size: 13px; } .pcard .pr { font-size: 15px; }
  .pay-box { grid-template-columns: 1fr; } .qr { margin: 0 auto; }
  .kv { grid-template-columns: 1fr; } .menu { width: calc(100vw - 32px); position: fixed; right: 16px; top: 72px; }
  .balance-pill span.t { display: none; } .hide-m { display: none !important; }
  .topbar-in { gap: 6px; padding: 0 8px 0 12px; } .brand { font-size: 15px; } .balance-pill { padding: 0 10px; font-size: 13px; }
  .stats span:nth-child(n+2) { display: none; } .h-section h2 { font-size: 18px; } .h-section h2 span { display: block; font-size: 14px; }
  .toolbar .btn { padding: 0 12px; } .toolbar select.input { flex: 1; }
}

.back { font-weight: 600; } .back .ic { transform: rotate(180deg); }
a.kpi:hover { border-color: var(--line2); }

.thumb { width: 64px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--card2); display: grid; place-items: center; color: var(--text3); font-size: 10px; text-align: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-edit { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: center; } .cover-edit .thumb { width: 240px; }

.brand-mark:has(img) { background: transparent; border-radius: 8px; }
.brand-mark img { object-fit: contain; }
.side-help { position: relative; overflow: hidden; }
.side-help .mascot { display: block; height: 120px; width: auto; margin: -4px auto 8px; filter: drop-shadow(0 10px 18px rgba(37,99,235,.25)); }
.auth .mascot { display: block; height: 100px; width: auto; margin: 0 auto 12px; filter: drop-shadow(0 10px 18px rgba(37,99,235,.25)); }

/* ---------- marca: logo completo, bienvenida y mascota ---------- */
.brand-full { height: 30px; width: auto; display: block; }
.brand-compact { display: none; align-items: center; gap: 10px; }
[data-theme="light"] .brand-full { display: none; } [data-theme="light"] .brand-compact { display: flex; }
.welcome { background: radial-gradient(90% 120% at 85% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--card); }
.welcome h1 { font-size: 36px; max-width: 16ch; text-wrap: balance; }
.welcome .badge { gap: 5px; }
.welcome-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.welcome-art::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%); filter: blur(8px); }
.welcome-art img { position: relative; height: 300px; width: auto; filter: drop-shadow(0 24px 36px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.mascot-empty { display: block; margin: 0 auto 10px; width: auto; filter: drop-shadow(0 10px 18px rgba(37,99,235,.25)); }
.support-hero { display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--card); }
.support-hero .mascot-empty { margin: 0; }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot img { width: 64px; height: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }
@media (max-width: 1000px) { .welcome-art { min-height: 0; } .welcome-art img { height: 190px; } }
@media (max-width: 720px) { .welcome h1 { font-size: 27px; } .welcome-art { order: -1; margin-bottom: -6px; } .welcome-art img { height: 150px; } .welcome p { font-size: 14px; } .support-hero { flex-direction: column; text-align: center; } }

/* ======================================================================
   2.0 · Ficha de producto, compra, chat por pedido, soporte, campañas
   ====================================================================== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn, .chip, .plan, .mode, .pcard, .icon-btn, .cl-item, .help-card, .notif, .input { transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s; }
.h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.card2 { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.neg { color: var(--bad); } .pos { color: var(--ok); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot-mini { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ficha */
.gallery { position: relative; }
.gallery .zoom { position: absolute; right: 12px; bottom: 12px; background: rgba(10,12,16,.6); color: #fff; backdrop-filter: blur(6px); }
.gallery .zoom:hover { background: rgba(10,12,16,.8); color: #fff; }
.lightbox { overflow: hidden; border-radius: var(--radius-sm); background: #000; }
.lightbox img { display: block; width: 100%; height: auto; cursor: zoom-in; transition: transform .2s; }
.lightbox img.zoomed { transform: scale(2.2); cursor: zoom-out; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--text2); min-width: 0; }
.fact > div { display: flex; flex-direction: column; min-width: 0; } .fact span { font-size: 11.5px; color: var(--text3); } .fact b { font-size: 13px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.plan, .mode { position: relative; text-align: left; padding: 12px 12px 12px 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.plan b { font-size: 13.5px; } .plan .plan-p { font-weight: 700; font-size: 15px; color: var(--text); } .plan s { font-size: 12px; }
.plan-r { position: absolute; left: 12px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); }
.plan:hover, .mode:hover { border-color: var(--line2); }
.plan.on, .mode.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card2)); }
.plan.on .plan-r, .mode.on .plan-r { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px); }
.plan[disabled] { opacity: .45; cursor: not-allowed; }
.modes { display: grid; gap: 8px; } .mode div { display: flex; flex-direction: column; gap: 2px; } .mode b { font-size: 14px; } .mode span { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.pricebox { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.wallet-calc { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 0; font-size: 13px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.wallet-calc dt { color: var(--text2); } .wallet-calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rating-line { gap: 6px; font-size: 13px; margin-top: 6px; }
.stars { display: inline-flex; gap: 1px; } .stars svg { fill: var(--line2); } .stars svg.on { fill: #f5b301; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.feat { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.feat-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.feat div { display: flex; flex-direction: column; } .feat b { font-size: 13.5px; } .feat span { font-size: 12.5px; color: var(--text2); }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.how li { display: flex; gap: 10px; align-items: flex-start; } .how li div { display: flex; flex-direction: column; } .how b { font-size: 13.5px; } .how span { font-size: 12.5px; color: var(--text2); }
.how-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.rev-sum { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin: 14px 0; }
.rev-avg { display: flex; flex-direction: column; gap: 4px; } .rev-avg > b { font-size: 36px; line-height: 1; }
.rev-bars { display: flex; flex-direction: column; gap: 4px; font-size: 12px; } .rev-bars .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--card2); overflow: hidden; } .rev-bars i { display: block; height: 100%; background: #f5b301; }
.revs { display: flex; flex-direction: column; } .rev { padding: 14px 0; border-top: 1px solid var(--line); } .rev p { margin: 6px 0; color: var(--text2); }
.verified { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--ok); font-weight: 600; }
.empty-inline { display: flex; gap: 12px; align-items: flex-start; color: var(--text2); padding: 6px 0; }
.related { margin-top: 36px; }
.buybar { display: none; }
@media (max-width: 1000px) {
  body.has-buybar .page { padding-bottom: 96px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .buybar > div { display: flex; flex-direction: column; min-width: 0; } .buybar > div b { font-size: 18px; } .buybar > div span { font-size: 12px; }
  .buybar .btn { flex: 1; height: 46px; } .buybar .btn.block { width: auto; }
}
/* confirmación y éxito */
.sum-prod { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .sum-prod .art { width: 88px; aspect-ratio: 16/10; border-radius: 10px; flex-shrink: 0; }
.sum-prod .art .ph-name, .sum-prod .art .ph-brand { display: none; }
.coupon .input { height: 36px; } .coupon .btn { flex-shrink: 0; }
.success { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; } .success h3 { font-size: 22px; } .success p { margin: 0; }
.success .btn { width: 100%; }
.ok-ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.order-no { width: 100%; text-align: left; } .order-no .grow { display: flex; flex-direction: column; } .order-no .grow .dim { font-size: 11.5px; } .order-no b { font-family: var(--mono); font-size: 16px; }
/* pedido */
.thumb-lg { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.order-num { gap: 4px; margin-top: 6px; } .order-num .mono { font-size: 14px; font-weight: 600; color: var(--text); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.track li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--text3); position: relative; }
.track li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; } .track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--accent); }
.track .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); display: grid; place-items: center; z-index: 1; color: #fff; }
.track li.done .dot { background: var(--accent); border-color: var(--accent); } .track li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.track li.now.warn .dot { border-color: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.track li.done b, .track li.now b { color: var(--text); font-weight: 600; }
.events { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; } .events li { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.review-box { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); }
.star-pick { display: inline-flex; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; } .star-pick svg { fill: var(--line2); cursor: pointer; transition: fill .15s; }
.star-pick:has(label:nth-child(5) input:checked) svg, .star-pick:has(label:nth-child(4) input:checked) label:nth-child(-n+4) svg,
.star-pick:has(label:nth-child(3) input:checked) label:nth-child(-n+3) svg, .star-pick:has(label:nth-child(2) input:checked) label:nth-child(-n+2) svg,
.star-pick:has(label:nth-child(1) input:checked) label:nth-child(1) svg { fill: #f5b301; }
.star-pick input:focus-visible + svg { outline: 2px solid var(--accent); border-radius: 4px; }
/* chat */
.chat { display: grid; grid-template-columns: 340px 1fr; gap: 16px; height: calc(100vh - 140px); min-height: 520px; }
.chat > * { min-width: 0; min-height: 0; }
.chat-list { display: flex; flex-direction: column; overflow: hidden; }
.cl-head { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); } .cl-head h2 { font-size: 18px; }
.cl-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cl-filters .chip { flex-shrink: 0; }
.cl-items { overflow-y: auto; flex: 1; }
.cl-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cl-item:hover { background: var(--hover); } .cl-item.on { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.cl-item img, .cl-ph { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--card2); display: grid; place-items: center; color: var(--text3); }
.cl-item .t { font-size: 11px; flex-shrink: 0; } .cl-item .last { font-size: 12.5px; color: var(--text2); margin: 2px 0 6px; }
.cl-item .badge { font-size: 10.5px; padding: 1px 7px; }
.unread-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.chat-main { display: flex; flex-direction: column; overflow: hidden; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 340px; }
.ch-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ch-head img, .ch-head .cl-ph { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; } .ch-head .grow { min-width: 0; } .ch-back { display: none; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg2); }
.ch-msgs.tk { background: transparent; padding: 0; overflow: visible; }
.day-sep { text-align: center; margin: 8px 0; } .day-sep span { font-size: 11.5px; color: var(--text3); background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.bub { max-width: min(78%, 560px); padding: 10px 14px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; }
.bub .txt { white-space: pre-wrap; overflow-wrap: anywhere; } .bub .txt a { color: var(--accent); text-decoration: underline; }
.bub .t { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--text3); margin-top: 4px; }
.bub.me { margin-left: auto; background: var(--accent); border-color: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bub.me .t { color: rgba(255,255,255,.75); } .bub.me .txt a { color: #fff; } .bub.me .ic.read { color: #bfe3ff; }
.bub.them { border-bottom-left-radius: 6px; }
.bub .who { font-size: 11.5px; font-weight: 700; color: var(--text2); display: flex; gap: 5px; align-items: center; margin-bottom: 4px; }
.bub.sys { max-width: min(92%, 620px); background: color-mix(in srgb, var(--accent) 6%, var(--card)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.sys-h { font-size: 11.5px; font-weight: 700; color: var(--accent); display: flex; gap: 5px; align-items: center; margin-bottom: 6px; }
.bub.pending { opacity: .7; } .bub.fail { background: color-mix(in srgb, var(--bad) 18%, var(--card)); border-color: var(--bad); color: var(--text); }
.retry { background: none; border: 0; color: var(--bad); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.typing { display: flex; gap: 4px; padding: 12px 14px; width: max-content; } .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; } @keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.older { align-self: center; }
.file { display: inline-flex; gap: 8px; align-items: center; padding: 8px 10px; margin-top: 6px; border-radius: 10px; background: rgba(127,127,127,.12); font-size: 12.5px; max-width: 100%; }
.file span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-img { display: block; margin-top: 6px; } .file-img img { display: block; max-width: 260px; max-height: 220px; border-radius: 10px; object-fit: cover; }
.ch-comp { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ch-comp .row { align-items: flex-end; } .ch-comp textarea { min-height: 42px; max-height: 140px; resize: none; padding: 10px 14px; line-height: 1.4; border-radius: 21px; }
.ch-comp .send { width: 42px; height: 42px; padding: 0; flex-shrink: 0; }
.ch-safe { font-size: 11.5px; color: var(--text3); display: flex; gap: 5px; align-items: center; justify-content: center; }
.ch-closed { display: flex; gap: 12px; padding: 16px; border-top: 1px solid var(--line); background: var(--card2); color: var(--text2); } .ch-closed p { margin: 4px 0 10px; font-size: 13px; } .ch-closed b { color: var(--text); }
.att-chip { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 8px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; max-width: 100%; }
.att-chip img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; } .att-chip span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .att-chip .icon-btn { width: 28px; height: 28px; }
@media (max-width: 860px) {
  body.in-chat .footer { display: none; } body.in-chat .page { padding-bottom: 0; }
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 76px); gap: 0; margin: -8px -16px 0; }
  .chat .card { border-radius: 0; border-left: 0; border-right: 0; }
  .chat.has-sel .chat-list { display: none; } .chat:not(.has-sel) .chat-main { display: none; }
  .ch-back { display: inline-grid; } .bub { max-width: 88%; }
}
/* soporte y garantías */
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.help-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text2); } .help-card .ic { color: var(--accent); } .help-card b { color: var(--text); font-size: 15px; } .help-card span { font-size: 13px; }
.help-card:hover { border-color: var(--line2); transform: translateY(-1px); }
.w-status { display: flex; flex-direction: column; }
.tk-order { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); }
.tk-order:hover { border-color: var(--line2); }
/* notificaciones */
.notif-list { overflow: hidden; } .notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-top: 1px solid var(--line); } .notif:first-child { border-top: 0; }
.notif:hover { background: var(--hover); } .notif .nd { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; } .notif.unread .nd { background: var(--accent); } .notif.unread { font-weight: 600; }
/* comprobante */
.receipt { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.rc-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rc-head > div { display: flex; flex-direction: column; text-align: right; } .rc-head b { font-size: 17px; } .rc-logo { height: 40px; width: auto; }

.rc-ok { display: flex; gap: 8px; align-items: center; color: var(--ok); }
.rc-terms { padding: 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); } .rc-terms p { margin: 6px 0 0; color: var(--text2); white-space: pre-line; font-size: 13px; }
/* invita y gana */
.invite-hero { padding: 26px; display: flex; gap: 20px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 60%); }
.invite-hero h1 { font-size: 28px; margin: 10px 0 6px; } .invite-hero .copyline { margin-top: 14px; flex-wrap: wrap; } .invite-hero .copyline .grow { overflow-wrap: anywhere; }
.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .rules li { display: flex; gap: 8px; align-items: flex-start; color: var(--text2); } .rules .ic { color: var(--ok); margin-top: 3px; }
@media (max-width: 720px) { .invite-hero { flex-direction: column-reverse; text-align: left; align-items: stretch; } .invite-hero .mascot-empty { height: 100px !important; align-self: center; } }
/* preferencias */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.switch { appearance: none; width: 40px; height: 22px; border-radius: 11px; background: var(--line2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .16s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .16s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); } .switch:disabled { opacity: .55; cursor: not-allowed; }
/* novedades y anuncios */
.news-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-top: 1px solid var(--line); } .news-item:first-child { border-top: 0; }
.news-i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); background: var(--card2); border: 1px solid var(--line); }
.news-i.lg { width: 54px; height: 54px; border-radius: 14px; }
.annbar { background: var(--ann-bg, color-mix(in srgb, var(--accent) 14%, var(--bg2))); color: var(--ann-fg, var(--text)); border-bottom: 1px solid var(--line); }
.annbar-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.annbar-in .grow { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; } .annbar-in .grow span { opacity: .8; }
.annbar-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; } .annbar .icon-btn { color: inherit; width: 30px; height: 30px; }
.annbanner { position: relative; display: flex; gap: 18px; align-items: center; padding: 22px 24px; margin: 16px 0 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ann-bg, color-mix(in srgb, var(--accent) 12%, var(--card))); color: var(--ann-fg, var(--text)); overflow: hidden; }
.annbanner h3 { font-size: 21px; margin: 4px 0 6px; } .annbanner p { margin: 0 0 14px; opacity: .85; } .annbanner img { width: 180px; max-height: 140px; object-fit: contain; flex-shrink: 0; }
.ann-kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.ann-x { position: absolute; top: 8px; right: 8px; color: inherit; }
@media (max-width: 640px) { .annbanner { flex-direction: column-reverse; align-items: flex-start; } .annbanner img { width: 100%; max-height: 160px; } }
.annpop { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; } .annpop img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.annpop h3 { font-size: 21px; } .annpop p { margin: 0; } .annpop .copyline { width: 100%; text-align: left; }
.ctx-ann { margin-bottom: 16px; align-items: center; } .ctx-ann .icon-btn { width: 28px; height: 28px; }
/* pie de página */
.footer { display: block; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 22px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; } .foot-grid b { color: var(--text); font-size: 13px; margin-bottom: 2px; }
.foot-brand { flex-direction: row !important; gap: 12px !important; align-items: flex-start; } .foot-brand .dim { max-width: 260px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .rev-sum { grid-template-columns: 1fr; } .track { font-size: 11px; } .track li { font-size: 11px; } }
.success .copyline .btn { width: auto; flex-shrink: 0; } .order-no { word-break: normal; font-family: var(--font); }
.balance-pill { white-space: nowrap; }
.ch-head .grow .dim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) {
  .pdp > .col { display: contents; } .pdp > .col > .gallery { order: 0; } .pdp > .buybox { order: 1; } .pdp > .col > :not(.gallery) { order: 2; }
}
@media (max-width: 860px) { .ch-head img, .ch-head .cl-ph { display: none; } .ch-head .badge { font-size: 10.5px; white-space: nowrap; } }
/* panel 2.0 */
.adm-chat { display: grid; grid-template-columns: 300px 1fr 280px; gap: 14px; height: calc(100vh - 260px); min-height: 520px; }
.adm-chat > * { min-width: 0; min-height: 0; } .cv-side { overflow-y: auto; }
.adm-chat .cl-item .badge { font-size: 10.5px; }
.bub.note { max-width: min(92%, 620px); margin-left: auto; background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line)); color: var(--text); }
.bub.note .sys-h { color: var(--warn); }
textarea.is-note { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--card2)); }
.kv.sm { font-size: 12.5px; grid-template-columns: 90px 1fr; }
.tk-grid { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-top: 14px; }
.ann-ed { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.ann-prev { position: sticky; top: 0; align-self: start; } .prev-d, .prev-m { border: 1px dashed var(--line2); border-radius: 12px; padding: 12px; background: var(--bg); overflow: hidden; }
.prev-m { width: 375px; max-width: 100%; }
.feat-row { gap: 6px; } .feat-row .input { height: 36px; }
.modal.wide { max-width: 1100px; }
#cvk, .kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } #cvk .kpi, .kpis.k5 .kpi { padding: 14px 16px; } #cvk .v { font-size: 22px; }
@media (max-width: 1640px) { .adm-chat { grid-template-columns: 270px minmax(0, 1fr); height: auto; } .adm-chat .chat-list, .adm-chat .chat-main { height: calc(100vh - 230px); min-height: 520px; }
  .cv-side { grid-column: 1 / -1; } .cv-side > .col { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; } }
@media (max-width: 1000px) { #cvk, .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .adm-chat { grid-template-columns: 1fr; } .adm-chat .chat-list { max-height: 360px; } .tk-grid, .ann-ed { grid-template-columns: 1fr; } }

/* ======================================================================
   2.1 · Refinamiento visual: cuenta, cartera, pedidos, soporte
   ====================================================================== */
:root { --ease: cubic-bezier(.2,.7,.2,1); }
[data-theme="light"] { --text2: #4b5260; --text3: #737a86; }
.pane { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pane-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; } .pane-head p { margin: 4px 0 0; color: var(--text2); }
.sect { display: flex; flex-direction: column; gap: 12px; }
.block-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.block-h h2 { font-size: 17px; font-weight: 700; } .block-h > a { color: var(--accent); font-weight: 600; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
/* navegación de cuenta */
.acct-nav { display: flex; flex-direction: column; gap: 4px; }
.acct-who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.acct-who > div { display: flex; flex-direction: column; min-width: 0; } .acct-who .dim { font-size: 12px; }
.nav-g { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; } .nav-gl { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; padding: 6px 12px 2px; }
.acct-nav a { padding: 9px 12px; }
@media (max-width: 1000px) {
  .acct-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 4px; position: static; }
  .acct-who, .nav-gl { display: none; } .nav-g { flex-direction: row; padding: 0; gap: 4px; } .acct-nav a { white-space: nowrap; padding: 8px 12px; }
}
/* tarjeta de cartera */
.wallet-card { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: radial-gradient(120% 140% at 100% 0%, #3b82f6 0%, #1d4ed8 38%, #0f1f4d 100%); box-shadow: 0 18px 40px -18px rgba(37,99,235,.55); isolation: isolate; }
.wallet-card::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); z-index: -1; }
.wc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12.5px; }
.wc-brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; opacity: .92; } .wc-brand img { width: 22px; height: 22px; border-radius: 6px; }
.wc-cur { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 600; font-size: 11.5px; }
.wc-l { font-size: 13px; opacity: .8; } .wc-v { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wallet-card.big .wc-v { font-size: 46px; } .wc-p { font-size: 12.5px; opacity: .8; display: inline-flex; gap: 5px; align-items: center; margin-top: 2px; }
.wc-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.wc-primary { background: #fff; color: #1d4ed8; border-color: #fff; } .wc-primary:hover { background: #eef2ff; }
.wc-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); } .wc-ghost:hover { background: rgba(255,255,255,.2); }
/* tarjetas de datos */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic l" "v v" "n n"; gap: 2px 10px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .16s, transform .16s var(--ease); }
.stat:hover { border-color: var(--line2); transform: translateY(-1px); }
.stat-ic { grid-area: ic; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.stat-l { grid-area: l; font-size: 13px; color: var(--text2); font-weight: 500; } .stat-v { grid-area: v; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-n { grid-area: n; font-size: 12px; color: var(--text3); } .stat.attn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .stat.attn .stat-v { color: var(--accent); }
.fins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fin { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fin-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--card2); color: var(--text2); margin-bottom: 4px; }
.fin.in .fin-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .fin-l { font-size: 12.5px; color: var(--text2); } .fin b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fin.in b { color: var(--ok); }
@media (max-width: 860px) { .fins { grid-template-columns: 1fr 1fr; } .wallet-card .wc-v, .wallet-card.big .wc-v { font-size: 34px; } }
/* segmentos y filtros */
.filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .filterbar .searchbox { flex: 1; min-width: 200px; max-width: 320px; margin-left: auto; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg-b { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--text2); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, color .15s; }
.seg-b:hover { color: var(--text); } .seg-b.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.seg-b span { font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--line); color: var(--text2); } .seg.sm .seg-b { padding: 5px 10px; font-size: 12.5px; }
/* estados */
.pill { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .pill.info { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); } .pill.muted { color: var(--text2); background: var(--card2); border-color: var(--line); }
.thumb { width: 64px; aspect-ratio: 16/10; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); background: var(--card2); }
.thumb.ph { display: grid; place-items: center; color: var(--text3); }
/* pedidos */
.olist { display: flex; flex-direction: column; gap: 10px; }
.orow { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line2); transition: border-color .16s; }
.orow:hover { border-color: var(--line2); }
.orow.st-activating, .orow.st-pending { border-left-color: var(--info); } .orow.st-issue { border-left-color: var(--warn); } .orow.st-delivered { border-left-color: var(--ok); } .orow.st-refunded { border-left-color: var(--line2); }
.orow-main { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.orow-main .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.orow-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); } .orow-meta .ic { vertical-align: -2px; }
.orow-w { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--text3); } .orow-w.ok { color: var(--ok); }
.orow-amt { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; } .orow-amt span { font-size: 12px; font-weight: 500; }
.orow-act { flex-shrink: 0; }
@media (max-width: 720px) { .orow { flex-direction: column; align-items: stretch; } .orow-act .btn { width: 100%; } .orow-main { align-items: flex-start; } .orow-amt { display: none; } .thumb { width: 56px; } }
/* movimientos */
.mvlist { padding: 4px 0; overflow: hidden; }
.mv-day { padding: 14px 18px 6px; font-size: 12px; font-weight: 700; color: var(--text3); } .mv-day::first-letter { text-transform: uppercase; }
.mv { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 0; background: transparent; text-align: left; cursor: pointer; border-top: 1px solid var(--line); transition: background .15s; }
.mv-day + .mv { border-top: 0; } .mv:hover { background: var(--hover); }
.mv .grow { display: flex; flex-direction: column; min-width: 0; gap: 1px; } .mv .grow span { font-size: 12.5px; color: var(--text2); } .mv .grow .mv-t { color: var(--text3); font-size: 12px; }
.mv-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--card2); color: var(--text2); border: 1px solid var(--line); }
.mv-ic.img { object-fit: cover; padding: 0; } .mv-ic.t-deposit, .mv-ic.t-refund, .mv-ic.t-reward { color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); border-color: transparent; }
.mv-r { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; } .mv-r b { font-size: 15px; } .mv-r span { font-size: 12px; color: var(--text3); }
@media (max-width: 560px) { .mv { padding: 12px 14px; gap: 10px; } .mv > .ic.dim { display: none; } }
.deps { display: flex; flex-direction: column; gap: 8px; }
.dep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.dep:hover { border-color: var(--line2); } .dep .grow { display: flex; flex-direction: column; min-width: 0; } .dep .grow .mono { font-size: 11.5px; }
.dep-r { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; } .dep-r span { font-size: 12px; color: var(--text3); }
@media (max-width: 560px) { .dep-r span { display: none; } }
/* panel lateral */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,10,.55); backdrop-filter: blur(3px); animation: fade .18s ease-out; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); border-left: 1px solid var(--line); padding: 26px 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; animation: slidein .22s var(--ease); box-shadow: var(--shadow); }
.drawer-bg.out { opacity: 0; transition: opacity .18s; } .drawer-bg.out .drawer { transform: translateX(30px); transition: transform .18s; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } } @keyframes fade { from { opacity: 0; } }
.dr-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; } .dr-head h3 { font-size: 18px; } .dr-head .dim { font-size: 12.5px; }
.dr-amt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .dr-amt + .pill { align-self: flex-start; }
.dr-kv { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* estados vacíos */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 24px; color: var(--text2); }
.empty-state b { color: var(--text); font-size: 16px; } .empty-state p { margin: 0 0 10px; max-width: 380px; font-size: 13.5px; }
.es-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); margin-bottom: 6px; }
.es-img { height: 104px; width: auto; margin-bottom: 6px; }
/* soporte */
.tkrow { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tkrow:hover { border-color: var(--line2); } .tkrow .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.wcard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; } .wcard .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .wcard .grow > .dim { font-size: 12.5px; }
.wbar { height: 5px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 4px; } .wbar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
/* configuración */
.setting { gap: 14px; } .set-h { display: flex; gap: 12px; align-items: flex-start; } .set-h > .ic { color: var(--accent); margin-top: 2px; }
.set-h div { display: flex; flex-direction: column; } .set-h span { font-size: 13px; color: var(--text2); }
.sess { display: flex; flex-direction: column; } .sess-r { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sess-r .grow { display: flex; flex-direction: column; min-width: 0; } .sess-r .dim { font-size: 12px; }
/* detalle de pedido */
.od { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.od-hero { display: flex; gap: 20px; align-items: center; padding: 18px; }
.od-img { width: 200px; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; flex-shrink: 0; border: 1px solid var(--line); }
.od-img.ph { display: grid; place-items: center; background: var(--card2); color: var(--text3); }
.od-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 2px 0 4px; } .od-brand { font-size: 12.5px; font-weight: 600; }
.chip-copy { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; color: var(--text); font-size: 13px; }
.chip-copy:hover { border-color: var(--line2); } .chip-copy .mono { font-weight: 600; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.od-grid aside { position: sticky; top: 92px; }
@media (max-width: 900px) { .od-grid { grid-template-columns: 1fr; } .od-grid aside { position: static; } .od-hero { flex-direction: column; align-items: stretch; } .od-img { width: 100%; } }
.tracker { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12.5px; color: var(--text3); padding: 0 4px; }
.tracker li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 2px; background: var(--line); }
.tracker li:first-child::before { display: none; } .tracker li.done::before, .tracker li.now::before { background: var(--accent); }
.tracker li > span:last-child { font-size: 11.5px; }
.tk-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 2px solid var(--line); color: var(--text3); transition: all .2s var(--ease); }
.tracker li.done .tk-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tracker li.now .tk-dot { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.tracker li.now.warn .tk-dot { border-color: var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--card)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 16%, transparent); }
.tracker li.done b, .tracker li.now b { color: var(--text); }
@media (max-width: 560px) { .tracker b { font-size: 11px; } .tk-dot { width: 34px; height: 34px; } .tracker li::before { top: 16px; } }
.ctx { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); flex-wrap: wrap; }
.ctx .grow { min-width: 220px; } .ctx p { margin: 3px 0 0; color: var(--text2); font-size: 13.5px; }
.ctx-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--card); color: var(--text2); border: 1px solid var(--line); }
.ctx.info .ctx-ic { color: var(--info); background: color-mix(in srgb, var(--info) 12%, var(--card)); border-color: transparent; }
.ctx.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); } .ctx.ok .ctx-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--card)); border-color: transparent; }
.ctx.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); } .ctx.warn .ctx-ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-color: transparent; }
.vtl { list-style: none; margin: 0; padding: 0; } .vtl li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.vtl li > span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.vtl li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.vtl li div { display: flex; flex-direction: column; } .vtl li .dim { font-size: 12px; } .vtl p { margin: 2px 0 0; font-size: 12.5px; }
.sumlist { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0; font-size: 13.5px; } .sumlist dt { color: var(--text2); } .sumlist dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wbox { display: flex; flex-direction: column; gap: 12px; } .wbox .row > .ic { color: var(--text3); } .wbox.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); } .wbox.ok .row > .ic { color: var(--ok); }
.pane .col > h2:first-child { font-size: 26px !important; font-weight: 800; letter-spacing: -.025em; }
/* comprobante (coherente con el PDF) */
.receipt { padding: 0; gap: 0; overflow: hidden; }
.rc-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; background: #0b0c0f; color: #fff; }
.rc-band > div { display: flex; flex-direction: column; text-align: right; } .rc-band span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 700; } .rc-band b { font-size: 18px; }
.rc-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.rc-ok { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 10%, transparent); gap: 12px; }
.rc-ok > div { display: flex; flex-direction: column; flex: 1; } .rc-ok > div b { color: var(--text); } .rc-ok > div span { color: var(--text2); font-size: 12.5px; }
.rc-amt { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rc-sup { display: flex; gap: 12px; align-items: flex-start; color: var(--text2); font-size: 13px; } .rc-sup .ic { color: var(--accent); margin-top: 2px; } .rc-sup div { display: flex; flex-direction: column; } .rc-sup b { color: var(--text); }
/* chat: avatares y jerarquía */
.mrow { display: flex; gap: 8px; align-items: flex-end; } .mrow.me { justify-content: flex-end; }
.mrow > .bub { margin: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.av-bot { background: color-mix(in srgb, var(--accent) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--accent); }
.av-bot img { width: 26px; height: 26px; object-fit: contain; margin-top: 4px; }
.av-team { background: var(--card); border: 1px solid var(--line); color: var(--text2); }
.bub.sys .sys-h { color: var(--accent); font-size: 11.5px; letter-spacing: .01em; }
.bub .who { color: var(--text3); font-weight: 600; }
.ch-msgs { gap: 10px; background: linear-gradient(var(--bg2), var(--bg2)); }
.ch-head b { font-size: 15px; }
.cl-item.on .unread-n { background: var(--accent); }
.ch-comp textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
/* tablas del panel: legibles en móvil */
.tbl-wrap { border-radius: var(--radius); } .tbl thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.tbl tbody tr { transition: background .12s; }
@media (max-width: 720px) { .tbl td, .tbl th { padding: 10px; } }
.tracker.sm { margin: 0; } .tracker.sm .tk-dot { width: 32px; height: 32px; } .tracker.sm li::before { top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); }
.tk-order .thumb { width: 56px; }
.net-warn { border-width: 1px; font-size: 13.5px; } .net-warn b { color: var(--text); }
.wgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.av-bot img { width: 30px; height: 40px; object-fit: cover; object-position: top; margin-top: 10px; }
.sect .card > .empty-state { padding: 28px 20px; }

/* ======================================================================
   3.0 · Crece con Digi Store: Partners, Resellers, Academy
   ====================================================================== */
:root { --navy: #0f172a; --emerald: #059669; --gold: #d4a72c; --diamond: #0891b2; }
.grow-page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.g-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 36px 40px; border-radius: 24px; color: #fff; isolation: isolate;
  background: radial-gradient(110% 130% at 100% 0%, #1e40af 0%, #0f172a 60%); border: 1px solid #1e293b; }
.g-hero.par { background: radial-gradient(110% 130% at 100% 0%, #2563eb 0%, #0f172a 62%); } .g-hero.res { background: radial-gradient(110% 130% at 100% 0%, #047857 0%, #0f172a 62%); }
.g-hero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); z-index: -1; }
.g-hero > div { flex: 1; min-width: 0; } .g-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 12px; }
.g-hero p { font-size: 16px; opacity: .85; max-width: 620px; margin: 0 0 18px; } .g-hero .btn.primary { background: #fff; color: #1d4ed8; border-color: #fff; }
.g-mascot { height: 210px; width: auto; flex-shrink: 0; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.kicker { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); }
.hl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; } .hl > div { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); min-width: 110px; }
.hl b { font-size: 20px; letter-spacing: -.02em; } .hl span { font-size: 12px; opacity: .75; }
@media (max-width: 760px) { .g-hero { flex-direction: column-reverse; padding: 26px 22px; text-align: left; align-items: stretch; } .g-mascot { height: 120px; align-self: center; } }
.prog-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 860px) { .prog-cards { grid-template-columns: 1fr; } }
.prog { padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.prog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--emerald); } .prog.par::before { background: var(--accent); }
.prog h2 { font-size: 22px; font-weight: 800; } .prog > p { margin: 0; color: var(--text2); }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; }
.prog-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--emerald); background: color-mix(in srgb, var(--emerald) 13%, transparent); }
.prog.par .prog-ic { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.prog-max { display: flex; flex-direction: column; align-items: flex-end; } .prog-max small { font-size: 12px; color: var(--text2); } .prog-max b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .checks li { display: flex; gap: 8px; align-items: flex-start; } .checks .ic { color: var(--ok); margin-top: 3px; }
.prog-req { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text2); padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.prog .btn.lg { margin-top: auto; }
.tbl.cmp th[scope], .tbl.cmp tbody th { color: var(--text2); text-transform: none; letter-spacing: 0; font-size: 13px; width: 26%; } .tbl.cmp td { font-size: 13.5px; }
.fine { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--text3); margin: 10px 0 0; line-height: 1.5; } .fine .ic { margin-top: 2px; flex-shrink: 0; }
.sect-t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bens { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ben { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ben > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 6px; }
.ben p { margin: 0; color: var(--text2); font-size: 13px; }
.steps5 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps5 li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; padding: 0 6px; font-size: 13px; }
.steps5 li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--line))); }
.steps5 li:first-child::before { display: none; }
.steps5 span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); z-index: 1; }
@media (max-width: 760px) { .steps5 { grid-template-columns: 1fr; gap: 14px; } .steps5 li { flex-direction: row; text-align: left; } .steps5 li::before { display: none; } }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } @media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }
.lvcard { padding: 18px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--lv); display: flex; flex-direction: column; gap: 4px; }
.lv-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--lv); background: color-mix(in srgb, var(--lv) 14%, transparent); margin-bottom: 6px; }
.lv-pct { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--lv); } .lvcard .dim { font-size: 12.5px; }
.lvb { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--lv); background: color-mix(in srgb, var(--lv) 13%, transparent); border: 1px solid color-mix(in srgb, var(--lv) 35%, transparent); white-space: nowrap; }
.lvb.big { font-size: 15px; padding: 6px 14px 6px 10px; }
.ex-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } @media (max-width: 1000px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .ex-grid { grid-template-columns: 1fr; } }
.excard { padding: 18px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.excard .lvb { align-self: flex-start; } .ex-v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; } .excard dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; margin: 10px 0 0; } .excard dt { color: var(--text2); } .excard dd { margin: 0; text-align: right; }
.excard.hot { border-color: color-mix(in srgb, var(--lv) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--lv) 10%, var(--card)), var(--card) 60%); box-shadow: 0 14px 30px -18px var(--lv); }
.excard.hot .ex-v { color: var(--lv); font-size: 32px; }
.calc { display: flex; flex-direction: column; gap: 14px; } .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } @media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc input[type=range] { width: 100%; accent-color: var(--accent); } .calc .field output { float: right; font-weight: 700; color: var(--text); }
.calc-out { padding: 18px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.big-num { display: flex; flex-direction: column; } .big-num span { font-size: 13px; color: var(--text2); } .big-num b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .months > div { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12px; } .months b { font-size: 16px; }
.fraud { padding: 26px; display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.fraud-h { display: flex; gap: 14px; align-items: center; } .fraud-h h2 { font-size: 22px; font-weight: 800; } .fraud-h p { margin: 2px 0 0; color: var(--text2); }
.fraud-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--emerald); background: color-mix(in srgb, var(--emerald) 13%, transparent); }
.fraud > p { margin: 0; color: var(--text2); } .fraud-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 700px) { .fraud-cols { grid-template-columns: 1fr; } }
.fraud-cols > div { padding: 14px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); } .fraud-cols b { display: flex; gap: 6px; align-items: center; } .fraud-cols ul { margin: 8px 0 0; padding-left: 18px; color: var(--text2); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.fraud-cols > div:first-child b .ic { color: var(--bad); } .fraud-cols > div:last-child b .ic { color: var(--warn); }
.join { padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); } .join h2 { font-size: 22px; font-weight: 800; }
.check.big { font-size: 14px; align-items: flex-start; } .check.big input { width: 18px; height: 18px; margin-top: 2px; }
.txt.terms { white-space: pre-line; font-size: 13.5px; color: var(--text2); line-height: 1.65; }
/* Partner Center */
.pc { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; } .pc > * { min-width: 0; } .pc-nav { position: sticky; top: 92px; }
@media (max-width: 1000px) { .pc { grid-template-columns: 1fr; } }
.protected { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text2); padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--emerald) 8%, transparent); border: 1px solid color-mix(in srgb, var(--emerald) 25%, var(--line)); }
.protected .ic { color: var(--emerald); flex-shrink: 0; }
.welcome-p { display: flex; gap: 20px; align-items: center; padding: 22px; } .welcome-p img { height: 130px; } .welcome-p h2 { font-size: 21px; font-weight: 800; } .welcome-p p { color: var(--text2); margin: 4px 0 12px; }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 8px; }
.guide a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; } .guide a:hover { border-color: var(--line2); } .guide a .ic { color: var(--accent); }
.guide a.done { color: var(--text3); } .guide a.done .ic { color: var(--ok); }
@media (max-width: 640px) { .welcome-p { flex-direction: column; text-align: center; } }
.lvhero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 16%, var(--card)), var(--card) 65%); border: 1px solid color-mix(in srgb, var(--lv) 35%, var(--line)); }
.lvhero .grow { display: flex; flex-direction: column; gap: 8px; min-width: 260px; } .lvhero p { margin: 0; color: var(--text2); } .lvh-pct { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--lv); }
.lvh-code { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bar { height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--text3) 20%, transparent); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 6px; background: var(--lv, var(--accent)); transition: width .4s var(--ease); }
.chart { width: 100%; height: 160px; display: block; margin-top: 12px; } .chart rect { fill: var(--accent); opacity: .85; } .chart rect:hover { opacity: 1; }
.chart-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text3); margin-top: 4px; }
.lvlist { display: flex; flex-direction: column; gap: 10px; }
.lvrow { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-left: 3px solid var(--line2); } .lvrow.reached { border-left-color: var(--lv); } .lvrow.cur { border-color: color-mix(in srgb, var(--lv) 50%, var(--line)); border-left-color: var(--lv); box-shadow: 0 10px 28px -18px var(--lv); }
.lvrow .grow { display: flex; flex-direction: column; gap: 3px; } .lvrow .dim { font-size: 12.5px; } .lvrow .lv-pct { font-size: 24px; }
.lv-bens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .lv-bens span { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--text2); padding: 2px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.affgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.affp { overflow: hidden; display: flex; flex-direction: column; } .affp > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.affp-b { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .affp-b > .dim { font-size: 12.5px; }
.affp-v { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-top: auto; } .affp-v > div { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.copyline.big { font-size: 14px; padding: 12px 14px; }
.links { display: flex; flex-direction: column; } .lnk { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .lnk:first-child { border-top: 0; } .lnk .grow { display: flex; flex-direction: column; min-width: 0; } .lnk .dim { font-size: 12px; }
.rs-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; } .rs-top .card { display: flex; flex-direction: column; gap: 8px; }
.rs-v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .rs-v small { font-size: 15px; color: var(--text3); font-weight: 600; }
.resex { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .resex.wide { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.resex > div { padding: 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; } .resex span { font-size: 12.5px; color: var(--text2); } .resex b { font-size: 20px; }
.resex > div:last-child { border-color: color-mix(in srgb, var(--emerald) 40%, var(--line)); } .resex > div:last-child b { color: var(--emerald); }
@media (max-width: 760px) { .resex, .resex.wide { grid-template-columns: 1fr 1fr; } }
.acad { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.acad-i { display: flex; gap: 12px; align-items: center; padding: 12px; text-align: left; cursor: pointer; } .acad-i:hover { border-color: var(--line2); } .acad-i > div { display: flex; flex-direction: column; flex: 1; min-width: 0; } .acad-i .dim { font-size: 12.5px; }
.acad-i img, .acad-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; } .acad-ph { display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.acad-i.locked { opacity: .6; cursor: not-allowed; } .acad-i.locked .acad-ph { color: var(--text3); background: var(--card2); } .acad-i.done { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
@media (max-width: 440px) {
  .topbar-in { gap: 4px !important; padding-left: 10px !important; padding-right: 8px !important; }
  .topbar .icon-btn { width: 34px; height: 34px; } .topbar .avatar { width: 34px; height: 34px; }
  .topbar .balance-pill { padding: 0 10px; font-size: 13px; gap: 5px; } .topbar .brand-full { height: 24px; }
}

/* ===================== v3.1 · ficha premium, carrito, unidades y centro de asistencia ===================== */
.pdp { --pa: var(--accent); }
.pdp .feat-i, .pdp .how-n { color: var(--pa); background: color-mix(in srgb, var(--pa) 12%, transparent); border-color: color-mix(in srgb, var(--pa) 30%, var(--line)); }
.secnav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.secnav::-webkit-scrollbar { display: none; }
.secnav button { flex: 0 0 auto; border: 0; background: none; color: var(--text2); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.secnav button:hover { background: var(--card2); color: var(--text); }
.psec { scroll-margin-top: 140px; display: flex; flex-direction: column; gap: 14px; }
.ph { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.plead { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text2); }
.incl h3, .devs h3 { font-size: 14px; margin: 0 0 10px; }
.incl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.incl li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .incl li .ic { color: var(--pa, var(--accent)); flex-shrink: 0; margin-top: 2px; }
.devs .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; } .dchip .ic { color: var(--pa, var(--accent)); }
.how-lg { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.how-lg .how-n { width: 40px; height: 40px; border-radius: 12px; } .how-lg b { font-size: 14.5px; } .how-lg span { font-size: 13px; line-height: 1.5; }
.wbox { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok, #16a34a) 8%, var(--card2)); border: 1px solid color-mix(in srgb, var(--ok, #16a34a) 25%, var(--line)); }
.wbox .ic { color: var(--ok, #16a34a); flex-shrink: 0; } .wbox div { display: flex; flex-direction: column; gap: 3px; } .wbox span { font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.buybox { gap: 14px; }
.pbrand { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pa, var(--accent)); margin-bottom: 4px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); color: var(--text2); }
.pchip.ok { color: var(--ok, #16a34a); } .pchip.bad { color: var(--bad, #dc2626); }
.price-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 2px 0; }
.bigprice { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.oneline { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13.5px; } .oneline b { margin-left: auto; }
.qty button:disabled { opacity: .4; cursor: not-allowed; } .qty button { display: grid; place-items: center; color: var(--text); }
.qty.sm button { width: 30px; height: 30px; } .qty.sm input { width: 40px; height: 30px; }
.sumbox { padding: 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sumbox dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 13.5px; } .sumbox dt { color: var(--text2); } .sumbox dd { margin: 0; text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--line); } .sum-total b { font-size: 22px; font-weight: 800; }
.helpbox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, #229ed9 5%, var(--card)); }
.helpbox > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .helpbox b { font-size: 13.5px; } .helpbox span { font-size: 12.5px; color: var(--text2); }
.helpbox.wide { flex-wrap: wrap; }
.tgbtn { color: #229ed9; border-color: color-mix(in srgb, #229ed9 35%, var(--line)); white-space: nowrap; flex-shrink: 0; } .tgbtn:hover { background: color-mix(in srgb, #229ed9 10%, transparent); }
.affbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
@media (max-width: 520px) { .helpbox { flex-direction: column; align-items: stretch; } .bigprice { font-size: 30px; } }
/* carrito */
.page-h { font-size: 26px; font-weight: 800; margin: 4px 0 16px; }
.cartgrid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.cartsum { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.cline { display: flex; gap: 14px; padding: 14px; align-items: flex-start; } .cline.bad { border-color: color-mix(in srgb, var(--bad, #dc2626) 45%, var(--line)); }
.cthumb { width: 112px; flex-shrink: 0; } .cthumb .art { aspect-ratio: 16 / 10; border-radius: 10px; }
@media (max-width: 860px) { .cartgrid { grid-template-columns: 1fr; } .cartsum { position: static; } .cthumb { width: 80px; } }
/* unidades */
.units { display: flex; flex-direction: column; gap: 8px; }
.unit { border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.unit summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; } .unit summary::-webkit-details-marker { display: none; }
.un { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card); border: 1px solid var(--line); }
.unit.delivered .un { color: var(--ok, #16a34a); } .unit.refunded { opacity: .7; }
.unit-b { padding: 0 12px 12px 52px; font-size: 13px; }
/* centro de asistencia flotante */
#fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; }
.fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 28px rgba(0,0,0,.28); display: grid; place-items: center; cursor: pointer; color: var(--accent); padding: 0; overflow: hidden; transition: transform .2s var(--ease); }
.fab-btn:hover { transform: translateY(-2px); } .fab-btn img { width: 46px; height: 46px; object-fit: contain; }
.fab-panel { position: absolute; right: 0; bottom: 70px; width: min(340px, calc(100vw - 28px)); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.fab-panel[hidden] { display: none; }
.fab-h { display: flex; align-items: center; gap: 10px; } .fab-h > div { display: flex; flex-direction: column; } .fab-h span { font-size: 12px; color: var(--text2); }
.fab-w { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text2); } .fab-hours { font-size: 12px; display: flex; gap: 5px; align-items: center; }
.fab-list { display: flex; flex-direction: column; gap: 2px; }
.fab-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; } .fab-list a:hover { background: var(--card2); }
.fab-list a > .ic:first-child { color: var(--accent); flex-shrink: 0; } .fab-list a.tg > .ic:first-child { color: #229ed9; }
.fab-list a div { display: flex; flex-direction: column; flex: 1; min-width: 0; } .fab-list b { font-size: 13.5px; } .fab-list span { font-size: 12px; color: var(--text2); }
.fab-warn { display: flex; gap: 6px; font-size: 11.5px; color: var(--text2); padding: 8px 10px; border-radius: 10px; background: var(--card2); } .fab-warn .ic { color: var(--ok, #16a34a); flex-shrink: 0; }
@media (max-width: 1000px) { body.has-buybar #fab { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 520px) { #fab { right: 12px; } .fab-btn { width: 50px; height: 50px; } .fab-btn img { width: 40px; height: 40px; } }
body.in-chat #fab { display: none; }
.foot-tg { display: inline-flex !important; align-items: center; gap: 6px; color: #229ed9 !important; font-weight: 600; }
@media (max-width: 440px) {
  .topbar [data-act="theme"], .topbar #nb-msg { display: none; }
  .topbar .balance-pill .ic { display: none; }
}
.cartsum .kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; } .cartsum .kv dd { text-align: right; margin: 0; }
@media (max-width: 520px) { #fab.hide-m { display: none; } }

/* ===================== v4.0 · Launch Edition ===================== */
:root { --ok2: #059669; --warn2: #d97706; --bad2: #dc2626; --info2: #0891b2; --gold2: #d4a72c; }
/* Digi Live */
.live { display: flex; align-items: center; gap: 0; height: 42px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.lv-h { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 100%; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); border-right: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, transparent); white-space: nowrap; }
.lv-track { flex: 1; overflow: hidden; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lv-run { display: flex; width: max-content; height: 100%; animation: lvscroll 60s linear infinite; }
.live.paused .lv-run, .live:hover .lv-run { animation-play-state: paused; }
.live.static .lv-track { overflow-x: auto; scrollbar-width: none; } .live.static .lv-run { animation: none; }
@keyframes lvscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lv-i { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.lv-i img, .lt-ph { width: 26px; height: 18px; border-radius: 4px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--card2); }
.lv-i span { color: var(--text2); } .lv-i em { font-style: normal; color: var(--text3); font-size: 12px; } .lv-i:hover b { color: var(--accent); }
.lv-p { flex-shrink: 0; width: 38px; height: 100%; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--text2); }
.lv-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.live.paused .lv-pause { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 640px) { .live { height: 38px; border-radius: 10px; } .lv-h { padding: 0 10px; font-size: 0; gap: 0; } .lv-h .ic { width: 16px; height: 16px; } }
/* vistos recientemente y recuperación */
.hist { margin-top: 26px; } .hist-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hcard { display: flex; gap: 10px; align-items: center; padding: 8px; } .hcard img, .hcard .lt-ph { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; }
.hcard div { display: flex; flex-direction: column; min-width: 0; } .hcard b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hcard span { font-size: 12px; color: var(--text2); }
.recov { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.recov > .ic { color: var(--accent); } .recov div { display: flex; flex-direction: column; } .recov span { font-size: 13px; color: var(--text2); }
/* páginas públicas */
.lp-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 6px 0 20px; }
.lp-hero h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; } .lp-hero p { max-width: 640px; margin: 0; line-height: 1.6; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.offer-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 18px; }
.camp { display: flex; flex-direction: column; overflow: hidden; } .camp img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; } .camp > div { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard.offer .pc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; font-size: 13px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tcard { display: flex; gap: 12px; } .tc-i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tc-n { font-size: 11px; font-weight: 700; color: var(--text3); } .tcard h3 { font-size: 16px; margin: 2px 0 6px; } .tcard p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text2); }
.st-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .st-hero h1 { font-size: 22px; margin: 0 0 2px; }
.st-hero.ok .ic { color: var(--ok2); } .st-hero.warn .ic { color: var(--warn2); } .st-hero.bad .ic { color: var(--bad2); } .st-hero.info .ic { color: var(--info2); }
.st-list { padding: 4px 18px; } .st-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); } .st-row:last-child { border-bottom: 0; }
.st-b { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; } .st-b i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok2); }
.st-b.ok { color: var(--ok2); } .st-b.warn { color: var(--warn2); } .st-b.warn i { background: var(--warn2); } .st-b.bad { color: var(--bad2); } .st-b.bad i { background: var(--bad2); } .st-b.info { color: var(--info2); } .st-b.info i { background: var(--info2); }
/* centro de ayuda */
.help-hero { display: flex; align-items: center; gap: 20px; padding: 26px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card)); }
.help-hero h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 12px; } .searchbox.big .input { height: 50px; font-size: 15px; }
.hcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.hcat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hcat.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.hgroup { margin: 18px 0 8px; } .hgroup h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; } .hgroup h2 .ic { color: var(--accent); }
.hq { margin-bottom: 8px; } .hq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14.5px; }
.hq summary::-webkit-details-marker { display: none; } .hq[open] summary .ic { transform: rotate(180deg); } .hq .txt { padding: 0 16px 16px; color: var(--text2); line-height: 1.6; font-size: 14px; }
/* Mis servicios */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: flex; gap: 14px; padding: 14px; border-left: 3px solid var(--line); } .svc.ok { border-left-color: var(--ok2); } .svc.warn { border-left-color: var(--warn2); } .svc.bad { border-left-color: var(--bad2); }
.svc-img { width: 104px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--card2); } .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc.ok .svc-bar i { background: var(--ok2); } .svc.warn .svc-bar i { background: var(--warn2); } .svc.bad .svc-bar i { background: var(--bad2); }
@media (max-width: 560px) { .svc { flex-direction: column; } .svc-img { width: 100%; } }
/* Rewards */
.rw-card { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; padding: 22px; margin-bottom: 14px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gold2) 45%, transparent), transparent 60%), linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid color-mix(in srgb, var(--gold2) 30%, transparent); }
.rw-l { font-size: 13px; opacity: .8; } .rw-v { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .rw-s { font-size: 13px; opacity: .85; }
.rw-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; } .rw-side .dim { color: rgba(255,255,255,.7); }
.rw-goal { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; } .rw-goal .bar { background: rgba(255,255,255,.15); } .rw-goal .bar i { background: var(--gold2); }
.rw-card .btn.primary { grid-column: 1 / -1; justify-self: start; }
.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .rules li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text2); line-height: 1.5; } .rules .ic { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* Retiros */
.po-card { padding: 22px; margin: 4px 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card)); }
.po-card.ok { border-color: color-mix(in srgb, var(--ok2) 45%, var(--line)); } .po-card.ok .bar i { background: var(--ok2); }
.po-l { font-size: 13px; color: var(--text2); font-weight: 600; } .po-v { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; } .po-msg { margin: 0 0 14px; font-weight: 600; }
.po-stats { margin-bottom: 8px; }
/* cartera: desglose */
.buckets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 18px; }
.bk { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); } .bk b { font-size: 18px; } a.bk[href]:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
/* Remitly */
.rem { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); }
.rem-h { display: flex; gap: 12px; align-items: flex-start; } .rem-h div { display: flex; flex-direction: column; gap: 4px; } .rem-h span { font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.rem-m { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .rem-m span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; } .rem-m .ic { color: var(--accent); }
.rem-eta { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok2) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok2) 35%, var(--line)); } .rem-eta .ic { color: var(--ok2); flex-shrink: 0; }
.rem-eta div { display: flex; flex-direction: column; gap: 2px; } .rem-eta span { font-size: 12.5px; color: var(--text2); }
.rem-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text2); } .rem-steps b { color: var(--text); }

/* ---------- Conversion & Trust Edition ---------- */
.ckbar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); }
.ckbar .ck-t { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text2); } .ckbar .ck-t b { color: var(--text); font-size: 14px; }
.ckbar .ck-t a { color: var(--accent); text-decoration: underline; } .ckbar .ck-b { display: flex; gap: 8px; flex-shrink: 0; } .ckbar .ck-b .btn { min-width: 108px; }
@media (max-width: 640px) { .ckbar { flex-direction: column; align-items: stretch; bottom: 8px; left: 8px; right: 8px; } .ckbar .ck-b .btn { flex: 1; } }
.ckopt { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ckopt div { display: flex; flex-direction: column; gap: 3px; } .ckopt span { color: var(--text2); font-size: 13px; } .ckopt input { width: 20px; height: 20px; accent-color: var(--accent); }
.rcodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .rcodes code { font-family: var(--mono); padding: 8px 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.why-acc { display: flex; flex-direction: column; gap: 8px; margin: -8px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; color: var(--text2); }
.why-acc span, .why-acc a { display: flex; gap: 8px; align-items: center; } .why-acc a { color: var(--accent); font-weight: 600; }
.prebuy { padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; }
.prebuy ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text2); }
.prebuy li { display: flex; gap: 8px; align-items: flex-start; } .prebuy li .ic { margin-top: 2px; color: var(--warn); }
.plan-x { display: block; font-size: 11.5px; color: var(--text3); margin-top: 2px; } .pos { color: var(--ok); }
.nores .chips { justify-content: center; }
.hx { margin-top: 28px; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 li { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps3 li div { display: flex; flex-direction: column; gap: 4px; } .steps3 li span:not(.st-n) { color: var(--text2); font-size: 13px; }
.st-n { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bf { display: flex; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--card2); border: 1px solid var(--line); } .bf .ic { color: var(--accent); margin-top: 2px; }
.bf div { display: flex; flex-direction: column; gap: 2px; } .bf span { color: var(--text2); font-size: 12.5px; }
.paystrip { display: flex; flex-wrap: wrap; gap: 10px; }
.paychip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.paychip:hover { border-color: var(--line2); } .paychip .ic { color: var(--accent); }
.revrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; } .rv p { margin: 8px 0; color: var(--text2); font-size: 13.5px; }
.hx-trust { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 8px; }
.paygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; } .paycard .ic { color: var(--accent); }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text2); } ul.plain a { color: var(--accent); }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } .steps3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } .rcodes { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--accent); color: #fff; border-radius: 8px; } .skip:focus { left: 8px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ssr { max-width: 1000px; margin: 0 auto; padding: 24px; }
.buybox .trust { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; font-size: 12.5px; color: var(--text2); } .buybox .trust span { display: inline-flex; gap: 5px; align-items: center; }
@media (min-width: 721px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
/* fichas de producto: beneficios a dos columnas, cajas de acceso y requisitos (acento corporativo) */
.incl ul.bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.incl ul.bgrid li .ic, .infobox > .ic, .reqbox > .ic, .feat-i .ic { color: var(--accent); }
.infobox, .reqbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.infobox > .ic, .reqbox > .ic { margin-top: 1px; flex-shrink: 0; }
.infobox div, .reqbox div { display: flex; flex-direction: column; gap: 4px; } .infobox span, .reqbox span { color: var(--text2); font-size: 14px; line-height: 1.55; }
.reqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .reqbox.lim > .ic { color: var(--warn); }
@media (max-width: 720px) { .incl ul.bgrid, .reqgrid { grid-template-columns: 1fr; } }
.pdp .psec { --pa: var(--accent); }
.psec .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .psec .feats { grid-template-columns: 1fr; } }

/* ---------- Payment Experience 2.0 ---------- */
.logo.pay { background: transparent; box-shadow: none; } .logo.pay img { width: 100%; height: 100%; }
.pz { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; } .pz-wide { max-width: 900px; }
.pz-card { gap: 18px; } .pz-h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.pz-bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); }
.pz-bal > div { display: flex; flex-direction: column; gap: 2px; } .pz-bal b { font-size: 22px; letter-spacing: -.01em; }
.pz-sec { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: -8px; }
.pz-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pz-m { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: background .15s; width: 100%; }
.pz-list .pz-m:last-child { border-bottom: 0; } .pz-m:hover { background: var(--card2); } .pz-m:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pz-m .grow { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .pz-m.sel { border: 1px solid var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.pz-nets { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-size: 11.5px; font-weight: 600; color: var(--text2); }
.pz-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; white-space: nowrap; }
.pz-tag { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); color: var(--text2); }
.pz-tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.pz-netg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pz-netc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; position: relative; }
.pz-netc:hover { border-color: var(--line2); } .pz-netc.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pz-netc .row div { display: flex; flex-direction: column; } .pz-netc dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
.pz-netc dt { color: var(--text3); } .pz-netc dd { margin: 0; text-align: right; font-weight: 600; }
.pz-avail { position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--ok); }
.pz-amt { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); overflow: hidden; }
.pz-amt:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pz-amt input { border: 0; box-shadow: none !important; font-size: 24px; font-weight: 700; height: 56px; background: transparent; font-variant-numeric: tabular-nums; }
.pz-amt span { padding: 0 16px; font-weight: 700; color: var(--text3); }
.pz-sum { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; background: var(--card2); }
.pz-sum > div { display: flex; justify-content: space-between; gap: 12px; } .pz-sum > div span { color: var(--text2); } .pz-sum b { font-variant-numeric: tabular-nums; text-align: right; }
.pz-sum .pz-sum-t { border-top: 1px solid var(--line); padding-top: 8px; font-size: 15px; } .pz-sum .pz-sum-t b { color: var(--accent); } .pz-sum p { margin: 0; font-size: 12px; }
.pz-top { display: flex; align-items: center; gap: 14px; }
.pz-coin { position: relative; width: var(--s); height: var(--s); flex-shrink: 0; display: inline-block; }
.pz-net { position: absolute; right: -4px; bottom: -4px; border-radius: 999px; box-shadow: 0 0 0 2px var(--card); display: inline-flex; background: var(--card); }
.pz-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pz-tl li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; color: var(--text3); }
.pz-tl li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line); } .pz-tl li:first-child::before { display: none; }
.pz-tl li.done::before, .pz-tl li.now::before { background: var(--accent); }
.pz-tl .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); display: grid; place-items: center; z-index: 1; color: #fff; }
.pz-tl li.done .dot { background: var(--accent); border-color: var(--accent); }
.pz-tl li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.pz-tl li div { display: flex; flex-direction: column; gap: 2px; } .pz-tl li b { color: var(--text2); font-weight: 600; } .pz-tl li.done b, .pz-tl li.now b { color: var(--text); }
.pz-pay { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.pz-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pz-big { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
.pz-big span { font-size: 22px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; word-break: break-all; } .pz-big small { font-size: 13px; color: var(--text3); }
.pz-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; } .pz-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.pz-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text2); } .pz-steps a { color: var(--accent); }
.pz-rec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .pz-rec summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; } .pz-rec form { margin-top: 12px; }
.pz-help { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text2); } .pz-help:hover { color: var(--accent); }
.pz-state { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); } .pz-state div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .pz-state span { color: var(--text2); }
.pz-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0; }
.pz-done h2 { margin: 6px 0 0; font-size: 22px; } .pz-amt-ok { font-size: 32px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.pz-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); animation: pzpop .35s ease-out; }
@keyframes pzpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pz-kv { width: 100%; max-width: 480px; text-align: left; margin: 10px 0; } .pz-kv a { color: var(--accent); }
.pz-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pz-rcpt { display: flex; flex-direction: column; gap: 16px; } .pz-rcpt header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pz-rcpt header div { display: flex; flex-direction: column; align-items: flex-end; } .pz-rcpt-amt { display: flex; align-items: center; gap: 12px; } .pz-rcpt-amt div { display: flex; flex-direction: column; flex: 1; } .pz-rcpt-amt b { font-size: 26px; }
@media (max-width: 720px) {
  .pz-pay { grid-template-columns: 1fr; padding: 12px; } .pz-qr .qr { width: min(240px, 72vw); height: min(240px, 72vw); }
  .pz-tl { grid-template-columns: 1fr; gap: 0; } .pz-tl li { flex-direction: row; text-align: left; align-items: flex-start; padding-bottom: 12px; }
  .pz-tl li::before { left: 11px; right: auto; top: -12px; width: 2px; height: 14px; } .pz-meta { display: none; }
  .pz-big span { font-size: 18px; } .pz-netg { grid-template-columns: 1fr; }
}
@media print { .topbar, footer, .noprint, #annbar, .skip, .ckbar, .toasts, [class*="mascot"] { display: none !important; } body { background: #fff; color: #000; } .pz-rcpt { border: 0; box-shadow: none; } }
.pz-amt input { border: 0 !important; outline: none; -moz-appearance: textfield; } .pz-amt input::-webkit-outer-spin-button, .pz-amt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pz-big { flex-wrap: wrap; } .pz-big span { white-space: nowrap; }
@media (max-width: 380px) { .pz-big span { font-size: 16px; } .pz-h1 { font-size: 19px; } .pz-m { padding: 12px; gap: 10px; } }
