/* NEXUS AETHER · sistema visual. Identidad AETHER: blanco, azul pastel, azul petróleo, sombras discretas. */
:root {
  --white: #FFFFFF;
  --mist: #F0F6F8;
  --frost: #DCE7EC;
  --ink: #2F495E;
  --ink-2: #31536B;
  --ink-soft: #5B7486;
  --ice: #BCDDED;
  --sage: #BCD9CA;
  --lav: #D6CFEB;
  --rose: #E6CBD9;
  /* Acentos derivados (solo para trazos, brillos y fondos; el texto siempre usa tinta) */
  --ice-s: #6FAED0;
  --sage-s: #74AD8C;
  --lav-s: #9C8DD0;
  --rose-s: #C48AA8;
  --line: rgba(47, 73, 94, .12);
  --shadow-sm: 0 1px 2px rgba(47, 73, 94, .06), 0 2px 8px rgba(47, 73, 94, .05);
  --shadow: 0 2px 4px rgba(47, 73, 94, .05), 0 12px 32px -8px rgba(47, 73, 94, .14);
  --shadow-lg: 0 4px 8px rgba(47, 73, 94, .05), 0 24px 60px -16px rgba(47, 73, 94, .25);
  --r: 18px;
  --r-sm: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Bahnschrift", "Segoe UI Variable Display", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mc: var(--lav);
  --mcs: var(--lav-s);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--white) 0, var(--mist) 60vh, var(--mist) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 650; }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: .86em; background: var(--mist); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
.hash { font-size: .78em; }
:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-soft); font-style: italic; }
.fine { font-size: .84rem; color: var(--ink-soft); }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .5em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.link-btn { background: none; border: 0; padding: 2px 4px; color: var(--ink-2); font: inherit; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; }

/* ---------- Fondo aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: var(--ice); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -12vw; top: 8vh; background: var(--lav); animation-delay: -8s; opacity: .45; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; top: 70vh; background: var(--sage); animation-delay: -16s; opacity: .35; }
@keyframes drift { to { transform: translate3d(4vw, 6vh, 0) scale(1.08); } }
body::before { /* retícula hexagonal sutil */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(47, 73, 94, .08) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 70vh);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 8px rgba(47, 73, 94, .25)); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-text { font-family: var(--display); font-weight: 400; letter-spacing: .18em; font-size: 1.02rem; }
.brand-text b { font-weight: 700; margin-left: .3em; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; transition: background .2s; }
.mainnav a:hover { background: var(--mist); }
.mainnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: var(--shadow-sm); }
.search-trigger svg { width: 18px; height: 18px; }
.search-trigger:hover { border-color: var(--ice-s); }
kbd { font-family: var(--mono); font-size: .75rem; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--mist); color: var(--ink-soft); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav { position: sticky; top: 66px; z-index: 39; display: grid; gap: 2px; padding: 8px 16px 14px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.mobile-nav a[aria-current="page"] { background: var(--mist); }

main { display: block; max-width: 1360px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px) 60px; outline: none; }
main.enter > * { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.site-footer { max-width: 1360px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 48px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.site-footer p { margin: .3em 0; }

/* ---------- Botones, chips, etiquetas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 650; font-size: .94rem; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(47, 73, 94, .22); color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--ink-2), var(--ink)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(47, 73, 94, .6); }
.btn-primary:hover:not(:disabled) { color: #fff; box-shadow: 0 12px 26px -8px rgba(47, 73, 94, .7); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.chip-role { background: color-mix(in srgb, var(--c) 40%, white); border-color: color-mix(in srgb, var(--c) 80%, var(--ink) 10%); color: var(--ink); }
.chip-role svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 650; background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); }
.badge-partial { background: #FFF8EC; border-color: #EBD9B4; color: #6A5124; }
.badge-ok { background: color-mix(in srgb, var(--sage) 55%, white); border-color: var(--sage-s); color: #234536; }
.badge-no { background: color-mix(in srgb, var(--rose) 55%, white); border-color: var(--rose-s); color: #5F2F47; }
.mtag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; color: var(--ink); white-space: nowrap; }
.mtag i { width: 8px; height: 8px; border-radius: 3px; background: currentColor; }
.mtag-aram { background: color-mix(in srgb, var(--sage) 60%, white); border-color: var(--sage-s); }
.mtag-aram i { background: var(--sage-s); }
.mtag-ranked { background: color-mix(in srgb, var(--ice) 60%, white); border-color: var(--ice-s); }
.mtag-ranked i { background: var(--ice-s); }
.mtag-both { background: color-mix(in srgb, var(--lav) 65%, white); border-color: var(--lav-s); }
.mtag-both i { background: var(--lav-s); }
.mtag-alt, .mtag-situational { background: var(--white); border-color: var(--frost); border-style: dashed; }
.mtag-alt i { background: var(--rose-s); border-radius: 50%; }
.mtag-unavailable { background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--mist) 6px 12px); border-color: var(--rose-s); color: #5F2F47; text-decoration: line-through; text-decoration-thickness: 1px; }
.mtag-unavailable i { background: var(--rose-s); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.note { padding: 12px 16px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ice-s); font-size: .92rem; margin: 0 0 16px; }
.note-warn { border-left-color: var(--rose-s); }
.note-share { border-left-color: var(--lav-s); background: color-mix(in srgb, var(--lav) 25%, white); }

/* ---------- Iconos de talento ---------- */
.ticon { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .22); overflow: hidden; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(47, 73, 94, .14), 0 1px 3px rgba(47, 73, 94, .12); }
.ticon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; user-select: none; }
.ticon-none, .ticon-ph { background: repeating-linear-gradient(-45deg, var(--mist) 0 5px, var(--frost) 5px 10px); color: var(--ink-soft); font-family: var(--display); font-weight: 700; }
.ticon-ph { display: grid; place-items: center; width: 100%; height: 100%; }

