/* ============ SA SHOP · Tema por defecto: Dorado ============ */
:root {
  --accent: #c9961a; --accent-2: #ffd54a; --accent-3: #ffe9a3; --glow: 255, 200, 60; --on-accent: #1a1204;
  --bg: #0b0906; --bg-2: #14100a; --card: #18130b; --card-2: #1f180d; --line: rgba(255, 230, 170, .09);
  --text: #f7efdc; --muted: #b8a988; --soft: #7f735a;
  --ok: #19c37d; --warn: #f5b301; --bad: #ff4d5e; --info: #4ea8ff;
  --radius: 18px; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: 'Manrope', system-ui, sans-serif; --display: 'Sora', 'Manrope', sans-serif;
}
[data-mode="light"] {
  --bg: #fbf7ec; --bg-2: #f3ead4; --card: #ffffff; --card-2: #fdf8ec; --line: rgba(80, 60, 10, .12);
  --text: #2a2008; --muted: #75664a; --soft: #a3967a; --shadow: 0 10px 30px rgba(120, 90, 20, .12);
}
[data-mode="light"]:not([data-theme]), [data-mode="light"][data-theme="dorado"] { --accent: #b07f0c; --accent-3: #8a6106; }
[data-theme="vino"]     { --accent: #b3123f; --accent-2: #ff2d6f; --accent-3: #ff7a9c; --glow: 255, 45, 111; --on-accent: #fff; }
[data-theme="rubi"]     { --on-accent: #fff; --accent: #e0115f; --accent-2: #ff4f8b; --accent-3: #ff9ab9; --glow: 255, 79, 139; }
[data-theme="carmesi"]  { --on-accent: #fff; --accent: #d7263d; --accent-2: #ff5a5f; --accent-3: #ff9c9f; --glow: 255, 90, 95; }
[data-theme="purpura"]  { --on-accent: #fff; --accent: #7b2ff7; --accent-2: #b46cff; --accent-3: #d6b0ff; --glow: 180, 108, 255; }
[data-theme="oceano"]   { --on-accent: #fff; --accent: #0a74da; --accent-2: #2fc2ff; --accent-3: #9be3ff; --glow: 47, 194, 255; }
[data-theme="esmeralda"]{ --on-accent: #fff; --accent: #0d9b6c; --accent-2: #2cf0a5; --accent-3: #a3f7d5; --glow: 44, 240, 165; }
[data-theme="ambar"]    { --accent: #e07b00; --accent-2: #ffb02e; --accent-3: #ffd699; --glow: 255, 160, 40; --on-accent: #1a0e00; }
[data-theme="cyber"]    { --on-accent: #fff; --accent: #ff00a8; --accent-2: #00f0ff; --accent-3: #9ffcff; --glow: 0, 240, 255; }
[data-theme="grafito"]  { --on-accent: #fff; --accent: #5b6472; --accent-2: #c3cad6; --accent-3: #e6eaf0; --glow: 195, 202, 214; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(var(--glow), .14), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(var(--glow), .08), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
::selection { background: rgba(var(--glow), .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--glow), .25); border-radius: 10px; }

.container { width: min(1240px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .between { justify-content: space-between; }
.grid { display: grid; gap: 16px; } .mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; } .center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Neón y texto ---------- */
.neon { color: var(--accent-3); text-shadow: 0 0 8px rgba(var(--glow), .9), 0 0 22px rgba(var(--glow), .55), 0 0 44px rgba(var(--glow), .35); }
.grad-text { background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-mode="light"] .neon { color: var(--accent); text-shadow: 0 0 18px rgba(var(--glow), .35); }

/* ---------- Botones ---------- */
.btn {
  --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: .95rem; white-space: nowrap; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  box-shadow: 0 6px 22px rgba(var(--glow), .35), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(var(--glow), .55), 0 0 0 1px rgba(var(--glow), .5); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(var(--glow), .7), 0 0 18px rgba(var(--glow), .25); }
.btn.soft { background: rgba(var(--glow), .12); color: var(--accent-3); box-shadow: inset 0 0 0 1px rgba(var(--glow), .25); }
[data-mode="light"] .btn.soft { color: var(--accent); }
.btn.ok { color: #fff; background: linear-gradient(135deg, #0f9d63, #23d18b); box-shadow: 0 6px 22px rgba(35, 209, 139, .35); }
.btn.bad { color: #fff; background: linear-gradient(135deg, #c3122f, #ff4d5e); box-shadow: 0 6px 22px rgba(255, 77, 94, .35); }
.btn.sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); cursor: pointer; position: relative; transition: .2s; }
.icon-btn:hover { border-color: rgba(var(--glow), .6); box-shadow: 0 0 16px rgba(var(--glow), .3); }
.dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-2); color: var(--on-accent); font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 12px rgba(var(--glow), .8); }

/* ---------- Formularios ---------- */
label.f { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.input, input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none; transition: .2s; font-size: .95rem;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(var(--glow), .8); box-shadow: 0 0 0 4px rgba(var(--glow), .15); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch { appearance: none; width: 42px; height: 24px; border-radius: 20px; background: var(--line); position: relative; cursor: pointer; transition: .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch:checked { background: var(--accent-2); box-shadow: 0 0 12px rgba(var(--glow), .6); }
.switch:checked::after { left: 21px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.drop { display: block; border: 2px dashed rgba(var(--glow), .35); border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; transition: .2s; background: rgba(var(--glow), .04); }
.drop:hover, .drop.over { border-color: var(--accent-2); background: rgba(var(--glow), .1); box-shadow: 0 0 24px rgba(var(--glow), .2); }
.drop img { max-height: 260px; margin: 0 auto; border-radius: 12px; }

/* ---------- Tarjetas ---------- */
.card { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.glow { border-color: rgba(var(--glow), .35); box-shadow: var(--shadow), 0 0 30px rgba(var(--glow), .12); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; background: rgba(var(--glow), .14); color: var(--accent-3); border: 1px solid rgba(var(--glow), .3); }
[data-mode="light"] .pill { color: var(--accent); }
.pill.ok { background: rgba(25, 195, 125, .14); color: #3be39e; border-color: rgba(25, 195, 125, .35); }
.pill.warn { background: rgba(245, 179, 1, .14); color: #ffcd4a; border-color: rgba(245, 179, 1, .35); }
.pill.bad { background: rgba(255, 77, 94, .14); color: #ff7b88; border-color: rgba(255, 77, 94, .35); }
.pill.info { background: rgba(78, 168, 255, .14); color: #7cc0ff; border-color: rgba(78, 168, 255, .35); }
[data-mode="light"] .pill.ok { color: #0b8a55; } [data-mode="light"] .pill.warn { color: #9a6c00; } [data-mode="light"] .pill.bad { color: #c3122f; } [data-mode="light"] .pill.info { color: #0a5fb4; }
.rank { font-size: .7rem; padding: 3px 9px; border-radius: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rank.owner { background: linear-gradient(135deg, #ffe08a, #c9961a); color: #1a1204; box-shadow: 0 0 14px rgba(255, 200, 60, .6); }
.rank.seller { background: linear-gradient(135deg, #7b2ff7, #b46cff); color: #fff; box-shadow: 0 0 12px rgba(180, 108, 255, .5); }
.rank.vip { background: linear-gradient(135deg, #ff9f1c, #ffcf6e); color: #2a1400; box-shadow: 0 0 12px rgba(255, 201, 60, .5); }
.rank.user { background: var(--line); color: var(--muted); }

/* ---------- Topbar ---------- */
.announce { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; animation: flow 8s linear infinite; color: var(--on-accent); text-align: center; font-weight: 700; font-size: .85rem; padding: 8px 12px; }
@keyframes flow { to { background-position: 200% 0; } }
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(1.4); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.brand .logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 18px rgba(var(--glow), .5); }
.logo-fallback { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 900; box-shadow: 0 0 20px rgba(var(--glow), .55); }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { padding-left: 40px; border-radius: 14px; }
.search span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .6; }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--on-accent); font-weight: 800; font-size: .85rem; flex: none; }
.menu { position: absolute; right: 0; top: 52px; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); z-index: 60; animation: pop .15s ease; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; font-size: .92rem; }
.menu a:hover, .menu button:hover { background: rgba(var(--glow), .12); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
.hero p { font-size: 1.1rem; color: var(--muted); margin-top: 16px; max-width: 560px; }
.hero .stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero .stats b { font-family: var(--display); font-size: 1.6rem; display: block; }
.hero-art { position: relative; aspect-ratio: 1/1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .orb { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-3), var(--accent-2) 30%, var(--accent) 60%, transparent 70%); filter: blur(2px); opacity: .9; animation: float 7s ease-in-out infinite; box-shadow: 0 0 120px rgba(var(--glow), .6); }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--glow), .5); box-shadow: 0 0 40px rgba(var(--glow), .4), inset 0 0 40px rgba(var(--glow), .3); animation: spin 18s linear infinite; }
.hero-art .ring.r2 { inset: 14%; border-style: dashed; animation-duration: 26s; animation-direction: reverse; }
.hero-art .chip { position: absolute; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid rgba(var(--glow), .4); backdrop-filter: blur(10px); font-weight: 800; font-size: .9rem; box-shadow: 0 0 22px rgba(var(--glow), .3); animation: float 6s ease-in-out infinite; }
.hero-art img.banner { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 60px rgba(var(--glow), .6); }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Categorías y productos ---------- */
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; transition: .2s; }
.cat:hover { border-color: rgba(var(--glow), .5); }
.cat.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 22px rgba(var(--glow), .45); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { font-size: 1.6rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; position: relative; }
.product:hover { transform: translateY(-6px); border-color: rgba(var(--glow), .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(var(--glow), .25); }
.p-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .p-img img, .product:hover .p-art .big { transform: scale(1.06); }
.p-art { width: 100%; height: 100%; display: grid; place-items: center; position: relative; color: #fff; }
.p-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(0, 0, 0, .45), transparent 55%); }
.p-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000); }
.p-art .big { font-family: var(--display); font-weight: 900; font-size: 2.6rem; letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); z-index: 1; transition: transform .5s; text-align: center; padding: 0 12px; line-height: 1; }
.p-art .emo { position: absolute; right: 14px; bottom: 10px; font-size: 1.6rem; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.p-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; gap: 6px; }
.p-badges .pill { backdrop-filter: blur(8px); background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .2); }
.p-badges .pill.hot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border: 0; box-shadow: 0 0 14px rgba(var(--glow), .6); }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3 { font-size: 1.02rem; }
.p-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price s { color: var(--soft); font-size: .85rem; font-weight: 600; margin-left: 6px; }
.stock-bar { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px rgba(var(--glow), .8); }
.soldout { filter: grayscale(.8); opacity: .65; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0; }
.feature { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(var(--glow), .14); box-shadow: 0 0 20px rgba(var(--glow), .25); margin-bottom: 12px; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 0, 2, .72); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .2s; overflow-y: auto; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid rgba(var(--glow), .3); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(var(--glow), .15); animation: pop .2s; }
.modal.wide { width: min(980px, 100%); }
.modal.sm { width: min(440px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Checkout ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.prof { padding: 14px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: center; transition: .2s; font-weight: 700; }
.prof .ico { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.prof:hover { border-color: rgba(var(--glow), .6); }
.prof.sel { border-color: var(--accent-2); background: rgba(var(--glow), .14); box-shadow: 0 0 18px rgba(var(--glow), .35); }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(var(--glow), .7); }
.yape-box { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(116, 46, 152, .25), rgba(var(--glow), .12)); border: 1px solid rgba(var(--glow), .3); }
.qr { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 10px; display: grid; place-items: center; box-shadow: 0 0 30px rgba(var(--glow), .35); }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-family: ui-monospace, monospace; font-weight: 700; cursor: pointer; }
.copy:hover { border-color: rgba(var(--glow), .6); }
.success-anim { width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; font-size: 2.6rem; background: radial-gradient(circle, rgba(var(--glow), .35), transparent 70%); box-shadow: 0 0 0 2px rgba(var(--glow), .5), 0 0 40px rgba(var(--glow), .5); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(var(--glow), .1), 0 0 60px rgba(var(--glow), .6); } }

/* ---------- Pedidos ---------- */
.order { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; }
.order .thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; }
.cred { display: grid; gap: 8px; margin-top: 12px; }
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cred-row b { font-family: ui-monospace, monospace; word-break: break-all; }
.code-big { font-family: ui-monospace, monospace; font-size: 1.8rem; font-weight: 900; letter-spacing: .25em; padding: 12px 18px; border-radius: 14px; background: rgba(var(--glow), .12); border: 1px solid rgba(var(--glow), .5); text-align: center; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(78, 168, 255, .08); border: 1px solid rgba(78, 168, 255, .25); font-size: .9rem; white-space: pre-line; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, #000) 0%, color-mix(in srgb, var(--accent) 18%, #000) 60%, #070503 100%); color: #fff; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 60%); }
.auth-side::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { font-size: 2.6rem; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 1.9rem; margin-bottom: 6px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; }
.tabs button { flex: 1; padding: 9px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-weight: 700; white-space: nowrap; color: var(--muted); }
.tabs button.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 0 16px rgba(var(--glow), .4); }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 70px); }
.side { border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.side h5 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); margin: 18px 10px 8px; }
.side a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: .15s; margin-bottom: 2px; }
.side a:hover { background: rgba(var(--glow), .08); color: var(--text); }
.side a.on { background: linear-gradient(90deg, rgba(var(--glow), .22), transparent); color: var(--text); box-shadow: inset 3px 0 0 var(--accent-2); }
.side a .dot { position: static; margin-left: auto; }
.main { padding: 26px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, var(--card), var(--card-2)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .25), transparent 70%); }
.kpi .lbl { color: var(--muted); font-size: .82rem; font-weight: 700; }
.kpi .val { font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin-top: 6px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar i { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 0 14px rgba(var(--glow), .45); min-height: 3px; transition: height .6s; }
.chart .bar span { font-size: .65rem; color: var(--soft); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(var(--glow), .04); }
.proof { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }
.order-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; }
.order-card .proof { width: 90px; height: 90px; }
.units { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.unit { padding: 8px 12px; border-radius: 12px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: .15s; }
.unit:hover { border-color: rgba(var(--glow), .6); }
.unit.available { border-color: rgba(25, 195, 125, .4); }
.unit.available::before { content: '● '; color: var(--ok); }
.unit.reserved::before { content: '● '; color: var(--warn); }
.unit.sold { opacity: .75; }
.unit.sold::before { content: '● '; color: var(--bad); }
.theme-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.theme-dot.on { border-color: var(--text); box-shadow: 0 0 14px rgba(var(--glow), .8); transform: scale(1.1); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.toast { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid rgba(var(--glow), .45); box-shadow: var(--shadow), 0 0 24px rgba(var(--glow), .25); animation: pop .25s; display: flex; gap: 12px; align-items: start; }
.toast.ok { border-color: rgba(25, 195, 125, .55); } .toast.bad { border-color: rgba(255, 77, 94, .6); }
.toast b { display: block; }
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0; color: var(--muted); font-size: .9rem; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(var(--glow), .2); border-top-color: var(--accent-2); animation: spin .8s linear infinite; margin: 40px auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; }
.mobile-only { display: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { max-width: 300px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 36px 24px; min-height: 230px; }
  .auth-side h1 { font-size: 1.8rem; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side h5 { display: none; }
  .side a { flex: none; margin: 0; }
  .main { padding: 18px 14px; }
  .yape-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .order-card { grid-template-columns: 70px 1fr; }
  .order-card .proof { width: 70px; height: 70px; }
  .order-card > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar .container { height: 62px; gap: 10px; }
  .search { display: none; }
  .mobile-only { display: block; }
  .brand span.name { display: none; }
  .user-chip .uname { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-body { padding: 10px 12px 12px; }
  .p-body h3 { font-size: .9rem; }
  .price { font-size: 1.1rem; }
  .p-art .big { font-size: 1.7rem; }
  .p-foot .btn { display: none; }
  .order { grid-template-columns: 48px 1fr; }
  .order .thumb { width: 48px; height: 48px; }
  .order > :last-child { grid-column: 1 / -1; }
}

/* ---------- Ajustes finos ---------- */
.grid { align-content: start; }
.chart { overflow: hidden; }
.chart .bar { min-width: 0; }
.chart .bar span { white-space: nowrap; overflow: hidden; max-width: 100%; }
.chart .bar:nth-child(even) span { visibility: hidden; }
input[type=file] { font-size: .85rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 1px solid rgba(var(--glow), .4); border-radius: 10px; background: rgba(var(--glow), .12); color: var(--text); font-weight: 700; cursor: pointer; }
.mini .p-art .big { display: none; }
.mini .p-art .emo { position: static; font-size: 1.5rem; }
.mini .p-art::after { display: none; }
.cred-row b { flex: 1; text-align: left; }
@media (max-width: 640px) {
  .hero-art { display: none; }
  .hero { padding-top: 22px; }
  .hero .row .btn { flex: 1; }
  .msearch { margin-bottom: 12px; }
}
@media (max-width: 640px) { .p-meta span:last-child { display: none; } }

/* =================== v2: íconos, app, nuevas secciones =================== */
.ic { flex: none; display: inline-block; vertical-align: -3px; }
.btn .ic, .pill .ic, .cat .ic, .menu .ic, .side .ic { vertical-align: middle; }
.ic-box { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--glow), .13); color: var(--accent-3); box-shadow: inset 0 0 0 1px rgba(var(--glow), .25), 0 0 18px rgba(var(--glow), .18); flex: none; }
[data-mode="light"] .ic-box { color: var(--accent); }
.ic-box.ok { background: rgba(25, 195, 125, .14); color: #3be39e; box-shadow: inset 0 0 0 1px rgba(25, 195, 125, .35); }
.ic-box.warn { background: rgba(245, 179, 1, .14); color: #ffcd4a; box-shadow: inset 0 0 0 1px rgba(245, 179, 1, .35); }
.ic-box.bad { background: rgba(255, 77, 94, .14); color: #ff7b88; box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .35); }
.ic-box.info { background: rgba(78, 168, 255, .14); color: #7cc0ff; box-shadow: inset 0 0 0 1px rgba(78, 168, 255, .35); }
.ic-box.sm { width: 34px; height: 34px; border-radius: 10px; }
.ic-box.lg { width: 64px; height: 64px; border-radius: 20px; }
.feature .ic { width: auto; height: auto; background: none; box-shadow: none; margin: 0; border-radius: 0; }
.p-art .emo { color: rgba(255, 255, 255, .92); }
.p-art .emo .ic { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.hero-art .chip { display: flex; align-items: center; gap: 8px; }
.hero-art .chip .ic { color: var(--accent-2); }
.kpi .lbl { display: flex; align-items: center; gap: 8px; }
.kpi .lbl .ic { color: var(--accent-2); }
.side a .ic { opacity: .85; }
.side a.on .ic { color: var(--accent-2); opacity: 1; }
.empty .big { display: grid; place-items: center; color: var(--accent-2); opacity: .9; }
.toast .ic-box { width: 36px; height: 36px; border-radius: 11px; }
.title-ic { display: flex; align-items: center; gap: 12px; }
.title-ic .ic { color: var(--accent-2); }
.link { color: var(--accent-3); font-weight: 700; }
[data-mode="light"] .link { color: var(--accent); }

/* Barra inferior estilo app (celular / tablet) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
  .bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; font-size: .68rem; font-weight: 700; color: var(--soft); position: relative; }
  .bottom-nav a.on { color: var(--accent-2); }
  .bottom-nav a.on::before { content: ''; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 3px; background: var(--accent-2); box-shadow: 0 0 10px rgba(var(--glow), .9); }
  .bottom-nav .dot { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer { margin-bottom: 0; }
  .hide-m { display: none !important; }
}
/* Modo app instalada */
@media (display-mode: standalone) { .topbar { padding-top: env(safe-area-inset-top); } .hide-app { display: none !important; } }
.topbar .container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* Página "Instala la app" */
.app-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0; }
.phone { width: 260px; height: 520px; margin: 0 auto; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2a2210, #0b0906); box-shadow: 0 0 0 2px rgba(var(--glow), .35), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(var(--glow), .25); position: relative; }
.phone .scr { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); position: relative; display: grid; grid-template-rows: auto 1fr; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.phone .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; padding: 60px 16px 16px; }
.phone .app { display: grid; justify-items: center; gap: 5px; font-size: .6rem; color: var(--muted); }
.phone .app i { width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); display: block; border: 1px solid var(--line); }
.phone .app.me i { background: none; border: 0; }
.phone .app.me img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 18px rgba(var(--glow), .7); animation: pulse 2s ease-in-out infinite; }
.phone .app.me span { color: var(--text); font-weight: 800; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.platform { padding: 20px; border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); }
.platform.cur { border-color: rgba(var(--glow), .6); box-shadow: 0 0 26px rgba(var(--glow), .2); }
.platform ol { margin: 12px 0 0 18px; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.platform ol b { color: var(--text); }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 700; color: var(--text); font-size: .85em; }
.install-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--glow), .18), rgba(var(--glow), .05)); border: 1px solid rgba(var(--glow), .4); margin: 18px 0; }
.install-bar img { width: 48px; height: 48px; border-radius: 12px; flex: none; }

