/* GameMarket España — tema oscuro. Sin servicios externos: la tipografía de títulos (Inter Display, licencia SIL OFL) va incluida en /fonts. */
@font-face { font-family: "GM Display"; src: url("../fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "GM Display"; src: url("../fonts/inter-display-900.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --bg: #0a0e17;
  --bg-2: #0e1522;
  --panel: #111a2a;
  --panel-2: #172338;
  --line: #223048;
  --text: #eef2f8;
  --muted: #94a3ba;
  --accent: #a3f24a;
  --accent-ink: #0d1606;
  --accent-soft: rgba(163, 242, 74, 0.12);
  --blue: #7b95ff;
  --danger: #ff7283;
  --warn: #f5c35b;
  --ok: #5ad491;
  --radius: 14px;
  --display: "GM Display", "Inter Display", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
#view { min-height: 62vh; outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.sm-text { font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; background: var(--panel-2); color: var(--text);
  transition: transform .15s, filter .15s, background .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { background: transparent; border-color: #5b2a33; color: var(--danger); }
.btn.sm { padding: 8px 13px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite;
  color: var(--accent-ink);
}
.btn.ghost.busy::after, .btn.danger.busy::after { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
}
.iconbtn:hover { background: var(--panel); }
.dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- Barra superior ---------- */
#topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 14, 23, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: -0.04em; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { display: block; flex: none; }
.logo-word { font-family: var(--display, inherit); font-weight: 900; letter-spacing: -0.03em; }
.logo b { color: var(--accent); }
.links { display: flex; gap: 6px; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; }
.links a:hover, .links a.on { color: var(--text); background: var(--panel); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-weight: 650; max-width: 190px; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; }

#bottomnav { display: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; padding: 52px 0 30px; overflow: hidden;
  background:
    radial-gradient(600px 260px at 12% -10%, rgba(163, 242, 74, .14), transparent 70%),
    linear-gradient(transparent 31px, rgba(255, 255, 255, .025) 32px) 0 0 / 100% 32px;
}
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; letter-spacing: -0.045em; margin: 12px 0 14px; max-width: 14ch; text-wrap: balance; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--muted); font-size: 17px; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.filters { display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin: 6px 0 14px; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; }
input, select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 44px;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); flex: none; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: rgba(163, 242, 74, .5); color: var(--accent); }
.result-count { color: var(--muted); margin: 4px 0 12px; font-size: 14px; }