/* ---------- Escudo de héroe ---------- */
.crest { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); }
.crest > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(47, 73, 94, .18)); }
.crest-hex { fill: var(--c); stroke: color-mix(in srgb, var(--c) 60%, var(--ink) 40%); stroke-width: 1.5; }
.crest-in { fill: rgba(255, 255, 255, .45); stroke: rgba(255, 255, 255, .9); stroke-width: 1.5; }
.crest b { position: relative; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .3); color: var(--ink); letter-spacing: .02em; }
.crest-role { position: absolute; right: 2%; bottom: 4%; width: 32%; height: 32%; padding: 5%; border-radius: 50%; background: var(--white); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; box-shadow: var(--shadow-sm); }

/* ---------- Portada ---------- */
.hero-banner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; min-height: min(72vh, 640px); }
.display { font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 300; letter-spacing: -.02em; line-height: .95; margin-bottom: .3em; }
.display span { font-weight: 750; background: linear-gradient(100deg, var(--ink) 10%, var(--ice-s) 55%, var(--lav-s) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; max-width: 560px; }
.stats div { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.stats dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.stats dd { margin: 0; font-family: var(--display); font-size: 1.9rem; font-weight: 650; }
.hb-orbit { container-type: inline-size; position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.orbit-core { position: absolute; inset: 33%; display: grid; place-items: center; color: var(--ink); border-radius: 50%; background: radial-gradient(circle, #fff 30%, rgba(255, 255, 255, 0) 70%); }
.orbit-core svg { width: 80%; fill: var(--lav-s); animation: spin 60s linear infinite; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(47, 73, 94, .18); animation: spin 90s linear infinite; }
.orbit-ring.r2 { inset: 18%; animation-duration: 70s; animation-direction: reverse; }
.orbit-ring > span { position: absolute; left: 50%; top: 50%; line-height: 0; }
.orbit-ring.r1 > span { transform: translate(-50%, -50%) rotate(calc(360deg / var(--n) * var(--i))) translateY(-50cqw) rotate(calc(-360deg / var(--n) * var(--i))); }
.orbit-ring.r2 > span { transform: translate(-50%, -50%) rotate(calc(360deg / var(--n) * var(--i) + 22deg)) translateY(-32cqw) rotate(calc(-360deg / var(--n) * var(--i) - 22deg)); }
.orbit-ring .ticon { animation: spin 90s linear infinite reverse; box-shadow: var(--shadow); border: 2px solid #fff; }
.orbit-ring.r2 .ticon { animation-duration: 70s; animation-direction: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

.block { margin-top: clamp(36px, 5vw, 64px); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.saved-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; }
.saved { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap; }
.saved small { display: block; color: var(--ink-soft); font-size: .78rem; }
.role-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.role-card { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, white), var(--white) 75%); border: 1px solid color-mix(in srgb, var(--c) 70%, white); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.role-card svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 8px; }
.role-card b { font-family: var(--display); font-size: 1.15rem; }
.role-card span { font-size: .86rem; color: var(--ink-soft); }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { display: block; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.feature-hero { background: linear-gradient(150deg, color-mix(in srgb, var(--lav) 50%, white), var(--white) 60%); transition: transform .25s var(--ease); }
.feature-hero:hover { transform: translateY(-3px); color: var(--ink); }
.fh-row { display: flex; gap: 16px; align-items: center; }
.mini-tree { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 18px 0 10px; }
.mini-tree div { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.mini-tree small { font-family: var(--display); font-weight: 700; }
.link-arrow { font-weight: 700; }
.steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--display); font-size: .82rem; font-weight: 700; }
.notice { padding: 16px 20px; border-radius: var(--r); background: #FFFBF3; border: 1px solid #EFE2C6; font-size: .94rem; }
.notice p { margin: 0; }

/* ---------- Páginas genéricas, filtros, rejilla de héroes ---------- */
.page-head { margin-bottom: 24px; }
.filters { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 70px; z-index: 10; backdrop-filter: blur(12px); }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-soft); }
.search-field input, .field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; border-radius: 14px; border: 1px solid var(--frost); background: var(--white); font: inherit; color: var(--ink); }
.field input, .field textarea { padding-left: 14px; }
.field textarea { font-family: var(--mono); font-size: .84rem; resize: vertical; }
.search-field input:focus, .field input:focus, .field textarea:focus { border-color: var(--ice-s); outline: 3px solid color-mix(in srgb, var(--ice) 70%, transparent); outline-offset: 0; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--frost); background: var(--white); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.fchip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(47, 73, 94, .25); }
.fchip:hover { border-color: var(--ice-s); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--frost); transition: background .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.toggle input:checked + span { background: var(--ink-2); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.result-count { margin: 16px 0 10px; color: var(--ink-soft); font-weight: 600; }
.hgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hcard { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.hcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 80%, var(--ink) 10%); color: var(--ink); }
.hc-body { display: grid; min-width: 0; }
.hc-name { font-family: var(--display); font-size: 1.12rem; font-weight: 650; line-height: 1.15; }
.hc-en { color: var(--ink-soft); font-size: .78rem; }
.hc-meta { font-size: .82rem; color: var(--ink-soft); }
.hc-strip { grid-column: 1 / -1; display: flex; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--frost); }
.hc-flags { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.dot { font-size: .66rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--mist); color: var(--ink-2); }
.dot-ok { background: color-mix(in srgb, var(--sage) 60%, white); }
.dot-no { background: color-mix(in srgb, var(--rose) 60%, white); }
.empty-state { text-align: center; padding: 60px 16px; max-width: 640px; margin: 0 auto; }
.empty-state .cta-row { justify-content: center; }
.empty-inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 18px; border-radius: var(--r-sm); background: var(--white); border: 1px dashed var(--frost); }