/* Mi cuenta */
.svc { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.svc .thumb { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.progress.warn i { background: linear-gradient(90deg, #f5b301, #ffd25a); }
.progress.bad i { background: linear-gradient(90deg, #c3122f, #ff4d5e); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-f { padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.chip-f b { color: var(--text); }
.chip-f.on { background: rgba(var(--glow), .14); border-color: rgba(var(--glow), .55); color: var(--text); box-shadow: 0 0 14px rgba(var(--glow), .2); }

/* Soporte: conversación */
.chat { display: grid; gap: 12px; padding: 6px 0; }
.bubble { max-width: 78%; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); white-space: pre-line; word-break: break-word; }
.bubble.me { justify-self: end; background: rgba(var(--glow), .14); border-color: rgba(var(--glow), .35); border-bottom-right-radius: 4px; }
.bubble.staff { border-bottom-left-radius: 4px; }
.bubble .meta { font-size: .72rem; color: var(--soft); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.bubble img { max-width: 240px; border-radius: 10px; margin-top: 8px; cursor: zoom-in; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 52px; }

/* Ficha de cliente */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.8rem; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; }
.dl dt { color: var(--soft); }
.coupon-code { font-family: ui-monospace, monospace; font-weight: 900; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; border: 1px dashed rgba(var(--glow), .6); background: rgba(var(--glow), .08); }
.hbar { display: grid; gap: 10px; }
.hbar .r { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.hbar .r i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(var(--glow), .45); }
@media (max-width: 960px) { .app-hero { grid-template-columns: 1fr; } .phone { width: 220px; height: 440px; } }
@media (max-width: 640px) { .svc { grid-template-columns: 44px 1fr; } .svc > :last-child { grid-column: 1 / -1; } .bubble { max-width: 92%; } .hbar .r { grid-template-columns: 1fr auto; } .hbar .r > div { grid-column: 1 / -1; order: 3; } }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 1.35rem; }
  .kpi .lbl { font-size: .75rem; }
  .page-head h1 { font-size: 1.35rem; }
  .profile-head .row { width: 100%; }
}

/* =====================================================================
   v3 · Diseño sobrio: fondos neutros, el color solo en textos y detalles
   ===================================================================== */
:root {
  --bg: #0c0c0e; --bg-2: #131316; --card: #151518; --card-2: #19191d; --line: rgba(255, 255, 255, .07);
  --text: #ededf0; --muted: #a1a1aa; --soft: #6b6b75; --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --surface-hover: rgba(255, 255, 255, .04); --surface-on: rgba(255, 255, 255, .06);
}
[data-mode="light"] {
  --bg: #f6f6f7; --bg-2: #efeff1; --card: #ffffff; --card-2: #fafafa; --line: rgba(0, 0, 0, .08);
  --text: #18181b; --muted: #5f5f6b; --soft: #9a9aa5; --shadow: 0 6px 20px rgba(0, 0, 0, .06);
  --surface-hover: rgba(0, 0, 0, .03); --surface-on: rgba(0, 0, 0, .05);
}
[data-mode="light"]:not([data-theme]), [data-mode="light"][data-theme="dorado"] { --accent: #a77a0a; --accent-2: #c9961a; --accent-3: #8a6106; }
body { background-image: radial-gradient(900px 420px at 85% -10%, rgba(var(--glow), .05), transparent 60%); }
.neon, [data-mode="light"] .neon { color: var(--accent-2); text-shadow: none; }
[data-mode="light"] .neon { color: var(--accent); }
.grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-2); }
[data-mode="light"] .grad-text { color: var(--accent); }

/* Botones */
.btn { background: var(--accent-2); box-shadow: none; }
[data-mode="light"] .btn { background: var(--accent); color: #fff; }
.btn::after { display: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
[data-mode="light"] .btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); }
.btn.soft, [data-mode="light"] .btn.soft { background: var(--surface-on); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft:hover { background: rgba(255, 255, 255, .09); }
.btn.ok { background: #16a34a; box-shadow: none; }
.btn.bad { background: #dc2626; box-shadow: none; }
.icon-btn:hover { border-color: rgba(255, 255, 255, .16); box-shadow: none; background: var(--surface-hover); }

/* Superficies */
.card, .kpi, .feature, .platform, .product { background: var(--card); box-shadow: none; }
.card.glow, .platform.cur { border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent-2); }
.kpi::after { display: none; }
.kpi .lbl .ic, .title-ic .ic, .hero-art .chip .ic { color: var(--accent-2); }
.product:hover { border-color: rgba(255, 255, 255, .16); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: translateY(-4px); }
[data-mode="light"] .product:hover { border-color: rgba(0, 0, 0, .14); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.modal { background: var(--card); border-color: var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.toast { border-color: var(--line); box-shadow: var(--shadow); }
.menu { box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.menu a:hover, .menu button:hover { background: var(--surface-hover); }

/* Pastillas, chips y pestañas neutras con el color solo en el texto */
.pill, [data-mode="light"] .pill { background: var(--surface-on); color: var(--muted); border-color: var(--line); }
.cat.active, .tabs button.on, .chip-f.on {
  background: var(--surface-on); color: var(--accent-2); border-color: var(--line); box-shadow: inset 0 0 0 1px rgba(var(--glow), .35);
}
[data-mode="light"] .cat.active, [data-mode="light"] .tabs button.on, [data-mode="light"] .chip-f.on { color: var(--accent); }
.cat:hover, .chip-f:hover { border-color: rgba(255, 255, 255, .14); }
.ic-box, [data-mode="light"] .ic-box { background: var(--surface-on); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--line); }
[data-mode="light"] .ic-box { color: var(--accent); }
.dot { background: var(--accent-2); color: var(--on-accent); box-shadow: none; }
[data-mode="light"] .dot { background: var(--accent); color: #fff; }
.switch:checked { background: var(--accent-2); box-shadow: none; }
.stock-bar i, .progress i, .chart .bar i, .hbar .r i { background: var(--accent-2); box-shadow: none; }
.steps i.on { background: var(--accent-2); box-shadow: none; }
.prof.sel { background: var(--surface-on); border-color: var(--accent-2); box-shadow: none; color: var(--accent-2); }
.prof:hover { border-color: rgba(255, 255, 255, .16); }
.drop { border-color: var(--line); background: transparent; }
.drop:hover, .drop.over { border-color: var(--accent-2); background: var(--surface-hover); box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(var(--glow), .6); box-shadow: 0 0 0 3px rgba(var(--glow), .12); }
.copy:hover { border-color: rgba(255, 255, 255, .16); }
.code-big { background: var(--surface-on); border-color: var(--line); color: var(--accent-2); }
.note { background: var(--surface-hover); border-color: var(--line); }
.coupon-code { border-color: var(--line); background: var(--surface-on); color: var(--accent-2); }
.rank.owner, .rank.seller, .rank.vip { box-shadow: none; }

/* Barra superior, anuncio, logo */
.announce { background: var(--bg-2); color: var(--accent-2); border-bottom: 1px solid var(--line); animation: none; }
[data-mode="light"] .announce { color: var(--accent); }
.brand .logo, .logo-fallback { box-shadow: none; }
.topbar { background: color-mix(in srgb, var(--bg) 85%, transparent); }

/* Menú lateral */
.side { background: var(--bg); }
.side a:hover { background: var(--surface-hover); }
.side a.on { background: var(--surface-on); box-shadow: inset 3px 0 0 var(--accent-2); }
.side a.on .ic { color: var(--accent-2); }
.side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); margin: 16px 10px 6px; font-weight: 700; user-select: none; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary .ic { transition: transform .2s; opacity: .6; }
.side-group[open] > summary .ic { transform: rotate(180deg); }
.side-group > summary .dot { position: static; margin-left: auto; margin-right: 6px; }
@media (max-width: 960px) { .side-group { display: contents; } .side-group > summary { display: none; } }

/* Portada e instalar */
.hero-art .orb { opacity: .5; box-shadow: 0 0 60px rgba(var(--glow), .25); filter: blur(1px); }
.hero-art .ring { border-color: rgba(var(--glow), .22); box-shadow: none; }
.hero-art .chip { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.install-bar { background: var(--card); border-color: var(--line); }
.auth-side { background: linear-gradient(160deg, #1c1c21 0%, #111114 60%, #09090b 100%); }
.auth-side::before { background: radial-gradient(circle, rgba(var(--glow), .14), transparent 60%); }
.phone { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .5); }
.phone .app.me img { box-shadow: none; animation: none; }
.success-anim { box-shadow: 0 0 0 2px rgba(var(--glow), .35); animation: none; color: var(--accent-2); }
.bottom-nav a.on::before { box-shadow: none; background: var(--accent-2); }
.bottom-nav a.on { color: var(--accent-2); }
[data-mode="light"] .bottom-nav a.on { color: var(--accent); }

/* Filas de perfiles (formulario de cuentas) */
.unit-rows { display: grid; gap: 8px; }
.unit-row { display: grid; grid-template-columns: 34px 1fr 140px 40px; gap: 8px; align-items: center; }
.unit-row .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-on); font-weight: 800; font-size: .85rem; color: var(--muted); }
.unit-row.nopin { grid-template-columns: 34px 1fr 40px; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.calc div { display: grid; gap: 2px; }
.calc span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.calc b { font-family: var(--display); font-size: 1.15rem; }
.pos { color: #22c55e !important; } .neg { color: #ef4444 !important; }
.section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); font-weight: 800; margin-top: 4px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #ef4444; }
.status-dot.on { background: #22c55e; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface-on); border: 1px solid var(--line); font-family: ui-monospace, monospace; font-weight: 700; font-size: .85rem; }
.chip-tag button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.theme-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: grid; gap: 8px; justify-items: center; font-size: .8rem; font-weight: 700; background: var(--bg-2); }
.theme-card.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); }
.theme-card i { width: 100%; height: 34px; border-radius: 8px; display: block; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart2 { display: flex; align-items: flex-end; gap: 6px; height: 200px; overflow: hidden; }
.chart2 .d { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart2 .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart2 .bars i { width: 45%; max-width: 16px; border-radius: 4px 4px 2px 2px; min-height: 2px; }
.chart2 .d span { font-size: .62rem; color: var(--soft); white-space: nowrap; }
@media (max-width: 640px) { .unit-row { grid-template-columns: 30px 1fr 90px 36px; } }
.avatar { background: var(--surface-on); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--line); }
[data-mode="light"] .avatar { color: var(--accent); }
.user-chip .avatar { box-shadow: none; }
.hero-art .orb { opacity: .28; }

/* =====================================================================
   v4 · Tienda estilo marketplace (cabecera con menús, catálogo con filtros,
   tarjetas con stock y valoraciones, detalle de producto, pie de página)
   ===================================================================== */
[data-theme="morado"] { --on-accent: #fff; --accent: #7c3aed; --accent-2: #a78bfa; --accent-3: #c4b5fd; --glow: 167, 139, 250; }
[data-mode="light"][data-theme="morado"] { --accent: #6d28d9; --accent-2: #7c3aed; --accent-3: #5b21b6; }
.rank.owner { background: rgba(var(--glow), .16); color: var(--accent-2); box-shadow: none; }
.rank.seller { background: rgba(139, 92, 246, .16); color: #a78bfa; box-shadow: none; }
body.noscroll { overflow: hidden; }

/* Cabecera */
.topbar .container { gap: 18px; }
.brand .name { white-space: nowrap; font-size: 1.12rem; letter-spacing: -.01em; }
.mainnav { display: flex; align-items: center; gap: 2px; }
.mainnav a, .navbtn { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
.mainnav a:hover, .navbtn:hover { color: var(--text); background: var(--surface-hover); }
.mainnav a.on, .navbtn.on { color: var(--text); }
.mainnav .menu { left: 0; right: auto; top: 46px; min-width: 260px; }
.cats-menu a .grow { flex: 1; }
.search { max-width: 380px; margin-left: auto; }
.search input { height: 42px; background: var(--bg-2); }
.nav-actions { margin-left: 0; }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
@media (max-width: 1100px) { .mainnav a[href="#/soporte"] { display: none; } }
@media (max-width: 960px) { .mainnav { display: none; } .search { max-width: none; } }
@media (max-width: 640px) {
  .search { display: block; }
  .search input { height: 38px; font-size: .88rem; }
  .brand .logo { width: 36px; height: 36px; }
  .hide-xs { display: none; }
}

/* Portada */
.hero2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 44px 0 20px; }
.hero2 h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.05; margin-top: 14px; letter-spacing: -.02em; }
.hero2 p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; max-width: 540px; }
.pill.accent { color: var(--accent-2); border-color: rgba(var(--glow), .35); background: rgba(var(--glow), .08); }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.trust-chips span { display: inline-flex; align-items: center; gap: 6px; }
.trust-chips .ic { color: var(--accent-2); }
.hero2-art { position: relative; }
.hero-banner { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-3deg); }
.collage .cl { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s; }
.collage .cl:hover { transform: translateY(-4px) rotate(1deg); }
.collage .cl1, .collage .cl3 { margin-top: 30px; margin-bottom: -30px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .p-art .big { font-size: 1.9rem; }
@media (max-width: 860px) { .hero2 { grid-template-columns: 1fr; padding-top: 26px; } .hero2-art { order: -1; } .collage { transform: none; grid-template-columns: repeat(4, 1fr); gap: 8px; } .collage .cl { aspect-ratio: 1; border-radius: 14px; } .collage .cl1, .collage .cl3 { margin: 0; } .collage .p-art .big { font-size: .9rem; } .collage .p-art .emo { display: none; } }

.sec { margin-top: 44px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 1.45rem; letter-spacing: -.01em; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 640px) { .rail { grid-auto-columns: 72%; gap: 12px; } }

.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.plat { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: .2s; }
.plat:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .16); }
.plat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; overflow: hidden; font-family: var(--display); font-size: 1.1rem; }
.plat-ic img { width: 100%; height: 100%; object-fit: cover; }
.plat span { font-weight: 800; font-size: .86rem; line-height: 1.15; }
.plat small { color: var(--soft); font-size: .72rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.cat-tile > div:nth-child(2) { flex: 1; }
.cat-tile:hover { border-color: rgba(255, 255, 255, .16); }
.trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.trustbar > div { display: flex; gap: 12px; align-items: center; }
.trustbar b { display: block; font-size: .92rem; }
.trustbar span { font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) { .trustbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trustbar { grid-template-columns: 1fr; } }
.testis { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.testi { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; }
.testi p { color: var(--text); font-size: .94rem; line-height: 1.5; }

/* Estrellas */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .st { color: rgba(255, 255, 255, .16); display: inline-flex; position: relative; }
[data-mode="light"] .stars .st { color: rgba(0, 0, 0, .14); }
.stars .st.on { color: #fbbf24; }
.stars .st.half { color: #fbbf24; clip-path: inset(0 50% 0 0); }
.stars .st.half::after { content: ''; }
.rate-pick { display: flex; justify-content: center; gap: 6px; }
.rate-pick button { background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, .18); transition: transform .15s; padding: 2px; }
[data-mode="light"] .rate-pick button { color: rgba(0, 0, 0, .15); }
.rate-pick button.on { color: #fbbf24; }
.rate-pick button:hover { transform: scale(1.12); }

/* Tarjeta de producto */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; min-width: 0; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .15); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
[data-mode="light"] .pcard:hover { border-color: rgba(0, 0, 0, .12); box-shadow: 0 12px 26px rgba(0, 0, 0, .08); }
.pc-img { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--bg-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pc-img img, .pcard:hover .pc-img .p-art .big { transform: scale(1.05); }
.pc-img .p-art .big { font-size: 2rem; }
.disc { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: #dc2626; color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .02em; }
.disc.tag { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.stk { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; }
.stk i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.stk.ok i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.stk.low i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.stk.out i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.stk.low { color: #fcd34d; } .stk.out { color: #fca5a5; }
.pd-specs .stk { position: static; background: var(--surface-on); color: var(--text); }
.pd-specs .stk.low { color: #f59e0b; } .pd-specs .stk.out { color: #ef4444; } .pd-specs .stk.ok { color: #22c55e; }
.pc-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); display: flex; gap: 6px; align-items: center; }
[data-mode="light"] .pc-cat { color: var(--accent); }
.pc-body h3 { font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body h3 a:hover { color: var(--accent-2); }
.pc-specs { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; flex-wrap: wrap; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.pc-price b { font-family: var(--display); font-size: 1.3rem; }
.pc-price s, .pd-price s { color: var(--soft); font-size: .85rem; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pc-actions .btn { padding: 8px 6px; font-size: .8rem; }
.pcard.soldout .pc-img { filter: grayscale(.7); opacity: .75; }
@media (max-width: 480px) { .pc-actions { grid-template-columns: 1fr; } .pc-body { padding: 11px; } .pc-body h3 { font-size: .9rem; } .pc-price b { font-size: 1.12rem; } .pc-img .p-art .big { font-size: 1.4rem; } }

/* Catálogo */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--soft); padding: 20px 0 6px; }
.crumbs a:hover { color: var(--text); }
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 86px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; max-height: calc(100vh - 100px); overflow-y: auto; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
.f-head b { display: flex; align-items: center; gap: 8px; }
.f-head .link { background: none; border: 0; cursor: pointer; margin-left: auto; }
.filters details { border-bottom: 1px solid var(--line); padding: 10px 4px; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .88rem; }
.filters summary::-webkit-details-marker { display: none; }
.filters details[open] summary .ic { transform: rotate(180deg); }
.f-opts { display: grid; gap: 2px; margin-top: 8px; }
.f-opts.scroll { max-height: 220px; overflow-y: auto; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: .87rem; color: var(--muted); }
.f-opt:hover { background: var(--surface-hover); color: var(--text); }
.f-opt input { width: 16px; height: 16px; accent-color: var(--accent-2); flex: none; padding: 0; }
.f-opt span { flex: 1; display: flex; align-items: center; gap: 6px; }
.f-opt em { font-style: normal; font-size: .74rem; color: var(--soft); background: var(--surface-on); padding: 1px 7px; border-radius: 999px; }
.f-opt:has(input:checked) { color: var(--text); font-weight: 700; }
.f-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.f-price input { padding: 8px 10px; font-size: .86rem; }
.cat-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-top h1 { font-size: 1.6rem; }
.sm-select { width: auto; padding: 8px 32px 8px 12px; font-size: .86rem; height: 38px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 10px; cursor: pointer; color: var(--soft); display: grid; place-items: center; }
.seg button.on { background: var(--surface-on); color: var(--accent-2); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters .chip-tag { font-family: inherit; font-size: .8rem; cursor: pointer; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plist { display: grid; gap: 12px; }
.plist .pcard { flex-direction: row; }
.plist .pc-img { width: 240px; flex: none; aspect-ratio: auto; min-height: 170px; }
.plist .pc-actions { grid-template-columns: auto auto; justify-content: start; }
.plist .pc-actions .btn { padding: 8px 16px; }
@media (max-width: 640px) { .plist .pc-img { width: 120px; min-height: 0; } .plist .pc-actions { grid-template-columns: 1fr 1fr; } .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 0; }
.pager .pg { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 800; color: var(--muted); font-family: inherit; }
.pager .pg.on { color: var(--accent-2); border-color: rgba(var(--glow), .5); background: var(--surface-on); }
.pager .icon-btn:disabled { opacity: .35; cursor: default; }
.show-m { display: none !important; }
@media (max-width: 960px) {
  .cat-layout { grid-template-columns: 1fr; }
  .show-m { display: inline-flex !important; }
  .filters { display: none; position: fixed; inset: 0; top: 0; z-index: 80; border-radius: 0; max-height: none; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .filters.open { display: block; }
  .f-head .icon-btn { margin-left: 8px; }
  .filters .btn.block { position: sticky; bottom: 0; }
}

/* Detalle de producto */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; margin-top: 8px; }
.pd-img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; border: 1px solid var(--line); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-guarantee { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pd-guarantee div { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); }
.pd-guarantee .ic { color: var(--accent-2); flex: none; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin-top: 6px; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pd-specs > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-on); font-size: .82rem; font-weight: 700; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price b { font-family: var(--display); font-size: 2.3rem; }
.pd-price .save { font-size: .8rem; font-weight: 800; color: #22c55e; background: rgba(34, 197, 94, .12); padding: 3px 9px; border-radius: 8px; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pd-buy .btn { flex: 1; min-width: 180px; }
.pay-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-on); font-size: .82rem; color: var(--muted); }
.pay-badge b { color: #a855f7; }
.pd-tabs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 30px; }
.how { margin: 10px 0 0 20px; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.review { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
@media (max-width: 860px) { .pd, .pd-tabs { grid-template-columns: 1fr; gap: 18px; } }

/* Pie de página */
.footer2 { margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 20px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.fgrid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin-bottom: 12px; }
.fgrid > div > a:not(.brand) { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--muted); font-size: .9rem; }
.fgrid > div > a:not(.brand):hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-on); border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: var(--accent-2); }
.fbottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: var(--soft); }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > div:first-child { grid-column: 1 / -1; } }

/* Botón flotante de ayuda */
#fab { position: fixed; right: 18px; bottom: 18px; z-index: 44; }
.fab-help { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent-2); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-family: inherit; text-align: left; }
[data-mode="light"] .fab-help { background: var(--accent); color: #fff; }
.fab-help span { display: grid; line-height: 1.1; }
.fab-help small { font-size: .68rem; opacity: .85; font-weight: 700; }
.fab-help b { font-size: .92rem; }
.fab-menu { bottom: 60px; top: auto; right: 0; }
@media (max-width: 760px) { #fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; } .fab-help { padding: 12px; } .fab-help span { display: none; } }
body.in-admin #fab { display: none; }

/* Formulario de producto (panel) */
.modal.xwide { width: min(1120px, 100%); }
.modal-foot { position: sticky; bottom: 0; background: var(--card); z-index: 2; }
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
.pf-main { display: grid; gap: 14px; align-content: start; }
.pf-side { position: sticky; top: 76px; align-self: start; }
.pf-side .pcard { pointer-events: none; }
.pf-step { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pf-step:first-child { margin-top: 0; }
.pf-step > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-on); color: var(--accent-2); font-weight: 800; font-size: .85rem; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.type-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; color: var(--text); font-family: inherit; transition: .15s; }
.type-opt:hover { border-color: rgba(255, 255, 255, .16); }
.type-opt b { display: block; font-size: .9rem; }
.type-opt small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; line-height: 1.3; }
.type-opt.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); background: var(--surface-on); }
.type-opt .ic-box.sm { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.money-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.money-in span { padding: 0 10px 0 12px; color: var(--muted); font-weight: 800; font-size: .9rem; }
.money-in input { border: 0; background: transparent; padding-left: 0; box-shadow: none !important; }
.disc-preview { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line); }
.disc-preview b { font-size: 1.15rem; }
.dur-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dur-row input:disabled { opacity: .4; }
.seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex-wrap: wrap; }
.seg2 button { background: var(--bg-2); border: 0; border-right: 1px solid var(--line); padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 700; font-family: inherit; font-size: .86rem; }
.seg2 button:last-child { border-right: 0; }
.seg2 button.on { background: var(--surface-on); color: var(--accent-2); box-shadow: inset 0 -2px 0 var(--accent-2); }
.img-row { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.dropzone { display: grid; place-items: center; text-align: center; min-height: 180px; padding: 14px; border-radius: 16px; border: 2px dashed var(--line); background: var(--bg-2); cursor: pointer; position: relative; overflow: hidden; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent-2); }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dz-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; justify-content: center; }
.dz-actions .btn { background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sw { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); position: relative; padding: 0; }
.sw.on { border-color: var(--text); transform: scale(1.08); }
.sw.custom { display: grid; place-items: center; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); color: #fff; overflow: hidden; }
.sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tg { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.tg b { display: block; font-size: .88rem; }
.tg small { color: var(--muted); font-size: .74rem; }
.tg .switch { flex: none; margin-top: 2px; }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } .pf-side { position: static; order: -1; max-width: 280px; } .img-row { grid-template-columns: 1fr; } }
.side-store { padding: 12px; margin: 4px 4px 8px; border-radius: 14px; background: var(--surface-on); border: 1px solid var(--line); display: grid; gap: 2px; }
.side-store b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .side-store { display: none; } }

/* =====================================================================
   v5 · Portada animada, animaciones de tienda, códigos automáticos y móvil
   ===================================================================== */
/* TV animada */
.tv-wrap { position: relative; padding: 18px 26px 10px; }
.tv { position: relative; border-radius: 22px; padding: 12px; background: linear-gradient(160deg, #26262c, #0d0d10); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); animation: tvfloat 6s ease-in-out infinite; }
.tv-screen { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #050507; }
.tv-slide { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s ease;
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c) 75%, white 10%), transparent 60%), linear-gradient(140deg, var(--c), #060608 85%); }
.tv-slide.on { opacity: 1; transform: scale(1); }
.tv-name { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(1.8rem, 4.4vw, 3.2rem); letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); text-align: center; padding: 0 12px; }
.tv-sub { display: inline-flex; gap: 6px; align-items: center; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.tv-slide.on .tv-name { animation: tvpop .8s cubic-bezier(.2, .9, .3, 1.3); }
.tv-glow { position: absolute; width: 60%; height: 60%; border-radius: 50%; background: var(--c); filter: blur(60px); opacity: .45; animation: tvglow 4s ease-in-out infinite alternate; }
.tv-glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .08) 45%, transparent 55%); background-size: 250% 100%; animation: glare 5s linear infinite; pointer-events: none; }
.tv-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.tv-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: .3s; }
.tv-dots i.on { width: 18px; background: #fff; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; border-radius: 0 0 14px 14px; background: linear-gradient(#1c1c21, #0b0b0d); box-shadow: 0 18px 30px rgba(0, 0, 0, .4); }
.fchip { position: absolute; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 12px; font-size: .78rem; font-weight: 800; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); animation: chipfloat 5s ease-in-out infinite; }
.fchip .ic { color: var(--accent-2); }
.fchip.f1 { top: 0; left: 0; } .fchip.f2 { top: 42%; right: 0; animation-delay: -1.6s; } .fchip.f3 { bottom: 4px; left: 10%; animation-delay: -3.2s; }
@keyframes tvfloat { 50% { transform: translateY(-8px); } }
@keyframes chipfloat { 50% { transform: translateY(-10px); } }
@keyframes tvpop { from { transform: translateY(14px) scale(.92); opacity: 0; } }
@keyframes tvglow { to { transform: translate(30%, 20%) scale(1.2); } }
@keyframes glare { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (max-width: 860px) { .tv-wrap { padding: 8px 6px 4px; } .fchip { display: none; } .tv-name { font-size: 2rem; } }

/* Marquesina de plataformas */
.marquee { margin-top: 26px; overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 34px; width: max-content; animation: mq 32s linear infinite; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.mq-item i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Botones de la portada */
.cta-main { position: relative; overflow: hidden; animation: ctapulse 2.6s ease-in-out infinite; }
.cta-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
.cta-alt { transition: transform .2s, border-color .2s; }
.cta-alt:hover { transform: translateY(-2px); border-color: var(--accent-2); }
@keyframes ctapulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--glow), .45); } 50% { box-shadow: 0 0 0 10px rgba(var(--glow), 0); } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Animaciones activables desde el panel */
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
body.in-admin #fx { display: none; }
body.anim-shine .btn:not(.ghost):not(.soft):not(.sm) { position: relative; overflow: hidden; }
body.anim-shine .btn:not(.ghost):not(.soft):not(.sm)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
body.anim-neon:not(.in-admin) .btn:not(.ghost):not(.soft) { box-shadow: 0 0 12px rgba(var(--glow), .55), 0 0 28px rgba(var(--glow), .25); }
body.anim-neon:not(.in-admin) .pc-price b, body.anim-neon:not(.in-admin) .hero2 h1 { text-shadow: 0 0 18px rgba(var(--glow), .45); }
body.anim-neon:not(.in-admin) .pcard:hover { border-color: rgba(var(--glow), .6); box-shadow: 0 0 24px rgba(var(--glow), .3); }
body.anim-aurora:not(.in-admin)::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 35% at 20% 20%, rgba(var(--glow), .18), transparent 70%), radial-gradient(35% 30% at 80% 30%, rgba(var(--glow), .12), transparent 70%), radial-gradient(40% 35% at 50% 90%, rgba(var(--glow), .1), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate(4%, -3%) rotate(6deg) scale(1.08); } }
body.anim-reveal .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
body.anim-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tv, .fchip, .mq-track, .cta-main, .cta-main::after, .tv-glare, .tv-glow { animation: none !important; } }

