/* ═══════════════════════════════════════════════════════════
   LOCKE — pick secundario · estética hextech
   ═══════════════════════════════════════════════════════════ */

/* ── OVERRIDE de capas globales que oscurecen (vignette + cadenas) ── */
body.locke-mode-page::after,
body:has(.locke-page)::after {
  background:
    radial-gradient(ellipse 95% 90% at 50% 40%,
      rgba(20,28,45,.12) 0%,
      rgba(16,22,38,.28) 60%,
      rgba(12,18,32,.5) 100%) !important;
}
body.locke-mode-page::before,
body:has(.locke-page)::before {
  opacity: 0 !important;
}
body.locke-mode-page {
  background: #0e1320 !important;
}


.locke-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
}
/* Fondo de página más claro para que no se sienta tan oscuro */
body:has(.locke-page) {
  background: #0e1320;
}

/* ── HERO ── */
.locke-hero {
  position: relative;
  margin-top: 90px;
  padding: 56px 40px 48px;
  overflow: hidden;
  background: linear-gradient(180deg, #233152 0%, #1a2540 100%);
  border: 1px solid rgba(200,155,60,.3);
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}
.locke-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Locke_0.jpg');
  background-size: cover;
  background-position: center 22%;
  opacity: .16;
  pointer-events: none;
}
.locke-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,16,24,.6) 0%, transparent 60%);
}
.locke-hero-inner { position: relative; z-index: 1; }

.locke-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.locke-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.locke-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 900; line-height: .95;
  background: linear-gradient(180deg, #E8C06A 0%, #C89B3C 55%, #8B6A1F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .04em; margin-bottom: 8px;
}
.locke-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--electric); letter-spacing: .04em; margin-bottom: 18px;
}
.locke-blurb {
  font-size: 15px; line-height: 1.7; color: #DDE3EC;
  max-width: 620px; margin-bottom: 24px;
}
.locke-blurb em { color: var(--gold); font-style: normal; font-weight: 600; }

.locke-meta-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.lpill {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,155,60,.28);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.lpill-k {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}
.lpill-v {
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700; color: var(--text);
}

