/* ============ Base ============ */
:root {
  --accent: #facc15;
  --accent2: #f59e0b;
  --bg: #0d0d12;
  --bg2: #14141b;
  --card: #17171f;
  --card2: #1d1d27;
  --line: #2a2a36;
  --line2: #353544;
  --text: #ecebf3;
  --muted: #9a99ab;
  --dim: #6d6c7e;
  --ok: #4ade80;
  --bad: #f87171;
  --info: #60a5fa;
  --radius: 14px;
  --pixel: 'Silkscreen', 'Outfit', system-ui, sans-serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
body.has-bg { background: linear-gradient(180deg, rgba(13,13,18,.55), var(--bg) 620px), var(--bgimg) center top / cover no-repeat fixed, var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.right { text-align: right; } .center { text-align: center; }
.mt0 { margin-top: 0 } .mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 28px }
.mb0 { margin-bottom: 0 } .mb2 { margin-bottom: 16px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.container { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ============ Top bar ============ */
.topbar { background: rgba(10,10,14,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .container { display: flex; align-items: center; gap: 10px; height: 54px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
a.chip:hover, button.chip:hover { border-color: var(--line2); background: var(--card2); text-decoration: none; }
.chip img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; }
.chip .lbl { display: flex; flex-direction: column; line-height: 1.1; }
.chip .lbl small { color: var(--accent); font-weight: 500; font-size: 11px; }
.chip.user { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip .count { background: var(--accent); color: #111; border-radius: 99px; padding: 0 7px; font-size: 11px; line-height: 18px; }
.topbar .spacer { flex: 1; }

/* ============ Marquee (rebajas) ============ */
.marquee { background: var(--accent); color: #111; overflow: hidden; white-space: nowrap; height: 30px; display: flex; align-items: center; }
.marquee .track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--pixel); font-size: 12px; padding: 0 22px; }
.marquee span::after { content: '✦'; margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Header ============ */
.hero { padding: 34px 0 20px; }
.hero .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.hero .logo img { height: 96px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)); }
.ip-pill {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 99px;
  background: rgba(14,14,20,.9); border: 1px solid var(--line2); cursor: pointer; transition: transform .15s, border-color .15s; color: var(--text);
}
.ip-pill:hover { transform: translateY(-2px); border-color: var(--accent); }
.ip-pill .play { width: 42px; height: 42px; border-radius: 99px; background: var(--accent); display: grid; place-items: center; color: #111; box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent); }
.ip-pill b { font-family: var(--pixel); font-size: 17px; display: block; }
.ip-pill small { color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--ok); margin-right: 5px; box-shadow: 0 0 8px var(--ok); }
.dot.off { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.socials { display: flex; gap: 8px; justify-content: flex-end; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #0b0b10; border: 1px solid var(--line); color: var(--text); }
.socials a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.socials a.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ============ Navegación ============ */
.mainnav { margin-bottom: 26px; }
.mainnav .container { display: flex; gap: 6px; padding: 6px; background: rgba(20,20,27,.92); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mainnav a:hover { color: var(--text); background: var(--card2); text-decoration: none; }
.mainnav a.on { color: #111; background: var(--accent); }
.mainnav a.store { margin-left: auto; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.mainnav a.store.on { color: #111; }

/* ============ Tarjetas / componentes ============ */
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { display: flex; align-items: center; gap: 10px; }
.card-title { font-family: var(--pixel); font-size: 15px; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 14px var(--sans); cursor: pointer; text-decoration: none !important;
  transition: transform .12s, filter .12s, background .12s;
}
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #15120a; border: 0; box-shadow: 0 6px 20px -8px var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.green { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn.green:hover { background: #15803d; }
.btn.danger { background: transparent; border-color: #7f1d1d; color: var(--bad); }
.btn.danger:hover { background: #2a1214; }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--line); color: var(--text); white-space: nowrap; }
.badge.accent { background: var(--accent); color: #111; }
.badge.ok { background: rgba(74,222,128,.14); color: var(--ok); }
.badge.bad { background: rgba(248,113,113,.14); color: var(--bad); }
.badge.info { background: rgba(96,165,250,.14); color: var(--info); }
.badge.warn { background: rgba(251,146,60,.14); color: #fb923c; }

/* Formularios */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line2); background: #0e0e14; color: var(--text); font: 14px var(--sans); outline: none;
}
textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: inline-flex; background: #0e0e14; border: 1px solid var(--line2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg label { margin: 0; }
.seg input { display: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg input:checked + span { background: var(--accent); color: #111; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash.success { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.35); color: #bbf7d0; }
.flash.error { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); color: #fecaca; }
.flash.info { background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.35); color: #bfdbfe; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg2); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
td .head { width: 26px; height: 26px; border-radius: 6px; vertical-align: middle; margin-right: 8px; image-rendering: pixelated; }

/* Markdown */
.prose { color: #d7d6e0; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose code { background: #0e0e14; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); font-size: .9em; }
.prose img { border-radius: 10px; }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 0; padding: 4px 16px; color: var(--muted); }

/* Acordeón FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 800; }
details.faq[open] summary::after { content: '–'; }
details.faq .prose { padding: 0 0 16px; }

/* ============ Web: noticias ============ */
.feature-post { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; padding: 0; }
.feature-post .img { min-height: 260px; background: var(--card2) center / cover; }
.feature-post .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.feature-post h2 { font-size: 26px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--text); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--line2); text-decoration: none; }
.post-card .img { aspect-ratio: 16/8; background: var(--card2) center / cover; }
.post-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 17px; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--dim); }
.cat-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.placeholder-img { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), repeating-linear-gradient(45deg, #1a1a23 0 12px, #16161e 12px 24px) !important; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.filters a.on, .filters a:hover { color: #111; background: var(--accent); border-color: var(--accent); text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }

.stat-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.stat-line:last-child { border-bottom: 0; }
.buyer { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.buyer img { width: 32px; height: 32px; border-radius: 7px; image-rendering: pixelated; }
.buyer .t { min-width: 0; }
.buyer .t b { display: block; font-size: 14px; }
.buyer .t small { color: var(--dim); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Tienda ============ */
.store-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 12px; }
.search { position: relative; }
.search input { padding-left: 38px; padding-right: 40px; background: var(--card); }
.search svg { position: absolute; left: 12px; top: 12px; width: 17px; color: var(--muted); }
.search kbd { position: absolute; right: 9px; top: 9px; font: 11px var(--sans); background: var(--line); border-radius: 5px; padding: 3px 7px; color: var(--muted); }
.catnav { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.catnav .start { margin-bottom: 8px; }
.catnav a.cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14px; }
.catnav a.cat:hover { background: var(--card2); text-decoration: none; }
.catnav a.cat.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.catnav .ico { width: 22px; text-align: center; font-size: 17px; }
.catnav .chev { margin-left: auto; color: var(--dim); font-size: 12px; transition: transform .15s; }
.catnav .group.open .chev { transform: rotate(90deg); }
.catnav .subs { display: none; padding-left: 22px; }
.catnav .group.open .subs { display: block; }
.catnav .subs a.cat { font-weight: 500; font-size: 13.5px; padding: 7px 10px; }

.sale-banner {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 28px; margin-bottom: 20px;
  background: linear-gradient(110deg, #17140a 0%, #241e0c 55%, color-mix(in srgb, var(--accent) 30%, #1c170a) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 40px -12px var(--accent); display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.sale-banner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,.018) 22px 44px); pointer-events: none; }
.sale-banner .tag { display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.45); border: 1px solid var(--line2); border-radius: 99px; padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sale-banner h1 { font-family: var(--pixel); font-size: clamp(30px, 6vw, 54px); margin: 10px 0 4px; color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.sale-banner p { margin: 0; color: #e9e2c6; font-weight: 600; }
.sale-banner .pct { color: var(--accent); }
.countdown { display: flex; gap: 8px; align-items: flex-start; position: relative; }
.countdown .ends { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #e9e2c6; }
.countdown .u { background: rgba(0,0,0,.55); border: 1px solid var(--line2); border-radius: 10px; width: 64px; padding: 8px 0 6px; text-align: center; }
.countdown .u b { display: block; font-family: var(--pixel); font-size: 26px; color: var(--accent); }
.countdown .u small { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.countdown .sep { font-family: var(--pixel); color: var(--accent); font-size: 22px; padding-top: 10px; }

.welcome { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.welcome .eyebrow { color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.welcome h1 { font-family: var(--pixel); font-size: clamp(28px, 5vw, 44px); margin: 4px 0 6px; }
.goal { min-width: 230px; background: #0e0e14; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.goal .top { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; }
.goal .top span:first-child { color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.bar { height: 9px; border-radius: 99px; background: var(--line); margin: 10px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #86efac); box-shadow: 0 0 12px rgba(74,222,128,.6); }

.pay-methods { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-methods .pm { height: 26px; padding: 0 9px; border-radius: 5px; display: grid; place-items: center; font: 800 11px var(--sans); color: #fff; }

/* Paquetes */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pkg {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 16px; transition: transform .15s, border-color .15s;
}
.pkg:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pkg .img { height: 110px; width: 100%; display: grid; place-items: center; cursor: pointer; }
.pkg .img img { max-height: 110px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); transition: transform .2s; image-rendering: auto; }
.pkg:hover .img img { transform: scale(1.06) rotate(-2deg); }
.pkg h3 { font-size: 16px; margin: 6px 0 0; }
.pkg .ribbon { position: absolute; top: 12px; left: 12px; }
.pkg .off { position: absolute; top: 12px; right: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.price b { font-family: var(--pixel); font-size: 18px; color: var(--accent); }
.price s { color: var(--dim); font-size: 13px; }
.pkg .actions { display: flex; gap: 6px; width: 100%; margin-top: auto; padding-top: 8px; }
.pkg .actions .btn { flex: 1; height: 38px; }
.pkg .actions .btn.info { flex: 0 0 38px; padding: 0; }
.pkg-list .pkg { flex-direction: row; text-align: left; padding: 14px 16px; }
.pkg-list .pkg .img { width: 70px; height: 70px; flex: none; }
.pkg-list .pkg .img img { max-height: 70px; }
.pkg-list .pkg .grow p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.pkg-list .pkg .actions { width: auto; margin: 0; padding: 0; }
.pkg-list .pkg .price { justify-content: flex-start; }
.pkg-list { display: grid; gap: 10px; }

/* Comparación de rangos */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.compare .pkg { align-items: stretch; text-align: left; padding: 0; overflow: hidden; }
.compare .pkg .head { padding: 20px 18px 14px; text-align: center; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.compare .pkg .head .img { height: 90px; }
.compare .pkg .head .img img { max-height: 90px; }
.compare ul { list-style: none; margin: 0; padding: 14px 18px; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.compare li { display: flex; gap: 8px; align-items: flex-start; }
.compare li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.compare .actions { padding: 0 16px 16px; }

/* Carrito */
.cart-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 54px; height: 54px; object-fit: contain; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.qty button { width: 32px; height: 32px; background: var(--card2); border: 0; color: var(--text); cursor: pointer; font-size: 16px; }
.qty span { width: 34px; text-align: center; font-weight: 700; }
.summary .stat-line b { font-size: 15px; }
.summary .total { font-family: var(--pixel); font-size: 22px; color: var(--accent); }
.providers { display: grid; gap: 8px; }
.providers label { margin: 0; }
.providers input { display: none; }
.providers .opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; color: var(--text); font-weight: 600; background: #0e0e14; }
.providers input:checked + .opt { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.providers .opt .pm { width: 46px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 24px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); cursor: pointer; font-size: 18px; }
@keyframes fade { from { opacity: 0 } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--accent); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); font-weight: 600; animation: fade .2s; }

/* Gracias */
.status-big { width: 76px; height: 76px; border-radius: 99px; display: grid; place-items: center; margin: 0 auto 14px; font-size: 36px; }
.status-big.ok { background: rgba(74,222,128,.12); color: var(--ok); box-shadow: 0 0 40px rgba(74,222,128,.25); }
.status-big.wait { background: rgba(250,204,21,.12); color: var(--accent); }
.status-big.bad { background: rgba(248,113,113,.12); color: var(--bad); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line2); border-top-color: var(--accent); border-radius: 99px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Tickets */
.msg { display: flex; gap: 12px; margin-bottom: 14px; }
.msg img { width: 40px; height: 40px; border-radius: 9px; image-rendering: pixelated; flex: none; }
.msg .bubble { flex: 1; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.staff .bubble { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card2)); }
.msg .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.msg .who b { color: var(--text); }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
footer.site .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* ============ Admin ============ */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin aside { background: #0b0b10; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin aside .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: var(--pixel); color: var(--accent); }
.admin aside .brand img { height: 34px; }
.admin aside a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.admin aside a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.admin aside a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.admin aside .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 16px 12px 6px; font-weight: 700; }
.admin main { padding: 28px 32px 60px; min-width: 0; }
.admin .page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin .page-head h1 { font-size: 24px; margin: 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi b { display: block; font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 30px; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.chart .col small { font-size: 10.5px; color: var(--dim); }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; border: 1px solid var(--line); }
.tabs a.on { background: var(--accent); color: #111; border-color: var(--accent); text-decoration: none; }
.key-box { font-family: ui-monospace, Consolas, monospace; background: #0e0e14; border: 1px dashed var(--accent); padding: 12px 14px; border-radius: 10px; word-break: break-all; }
.inline-form { display: inline; }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .store-layout, .split, .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .admin aside { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin aside .sec { display: none; }
  .admin main { padding: 20px 16px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-post { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero .container { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .socials { justify-content: center; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .sale-banner { padding: 20px; }
  .countdown .u { width: 54px; }
  .countdown .u b { font-size: 20px; }
  .card { padding: 18px; }
}