/* ---------- Tarjetas de anuncio ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: #3b5272; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-img { aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 45%, #0a0e17), #0e1522 75%); }
.cover-ph span { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: rgba(255, 255, 255, .85); }
.plat, .feat { position: absolute; top: 10px; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.plat { left: 10px; background: rgba(9, 14, 24, .8); border: 1px solid rgba(255, 255, 255, .16); }
.feat { right: 52px; background: var(--accent); color: var(--accent-ink); }
.heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(9, 14, 24, .78); color: #fff; display: grid; place-items: center; }
.heart.on { color: var(--danger); }
.card-body { padding: 13px 14px 14px; }
.card-body h3 { font-size: 16px; letter-spacing: -0.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.24em; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.price { font-size: 21px; font-weight: 850; color: var(--accent); letter-spacing: -0.02em; }
.ago { color: var(--muted); font-size: 12px; }
.skel { height: 270px; border-radius: 16px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }
.more { display: flex; justify-content: center; margin: 26px 0 8px; }

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h2 { color: var(--text); font-size: 22px; }
.page { padding-block: 30px 40px; }
.page > h1, .page-head h1 { font-size: 30px; font-weight: 850; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 16px; font-weight: 650; }
.back:hover { color: var(--text); }

/* ---------- Detalle ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery-main { aspect-ratio: 4 / 3; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #070a11; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--bg-2); }
.thumb.on { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 86px; }
.buybox h1 { font-size: 26px; font-weight: 850; overflow-wrap: anywhere; }
.big-price { font-size: 38px; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.tag.hot { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seller { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.seller strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge.pro { background: rgba(123, 149, 255, .18); color: var(--blue); }
.badge.tienda { background: rgba(245, 195, 91, .16); color: var(--warn); }
.section-box { margin-top: 28px; }
.section-box h2 { font-size: 20px; margin-bottom: 10px; }
.safety { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.safety h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; color: var(--warn); }
.safety ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- Formularios ---------- */
.card-form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 16px; }
.plain-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: #c9d4e5; }
.field small { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .main { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.ph-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(9, 14, 24, .85); color: #fff; display: grid; place-items: center; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.notice.warn { border-color: rgba(245, 195, 91, .4); color: var(--warn); background: rgba(245, 195, 91, .07); }
.notice.ok { border-color: rgba(90, 212, 145, .4); color: var(--ok); background: rgba(90, 212, 145, .07); }
.form-error { padding: 11px 14px; border-radius: 12px; background: rgba(255, 114, 131, .1); border: 1px solid rgba(255, 114, 131, .4); color: var(--danger); font-size: 14px; }
.form-error a { text-decoration: underline; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check a { color: var(--accent); text-decoration: underline; }

/* ---------- Mis anuncios ---------- */
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.meter b { font-size: 20px; }
.bar-track { height: 8px; border-radius: 4px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.list { display: grid; gap: 12px; }
.my-listing { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.my-listing .thumbbox { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.my-listing .thumbbox img { width: 100%; height: 100%; object-fit: cover; }
.my-listing .thumbbox .cover-ph span { font-size: 15px; }
.my-listing h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-listing .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: 13px; }
.status { padding: 2px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status.active { background: rgba(90, 212, 145, .15); color: var(--ok); }
.status.paused { background: rgba(245, 195, 91, .15); color: var(--warn); }
.status.sold { background: rgba(148, 163, 186, .18); color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Mensajes ---------- */
.msgs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; padding-block: 24px; height: calc(100vh - 66px - 24px); min-height: 520px; }
.inbox, .thread { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.inbox h2 { padding: 16px 18px; font-size: 18px; border-bottom: 1px solid var(--line); }
.convs { overflow-y: auto; flex: 1; }
.conv { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.conv:hover, .conv.on { background: var(--panel-2); }
.conv .who { font-weight: 750; display: flex; gap: 8px; align-items: center; }
.conv .who span, .conv .prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .what { color: var(--accent); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .prev { color: var(--muted); font-size: 13px; }
.conv .when { font-size: 11px; color: var(--muted); text-align: right; display: grid; gap: 6px; justify-items: end; }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.thread-head .back { margin: 0; display: none; }
.thread-head a.item { color: var(--accent); font-size: 13px; font-weight: 650; }
.msg-list { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: min(74%, 520px); padding: 9px 13px 6px; border-radius: 16px 16px 16px 4px; background: var(--panel-2); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; text-align: right; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 140px; resize: none; }
.pick { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border-color: rgba(163, 242, 74, .55); box-shadow: 0 0 0 1px rgba(163, 242, 74, .2), 0 24px 60px -30px rgba(163, 242, 74, .35); }
.plan .ribbon { position: absolute; top: 16px; right: 16px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 850; padding: 4px 9px; border-radius: 8px; }
.plan h3 { font-size: 20px; }
.amount { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; }
.amount small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: #cdd8e8; }
.plan li .ic { color: var(--accent); margin-top: 2px; }

/* ---------- Cuenta ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.box h2 { font-size: 18px; }
.box.danger-zone { border-color: #4b2630; }
.big { font-size: 24px; font-weight: 850; }

/* ---------- Modal y avisos ---------- */
#modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(3, 6, 12, .72); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(460px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid #33466a; border-radius: 20px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.modal-card h2 { font-size: 22px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg-2); border-radius: 12px; gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: 13px; text-align: left; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + var(--safe-b)); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid #33466a; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-weight: 600; animation: rise .25s ease-out; }
.toast.err { border-color: rgba(255, 114, 131, .55); color: #ffc7ce; }
.toast.ok { border-color: rgba(163, 242, 74, .5); }
.toast.out { opacity: 0; transition: opacity .35s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Legal y pie ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: 32px; margin-bottom: 14px; }
.legal h2 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: #c3cfe0; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
#footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
@media (min-width: 721px) { .foot nav { flex: 0 0 auto; flex-wrap: nowrap; } }
.foot a:hover { color: var(--text); }

/* ---------- Adaptación a móvil ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .plans { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(66px + var(--safe-b)); }
  .links, .bar-right .btn.primary, .bar-right .iconbtn, .user-chip { display: none; }
  .bar { height: 58px; }
  .hero { padding: 34px 0 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; }
  .card-body h3 { font-size: 14px; }
  .price { font-size: 18px; }
  .feat { right: 8px; top: auto; bottom: 8px; }
  .heart { width: 34px; height: 34px; }
  #bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(10, 14, 23, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + var(--safe-b));
  }
  #bottomnav a, #bottomnav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 700; background: none; border: 0; }
  #bottomnav .on { color: var(--accent); }
  #bottomnav .dot { top: 0; right: calc(50% - 22px); }
  .msgs { display: block; height: calc(100vh - 58px - 66px - var(--safe-b)); min-height: 0; padding-block: 12px; }
  .msgs .inbox, .msgs .thread { height: 100%; }
  .msgs.has-thread .inbox, .msgs:not(.has-thread) .thread { display: none; }
  .thread-head .back { display: inline-grid; }
  .msg { max-width: 86%; }
  .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .my-listing { grid-template-columns: 72px minmax(0, 1fr); }
  .my-listing .thumbbox { width: 72px; height: 56px; }
  .my-listing .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  #toasts { bottom: calc(80px + var(--safe-b)); }
  #footer { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Categorías y orden ---------- */
.sortbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sortbar > span { flex: none; width: 64px; font-weight: 700; }
.sortbar .chips { margin-bottom: 0; flex-wrap: wrap; }
.sortbar .chip { padding: 6px 12px; font-size: 13px; }
@media (max-width: 720px) { .sortbar { align-items: flex-start; } .sortbar > span { width: 52px; padding-top: 7px; } }

/* ---------- Avatares con foto ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 92px; height: 92px; font-size: 38px; }
a.seller { color: inherit; border-radius: 12px; }
a.seller:hover strong { text-decoration: underline; }
.thread-head a:hover, .u-list a:hover span { text-decoration: underline; }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-edit.busy { opacity: .5; pointer-events: none; }
.wrap-row { flex-wrap: wrap; }
label.btn { cursor: pointer; }

/* ---------- Perfil ---------- */
.p-head { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 20px; }
.p-avatar { flex: none; padding: 4px; border-radius: 50%; border: 0; background: transparent; position: relative; }
.p-avatar.has-story { background: conic-gradient(var(--accent), #5ad491, var(--blue), var(--accent)); cursor: pointer; }
.p-avatar.has-story .avatar { border: 3px solid var(--bg); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
.p-info { min-width: 0; display: grid; gap: 10px; }
.p-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-name h1 { font-size: 28px; }
.p-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.p-stats li, .p-stats button { display: grid; justify-items: start; line-height: 1.2; background: none; border: 0; padding: 0; text-align: left; }
.p-stats b { font-size: 19px; }
.p-stats span { color: var(--muted); font-size: 13px; }
.p-stats button:hover span, .p-stats button:hover b { color: var(--accent); }
.p-bio { color: #d3dcec; max-width: 60ch; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.story-thumb { position: relative; flex: none; width: 96px; height: 136px; border-radius: 14px; overflow: hidden; border: 2px solid var(--accent); background: var(--panel); padding: 0; }
.story-thumb img, .story-thumb video { width: 100%; height: 100%; object-fit: cover; }
.story-thumb small { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; font-weight: 700; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.story-thumb .play { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); border-radius: 50%; }
.story-thumb .play .ic { width: 14px; height: 14px; }
.stories-empty { margin-bottom: 14px; }
.locked { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--accent); margin-bottom: 14px; background: var(--bg-2); }
.locked p { color: var(--text); font-size: 14px; }
.ptabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ptabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-weight: 750; color: var(--muted); margin-bottom: -1px; }
.ptabs button.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Valoraciones ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars span { color: #2a3750; display: inline-grid; }
.stars span.on { color: #ffc247; }
.stars .ic { width: 16px; height: 16px; }
.r-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.r-big { font-size: 40px; font-weight: 850; line-height: 1; }
.r-cta { margin-left: auto; }
.r-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.r-list li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.r-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-list p { margin-top: 4px; color: #d3dcec; }
.stars-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.stars-field legend { padding: 0; font-size: 13px; font-weight: 700; color: #c9d4e5; margin-bottom: 6px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: #2a3750; cursor: pointer; display: inline-grid; padding: 2px; }
.star-input label .ic { width: 34px; height: 34px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #ffc247; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.u-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.u-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; font-weight: 650; }
.u-list a:hover { background: var(--panel-2); }

/* ---------- Visor de historias ---------- */
.modal-card.story-card { width: min(420px, 100%); padding: 16px; }
.story-view { display: grid; gap: 10px; }
.s-bars { display: flex; gap: 4px; margin-right: 44px; }
.s-bars span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.s-bars span.on { background: var(--accent); }
.s-head { display: flex; align-items: center; gap: 10px; }
.s-media { border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; max-height: 64vh; }
.s-media img, .s-media video { width: 100%; max-height: 64vh; object-fit: contain; }
.s-cap { text-align: center; }
.s-nav { display: flex; gap: 8px; justify-content: space-between; }

@media (max-width: 720px) {
  .p-head { gap: 16px; }
  .avatar.xl { width: 72px; height: 72px; font-size: 30px; }
  .p-name h1 { font-size: 22px; }
  .p-stats { gap: 16px; }
  .r-cta { margin-left: 0; width: 100%; }
  .r-cta .btn { width: 100%; justify-content: center; }
}

.card-img .plat { max-width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ====== Compra protegida: pedidos, seguimiento, reclamaciones ====== */
.stack { display: grid; gap: 18px; align-content: start; }
.two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-note { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; line-height: 1.4; }
.buy-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ord-sub { font-size: 14px; color: var(--muted); font-weight: 750; margin: 4px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.ord-price { margin: 0; display: grid; gap: 8px; }
.ord-price > div { display: flex; justify-content: space-between; gap: 14px; }
.ord-price dt { color: var(--muted); }
.ord-price dd { margin: 0; font-weight: 700; text-align: right; }
.ord-price .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-size: 18px; }
.ord-price .total dt { color: var(--text); font-weight: 800; }
.ord-price .total dd { color: var(--accent); font-weight: 850; }

.ord-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.ord-badge.ok { color: var(--ok); border-color: rgba(90, 212, 145, .45); background: rgba(90, 212, 145, .08); }
.ord-badge.warn { color: var(--warn); border-color: rgba(245, 195, 91, .45); background: rgba(245, 195, 91, .08); }
.ord-badge.bad { color: var(--danger); border-color: rgba(255, 114, 131, .45); background: rgba(255, 114, 131, .08); }
.ord-badge.info { color: var(--blue); border-color: rgba(123, 149, 255, .45); background: rgba(123, 149, 255, .08); }
.ord-badge.muted { color: var(--muted); }
.ord-todo { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; background: var(--accent); color: var(--accent-ink); }

.ord-list { display: grid; gap: 10px; }
.ord-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.ord-row:hover { border-color: #33466a; }
.ord-main { display: grid; gap: 4px; min-width: 0; }
.ord-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-amount { text-align: right; font-weight: 850; display: grid; }
.ord-amount small { color: var(--muted); font-weight: 600; font-size: 12px; }
.ord-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.ord-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ord-thumb.lg { width: 84px; height: 84px; flex: none; }
.ord-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.ord-head h1 { font-size: 24px; margin: 0 0 4px; }
.ord-head p { margin: 4px 0; }
.ord-cols { margin-top: 18px; }

.ord-steps { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; counter-reset: s; }
.ord-steps li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); position: relative; }
.ord-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.ord-steps li:first-child::before { display: none; }
.ord-steps .n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line); font-weight: 800; }
.ord-steps .n .ic { width: 16px; height: 16px; }
.ord-steps li.done, .ord-steps li.now { color: var(--text); }
.ord-steps li.done::before, .ord-steps li.now::before { background: var(--accent); }
.ord-steps li.done .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ord-steps li.now .n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ord-steps li.held .n { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 114, 131, .15); }

.ord-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ord-events li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.ord-events .when { color: var(--muted); font-size: 12px; padding-top: 2px; }
.ord-addr p { margin: 6px 0 0; line-height: 1.5; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ev-grid a, .ev-item, .ev-miss { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.ev-grid img { width: 100%; height: 100%; object-fit: cover; }
.btn.disabled { opacity: .45; pointer-events: none; }
.how { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.how b { color: var(--text); }

@media (max-width: 720px) {
  .ord-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ord-thumb { width: 52px; height: 52px; }
  .ord-amount { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .ord-steps { padding: 14px 8px; }
  .ord-steps li { font-size: 11px; }
  .ord-head { align-items: flex-start; }
  .ord-thumb.lg { width: 64px; height: 64px; }
  .two-f { grid-template-columns: 1fr; }
}
.stack, .stack > .box { min-width: 0; }
.stack input, .stack select, .stack textarea { max-width: 100%; min-width: 0; }
@media (max-width: 900px) { .ord-cols { grid-template-columns: minmax(0, 1fr); } }
.stack > .box, .stack .plain-form { grid-template-columns: minmax(0, 1fr); }

/* ---------- Torneos (Arena) ---------- */
.ar-h2 { margin: 28px 0 12px; font-size: 20px; display: flex; gap: 8px; align-items: center; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 16px; }
.ar-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .15s, transform .15s; }
.ar-card:hover { border-color: rgba(163, 242, 74, .5); transform: translateY(-2px); }
.ar-card h3 { margin: 0; font-size: 18px; }
.ar-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.ar-game { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ar-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; align-items: center; }
.ar-meta svg, .ar-prize svg { width: 16px; height: 16px; vertical-align: -3px; }
.ar-prize { color: var(--warn); font-weight: 700; }
.ar-prize.big { padding: 12px 16px; border: 1px solid rgba(245, 195, 91, .4); background: rgba(245, 195, 91, .07); border-radius: 12px; margin: 14px 0; }
.ar-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.ar-head h1 { margin: 4px 0 8px; }
.ar-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ar-champ { padding: 14px 18px; border-radius: 12px; background: rgba(163, 242, 74, .1); border: 1px solid rgba(163, 242, 74, .4); font-size: 18px; margin: 12px 0; }
.ar-players { display: flex; flex-wrap: wrap; gap: 10px; }
.ar-pl { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-weight: 650; }
.ar-rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ar-rules-d { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ar-rules-d summary { cursor: pointer; font-weight: 700; }
.ar-bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.ar-round { min-width: 210px; display: grid; gap: 12px; align-content: space-around; }
.ar-round h4 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ar-match { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.ar-match.ready, .ar-match.reported { border-color: rgba(123, 149, 255, .5); }
.ar-match.disputed { border-color: rgba(255, 114, 131, .55); }
.ar-p { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-weight: 650; }
.ar-p + .ar-p { border-top: 1px solid var(--line); }
.ar-p.win { color: var(--accent); }
.ar-p.me { background: rgba(163, 242, 74, .08); }
.ar-mstat { padding: 4px 12px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ar-mine { display: grid; gap: 12px; margin: 16px 0; border-color: rgba(163, 242, 74, .45); }
.ar-mine-head h3 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ar-vs { display: flex; gap: 14px; align-items: center; font-size: 20px; font-weight: 800; flex-wrap: wrap; }
.ar-vs b { color: var(--muted); font-size: 14px; }
.ar-ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0; }
.ar-ids div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ar-ids dt { font-size: 12px; color: var(--muted); }
.ar-ids dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.ar-mine-actions { flex-wrap: wrap; }
.ar-report { max-width: 420px; }
.ar-admin { margin-top: 34px; padding-top: 6px; border-top: 1px dashed var(--line); }
.ar-flags { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ar-adm-match { display: grid; gap: 10px; }
.ar-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 114, 131, .08); white-space: pre-wrap; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ar-table th, .ar-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.ar-gift { border-color: rgba(245, 195, 91, .5); background: rgba(245, 195, 91, .06); margin: 14px 0; }
.ar-gift h3 { margin: 0 0 6px; }
.ar-code { font-size: 18px; padding: 10px 14px; border-radius: 10px; background: var(--bg, #0a0e17); border: 1px dashed var(--accent); overflow-wrap: anywhere; white-space: pre-wrap; margin-bottom: 8px; }
.ar-ev-who { display: grid; gap: 6px; }

/* ---------- Portada (versión seria) ---------- */
.btn.lg { padding: 15px 26px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; }
.tagchip { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line); }
.tagchip.live { color: var(--accent); background: var(--accent-soft); border-color: rgba(163, 242, 74, .35); }
.tagchip.dim { opacity: .75; }
.hero2 { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 320px at 8% -10%, rgba(163, 242, 74, .12), transparent 70%), var(--bg); }
.hero2::before { content: ""; position: absolute; inset: -20% -10% -20% 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, .028) 18% 36%, transparent 36% 44%, rgba(163, 242, 74, .045) 44% 62%, transparent 62% 70%, rgba(255, 255, 255, .02) 70% 88%, transparent 88%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero2 h1 { font-size: clamp(48px, 8vw, 96px); margin: 14px 0 18px; text-wrap: balance; }
.hero2 h1 em { color: var(--accent); font-style: normal; }
.hero2 .hero-copy > p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 34px; }
.stat-strip:empty { display: none; }
.stat-strip div { display: grid; gap: 2px; }
.stat-strip b { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.01em; }
.stat-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ar-banner { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17, 26, 42, .85); backdrop-filter: blur(6px); transition: border-color .15s, transform .15s; }
.ar-banner:hover { border-color: rgba(163, 242, 74, .55); transform: translateY(-2px); }
.ar-b-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-b-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.ar-b-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.ar-banner .btn { justify-self: start; }
.sec { padding-block: 56px 8px; }
.sec-h { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.sec-sub { color: var(--muted); max-width: 60ch; margin-bottom: 26px; }
.sec .filters { margin-top: 18px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.fcard { display: grid; align-content: start; gap: 12px; text-align: left; padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: border-color .15s, transform .15s; }
a.fcard:hover, button.fcard:hover { border-color: rgba(163, 242, 74, .55); transform: translateY(-2px); }
.fcard.soon { opacity: .7; }
.feat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feat-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feat-ic svg { width: 22px; height: 22px; }
.fcard h3 { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0; }
.fcard p { color: var(--muted); font-size: 14px; }
.feat-link { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 22px; }
.step { position: relative; display: grid; align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.step-n { position: absolute; top: 18px; right: 20px; font-family: var(--display); font-weight: 900; font-size: 34px; color: rgba(255, 255, 255, .08); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: 0; }
.step p { color: var(--muted); font-size: 14px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 36px; border: 1px solid rgba(163, 242, 74, .35); border-radius: 14px;
  background: linear-gradient(100deg, rgba(163, 242, 74, .12), rgba(163, 242, 74, .02) 60%); }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 6px; }
.cta-band p { color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero2 { padding: 40px 0 34px; }
  .hero2::before { inset: -10% -30% 40% 20%; opacity: .7; }
  .sec { padding-block: 40px 4px; }
  .cta-band { padding: 26px 22px; }
  .cta-band .btn { width: 100%; }
}


/* ===== Anuncios: filtros laterales ===== */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 4px; }
.side-f { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px 18px; }
.side-f h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.opts { display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; background: none; border: 0; color: var(--text); font-size: 14.5px; font-weight: 600; text-align: left; border-radius: 8px; cursor: pointer; }
.opt:hover { background: var(--panel-2); }
.opt .bx { width: 17px; height: 17px; flex: none; border: 1.5px solid #3a4a68; border-radius: 5px; position: relative; }
.opt.on { color: var(--accent); }
.opt.on .bx { background: var(--accent); border-color: var(--accent); }
.opt.on .bx::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-in input { min-height: 40px; padding: 8px 10px; }
.side-f .linkbtn { margin-top: 16px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.shop-bar .result-count { margin: 0; }
.shop-bar select { width: 210px; min-height: 40px; padding-block: 8px; }
.shop-main .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.filt-toggle { display: none; }
@media (max-width: 820px) {
  .shop { grid-template-columns: 1fr; gap: 12px; }
  .filt-toggle { display: inline-flex; justify-self: start; }
  .side-f { display: none; position: static; }
  .side-f.open { display: block; }
  .opts { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .opt { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .opt .bx { display: none; }
  .opt.on { background: var(--accent-soft); border-color: rgba(163, 242, 74, .5); }
  .shop-bar select { width: 180px; }
  .shop-main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* ===== Campanita y redes ===== */
.btn.bell-on { background: var(--accent-soft); border-color: rgba(163, 242, 74, .55); color: var(--accent); }
.ar-bell-note { margin: -4px 0 4px; }
.ar-notify { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; padding: 14px 16px; border: 1px dashed rgba(163, 242, 74, .45); border-radius: 14px; background: rgba(163, 242, 74, .05); }
.ar-notify > div { display: grid; gap: 3px; max-width: 62ch; }
.foot-ig { display: inline-flex; align-items: center; gap: 6px; }
.foot-ig .ic { width: 16px; height: 16px; }