/* ── SECTIONS ── */
.locke-section { margin-top: 56px; }
.locke-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 6px;
}
.locke-h2 {
  font-family: 'Cinzel', serif; font-size: 28px; font-weight: 900;
  color: var(--text); letter-spacing: .02em;
}
.locke-h3 {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  color: var(--gold); margin: 28px 0 14px;
}
.locke-divider {
  width: 60px; height: 2px; margin: 12px 0 22px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.locke-note {
  font-size: 14px; line-height: 1.6; color: #BCC4D0;
  max-width: 640px; margin-bottom: 24px;
}

/* ── ABILITIES ── */
.ability-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.ability-card {
  background: linear-gradient(180deg, #232f47 0%, #1b2436 100%);
  border: 1px solid rgba(200,155,60,.3);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  padding: 18px 20px;
}
.ability-card.ult {
  grid-column: 1 / -1;
  border-color: rgba(200,155,60,.45);
  background: linear-gradient(180deg, #2a3855 0%, #212d44 100%);
}
.ability-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ability-key {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 16px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  color: #0a0e1a;
}
.ability-key.pasiva { background: linear-gradient(135deg, #9AA0A8, #5A6070); color:#0a0e1a; }
.ability-key.q { background: linear-gradient(135deg, #4FC3F7, #2980b9); }
.ability-key.w { background: linear-gradient(135deg, #66BB6A, #388E3C); }
.ability-key.e { background: linear-gradient(135deg, #E8C06A, #C89B3C); }
.ability-key.r { background: linear-gradient(135deg, #BA68C8, #8E24AA); color:#fff; }
.ability-name {
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; color: var(--text);
}
.ability-desc { font-size: 13.5px; line-height: 1.6; color: #D2D9E4; }

/* ── BUILD FLOW ── */
.build-flow {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px;
}
.bi-wrap { display: flex; flex-direction: column; align-items: center; width: 86px; }
.bi-slot {
  position: relative; width: 56px; height: 56px;
  border: 1px solid rgba(200,155,60,.25);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  overflow: hidden; background: #1a2336;
}
.bi-slot.core { border-color: var(--gold); box-shadow: 0 0 12px rgba(200,155,60,.25); }
.bi-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: 'Rajdhani', sans-serif; font-size: 7px; font-weight: 800;
  letter-spacing: .08em; text-align: center; padding: 1px 0;
  background: rgba(200,155,60,.85); color: #0a0e1a;
}
.bi-name {
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 600;
  color: #BCC4D0; text-align: center; margin-top: 6px; line-height: 1.2;
}
.bi-arrow {
  font-size: 22px; color: var(--muted); align-self: center;
  margin-top: 16px;
}
.build-flow.sit .bi-slot { border-color: rgba(79,195,247,.25); }

/* ── RUNES ── */
.runes-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rune-tree {
  background: linear-gradient(180deg, #232f47 0%, #1b2436 100%);
  border: 1px solid rgba(200,155,60,.3);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  padding: 18px 20px;
}
.rune-tree-head {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 900;
  letter-spacing: .12em; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rune-tree-head.domination { color: #E25555; }
.rune-tree-head.resolve    { color: #4FC3F7; }
.rune-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
  font-size: 13.5px; color: var(--text);
}
.rune-row.keystone { padding-bottom: 12px; border-bottom: 1px dashed rgba(200,155,60,.15); margin-bottom: 14px; }
.rune-dot {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(200,155,60,.3);
  margin-top: 2px;
}
.rune-dot.elec { background: radial-gradient(circle, #FFD700, #C89B3C); border-color: #FFD700; box-shadow: 0 0 8px rgba(255,200,0,.4); }
.rune-sub { font-size: 11.5px; color: #AEB6C2; }
.rune-shards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.shard {
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; padding: 4px 10px;
  background: rgba(200,155,60,.1); color: var(--gold);
  border: 1px solid rgba(200,155,60,.25);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.rune-alt {
  margin-top: 16px; padding: 14px 18px; font-size: 13px; line-height: 1.6; color: #A8B2C0;
  background: rgba(79,195,247,.05); border-left: 2px solid var(--electric);
}
.rune-alt strong { color: var(--electric); }
.rune-alt em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ── SKILL ORDER + COMBOS ── */
.skill-order {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,155,60,.3);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.so-label { font-family:'Rajdhani'; font-size: 12px; font-weight: 800; letter-spacing:.1em; color: var(--muted); text-transform: uppercase; }
.so-keys { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--text); }
.so-k {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 14px; color: #0a0e1a;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.so-k.q { background: linear-gradient(135deg,#4FC3F7,#2980b9); }
.so-k.e { background: linear-gradient(135deg,#E8C06A,#C89B3C); }
.so-k.w { background: linear-gradient(135deg,#66BB6A,#388E3C); }
.so-note { font-size: 12px; color: #8A929E; }

.combo-list { display: flex; flex-direction: column; gap: 12px; }
.combo-card {
  background: linear-gradient(180deg, #232f47 0%, #1b2436 100%);
  border: 1px solid rgba(200,155,60,.3);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 16px 20px;
}
.combo-tag {
  display: inline-block; font-family: 'Rajdhani', sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  color: var(--gold); background: rgba(200,155,60,.1);
  padding: 3px 10px; margin-bottom: 8px;
  border: 1px solid rgba(200,155,60,.25);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.combo-line { font-size: 13.5px; line-height: 1.65; color: #D2D9E4; }
.ck {
  display: inline-block; min-width: 20px; text-align: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 11px;
  padding: 1px 6px; margin: 0 1px; color: #0a0e1a;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}
.ck.q { background: #4FC3F7; }
.ck.e { background: #E8C06A; }
.ck.w { background: #66BB6A; }
.ck.r { background: #BA68C8; color: #fff; }

/* ── CALLOUT ── */
.locke-callout {
  background: rgba(226,85,85,.05);
  border: 1px solid rgba(226,85,85,.2);
  border-left: 3px solid #E25555;
  padding: 20px 24px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.callout-title {
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
  color: #E27777; margin-bottom: 8px;
}
.locke-callout p { font-size: 13.5px; line-height: 1.65; color: #D2D9E4; }
.locke-callout strong { color: var(--text); }

/* ── BACK CTA ── */
.locke-back { text-align: center; padding: 32px 0 0; }
.locke-back p { font-size: 14px; color: #8A929E; margin-bottom: 14px; }
.locke-back-btn {
  display: inline-block; font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 12px 28px;
  background: linear-gradient(135deg, rgba(200,155,60,.2), rgba(200,155,60,.1));
  border: 1px solid rgba(200,155,60,.35); color: var(--gold-light);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background .2s, transform .15s;
}
.locke-back-btn:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(200,155,60,.3), rgba(200,155,60,.18)); }

/* ── MOBILE ── */
@media(max-width: 768px) {
  .locke-page { padding: 0 16px 80px; }
  .locke-hero { padding: 40px 22px 36px; margin-top: 76px; }
  .ability-grid { grid-template-columns: 1fr; }
  .runes-wrap { grid-template-columns: 1fr; }
  .build-flow { gap: 2px; }
  .bi-wrap { width: 72px; }
  .bi-slot { width: 48px; height: 48px; }
  .bi-arrow { font-size: 18px; margin-top: 12px; }
}
@media(max-width: 420px) {
  .bi-wrap { width: 64px; }
  .bi-slot { width: 44px; height: 44px; }
}

/* ── LOCKE MATCHUPS TABLE ─────────────────────────────────────── */
.lmu-table {
  border: 1px solid rgba(200,155,60,.22);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  overflow: hidden;
}
.lmu-head {
  display: grid;
  grid-template-columns: 160px 110px 70px 1fr;
  gap: 12px;
  padding: 12px 18px;
  background: #1a2336;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}
.lmu-row {
  display: grid;
  grid-template-columns: 160px 110px 70px 1fr;
  gap: 12px;
  padding: 12px 18px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.04);
}
.lmu-champ { display: flex; align-items: center; gap: 10px; }
.lmu-champ img {
  width: 34px; height: 34px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  border: 1px solid rgba(200,155,60,.25);
}
.lmu-champ span {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; color: var(--text);
}
.lmu-diff { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.lmu-max { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 600; color: #81D4FA; }
.lmu-tip { font-size: 13px; line-height: 1.5; color: #C2CAD6; }

@media(max-width: 768px) {
  .lmu-head { display: none; }
  .lmu-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .lmu-champ { margin-bottom: 2px; }
  .lmu-diff::before { content: 'Dificultad: '; color: var(--muted); font-weight: 600; }
  .lmu-max::before  { content: 'Max: '; color: var(--muted); }
}