/* Contraseñas con ojo */
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.pw-eye:hover { color: var(--text); background: var(--surface-hover); }

/* Compra: modo normal / activación manual */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; font-family: inherit; }
.mode-opt b { display: block; font-size: .9rem; } .mode-opt small { color: var(--muted); font-size: .76rem; }
.mode-opt.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); background: var(--surface-on); }
@media (max-width: 520px) { .mode-pick { grid-template-columns: 1fr; } }

/* Código automático */
.code-auto { padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid rgba(var(--glow), .3); }
.code-xl { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 800; letter-spacing: .18em; margin: 14px 0 12px; color: var(--accent-2); cursor: pointer; text-shadow: 0 0 24px rgba(var(--glow), .35); }

/* Historial de compras (ordenado en móvil) */
.hist-bar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: center; margin-bottom: 16px; }
.seg-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-pill { flex: none; height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.seg-pill b { min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: .72rem; background: var(--surface-on); color: var(--text); padding: 0 6px; }
.seg-pill.on { color: var(--accent-2); border-color: rgba(var(--glow), .55); background: var(--surface-on); }
.seg-pill.on b { background: var(--accent-2); color: var(--on-accent); }
.search-in { position: relative; display: flex; align-items: center; }
.search-in .ic { position: absolute; left: 12px; color: var(--soft); }
.search-in input { padding-left: 38px; height: 42px; }
.order-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.order-actions .btn { width: 100%; justify-content: center; height: 40px; }
.order-actions > span { align-self: center; }
.order-side { text-align: right; }
@media (max-width: 760px) {
  .hist-bar { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; gap: 12px; }
  .page-head .btn { width: 100%; justify-content: center; }
  .order { grid-template-columns: 56px minmax(0, 1fr) !important; }
  .order-side { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
  .order-side .progress { margin-left: 0 !important; }
  .order-actions { grid-template-columns: 1fr 1fr; }
  .cred-row { flex-wrap: wrap; }
  .cred-row > .small { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr !important; }
}

/* Panel en celular: barra superior con ☰ y menú lateral deslizable */
.adm-bar, .side-top, .side-ov { display: none; }
@media (max-width: 960px) {
  .adm-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .adm-burger { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
  .adm-burger .dot { position: absolute; top: -5px; right: -5px; }
  .adm-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
  .adm-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adm-title .ic { color: var(--accent-2); flex: none; }
  .side-ov { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .side-ov.open { opacity: 1; pointer-events: auto; }
  .side { display: block !important; position: fixed !important; top: 0; left: 0; bottom: 0; z-index: 91; width: min(84vw, 320px); height: 100vh !important; height: 100dvh !important; overflow-y: auto !important;
    padding: 0 12px 24px !important; border-right: 1px solid var(--line) !important; border-bottom: 0 !important; background: var(--bg) !important; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 50px rgba(0, 0, 0, .35); }
  .side.open { transform: none; }
  .side-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 10px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
  .side .side-store { display: grid !important; }
  .side-group { display: block !important; }
  .side-group > summary { display: flex !important; }
  .side h5 { display: block !important; }
  .side a { display: flex !important; margin: 2px 0 !important; padding: 11px 12px !important; }
  .admin { display: block; }
  .main { padding: 16px 14px 90px; }
  body.in-admin .topbar { position: static; }
}

/* Panel: piezas nuevas */
.dur-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.stepper button { width: 42px; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: var(--surface-hover); }
.stepper input { width: 76px; border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 800; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.off { opacity: .35; }
.dur-read { padding: 8px 12px; border-radius: 10px; background: var(--surface-on); color: var(--accent-2); font-size: .9rem; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow-step { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.flow-step b { font-size: .9rem; } .flow-step span { font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } }
.guide-steps { margin: 10px 0 0 20px; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.guide-steps b, .guide-list b { color: var(--text); }
.guide-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; font-size: .92rem; color: var(--muted); }
.guide-list li { display: flex; gap: 8px; align-items: flex-start; }
.guide-list .ic { color: var(--ok); flex: none; margin-top: 3px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.acc-mail { display: block; font-family: ui-monospace, monospace; font-size: .92rem; word-break: break-all; margin-top: 4px; }
.acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-actions .btn { justify-content: center; }
.range-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.range-bar .seg-scroll { min-width: 0; }
.range-dates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range-dates input { width: auto; height: 38px; }
.bc-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.bc-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .page-head .row { width: 100%; }
  .page-head .row .btn { flex: 1; justify-content: center; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs button { flex: none; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .order-card .row[style*="flex-end"] { justify-content: stretch !important; }
  .order-card .row[style*="flex-end"] .btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .modal-foot { flex-wrap: nowrap; }
  .modal-foot .btn { flex: 1; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .modal-foot .btn.lg { font-size: .95rem; }
}
@media (max-width: 860px) { .hero2-art .tv-wrap { max-width: 340px; margin: 0 auto; } .hero2 { gap: 18px; } }

/* Servicio vencido: accesos ocultos */
.locked-box { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(239, 68, 68, .06); border: 1px solid rgba(239, 68, 68, .3); }
.cred-row.masked { opacity: .7; user-select: none; }
.cred-row.masked b { filter: blur(.4px); letter-spacing: .08em; }
.cred-row.masked .ic { color: var(--soft); }
.store-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.store-quick .chip-f { border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-family: inherit; color: var(--text); }
.order-actions .btn { white-space: normal; height: auto; min-height: 40px; line-height: 1.15; padding: 8px 10px; text-align: center; }
@media (max-width: 380px) { .order-actions { grid-template-columns: 1fr; } }

/* Planes: editor del panel */
.plans-ed { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.plan-row.pop { border-color: rgba(var(--glow), .6); box-shadow: inset 0 0 0 1px rgba(var(--glow), .35); }
.pr-dur { display: flex; gap: 8px; align-items: center; }
.pr-dur select { width: auto; min-width: 118px; height: 42px; }
.stepper.sm button { width: 34px; } .stepper.sm input { width: 58px; height: 40px; font-size: .95rem; }
.pr-f { display: grid; gap: 4px; font-size: .74rem; color: var(--muted); font-weight: 700; }
.pr-side { display: flex; gap: 8px; align-items: center; justify-content: flex-end; min-height: 42px; }
.pr-disc { min-width: 54px; text-align: center; }
.pr-pop { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; padding: 7px 9px; cursor: pointer; font-size: .76rem; font-weight: 700; font-family: inherit; }
.plan-row.pop .pr-pop { color: #fbbf24; border-color: rgba(251, 191, 36, .5); }
@media (max-width: 760px) { .plan-row { grid-template-columns: 1fr 1fr; } .pr-dur { grid-column: 1 / -1; } .pr-side { grid-column: 1 / -1; justify-content: space-between; } }
.plan-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-chips span { padding: 2px 8px; border-radius: 99px; background: var(--surface-on); font-size: .72rem; white-space: nowrap; }

/* Planes: selector en la tienda */
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.plan-opt { position: relative; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; font-family: inherit; transition: .15s; }
.plan-opt:hover { border-color: rgba(255, 255, 255, .2); }
.plan-opt b { font-size: .95rem; }
.plan-opt .pp { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.plan-opt s { color: var(--soft); font-size: .78rem; }
.plan-opt .save { font-size: .72rem; font-weight: 800; color: #22c55e; }
.plan-opt.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); background: var(--surface-on); }
.plan-opt .tagp { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; background: var(--accent-2); color: var(--on-accent); }
.pc-from { font-size: .72rem; color: var(--muted); font-weight: 700; margin-right: -4px; }
