* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #0f1220; color: #e8eaf2; }
a { color: #7cc0ff; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #171b31; border-bottom: 1px solid #262c4d; }
.brand { font-size: 20px; font-weight: 700; }
.brand .domain { font-size: 13px; color: #9aa3c7; font-weight: 400; margin-left: 6px; }
.session { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.session form { margin: 0; }
button.link { background: none; border: none; color: #7cc0ff; cursor: pointer; font-size: 14px; padding: 0; }
.wrap { width: 100%; margin: 20px auto; padding: 0 22px; }
.card { background: #171b31; border: 1px solid #262c4d; border-radius: 12px; padding: 18px 20px; margin: 18px 0; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.card.danger { border-color: #4d2636; }
h1 { font-size: 26px; margin: 6px 0 14px; }
h2 { font-size: 19px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
label { display: block; margin: 10px 0; font-size: 14px; color: #c6cbe0; }
input { width: 100%; padding: 9px 10px; margin-top: 4px; border-radius: 8px; border: 1px solid #333a5e; background: #0f1220; color: #e8eaf2; font-size: 15px; }
select, textarea { width: 100%; padding: 9px 10px; margin-top: 4px; border-radius: 8px; border: 1px solid #333a5e; background: #0f1220; color: #e8eaf2; font-size: 15px; font-family: inherit; }
form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
form.inline label { flex: 1 1 160px; margin: 0; }
button { padding: 9px 16px; border-radius: 8px; border: 1px solid #333a5e; background: #232847; color: #e8eaf2; cursor: pointer; font-size: 14px; }
button.primary { background: #2f6fed; border-color: #2f6fed; font-weight: 600; width: 100%; margin-top: 8px; }
form.inline button.primary { width: auto; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #262c4d; }
th { color: #9aa3c7; font-weight: 600; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { flex: 1 1 180px; background: #171b31; border: 1px solid #262c4d; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; color: #9aa3c7; font-size: 13px; }
.stat .num { font-size: 30px; color: #fff; font-weight: 700; }
.error { background: #4d1f26; border: 1px solid #8a2f3c; color: #ffb9c2; padding: 10px 12px; border-radius: 8px; }
.ok { background: #1e4632; border: 1px solid #2f7a52; color: #a9e8c6; padding: 10px 12px; border-radius: 8px; }
.notice { background: #2c2a17; border: 1px solid #6e6428; color: #eadfa4; padding: 10px 12px; border-radius: 8px; }
.big { font-size: 18px; }
.filters { font-size: 14px; color: #9aa3c7; }
.filters a.sel { color: #fff; font-weight: 700; text-decoration: none; }
.zero { color: #ff8f9e; font-weight: 700; }
.foot { text-align: center; color: #5d6488; font-size: 12px; padding: 22px 0; }

/* ---------- Inicio del revendedor (diseño vivo, propio de Mickey) ---------- */
.hero { background: linear-gradient(120deg, #4c1d95 0%, #7c3aed 38%, #db2777 78%, #f59e0b 130%); border-radius: 18px; padding: 26px 26px 20px; margin: 6px 0 18px; box-shadow: 0 14px 34px rgba(124, 58, 237, .35); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.hero h1 { color: #fff; font-size: 30px; margin: 2px 0 6px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-sub { color: #f3e8ff; margin: 0; font-size: 15px; }
.hero-credits { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); border-radius: 14px; padding: 10px 18px; text-align: center; min-width: 150px; }
.hero-credits-num { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.hero-credits-lbl { font-size: 12px; color: #f3e8ff; text-transform: uppercase; letter-spacing: .06em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-actions a { text-decoration: none; }
.hero-btn { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; border-radius: 999px; padding: 9px 18px; transition: transform .15s ease, background .15s ease; }
.hero-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.hero-btn.main { background: #fff; color: #6d28d9; border-color: #fff; }
.hstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 6px; }
.hstat { background: #171b31; border: 1px solid #262c4d; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.medal { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; flex: 0 0 auto; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.g-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.g-green { background: linear-gradient(135deg, #34d399, #059669); }
.g-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.g-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.hnum { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.05; }
.hlbl { font-size: 12.5px; color: #9aa3c7; }
.rail-wrap { margin: 26px 0 4px; }
.rail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rail-head h2 { margin: 0; font-size: 21px; color: #fff; }
.chip { background: linear-gradient(90deg, #db2777, #f59e0b); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #3b4270 transparent; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #3b4270; border-radius: 8px; }
.poster { position: relative; flex: 0 0 148px; margin: 0; scroll-snap-align: start; transition: transform .18s ease; }
.poster:hover { transform: translateY(-6px) scale(1.03); }
.poster img { width: 148px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 10px 22px rgba(0,0,0,.45); background: #232847; }
.poster figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.25; border-radius: 0 0 14px 14px; background: linear-gradient(transparent, rgba(5,6,17,.92)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-new { position: absolute; top: 8px; left: 8px; background: linear-gradient(90deg, #ef4444, #f59e0b); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
@media (max-width: 560px) { .poster { flex-basis: 118px; } .poster img { width: 118px; } .hero h1 { font-size: 24px; } .wrap { padding: 0 12px; margin: 14px auto; } .topbar { padding: 10px 12px; } .hero { padding: 20px 16px 16px; } table { font-size: 13px; } th, td { padding: 7px 4px; } }