/* ---------- Ficha ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; text-decoration: none; color: var(--ink-2); padding: 6px 12px 6px 6px; border-radius: 999px; margin-bottom: 14px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { background: var(--white); }
.hero-head { position: relative; padding: clamp(18px, 3vw, 30px); border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 42%, white) 0, var(--white) 55%, color-mix(in srgb, var(--ice) 35%, white)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.hero-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .5); pointer-events: none; }
.hh-main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hh-name { margin-bottom: .25em; }
.hh-name small { font-size: .45em; font-weight: 400; color: var(--ink-soft); }
.tabs { display: flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: .9rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 18px; }
.card { padding: clamp(16px, 2.4vw, 24px); border-radius: var(--r); background: rgba(255, 255, 255, .88); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-t { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.mini-t { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1em; }
.big { font-size: 1.14rem; color: var(--ink); }
.card-tip { background: linear-gradient(140deg, color-mix(in srgb, var(--lav) 45%, white), var(--white)); }
.plan-aram { border-top: 4px solid var(--sage-s); }
.plan-ranked { border-top: 4px solid var(--ice-s); }
.lore-links { display: grid; gap: 6px; margin-top: 10px; }
.lore-links div { display: flex; flex-wrap: wrap; gap: 6px; }
.lore-links .fine { margin: 6px 0 0; }
.hpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: .86rem; color: var(--ink); }
.hpill:hover { border-color: var(--ice-s); }
/* Árbol */
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.tree::before { content: ""; position: absolute; left: 35px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--ice), var(--lav)); }
.tree-lv { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.tree-mark { position: relative; display: grid; justify-items: center; gap: 2px; padding-top: 8px; }
.tree-mark b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.3rem; box-shadow: 0 6px 16px -6px rgba(47, 73, 94, .6); }
.tree-mark span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--mist); padding: 0 4px; border-radius: 4px; }
.tree-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tt details { border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.tt summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.tt summary::-webkit-details-marker { display: none; }
.tt-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.tt-body b { font-size: .98rem; }
.tt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-more { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); font-weight: 700; transition: transform .25s var(--ease); flex: none; }
.tt details[open] .tt-more { transform: rotate(45deg); }
.tt-detail { padding: 2px 14px 12px; border-top: 1px dashed var(--frost); font-size: .92rem; }
.tt-detail p { margin: .6em 0 0; }
.tt-why { display: flex; gap: 8px; align-items: baseline; }
.tt-both details { border-color: var(--lav-s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lav) 55%, transparent); }
.tt-aram details { border-color: var(--sage-s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 55%, transparent); }
.tt-ranked details { border-color: var(--ice-s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice) 55%, transparent); }
.tt-alt details { border-style: dashed; }
.sources-box { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); padding: 4px 18px; }
.sources-box summary, details > summary { cursor: pointer; font-weight: 650; padding: 10px 0; }
.sources-box dl, .insp-src dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .88rem; }
.sources-box dt, .insp-src dt { font-weight: 700; color: var(--ink-soft); }
.sources-box dd, .insp-src dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Comparador ---------- */
.cmp-summary { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 16px; }
.cmp-summary p { margin: 0; }
.cmp-meter { display: flex; gap: 6px; }
.cmp-meter span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: .9rem; }
.cmp-meter .eq { background: linear-gradient(135deg, var(--sage), var(--ice)); }
.cmp-meter .df { background: var(--lav); box-shadow: inset 0 0 0 2px var(--lav-s); }
.cmp { display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 10px; align-items: stretch; }
.cmp-header { position: sticky; top: 70px; z-index: 5; padding: 8px 0; background: linear-gradient(var(--mist) 70%, transparent); font-weight: 700; font-size: .86rem; }
.cmp-lv { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; }
.cmp-lv b { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.cmp-lv small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cmp-flag { font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.is-diff .cmp-lv { background: linear-gradient(160deg, var(--ink-2), #4F4A7A); }
.is-diff .cmp-flag { background: var(--lav); color: var(--ink); }
.cmp-cell { height: 100%; padding: 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cmp-aram { border-top: 4px solid var(--sage-s); }
.cmp-ranked { border-top: 4px solid var(--ice-s); }
.cmp-cell.is-na { background: repeating-linear-gradient(-45deg, #fff 0 8px, var(--mist) 8px 16px); }
.cmp-pri { display: flex; gap: 12px; align-items: flex-start; }
.cmp-pri b { display: block; font-size: 1.04rem; }
.cmp-pri .eyebrow { margin: 0; font-size: .68rem; }
.cmp-pri p { margin: .3em 0 0; font-size: .9rem; color: var(--ink-2); }
.cmp-alts { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--frost); display: grid; gap: 8px; }
.cmp-alts li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.cmp-alts p { margin: .1em 0 0; color: var(--ink-soft); }

/* ---------- Lore ---------- */
.lore-wrap { padding: 10px; overflow: hidden; }
.lore-svg { display: block; width: 100%; height: auto; }
.ledge { fill: none; stroke: var(--ice-s); stroke-width: 1.6; opacity: .65; transition: opacity .2s, stroke-width .2s; }
.arr-head { fill: var(--ice-s); }
.lnode { cursor: pointer; }
.lnode circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 4px 6px rgba(47, 73, 94, .2)); transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.lnode-i { font: 700 15px var(--display); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.lnode-n { font: 600 12.5px var(--font); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 4px; pointer-events: none; }
.lnode:focus-visible circle { stroke: var(--ink); stroke-width: 4; }
.has-focus .ledge { opacity: .12; }
.has-focus .ledge.on { opacity: 1; stroke: var(--lav-s); stroke-width: 2.6; }
.has-focus .lnode { opacity: .35; }
.has-focus .lnode.on { opacity: 1; }
.has-focus .lnode.on circle { transform: scale(1.12); }
.edge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.edge-list li { padding: 10px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 650; }
.edge-list q { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.lore-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lc-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.lc-head small { margin-left: auto; color: var(--ink-soft); font-size: .76rem; }

/* ---------- Infografías ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info { position: relative; overflow: hidden; }
.info > .eyebrow { font-size: 2.2rem; font-weight: 300; letter-spacing: 0; color: var(--frost); position: absolute; right: 18px; top: 10px; margin: 0; }
.info-sum { color: var(--ink-2); }
.bars { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.bar-l { font-weight: 650; overflow-wrap: anywhere; }
.bar-t { height: 14px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar-f { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: inset 0 0 0 1px rgba(47, 73, 94, .18); animation: grow .9s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-v { font-family: var(--display); font-weight: 700; min-width: 2.5ch; text-align: right; }
.thresholds { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.thresholds li { min-width: 0; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 4px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--ice) 50%, white), var(--white)); border: 1px solid var(--line); }
.thresholds b { font-family: var(--display); font-size: 1.4rem; }
.thresholds span { font-size: .64rem; overflow-wrap: anywhere; max-width: 100%; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.thresholds small { font-size: .7rem; color: var(--ink-soft); line-height: 1.25; }
.flow { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--sage) 50%, white); border: 1px solid var(--sage-s); font-weight: 650; font-size: .88rem; }
.wheel { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 10px auto; border-radius: 50%; background: radial-gradient(circle, var(--white) 34%, color-mix(in srgb, var(--ice) 45%, white) 35%, color-mix(in srgb, var(--ice) 45%, white) 64%, transparent 65%); }
.wheel span { position: absolute; left: 50%; top: 50%; width: 104px; margin: -18px 0 0 -52px; text-align: center; font-size: .74rem; font-weight: 700; line-height: 1.2; transform: rotate(calc(var(--i) * 60deg)) translateY(-120px) rotate(calc(var(--i) * -60deg)); padding: 4px; border-radius: 10px; background: var(--white); border: 1px solid var(--ice-s); }
.wheel b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; }
.steps-h { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps-h li { padding: 40px 6px 0; text-align: center; display: grid; gap: 2px; font-size: .84rem; }
.steps-h li::before { left: 50%; transform: translateX(-50%); }
.steps-h span { color: var(--ink-soft); font-size: .78rem; }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.donut { width: 180px; height: 180px; }
.donut-n { font: 700 28px var(--display); fill: var(--ink); text-anchor: middle; }
.donut-l { font: 600 11px var(--font); fill: var(--ink-soft); text-anchor: middle; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.donut-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(47, 73, 94, .25); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.kpis div { padding: 12px; border-radius: 14px; background: var(--mist); }
.kpis dt { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.kpis dd { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 650; }
.layers { display: grid; gap: 8px; margin-top: 12px; }
.layers div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; margin-left: calc(var(--i) * 16px); background: linear-gradient(90deg, color-mix(in srgb, var(--lav) 60%, white), var(--white)); border: 1px solid var(--line); }
.layers b { font-family: var(--display); }
.prose .card { margin-bottom: 16px; }
.prose li { margin-bottom: .4em; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 10px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--frost); vertical-align: middle; }
.tbl th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* =====================================================================
   FORJA DE TALENTOS
   ===================================================================== */
.forge.mode-aram { --mc: var(--sage); --mcs: var(--sage-s); --mc2: var(--lav-s); }
.forge.mode-ranked { --mc: var(--ice); --mcs: var(--ice-s); --mc2: var(--lav-s); }
.forge-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; margin-bottom: 18px; }
.forge-head .back { grid-column: 1 / -1; justify-self: start; margin: 0; }
.fh-main { display: flex; gap: 18px; align-items: center; }
.fh-main h1 { margin: 0 0 .2em; }
.fh-main .eyebrow { margin: 0; }
.fh-tools { display: grid; gap: 10px; justify-items: end; }
.modeswitch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 280px; }
.modeswitch button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; transition: color .25s; }
.modeswitch button i { width: 10px; height: 10px; border-radius: 3px; }
.ms-aram i { background: var(--sage-s); }
.ms-ranked i { background: var(--ice-s); }
.modeswitch button small { font-size: .68rem; font-weight: 600; opacity: .8; }
.modeswitch button[aria-checked="true"] { color: var(--ink); }
.modeswitch button:disabled { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.ms-thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(135deg, var(--sage), color-mix(in srgb, var(--sage) 50%, white)); box-shadow: 0 4px 14px -4px rgba(47, 73, 94, .35), inset 0 0 0 1px var(--sage-s); transition: transform .4s var(--ease), background .4s; }
.modeswitch:has(.ms-ranked[aria-checked="true"]) .ms-thumb { transform: translateX(100%); background: linear-gradient(135deg, var(--ice), color-mix(in srgb, var(--ice) 50%, white)); box-shadow: 0 4px 14px -4px rgba(47, 73, 94, .35), inset 0 0 0 1px var(--ice-s); }

.forge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.rail { position: relative; display: grid; gap: 14px; padding: 6px 0; }
.beam { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.beam .bg-a { stop-color: var(--mcs); }
.beam .bg-b { stop-color: var(--mc2); }
.spine { stroke: var(--frost); stroke-width: 2; stroke-dasharray: 4 6; }
.spine-prog { stroke: var(--mcs); stroke-width: 3; stroke-linecap: round; transition: all .5s var(--ease); }
.beam-glow { fill: none; stroke: var(--mcs); stroke-width: 12; opacity: .35; filter: url(#beam-blur); }
.beam-core { fill: none; stroke: url(#beam-g); stroke-width: 3.5; stroke-linecap: round; }
.beam-core.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.beam-flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 26; opacity: .95; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

.tier { position: relative; z-index: 1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 10px 14px 10px 0; border-radius: 22px; transition: background .3s; }
.tier.has-pick { background: linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--mc) 22%, transparent) 30%, transparent 100%); }
.tier-mark { position: relative; display: grid; grid-template-columns: 26px auto; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center; padding-left: 4px; }
.tier-node { grid-row: 1 / 4; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--frost); box-shadow: 0 0 0 5px var(--mist); transition: all .35s var(--ease); justify-self: center; }
.has-pick .tier-node { background: var(--mcs); border-color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--mc) 70%, transparent), 0 0 18px var(--mcs); }
.tier-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--ink); }
.tier-num small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tier-name { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tier-hint { font-size: .74rem; color: var(--ink-soft); line-height: 1.25; }
.tier-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tier-foot { grid-column: 2; display: flex; gap: 12px; align-items: center; font-size: .76rem; color: var(--ink-soft); min-height: 22px; }
.tier-empty { margin: 0; padding: 14px; border-radius: 14px; border: 1px dashed var(--frost); color: var(--ink-soft); }

.tile {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left;
  min-height: 92px; padding: 12px 14px; border-radius: 20px;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  font: inherit; cursor: pointer; isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s, opacity .3s, filter .3s, background .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--mcs) 60%, var(--line)); }
