/* Tienda Astrality — mismo sistema visual que www y wiki (void / nova / solar) */
:root {
  color-scheme: dark;
  --void: #07060f;
  --panel: #110f22;
  --panel-2: #171431;
  --glass: rgba(20, 17, 42, .72);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f3f1ff;
  --ink-2: #d9d5f5;
  --mute: #aaa6c9;
  --nova: #8b7cff;
  --nova-soft: #b6acff;
  --solar: #ffb454;
  --solar-ink: #1a1206;
  --live: #4ade80;
  --danger: #ff8a98;
  --star: #FFB13D; --solar-r: #FF9464; --galaxy: #8FE8DC; --astral: #C79CFF;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--nova-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .86em; background: rgba(139,124,255,.14); color: var(--ink-2); padding: .08em .38em; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--solar); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ───── Atmósfera ───── */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; animation: drift 30s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 50vmax; height: 50vmax; left: -16vmax; top: -20vmax; background: radial-gradient(circle, #5b46ff 0%, transparent 65%); }
.aurora i:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 10vmax; background: radial-gradient(circle, #b4368f 0%, transparent 65%); opacity: .26; animation-duration: 36s; }
.aurora i:nth-child(3) { width: 36vmax; height: 36vmax; left: 24vw; bottom: -24vmax; background: radial-gradient(circle, #ff9d3d 0%, transparent 65%); opacity: .16; animation-duration: 42s; }
@keyframes drift { to { transform: translate3d(5vmax, 3vmax, 0) scale(1.1); } }
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 78% 12%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 44% 34%, #cfc8ff 60%, transparent 61%),
    radial-gradient(1px 1px at 90% 46%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 23% 62%, #ffe2b8 60%, transparent 61%),
    radial-gradient(1px 1px at 66% 74%, #fff 60%, transparent 61%),
    radial-gradient(1.3px 1.3px at 8% 88%, #fff 60%, transparent 61%);
  background-size: 520px 520px;
}

/* ───── Barra de vista previa ───── */
.demo-bar {
  background: repeating-linear-gradient(-45deg, #2a1d05 0 14px, #231804 14px 28px);
  color: #ffe2b8; font-size: .875rem; text-align: center; padding: .55rem var(--gutter);
  border-bottom: 1px solid rgba(255,180,84,.35);
}
.demo-bar strong { color: var(--solar); }

/* ───── Barra superior ───── */
.topbar { position: sticky; top: 0; z-index: 30; padding: 10px var(--gutter) 0; }
.topbar-in {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark circle { fill: var(--solar); }
.brand-mark ellipse { fill: none; stroke: var(--nova-soft); stroke-width: 2; }
.brand-word { font-family: var(--display); font-weight: 800; letter-spacing: .08em; font-size: 1.02rem; }
.brand-tag { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--solar); border: 1px solid rgba(255,180,84,.4); padding: 2px 7px; border-radius: 999px; }
.catnav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; text-decoration: none; color: var(--mute); font-size: .92rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.catnav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.catnav a[aria-current="page"] { color: var(--ink); background: rgba(139,124,255,.2); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.user-chip {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .9rem;
}
.user-chip img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; background: #231f45; }
.user-chip .who { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip.anon { padding-left: 14px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--solar); color: var(--solar-ink); display: grid; place-items: center;
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--void); font: 700 .72rem/20px var(--mono); text-align: center;
}
.cart-count[data-n="0"] { display: none; }
.cart-btn.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ───── Hero ───── */
.loading { padding: 80px 0; color: var(--mute); text-align: center; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(36px, 7vw, 72px) 0 28px; }
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--nova-soft); font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; margin: 12px 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 0%, #cfc8ff 40%, var(--solar) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; cursor: pointer;
}
.chip:hover { border-color: var(--line-2); background: rgba(255,255,255,.08); color: var(--ink); }
.chip .k { color: var(--mute); font-size: .78rem; }
.chip .v { font-family: var(--mono); font-weight: 700; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.dot.off { background: var(--mute); box-shadow: none; }

/* Tarjeta de jugador (hero) */
.who-card { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1); }
.who-card h2 { font-size: 1.35rem; margin: 6px 0 6px; }
.who-card .sub { color: var(--mute); font-size: .92rem; margin-bottom: 16px; }
.who-card .me { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.who-card .me img { width: 56px; height: 56px; border-radius: 12px; image-rendering: pixelated; background: #231f45; }
.who-card .me .n { font-family: var(--display); font-weight: 700; font-size: 1.3rem; word-break: break-all; }
.who-card .me .p { color: var(--mute); font-size: .85rem; }
.steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: .92rem; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem var(--mono); color: var(--solar-ink); background: var(--solar); transform: translateY(-1px); }

/* ───── Botones y campos ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-solar { background: var(--solar); color: var(--solar-ink); }
.btn-solar:hover { background: #ffc373; color: var(--solar-ink); }
.btn-nova { background: var(--nova); color: #0b0820; }
.btn-nova:hover { background: #9d90ff; color: #0b0820; }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.field { display: block; margin-top: 14px; }
.field-label { display: block; font-size: .82rem; color: var(--mute); margin-bottom: 6px; font-weight: 600; }
input[type="text"], input:not([type]), input[type="search"] {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(7,6,15,.6); color: var(--ink); font: 600 1rem var(--mono); outline: none;
}
input::placeholder { color: #6f6a93; font-weight: 500; }
input:focus { border-color: var(--nova); box-shadow: 0 0 0 3px rgba(139,124,255,.25); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); gap: 4px; margin-top: 16px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--mute); cursor: pointer; }
.seg input:checked + span { background: var(--nova); color: #0b0820; }
.seg input:focus-visible + span { outline: 2px solid var(--solar); outline-offset: 2px; }
.preview { margin-top: 8px; font-size: .85rem; color: var(--mute); min-height: 1.3em; }
.preview b { font-family: var(--mono); color: var(--solar); }
.err { color: var(--danger); font-size: .88rem; min-height: 1.3em; margin: 6px 0 4px; }
.fine { font-size: .78rem; color: var(--mute); margin-top: 12px; }

/* ───── Estructura principal ───── */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-bottom: 56px; }
.shell > .rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.block { padding-top: 34px; }
.block:first-child { padding-top: 6px; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.block-head .desc { color: var(--mute); font-size: .95rem; margin-top: 6px; max-width: 60ch; }
.block-head .desc p + p { margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); text-decoration: none; font-size: .9rem; margin: 28px 0 0; }
.back:hover { color: var(--ink); }

/* ───── Comparador de rangos ───── */
.ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rank {
  --rc: var(--nova-soft);
  position: relative; display: flex; flex-direction: column; padding: 18px 16px 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, transparent), rgba(255,255,255,.02) 55%);
  border: 1px solid color-mix(in srgb, var(--rc) 32%, transparent); overflow: hidden;
}
.rank::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
}
.rank::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rc); box-shadow: 0 0 16px 3px color-mix(in srgb, var(--rc) 70%, transparent);
}
.rank .rn { font-family: var(--display); color: var(--rc); letter-spacing: -.03em; line-height: 1; }
.rank:nth-child(1) .rn { font-size: 1.55rem; font-weight: 650; }
.rank:nth-child(2) .rn { font-size: 1.8rem; font-weight: 700; }
.rank:nth-child(3) .rn { font-size: 2.05rem; font-weight: 760; }
.rank:nth-child(4) .rn { font-size: 2.3rem; font-weight: 800; }
.rank .tl { color: var(--mute); font-size: .84rem; margin-top: 6px; min-height: 2.6em; }
.rank .homes { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rank .homes b { font: 700 2rem/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.rank .homes span { color: var(--mute); font-size: .85rem; }
.rank .inc { font-size: .78rem; color: var(--mute); margin-bottom: 8px; }
.rank ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.rank li { display: flex; flex-direction: column; gap: 1px; font-size: .88rem; color: var(--ink-2); }
.rank li code { align-self: flex-start; background: color-mix(in srgb, var(--rc) 18%, transparent); color: var(--ink); }
.rank .buy { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.rank .buy .btn { width: 100%; }
.price { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .cur { font-size: .7em; color: var(--mute); font-weight: 500; margin-left: 3px; }
.price s { color: var(--mute); font-weight: 500; font-size: .8em; margin-right: 6px; }
.rank .price { font-size: 1.15rem; }
.cmp { margin-top: 14px; }
.cmp summary { cursor: pointer; color: var(--nova-soft); font-weight: 700; font-size: .92rem; list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.cmp summary::-webkit-details-marker { display: none; }
.cmp summary::before { content: "+"; font-family: var(--mono); width: 18px; }
.cmp[open] summary::before { content: "−"; }
.scroll-x { overflow-x: auto; margin-top: 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(7,6,15,.55); }
table.grid { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
table.grid th, table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
table.grid th:first-child, table.grid td:first-child { text-align: left; color: var(--ink-2); }
table.grid thead th { font-family: var(--display); font-size: 1rem; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid .y { color: var(--live); font-weight: 700; }
table.grid .n { color: #5e5a80; }
table.grid td.num { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.note { color: var(--mute); font-size: .82rem; margin-top: 10px; }

/* ───── Tarjetas de paquete ───── */
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pkg {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.pkg:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pkg .art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, rgba(139,124,255,.28), rgba(7,6,15,.2) 70%); border-bottom: 1px solid var(--line); cursor: pointer; border-top: 0; border-left: 0; border-right: 0; width: 100%; padding: 0; }
.pkg .art img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pkg .art svg { width: 64px; height: 64px; }
.pkg .off { position: absolute; top: 10px; left: 10px; font: 700 .74rem var(--mono); color: var(--solar-ink); background: var(--solar); padding: 3px 8px; border-radius: 999px; }
.pkg .bd { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.pkg h3 { font-size: 1.12rem; font-weight: 700; }
.pkg .price { font-size: 1.05rem; }
.pkg .acts { display: flex; gap: 8px; margin-top: auto; }
.pkg .acts .btn-solar { flex: 1; }
.empty { padding: 28px; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* Emblemas (cuando el paquete no trae imagen) */
.em-key .a { fill: var(--solar); } .em-key .b { fill: #fff3; }
.em-coin .a { fill: #ffd27a; } .em-coin .b { fill: #b87516; }
.em-star .a { fill: var(--nova-soft); } .em-star .b { fill: #fff8; }

/* ───── Barra lateral ───── */
.widget { padding: 16px; border-radius: var(--r-lg); background: rgba(17,15,34,.78); border: 1px solid var(--line); }
.widget h3 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nova-soft); font-weight: 700; margin-bottom: 12px; }
.widget .ex { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--solar); font-weight: 600; font-size: .72rem; margin-left: 6px; }
.goal .bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.goal .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nova), var(--solar)); }
.goal.striped .bar i { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--nova), var(--solar)); background-size: 22px 22px, auto; }
.goal.animated .bar i { animation: slide 1.2s linear infinite; }
@keyframes slide { to { background-position: 22px 0, 0 0; } }
.goal .row { display: flex; justify-content: space-between; margin-top: 8px; font-size: .85rem; color: var(--mute); }
.goal .row b { font-family: var(--mono); color: var(--ink); }
.top { display: flex; align-items: center; gap: 12px; }
.top img { width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated; background: #231f45; }
.top .n { font-family: var(--display); font-weight: 700; font-size: 1.15rem; word-break: break-all; }
.top .t { font-family: var(--mono); color: var(--solar); font-size: .88rem; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.recent li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; }
.recent img { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; background: #231f45; }
.recent .n { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .p { color: var(--mute); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help p { color: var(--ink-2); font-size: .9rem; margin-bottom: 12px; }
.text-mod { color: var(--ink-2); font-size: .9rem; }

/* ───── Diálogos ───── */
dialog { color: var(--ink); padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(4,3,10,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { width: min(440px, calc(100vw - 24px)); margin: auto; }
.sheet-wide { width: min(640px, calc(100vw - 24px)); }
.sheet-in {
  position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; max-height: calc(100dvh - 32px); overflow: auto;
}
.sheet h2 { font-size: 1.5rem; margin: 6px 0 6px; }
.sheet .sub { color: var(--mute); font-size: .93rem; }
.x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.x:hover { background: rgba(255,255,255,.12); }
#login-go { margin-top: 10px; }
.pkg-head { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; align-items: center; padding-right: 40px; }
.pkg-head .art { aspect-ratio: 1; border-radius: var(--r-md); display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, rgba(139,124,255,.3), rgba(7,6,15,.2) 70%); border: 1px solid var(--line); }
.pkg-head .art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pkg-head .art svg { width: 58px; height: 58px; }
.pkg-head .cat { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nova-soft); }
.pkg-head .price { font-size: 1.35rem; margin-top: 8px; display: block; }
.rich { color: var(--ink-2); margin-top: 18px; font-size: .97rem; }
.rich > * + * { margin-top: 10px; }
.rich ul, .rich ol { padding-left: 1.2em; margin: 8px 0; }
.rich img { border-radius: var(--r-sm); margin: 8px 0; }
.rich h3, .rich h4 { font-size: 1.1rem; margin-top: 14px; }
.buybox { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.buyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buyrow .btn-solar { flex: 1 1 180px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 42px; border: 0; background: rgba(255,255,255,.05); cursor: pointer; font: 700 1.1rem var(--mono); color: var(--ink); }
.stepper button:hover { background: rgba(255,255,255,.12); }
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 40px; text-align: center; font: 700 1rem var(--mono); font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 32px; height: 32px; font-size: .95rem; }
.stepper.sm output { min-width: 30px; font-size: .9rem; }
.gift { font-size: .9rem; }
.gift summary { cursor: pointer; color: var(--nova-soft); font-weight: 700; }
.gift .field { margin-top: 10px; }

/* Carrito (panel lateral) */
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(430px, 100vw); }
.drawer-in { height: 100%; display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-head .x { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 18px; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel-2); }
.to { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 14px; font-size: .9rem; }
.to img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: #231f45; }
.to b { font-family: var(--mono); word-break: break-all; }
.to .btn { margin-left: auto; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.item .nm { font-weight: 700; }
.item .gift-to { color: var(--mute); font-size: .8rem; }
.item .price { text-align: right; }
.item .ctl { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.item .rm { margin-left: auto; background: none; border: 0; color: var(--mute); cursor: pointer; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.item .rm:hover { color: var(--danger); }
.codes { margin-top: 18px; }
.codes .seg { margin-top: 0; }
.codes .inrow { display: flex; gap: 8px; margin-top: 10px; }
.codes .inrow input { flex: 1; min-width: 0; }
.applied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem var(--mono); padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(139,124,255,.16); border: 1px solid rgba(139,124,255,.35); }
.tag button { border: 0; background: rgba(255,255,255,.1); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.sum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .92rem; }
.sum div { display: flex; justify-content: space-between; color: var(--mute); }
.sum div b { font-family: var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum .total { color: var(--ink); font-size: 1.05rem; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.sum .total b { color: var(--ink); font-size: 1.2rem; }
.paynote { font-size: .78rem; color: var(--mute); margin-top: 10px; text-align: center; }
.cart-empty { text-align: center; color: var(--mute); padding: 40px 10px; }
.cart-empty svg { width: 54px; height: 54px; margin: 0 auto 12px; stroke: var(--nova-soft); fill: none; stroke-width: 1.5; }

/* ───── Aviso flotante ───── */
.toast {
  position: fixed; inset: auto auto calc(22px + env(safe-area-inset-bottom)) 50%; margin: 0; color: var(--ink);
  transform: translate(-50%, 20px); opacity: 0; z-index: 60; overflow: visible;
  padding: 12px 18px; border-radius: 12px; background: #1d1a3a; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px #000;
  font-weight: 600; font-size: .92rem; width: max-content; max-width: min(440px, calc(100vw - 32px)); text-align: center; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255,138,152,.5); color: #ffd0d6; }

/* ───── Pie ───── */
.foot { border-top: 1px solid var(--line); background: rgba(7,6,15,.72); padding: 44px 0 36px; }
.faq h2 { font-size: 1.5rem; margin-bottom: 14px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.faq details { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--ink-2); font-size: .92rem; margin-top: 8px; }
.foot-row { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-brand p { color: var(--mute); font-size: .9rem; margin-top: 6px; }
.legal p { color: var(--ink-2); font-size: .86rem; }
.legal p + p { margin-top: 8px; }
.legal .fine { font-size: .74rem; letter-spacing: .01em; }
.foot-links { color: var(--mute); }

/* ───── Responsive ───── */
@media (max-width: 1020px) {
  .ranks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shell { grid-template-columns: minmax(0,1fr); }
  .shell > .rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 28px; }
  .catnav { display: none; }
  .mobile-nav { display: flex; }
  .faq-grid, .foot-row { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }
.mobile-nav { gap: 6px; overflow-x: auto; padding: 14px 0 0; scrollbar-width: none; }
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a { flex: none; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { background: rgba(139,124,255,.22); color: var(--ink); border-color: rgba(139,124,255,.4); }
@media (max-width: 520px) {
  .ranks { grid-template-columns: minmax(0,1fr); }
  .topbar-in { padding-left: 12px; gap: 8px; }
  .brand-tag { display: none; }
  .user-chip .who { max-width: 84px; }
  .pkg-head { grid-template-columns: 84px minmax(0,1fr); gap: 14px; }
  .pkgs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .pkg .acts { flex-direction: column; }
}
@media (max-width: 380px) { .pkgs { grid-template-columns: minmax(0,1fr); } .user-chip .who { display: none; } .user-chip { padding-right: 5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
