:root {
  --bg: #0b0f17; --panel: #121826; --panel-2: #182033; --line: #253049;
  --text: #e6e9f0; --muted: #8a94ab; --gold: #c8aa6e; --gold-soft: rgba(200,170,110,.14);
  --good: #3fbf8a; --bad: #e0605e; --mid: #d9b54a; --accent: #4fa3d9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; letter-spacing: .02em; margin: 0; }
header { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; gap: 16px;
         align-items: baseline; flex-wrap: wrap; }
header h1 { font-size: 26px; color: var(--gold); text-transform: uppercase; }
header .sub { color: var(--muted); }
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; padding: 20px 24px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding: 16px; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
input, select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
                border-radius: 6px; padding: 8px 10px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px;
              max-height: 330px; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.champ { background: none; border: 2px solid transparent; border-radius: 8px; padding: 0; cursor: pointer;
         position: relative; }
.champ img { width: 100%; display: block; border-radius: 6px; }
.champ.active { border-color: var(--gold); }
.champ span { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; background: rgba(0,0,0,.7);
              border-radius: 0 0 6px 6px; text-align: center; color: var(--muted); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.roles button { flex: 1 1 auto; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
                border-radius: 6px; padding: 6px 8px; cursor: pointer; font: inherit; font-size: 12px; }
.roles button.active { color: var(--bg); background: var(--gold); border-color: var(--gold); }

.build-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.build-head img { width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--gold); }
.build-head h2 { font-size: 28px; color: var(--text); text-transform: none; margin: 0; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.slot { width: 64px; height: 64px; border-radius: 8px; border: 1px dashed var(--line); position: relative;
        display: grid; place-items: center; color: var(--line); font-size: 22px; }
.slot.filled { border: 1px solid var(--gold); cursor: pointer; }
.slot.filled img { width: 100%; height: 100%; border-radius: 7px; }
.slot.filled:hover::after { content: "✕"; position: absolute; inset: 0; background: rgba(11,15,23,.75);
                            color: var(--bad); display: grid; place-items: center; border-radius: 7px; }
.slot .n { position: absolute; top: -8px; left: -8px; background: var(--gold); color: var(--bg);
           font-size: 11px; font-weight: 600; width: 18px; height: 18px; border-radius: 50%;
           display: grid; place-items: center; z-index: 1; }
.link { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--panel-2); border-radius: 8px; padding: 12px 14px; }
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-family: "Barlow Condensed", sans-serif; font-size: 30px; font-weight: 700; }
.stat .s { color: var(--muted); font-size: 12px; }
.verdict { margin-top: 14px; padding: 12px 14px; border-radius: 8px; border-left: 4px solid var(--muted);
           background: var(--panel-2); }
.verdict.good { border-color: var(--good); } .verdict.bad { border-color: var(--bad); }
.verdict.mid { border-color: var(--mid); }

.list-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 10px; }
.list-tools > div { flex: 1 1 140px; }
.list-tools label { margin-top: 0; }
.items { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 40px 1fr 90px minmax(120px, 220px) 70px; gap: 12px;
        align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer;
        border-radius: 6px; }
.item:hover { background: var(--gold-soft); }
.item img { width: 40px; height: 40px; border-radius: 6px; }
.item .name { font-weight: 500; }
.item .gold { color: var(--muted); font-size: 12px; }
.item .num { text-align: right; font-variant-numeric: tabular-nums; }
.item .num small { display: block; color: var(--muted); font-size: 11px; }
.item.low { opacity: .55; }
.bar { position: relative; height: 10px; background: var(--panel-2); border-radius: 5px; }
.bar .ci { position: absolute; top: 3px; height: 4px; background: rgba(138,148,171,.45); border-radius: 2px; }
.bar .dot { position: absolute; top: -1px; width: 12px; height: 12px; border-radius: 50%; margin-left: -6px; }
.bar .avg { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gold); }
.delta { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.head { color: var(--muted); font-size: 12px; cursor: default; border-bottom: 1px solid var(--line); }
.head:hover { background: none; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.note { color: var(--muted); font-size: 12px; margin-top: 10px; }
@media (max-width: 640px) {
  .item { grid-template-columns: 36px 1fr 70px 60px; }
  .item .barcell, .head .barcell { display: none; }
}

/* --- Común a todas las páginas --- */
a { color: var(--accent); }
header nav { margin-left: auto; display: flex; gap: 16px; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
header nav a:hover, header nav a.active { color: var(--gold); }
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 18px 24px 28px; color: var(--muted);
         font-size: 12px; }
footer p { margin: 0 0 8px; max-width: 900px; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* --- Páginas de texto (Acerca de, Privacidad) --- */
.prose { max-width: 760px; margin: 0 auto; padding: 28px 24px; }
.prose h1 { font-size: 34px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.prose h2 { font-size: 22px; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose li { color: #c9cfdc; }
.prose li + li { margin-top: 6px; }
.prose .lead { font-size: 16px; color: var(--text); }
.prose .box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
              margin: 16px 0; }
.prose small { color: var(--muted); }
@media (max-width: 640px) { header nav { margin-left: 0; width: 100%; } .prose { padding: 20px 16px; } }