.tile:active { transform: translateY(-1px) scale(.99); }
.tile:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.tile-glow { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--mc) 80%, white) 0, var(--white) 70%); transition: opacity .35s; }
.tile .tile-icon { transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover .tile-icon { transform: scale(1.05) rotate(-2deg); }
.tile-body { display: grid; gap: 2px; min-width: 0; }
.tile-name { font-weight: 700; font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.tile-type { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tile-desc { font-size: .8rem; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-flag { position: absolute; top: -9px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.tile-flag svg { width: 11px; height: 11px; fill: currentColor; }
.flag-primary { background: var(--ink); color: #fff; }
.flag-alt { background: var(--white); color: var(--ink-2); border: 1px dashed var(--rose-s); }
.flag-lock { background: var(--rose); color: #5F2F47; }
.tile.rec-primary { border-color: color-mix(in srgb, var(--mcs) 55%, var(--line)); }
.tile-ico { position: relative; display: grid; }
.tile-check { position: absolute; right: -7px; bottom: -7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid #fff; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); box-shadow: var(--shadow-sm); }
.tile-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Elegido */
.tile.is-picked { border-color: var(--mcs); transform: translateY(-2px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 70%, transparent), 0 18px 36px -14px color-mix(in srgb, var(--mcs) 80%, var(--ink)); }
.tile.is-picked .tile-glow { opacity: 1; }
.tile.is-picked .tile-check { transform: scale(1); }
.tile.is-picked .tile-icon { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mcs), 0 0 22px var(--mcs); animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.14); } }
/* Hermanos no elegidos se atenúan */
.tier.has-pick .tile:not(.is-picked) { background: color-mix(in srgb, var(--mist) 70%, white); }
.tier.has-pick .tile:not(.is-picked) .tile-ico { filter: saturate(.35) opacity(.7); }
.tier.has-pick .tile:not(.is-picked) .tile-body { opacity: .72; }
.tier.has-pick .tile:not(.is-picked):hover .tile-ico, .tier.has-pick .tile:not(.is-picked):focus-visible .tile-ico { filter: none; }
.tier.has-pick .tile:not(.is-picked):hover .tile-body, .tier.has-pick .tile:not(.is-picked):focus-visible .tile-body { opacity: 1; }
/* Bloqueado por modo */
.tile.is-locked { cursor: not-allowed; background: repeating-linear-gradient(-45deg, var(--white) 0 10px, var(--mist) 10px 20px); }
.tile.is-locked .tile-icon { filter: grayscale(1) opacity(.6); }
.tile.is-locked .tile-name { text-decoration: line-through; }
.tile.is-locked:hover { transform: none; box-shadow: var(--shadow-sm); }
.tile[aria-disabled="true"]:not(.is-locked) { cursor: default; }
/* Chispas */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--mcs); transform: rotate(var(--a)) translateY(0); animation: spark .8s var(--ease) forwards; }
.burst i:nth-child(even) { background: var(--mc2); width: 6px; height: 6px; }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-56px) scale(.3); } }

/* Columna lateral */
.forge-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.buildcard { position: relative; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(14px); }
.buildcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--mcs), var(--mc2)); }
.bc-top { display: flex; gap: 14px; align-items: center; }
.bc-top h2 { margin: 0; font-size: 1.35rem; }
.bc-top .eyebrow { margin: 0; }
.bc-state { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.ring-wrap { position: relative; width: 68px; height: 68px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--mist); }
.ring-fg { stroke: var(--mcs); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring-txt { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 19px; gap: 1px; font-family: var(--display); font-size: .85rem; color: var(--ink-soft); }
.ring-txt b { font-size: 1.5rem; color: var(--ink); }
.slots { position: relative; list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.slots::before { content: ""; position: absolute; left: 7%; right: 7%; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--frost) 0 4px, transparent 4px 8px); }
.slot { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-soft); border-radius: 10px; }
.slot .ticon { --s: 40px !important; width: 40px; height: 40px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mcs), 0 4px 10px -2px var(--mcs); animation: pop .45s var(--ease); }
.slot-empty { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px dashed var(--frost); background: var(--white); font-family: var(--display); font-weight: 700; font-size: .85rem; }
.slot:not(.is-filled) small { visibility: hidden; }
.slot small { font-family: var(--display); font-size: .72rem; font-weight: 700; }
.slot:hover .slot-empty { border-color: var(--mcs); color: var(--ink); }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-actions .btn { flex: 1 1 auto; min-height: 38px; padding: 7px 12px; font-size: .86rem; }
.bc-io { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--frost); }
.buildcard .note { margin: 12px 0 0; }
.buildcard.is-complete::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--mcs); }
.buildcard.celebrate { animation: celebrate 1.4s var(--ease); }
.buildcard.celebrate::before { height: 100%; opacity: .25; animation: sweep 1.4s var(--ease) forwards; }
@keyframes celebrate { 20% { transform: scale(1.025); } 100% { transform: none; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); opacity: 0; } }

.inspector { padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 180px; }
.insp-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 8px; color: var(--ink-soft); }
.insp-empty svg { width: 42px; color: var(--frost); }
.insp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.insp-head h3 { margin: 0; font-size: 1.25rem; }
.insp-head .eyebrow { margin: 0 0 2px; }
.insp-desc { font-size: .94rem; }
.insp-mode { padding: 10px 12px; border-radius: 14px; background: var(--mist); margin-bottom: 8px; }
.insp-mode p { margin: 6px 0 0; font-size: .88rem; }
.insp-src { margin-top: 8px; font-size: .86rem; }
.insp-src summary { padding: 6px 0; }

.dlg { border: 0; padding: 0; border-radius: 24px; box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); color: var(--ink); }
.dlg::backdrop { background: rgba(47, 73, 94, .35); backdrop-filter: blur(4px); }
.dlg-body { padding: 24px; display: grid; gap: 12px; }
.dlg-body h2 { margin: 0; }
.dlg-body p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.field { display: grid; gap: 6px; font-weight: 650; font-size: .88rem; }
.field input[type="file"] { padding: 9px 12px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.import-result:empty { display: none; }
.import-result.is-error { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--rose) 40%, white); border: 1px solid var(--rose-s); font-size: .88rem; }
.import-result ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Buscador global ---------- */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(47, 73, 94, .3); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.palette-panel { position: relative; width: min(640px, 100%); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .25s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--frost); }
.palette-input svg { width: 22px; height: 22px; color: var(--ink-soft); flex: none; }
.palette-input input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; outline: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(56vh, 460px); overflow-y: auto; }
.palette-list li[role="option"] { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.palette-list .po-txt { display: grid; flex: 1; min-width: 0; }
.palette-list small { color: var(--ink-soft); font-size: .8rem; }
.palette-list em { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.palette-list li[aria-selected="true"] { background: var(--mist); box-shadow: inset 3px 0 0 var(--ice-s); }
.palette-empty { padding: 20px; text-align: center; color: var(--ink-soft); }
.palette-hint { margin: 0; padding: 8px 18px 12px; font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--frost); }

.toast-region { position: fixed; left: 50%; bottom: 20px; z-index: 90; display: grid; gap: 8px; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); transition: opacity .5s, transform .5s; }
.toast-ok { background: linear-gradient(135deg, var(--ink-2), #2C5A52); }
.toast-warn { background: #5F3B4E; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Textos del juego ---------- */
.gdesc { line-height: 1.5; }
.gv { font-weight: 700; color: #245B7A; }
.gstats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: .6em 0 0; padding: 0; }
.gstats li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: .78rem; font-weight: 650; background: var(--mist); border: 1px solid var(--line); color: var(--ink-2); }
.gstats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice-s); }
.gstats .st-en::before { background: var(--lav-s); border-radius: 2px; }
.gstats .st-life::before { background: var(--rose-s); border-radius: 2px; }
.gstats .is-old { background: color-mix(in srgb, var(--rose) 55%, white); border-color: var(--rose-s); color: #5F2F47; text-decoration: line-through; text-decoration-thickness: 1px; }
.gstats .is-new { background: color-mix(in srgb, var(--sage) 60%, white); border-color: var(--sage-s); color: #234536; }
.gsrc { margin-top: .5em; }
.tt-es { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.insp-desc .gdesc { margin-top: 0; }

/* ---------- Cambios de versión ---------- */
.chg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
.chg-kpis div { padding: 8px 12px; }
.chg-kpis dd { font-size: 1.35rem; }
.kpi-sm { font-size: 1.05rem !important; }
.chg-filters { position: static; }
.chg-frow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.sel { display: grid; gap: 4px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.sel select { min-height: 46px; max-width: 260px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--frost); background: var(--white); font: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sel select:focus { border-color: var(--ice-s); outline: 3px solid color-mix(in srgb, var(--ice) 70%, transparent); outline-offset: 0; }
.fchip small { font-weight: 600; opacity: .75; }
.kdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fchip i.kdot-sus { background: var(--lav-s); }
.fchip i.kdot-mod { background: var(--ice-s); }
.fchip i.kdot-mov { background: #D6B36B; }
.fchip i.kdot-add { background: var(--sage-s); }
.fchip i.kdot-ret { background: var(--rose-s); }
.chg-tfilter { margin: 0; font-size: .9rem; }
.chg-list { display: grid; gap: 28px; }
.chg-ver { display: grid; gap: 14px; }
.chg-vhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 6px; border-bottom: 2px solid var(--frost); }
.chg-vhead h2 { margin: 0; font-variant-numeric: tabular-nums; }
.chg-vhead p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.chg-fresh { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--lav) 40%, white); border: 1px solid var(--lav-s); font-size: .9rem; }
.chg { padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.chg-hero { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.chg-hero b { font-family: var(--display); font-size: 1.05rem; }
a.chg-hero:hover b { text-decoration: underline; }
.chg-lv { font-weight: 650; color: var(--ink-2); font-size: .9rem; }
.chg-fields { font-size: .84rem; color: var(--ink-soft); }
.ktag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; color: var(--ink); }
.ktag-sus { background: color-mix(in srgb, var(--lav) 65%, white); border-color: var(--lav-s); }
.ktag-mod { background: color-mix(in srgb, var(--ice) 60%, white); border-color: var(--ice-s); }
.ktag-mov { background: #FFF6E3; border-color: #D6B36B; color: #5E4718; }
.ktag-add { background: color-mix(in srgb, var(--sage) 60%, white); border-color: var(--sage-s); color: #234536; }
.ktag-ret { background: color-mix(in srgb, var(--rose) 55%, white); border-color: var(--rose-s); color: #5F2F47; }
.chg-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.chg-side { min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: .92rem; }
.chg-side .eyebrow { margin-bottom: .6em; font-variant-numeric: tabular-nums; }
.chg-before { background: linear-gradient(160deg, color-mix(in srgb, var(--rose) 22%, white), var(--white)); }
.chg-after { background: linear-gradient(160deg, color-mix(in srgb, var(--sage) 26%, white), var(--white)); }
.chg-side.is-none { background: repeating-linear-gradient(-45deg, var(--white) 0 8px, var(--mist) 8px 16px); display: grid; align-content: start; }
.chg-t { display: flex; align-items: center; gap: 10px; }
.chg-t > div { display: grid; gap: 1px; min-width: 0; }
.chg-t b { font-size: 1rem; }
.chg-t small { color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.chg-side .gdesc { margin: .7em 0 .4em; }
.chg-arrow { display: grid; place-items: center; color: var(--ink-soft); }
.chg-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gdiff del { background: color-mix(in srgb, var(--rose) 60%, white); color: #5F2F47; text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 4px; padding: 0 2px; }
.gdiff ins { background: color-mix(in srgb, var(--sage) 70%, white); color: #1E4030; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 650; border-radius: 4px; padding: 0 2px; }
.chg-note { margin: 10px 0 0; }
.chg-src { margin-top: 28px; }
.chg-src ul { margin: 0 0 12px; padding-left: 20px; font-size: .92rem; }
.chg-src li { margin-bottom: .4em; }

/* ---------- Adaptación ---------- */
@media (max-width: 1180px) {
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mainnav a { padding: 8px 10px; }
  .forge-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  .mainnav, .search-label { display: none; }
  .search-trigger { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-banner { grid-template-columns: 1fr; min-height: 0; }
  .hb-orbit { width: min(100%, 380px); order: -1; }
  .split, .hero-grid, .info-grid { grid-template-columns: 1fr; }
  .forge-head { grid-template-columns: 1fr; }
  .fh-tools { justify-items: start; }
  .forge-grid { grid-template-columns: 1fr; }
  .forge-side { display: contents; }
  .buildcard { order: -1; padding: 14px; }
  .buildcard .slots { margin: 10px 0; }
  .inspector { order: 2; }
  .filters { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier { grid-template-columns: 1fr; padding: 8px 0 8px 0; }
  .tier-mark { grid-template-columns: 26px auto auto; grid-template-rows: auto auto; }
  .tier-node { grid-row: 1 / 3; }
  .tier-num { font-size: 1.6rem; }
  .tier-hint { grid-column: 2 / 4; }
  .tier-opts { grid-template-columns: 1fr; padding-left: 34px; }
  .tier-foot { grid-column: 1; padding-left: 34px; }
  .tile { min-height: 80px; }
  .tile .ticon.tile-icon { --s: 56px !important; width: 56px; height: 56px; }
  .modeswitch { min-width: 0; width: 100%; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-lv { grid-auto-flow: column; justify-content: start; gap: 12px; padding: 8px 14px; }
  .cmp-header { display: none; }
  .tree::before { left: 25px; }
  .tree-lv { grid-template-columns: 52px 1fr; gap: 8px; }
  .tree-mark b { width: 42px; height: 42px; font-size: 1.1rem; }
  .tree-opts { grid-template-columns: 1fr; }
  .thresholds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-h { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .layers div { grid-template-columns: 1fr; margin-left: 0; }
  .wheel span { width: 84px; margin-left: -42px; font-size: .66rem; transform: rotate(calc(var(--i) * 60deg)) translateY(-104px) rotate(calc(var(--i) * -60deg)); }
  .hh-main { gap: 14px; }
  .hh-main .crest { --s: 76px !important; }
  .edge-list, .lore-cards { grid-template-columns: 1fr; }
  .chg-frow { grid-template-columns: 1fr; }
  .chg-kpis { grid-template-columns: 1fr 1fr; }
  .sel select { max-width: none; width: 100%; }
  .chg-pair { grid-template-columns: 1fr; }
  .chg-arrow { transform: rotate(90deg); height: 22px; }
  .chg { padding: 10px; }
  .brand-text { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .aurora i, .orbit-ring, .orbit-core svg, .orbit-ring .ticon, .beam-flow { animation: none !important; }
}
@media print {
  .topbar, .aurora, .site-footer, .bc-actions, .modeswitch, .toggle, .beam { display: none !important; }
  .forge-grid { grid-template-columns: 1fr; }
}
