/* GTA Hispano — la noche de Vice City vista desde una redacción.
   Neutros "ink" casi grises, un único acento (rosa flamenco) y el sello de fiabilidad como firma. */
:root {
  --bg-deep: #07080d;
  --bg: #0b0d14;
  --surface: #11141c;
  --surface-2: #1a1e28;
  --border: rgba(238, 240, 245, .08);
  --border-strong: rgba(238, 240, 245, .14);
  --text: #eef0f5;
  --text-muted: #a3a9b8;   /* secundario */
  --text-faint: #8a91a3;   /* apagado: meta y pies */
  --pink: #fa79a1;         /* acento único */
  --pink-ink: #ff9cba;
  /* Semáforo de fiabilidad: solo significan algo, nunca decoran */
  --ok: #4cc38a;
  --warn: #e3b24f;
  --prev: #6fb5c8;
  --rumor: #e8894b;
  --danger: #e5484d;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Movimiento: estas fichas y ninguna duración suelta */
  --pulsar: 90ms;
  --rapido: 150ms;
  --base: 220ms;
  --lento: 380ms;
  --muelle: cubic-bezier(.34, 1.4, .64, 1); /* solo el sello: golpe y asentamiento */
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.skip:focus { left: 8px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Iconos de línea (sprite img/icons.svg) */
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 600; font-size: 17px; color: var(--text); letter-spacing: 0; }
.brand span { color: var(--pink); }
.brand:hover { text-decoration: none; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 auto 0 0; padding: 0; list-style: none; }
.menu a { display: block; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; transition: color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.menu a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mini-search { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; height: 36px; padding: 0 12px; min-width: 160px; font: inherit; font-size: 14px; }
.mini-search::placeholder { color: var(--text-faint); }

/* Botones: primario blanco roto, secundario con filete */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 15px; cursor: pointer;
  transition: background-color var(--rapido) var(--ease), border-color var(--rapido) var(--ease), color var(--rapido) var(--ease), transform var(--pulsar) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-neon, .btn-warm { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-neon:hover, .btn-warm:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }

/* Etiqueta discreta sobre títulos */
.eyebrow { display: inline-block; color: var(--text-faint); font-family: var(--mono); font-size: 13px; }

/* Héroe en escena: imagen a sangre, texto sobre la parte en calma, dato a la derecha */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,20,.94) 0%, rgba(11,13,20,.78) 38%, rgba(11,13,20,.2) 75%, rgba(11,13,20,.1) 100%), linear-gradient(180deg, rgba(11,13,20,0) 60%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 1; min-height: calc(100svh - 64px); max-height: 880px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 64px 24px; }
.hero h1 { margin: 12px 0 16px; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--text-muted); }
.hero p.lead { margin: 0 0 32px; max-width: 46ch; color: var(--text-muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Momento: ficha de dato de la wiki con su sello */
.fact { background: rgba(17, 20, 28, .92); border: 1px solid var(--border-strong); border-radius: 18px; padding: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.fact-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
.fact-key { margin: 20px 0 4px; color: var(--text-muted); font-size: 14px; }
.fact-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 22px; }
.fact-count { display: flex; gap: 20px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact-count div { display: grid; gap: 2px; }
.fact-count b { font-family: var(--mono); font-weight: 400; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.fact-count span { color: var(--text-faint); font-size: 12px; }
.fact-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fact-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-muted); font-size: 15px; }
.fact-rows li strong { color: var(--text); font-weight: 500; }
.fact-src { margin: 20px 0 0; color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
.countdown .label { color: var(--text-muted); }

/* Firma: el sello de fiabilidad. Punto de color + texto mono, igual en toda la web */
.st, .tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; vertical-align: 1px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 18px; white-space: nowrap;
  color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border);
}
.st::before, .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st.ok, .tag.ok { color: var(--ok); }
.st.conf, .tag.warn { color: var(--warn); }
.st.prev { color: var(--prev); }
.st.rev { color: #6cb6ff; }
.st.rumor, .tag.rumor { color: var(--rumor); }
.st.leak, .tag.danger { color: var(--danger); }
.st.teo { color: var(--text-muted); }
.st.teo::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.st.empty { color: var(--text-faint); }
.st.empty::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.tag { align-self: flex-start; }

/* Secciones */
section { padding: 64px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.sec-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.sec-note { color: var(--text-faint); font-size: 14px; margin: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* Tarjetas */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--rapido) var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card .meta { margin-top: auto; color: var(--text-faint); font-family: var(--mono); font-size: 12px; }

/* Preguntas frecuentes */
.faq { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: grid; gap: 8px; }
.faq h3 { margin: 0; font-size: 17px; }
.faq p { margin: 0; color: var(--text-muted); font-size: 15px; }
.faq .row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.faq .checked { color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
.faq-search { display: flex; gap: 8px; align-items: center; height: 40px; padding: 0 12px; min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text-faint); }
.faq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.faq-search input:focus { outline: none; }
.faq-search:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 2px rgba(250, 121, 161, .35); }
.aff-note { color: var(--text-faint); font-size: 12px; }

/* Memes en portada */
.memes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.meme { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); margin: 0; }
.meme img { width: 100%; height: 100%; object-fit: cover; }
.meme figcaption { display: none; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.cat { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; color: var(--text); transition: border-color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.cat:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-2); }
.cat .i { grid-row: 1 / span 2; margin-top: 3px; width: 18px; height: 18px; color: var(--text-muted); }
.cat strong { font-weight: 500; }
.cat span { color: var(--text-faint); font-size: 14px; }

/* Pie */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-faint); font-size: 14px; }
.site-footer .cols { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.disclaimer { max-width: 62ch; margin: 0; }

/* Cabecera de página interior */
.page-head { padding: 48px 0 8px; }
.page-head h1 { margin: 8px 0 12px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.page-head p { margin: 0; color: var(--text-muted); max-width: 64ch; }

/* Utilidades */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 12px 16px; border-radius: 10px; display: none; z-index: 60; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.linkish { background: none; border: 0; color: var(--pink-ink); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.nav-tools .by.linkish { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav-tools .by.linkish:hover { color: var(--text); }
.field { display: grid; gap: 8px; color: var(--text-muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; font: inherit; font-size: 15px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.check { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--pink); }
div.empty { text-align: center; color: var(--text-muted); padding: 32px 16px; display: grid; justify-items: center; gap: 8px; }
div.empty img { width: 144px; height: 144px; object-fit: contain; }
.hint { color: var(--text-faint); }

/* Ventana de acceso */
#auth-dialog { border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); padding: 24px; max-width: 400px; width: calc(100vw - 32px); }
#auth-dialog::backdrop { background: rgba(7, 8, 13, .8); }
#auth-dialog h2 { margin: 0 0 4px; font-size: 22px; }
#auth-dialog [hidden] { display: none !important; }
#auth-dialog label { display: grid; gap: 8px; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
#auth-dialog input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; font: inherit; }
#auth-dialog .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.auth-hint { color: var(--text-faint); }
#auth-err, #nick-err { color: var(--danger); min-height: 1.2em; margin: 0 0 8px; font-size: 14px; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f2f2f2; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-faint); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.auth-legal { color: var(--text-faint); font-size: 12px; margin: 16px 0 0; }

/* Foro */
.forum { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; margin-top: 24px; }
.forum > *, .doc > * { min-width: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.cat-list button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.cat-list button:hover { background: var(--surface); color: var(--text); }
.cat-list button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.cat-list .ic { display: grid; place-items: center; width: 16px; color: var(--text-faint); }
.cat-list button[aria-pressed="true"] .ic { color: var(--pink); }
.threads { display: grid; gap: 8px; }
.thread-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color var(--rapido) var(--ease); }
.thread-row:hover { border-color: var(--border-strong); }
.thread-row h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.thread-row h3 a { color: var(--text); }
.thread-row .meta { color: var(--text-faint); font-size: 13px; }
.count { text-align: right; min-width: 64px; color: var(--text-faint); font-size: 12px; }
.count b { display: block; font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; border: 1px solid var(--border); color: var(--text-muted); margin-right: 8px; }
.pill.spoiler { color: var(--danger); }
.new-thread { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.new-thread[hidden] { display: none; }
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.post.op { border-color: var(--border-strong); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.post .who { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--text-faint); font-size: 14px; margin-bottom: 8px; }
.post .who strong { color: var(--text); font-weight: 500; }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.post .tools { margin-top: 12px; display: flex; gap: 12px; }
.post .tools button { font-size: 13px; color: var(--text-faint); }
.spoiler-box { background: var(--surface-2); border-radius: 8px; padding: 12px; }
.spoiler-box summary { cursor: pointer; color: var(--danger); }

/* Wiki y páginas de texto */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; margin-top: 32px; }
.toc { position: sticky; top: 88px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-faint); font-weight: 500; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 76ch; }
.prose section { padding: 0 0 48px; scroll-margin-top: 88px; }
.prose h2 { font-size: 26px; margin: 0 0 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text-faint); font-size: 13px; font-weight: 500; }
.prose td { color: var(--text-muted); }
.table-wrap { overflow-x: auto; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.callout { border: 1px solid var(--border); border-left: 2px solid var(--pink); background: var(--surface); border-radius: 10px; padding: 16px; margin: 16px 0; color: var(--text-muted); }
.updated { color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
.h-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.h-ic .i { width: 18px; height: 18px; }

/* Índice lateral de la wiki */
.side-toc {
  position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
}
.toc-top { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.toc-top strong { font-size: 14px; font-weight: 500; color: var(--text); }
.toc-pct { font-family: var(--mono); font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.toc-bar { height: 2px; border-radius: 2px; background: var(--surface-2); margin: 12px 4px; overflow: hidden; }
.toc-bar span { display: block; height: 100%; width: 0; background: var(--pink); transition: width .15s linear; }
.toc-q { width: 100%; height: 36px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; }
.toc-q::placeholder { color: var(--text-faint); }
.toc-group { margin-top: 20px; }
.toc-group[hidden], .toc-group li[hidden] { display: none; }
.toc-gt { display: block; padding: 0 8px 8px; font-size: 12px; font-weight: 500; color: var(--text-faint); }
.toc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--text-muted); font-size: 14px; transition: background-color var(--rapido) var(--ease), color var(--rapido) var(--ease); }
.toc-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc-link .ic { display: grid; place-items: center; width: 16px; color: var(--text-faint); }
.toc-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.toc-link.active .ic { color: var(--pink); }
.toc-none { color: var(--text-faint); font-size: 14px; padding: 8px; margin: 0; }
.toc-fab { display: none; }

/* Wiki: portada, guía, catálogo y fichas */
.doc-main { min-width: 0; padding-bottom: 32px; }
.toc-home { list-style: none; margin: 0 0 12px; padding: 0; }
.crumbs { color: var(--text-faint); font-size: 14px; margin: 0 0 16px; }
.crumbs a { color: var(--text-muted); }
.hub-head { max-width: 72ch; margin-bottom: 16px; }
.hub-head h1 { margin: 8px 0 12px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.hub-head p { color: var(--text-muted); margin: 0; }
.hub-group { padding: 40px 0 0; }
.hub-group h2 { font-size: 24px; margin: 0 0 16px; }
.hub-sub { font-size: 14px; color: var(--text-faint); margin: 24px 0 8px; }
.hub-group .cats { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-count { grid-column: 2; font-family: var(--mono); font-size: 12px !important; color: var(--text-faint); margin-top: 4px; }
.guide h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 24px; }
.guide h3:first-child { margin-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.pager a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color var(--rapido) var(--ease); }
.pager a:hover { border-color: var(--border-strong); text-decoration: none; }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--text-faint); font-size: 12px; }
.pager .i { color: var(--text-faint); }

.wk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.wk-head h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
.wk-desc { color: var(--text-muted); margin: 0 0 8px; }
.wk-search { width: 100%; max-width: 360px; height: 40px; padding: 0 12px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; font-size: 15px; }
.wk-search::placeholder { color: var(--text-faint); }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--text); transition: border-color var(--rapido) var(--ease); }
.wk-card:hover { border-color: var(--border-strong); text-decoration: none; }
.wk-card .slot { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.wk-card-body { padding: 12px 16px 16px; display: grid; gap: 4px; }
.wk-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.wk-card-top strong { font-weight: 500; line-height: 1.3; }
.wk-card-meta { color: var(--text-faint); font-size: 13px; }
.slot { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-faint); font-size: 13px; overflow: hidden; }
.slot .ic, .slot > svg { color: var(--text-faint); }
.slot .i { width: 24px; height: 24px; }
.slot.has-img { display: block; border-style: solid; border-color: var(--border); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.big { aspect-ratio: 16 / 10; }
.wk-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.wk-media { display: grid; gap: 12px; justify-items: start; }
.wk-media .slot { width: 100%; }
.wk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; width: 100%; }
.wk-gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.wk-info h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.wk-stamps { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.wk-summary { color: var(--text-muted); margin: 0 0 20px; }
.wk-fields { display: grid; grid-template-columns: minmax(120px, auto) 1fr; margin: 0 0 16px; border-top: 1px solid var(--border); }
.wk-fields dt, .wk-fields dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.wk-fields dt { color: var(--text-faint); font-size: 14px; padding-right: 16px; }
.wk-fields dd { color: var(--text); }
.missing { color: var(--text-faint); font-family: var(--mono); font-size: 12px; }
.wk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.wk-notes { padding: 40px 0 0; }
.wk-notes h2 { font-size: 20px; margin: 0 0 12px; }
.wk-note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 8px; }
.wk-note p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-help { margin-top: 32px; }
.wk-mod { margin-top: 40px; padding: 20px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-deep); }
.wk-mod h2 { font-size: 18px; margin: 0 0 12px; }
.wk-mod-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.wk-mod-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.wk-mod-row p { margin: 4px 0 0; color: var(--text-muted); overflow-wrap: anywhere; }
.wk-mod-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rangos y perfiles */
.rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-family: var(--mono); font-size: 12px; line-height: 18px; white-space: nowrap; }
.rank-pill:empty { display: none; }
.rank-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.rank-pill[data-nivel="3"]::before, .rank-pill[data-nivel="4"]::before { background: var(--text-muted); }
.rank-pill[data-nivel="5"]::before, .rank-pill[data-nivel="6"]::before { background: var(--pink); }
.rank-pill[data-nivel="6"] { color: var(--pink-ink); }
.me-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; }
.me-link:hover { color: var(--text); text-decoration: none; }
.who-name { color: var(--text); font-weight: 500; }
.pf { padding-top: 32px; }
.pf-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 32px; }
.pf-avatar { width: 96px; height: 96px; }
.pf-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 4px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
.pf-bio { color: var(--text-muted); margin: 8px 0 0; max-width: 60ch; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.pf-grid .card h2 { font-size: 18px; margin: 0; }
.page-head + .pf-grid { margin-top: 32px; }

/* Avatar con marco de rango, nivel y prestigio */
.av { --s: 40px; --ring: transparent; position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: block; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring); }
.av[data-tier="1"] { --ring: var(--text-faint); }
.av[data-tier="2"] { --ring: var(--text-muted); }
.av[data-tier="3"] { --ring: var(--text); }
.av[data-tier="4"] { --ring: var(--pink-ink); }
.av[data-tier="5"] { --ring: var(--pink); }
.av[data-tier="leyenda"] img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink), 0 0 0 6px var(--bg), 0 0 0 7px var(--pink-ink); }
.av-lv { position: absolute; right: -6px; bottom: -6px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-family: var(--mono); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.av-pr { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--pink); }
.av-pr .i { width: 14px; height: 14px; fill: currentColor; }
.post > a:first-child { align-self: start; }
.me-link .av { --s: 28px; }
.rank-pr { display: inline-flex; align-items: center; gap: 2px; color: var(--pink-ink); }
.rank-pr .i { width: 12px; height: 12px; fill: currentColor; }
.name-hi { color: var(--pink-ink) !important; }
.who-title { display: block; width: 100%; color: var(--text-faint); font-size: 13px; margin: -4px 0 0; }
.pill.trust { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); border-color: currentColor; }
.pill.trust .ic { display: grid; }
.pill.trust .i { width: 14px; height: 14px; }

/* Perfil: portada, ventajas y opciones */
.pf-cover-img { margin: -8px 0 -48px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pf-cover-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pf-head.has-cover { position: relative; padding: 0 24px; }
.pf-head .av { --s: 96px; }
.pf-head .av img { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ring); }
.pf-head .av-lv { right: -4px; bottom: -4px; min-width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.pf-head .av-pr { width: 28px; height: 28px; }
.pf-head .av-pr .i { width: 18px; height: 18px; }
.pf-head-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pf-rank h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-prestige { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--pink-ink); padding: 2px 8px; border: 1px solid currentColor; border-radius: 6px; }
.pf-prestige .ic { display: grid; }
.pf-prestige .i { width: 14px; height: 14px; fill: currentColor; }
.pf-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pf-perks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px; border-radius: 10px; color: var(--text-faint); }
.pf-perks li .ic { display: grid; padding-top: 2px; }
.pf-perks li div { display: grid; gap: 2px; }
.pf-perks li.ok { color: var(--text); }
.pf-perks li.ok .ic { color: var(--ok); }
.pf-perks li.next { color: var(--text-muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pf-perks li.next .ic { color: var(--pink-ink); }
.pf-activity { margin-bottom: 16px; }
.pf-activity h2 { font-size: 18px; margin: 0; }
.pf-pinned { padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.pf-pinned .updated { display: inline-flex; align-items: center; gap: 6px; }
.pf-pinned .ic { display: grid; }
.pf-pinned .i { width: 14px; height: 14px; }
.pf-av.locked { cursor: not-allowed; }
.pf-av.locked img { opacity: .3; filter: grayscale(1); }
.pf-covers { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-cover { position: relative; cursor: pointer; }
.pf-cover input { position: absolute; opacity: 0; }
.pf-cover img, .pf-cover span { width: 120px; height: 48px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; display: grid; place-items: center; background: var(--surface-2); color: var(--text-faint); font-size: 12px; }
.pf-cover input:checked + img, .pf-cover input:checked + span { border-color: var(--pink); }
.pf-cover input:focus-visible + img, .pf-cover input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 900px) {
  .pf-head-act { grid-column: 1 / -1; justify-content: flex-start; }
  .pf-head .av { --s: 72px; }
  .pf-cover-img img { height: 140px; }
}
.pf-rank { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; }
.pf-rank img { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; }
.pf-rank h2 { margin: 4px 0 8px; font-size: 32px; letter-spacing: -.02em; }
.pf-score { margin: 0 0 12px; color: var(--text-muted); }
.pf-score b { font-family: var(--mono); font-weight: 400; font-size: 28px; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.pf-bar span { display: block; height: 100%; background: var(--pink); }
.pf-points { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-points th, .pf-points td { padding: 8px 0; border-bottom: 1px solid var(--border); text-align: left; color: var(--text-muted); }
.pf-points th { color: var(--text-faint); font-weight: 500; font-size: 13px; }
.pf-points .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-left: 12px; }
.pf-points .muted { color: var(--text-faint); }
.pf-points tfoot td { color: var(--text); border-bottom: 0; font-weight: 500; }
.pf-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pf-ladder li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; opacity: .55; }
.pf-ladder li.done { opacity: .85; }
.pf-ladder li.on { opacity: 1; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pf-ladder img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.pf-ladder strong { display: block; font-weight: 500; }
.pf-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-recent li { display: grid; gap: 2px; }
.pf-edit { margin-bottom: 16px; max-width: 640px; }
.pf-edit .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-avatars { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-av { position: relative; cursor: pointer; }
.pf-av input { position: absolute; opacity: 0; }
.pf-av img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid transparent; }
.pf-av input:checked + img { border-color: var(--pink); }
.pf-av input:focus-visible + img { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 900px) {
  .pf-head { grid-template-columns: 72px minmax(0, 1fr); }
  .pf-head > .btn { grid-column: 1 / -1; justify-self: start; }
  .pf-avatar { width: 72px; height: 72px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-rank { grid-template-columns: 96px minmax(0, 1fr); }
  .pf-rank img { width: 96px; height: 96px; }
}

/* Ventanas genéricas (aportes) */
.dlg { border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); padding: 24px; max-width: 480px; width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; }
.dlg::backdrop { background: rgba(7, 8, 13, .8); }
.dlg h2 { margin: 0 0 4px; font-size: 22px; }
.dlg label { display: grid; gap: 8px; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.dlg input, .dlg select, .dlg textarea { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; font: inherit; font-size: 15px; width: 100%; }
.dlg textarea { resize: vertical; }
.dlg .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dlg label.check { display: flex; }
.dlg label.check input { width: 16px; }
.dlg-err { color: var(--danger); min-height: 1.2em; margin: 0 0 8px; font-size: 14px; }

@media (max-width: 900px) {
  .wk-item { grid-template-columns: 1fr; }
  .wk-mod-row { grid-template-columns: 56px minmax(0, 1fr); }
  .wk-mod-row img { width: 56px; height: 56px; }
  .wk-mod-act { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .forum { grid-template-columns: 1fr; }
  .cat-list { grid-auto-flow: column; overflow-x: auto; padding-bottom: 8px; }
  .cat-list button { white-space: nowrap; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; max-height: none; padding: 48px 24px; gap: 32px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,13,20,.7) 0%, rgba(11,13,20,.86) 55%, var(--bg) 100%); }
  .toc-fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 45;
    height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); cursor: pointer;
    background: var(--text); color: var(--bg); font: inherit; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  }
  .side-toc {
    position: fixed; left: 12px; right: 12px; bottom: 72px; top: auto; z-index: 44; max-height: 70vh;
    transform: translateY(calc(100% + 88px)); visibility: hidden; transition: transform var(--base) var(--ease), visibility var(--base);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .6);
  }
  .side-toc.open { transform: none; visibility: visible; }
  .h-ic { width: 32px; height: 32px; }
}
@media (max-width: 640px) {
  .site-header { position: static; }
  .prose section { scroll-margin-top: 16px; }
  .menu { margin: 0; order: 3; width: 100%; }
  .menu a { padding: 6px 8px; }
  .hero h1 { font-size: 36px; }
  .fact { padding: 20px; }
  .fact-count b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Seguridad de contenidos: reportes, moderación y avisos */
.report-btn { font-size: 13px; color: var(--text-faint); text-decoration: none; }
.report-btn:hover { color: var(--danger); text-decoration: underline; }
.post-hidden { opacity: .7; }
.aviso-pill { color: var(--warn); border-color: currentColor; text-decoration: none; }
.aviso-pill:hover { text-decoration: none; background: var(--surface-2); }
.mod-list { display: grid; gap: 12px; margin-top: 24px; }
.mod-card { gap: 12px; }
.mod-card.grave { border-color: var(--danger); }
.mod-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.mod-img { max-width: 240px; max-height: 240px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 8px; object-fit: contain; }
.mod-notes { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; display: grid; gap: 4px; }
.mod-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-avisos { margin-bottom: 16px; border-color: var(--warn); }
.pf-avisos h2 { font-size: 18px; margin: 0; }
.pf-avisos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-avisos li { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.pf-avisos li.nuevo { box-shadow: inset 2px 0 0 var(--warn); }
.pf-avisos li p { margin: 0; color: var(--text-muted); }
.pf-avisos li .linkish { justify-self: start; font-size: 14px; }


/* ===================== Unslop 2 (18/11/2026): portada, inicio, foro, cabecera y movimiento ===================== */
[hidden] { display: none !important; }

/* Estados de botón: reposo, encima, foco, pulsado, trabajando */
.btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.btn:active { transform: scale(.98); }
.btn[aria-busy="true"] { cursor: progress; opacity: .7; }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-muted); font-weight: 500; transition: color var(--rapido) var(--ease); }
.quiet-link:hover { color: var(--text); text-decoration: none; }
.quiet-link .i { transition: transform var(--rapido) var(--ease); }
.quiet-link:hover .i { transform: translateX(2px); }

/* Enlaces de cabecera de sección: tono de texto, el rosa queda para lo que importa */
.sec-head a { color: var(--text-muted); }
.sec-head a:hover { color: var(--text); text-decoration: none; }

/* Portada: titular corto sobre la parte en calma, una acción y la ficha de lanzamiento como protagonista */
.hero-inner { min-height: min(calc(100svh - 64px - 72px), 760px); padding: 48px 24px; }
.hero-copy h1 { margin: 0 0 32px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; max-width: 13ch; }
.hero-copy h1 span { color: var(--text-muted); }
.hero-actions { align-items: center; gap: 16px; }
.fact { padding: 28px; }
.fact-value { margin-top: 16px; font-size: 26px; }
.fact-count { gap: 24px; }
.fact-count b { font-size: 44px; display: inline-block; }
.countdown.a-la-venta { justify-content: space-between; align-items: center; }

/* Noticias: lista con sello, título y fuente; nada de tarjetas iguales */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.news-list li { display: grid; grid-template-columns: 132px minmax(0, 1fr) 200px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--border); }
.news-list .st { justify-self: start; }
.news-list h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.news-list h3 a { color: var(--text); }
.news-list p { margin: 0; color: var(--text-muted); font-size: 15px; }
.news-src { color: var(--text-faint); font-family: var(--mono); font-size: 12px; text-align: right; }
#noticias > .sec-note { margin-top: 12px; }

/* Wiki: una pieza grande y una lista */
.wiki-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.wiki-feature { position: relative; display: block; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); color: var(--text); }
.wiki-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--lento) var(--ease); }
.wiki-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,20,0) 40%, rgba(11,13,20,.92) 100%); }
.wiki-feature:hover { text-decoration: none; }
.wiki-feature:hover img { transform: scale(1.02); }
.wiki-feature-txt { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: grid; gap: 4px; }
.wiki-feature-txt strong { font-size: 26px; font-weight: 500; }
.wiki-feature-txt span { color: var(--text-muted); }

/* Lista de enlaces con icono (wiki y categorías del foro) */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a { display: grid; grid-template-columns: 18px minmax(0, max-content) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 4px; color: var(--text); transition: background-color var(--rapido) var(--ease); }
.link-list a:hover { text-decoration: none; background: var(--surface); }
.link-list .i { width: 18px; height: 18px; color: var(--text-muted); align-self: center; }
.link-list strong { font-weight: 500; }
.link-list span { color: var(--text-faint); font-size: 14px; text-align: right; }
.link-list.cols-2 { columns: 2; column-gap: 32px; border-top: 0; }
.link-list.cols-2 li { break-inside: avoid; }
.link-list.cols-2 li:first-child, .link-list.cols-2 li:nth-child(6) { border-top: 1px solid var(--border); }

/* Preguntas: lista con filetes en vez de cajas */
.faq { gap: 0; border-top: 1px solid var(--border); }
.faq li { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 20px 0; }

/* Memes en el inicio */
.memes a.meme { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.memes a.meme img { width: 100%; height: 100%; object-fit: cover; }
.memes-vacio { grid-column: 1 / -1; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.memes-vacio img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.memes-vacio div { display: grid; gap: 4px; }
.memes-vacio span { color: var(--text-muted); font-size: 15px; }

/* Bandas finales: texto a la izquierda, acción a la derecha */
.band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--border); }
.band + .band { margin-top: 0; }
.band h2 { margin: 0 0 4px; font-size: 22px; }
.band p { margin: 0; color: var(--text-muted); }

/* Foro: lista densa con avatar */
.threads { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.thread-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; border: 0; border-radius: 0; border-bottom: 1px solid var(--border); background: none; padding: 14px 16px; transition: background-color var(--rapido) var(--ease); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--surface-2); }
.thread-row .t-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.thread-row .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.thread-row .meta .cat-n { color: var(--text-muted); }
.thread-row .count { text-align: right; color: var(--text-faint); font-size: 13px; white-space: nowrap; }
.thread-row .count b { color: var(--text); font-family: var(--mono); font-weight: 400; font-size: 15px; margin-right: 4px; }
.thread-row.sin-resp .count b { color: var(--text-faint); }
.thread-row.nuevo h3 a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--pink); vertical-align: 3px; }

/* Movimiento protagonista: la cuenta atrás gira cifra a cifra */
@keyframes gira { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.fact-count b.gira { animation: gira var(--base) var(--ease); }
/* Apoyo 1: el sello se estampa (amago, golpe, asentamiento) */
@keyframes sello { 0% { transform: scale(1.18) rotate(-6deg); opacity: 0; } 55% { transform: scale(.94) rotate(-1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.st.sellado { animation: sello var(--lento) var(--muelle) both; }
/* Apoyo 2: los hilos nuevos desde tu última visita entran con un fundido corto */
@keyframes entra { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.thread-row.entra { animation: entra var(--lento) var(--ease) both; }

/* Menú de móvil */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .news-list li { grid-template-columns: 112px minmax(0, 1fr); }
  .news-src { grid-column: 2; text-align: left; }
  .wiki-split { grid-template-columns: 1fr; }
  .wiki-feature { min-height: 240px; }
  .link-list.cols-2 { columns: 1; }
  .link-list.cols-2 li:nth-child(6) { border-top: 0; }
}
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
  .menu-btn .i { width: 18px; height: 18px; }
  .js-menu .site-header nav { display: none; width: 100%; order: 3; }
  .js-menu .site-header.abierto nav { display: block; }
  .js-menu .menu { flex-direction: column; gap: 2px; padding: 4px 0 8px; }
  .js-menu .menu a { padding: 12px 8px; font-size: 16px; }
  .nav { gap: 12px; }
  .nav-tools .mini-search { display: none; }
  .hero-copy h1 { font-size: 40px; margin-bottom: 24px; }
  .fact-count b { font-size: 32px; }
  .news-list li { grid-template-columns: 1fr; gap: 8px; }
  .news-src { grid-column: 1; }
  .link-list a { grid-template-columns: 18px minmax(0, 1fr); }
  .link-list span { grid-column: 2; text-align: left; }
  .memes-vacio { grid-template-columns: 64px minmax(0, 1fr); }
  .memes-vacio img { width: 64px; height: 64px; }
  .memes-vacio .btn { grid-column: 1 / -1; justify-self: start; }
  .thread-row { grid-template-columns: 32px minmax(0, 1fr); }
  .thread-row .t-av { width: 32px; height: 32px; }
  .thread-row .count { grid-column: 2; text-align: left; }
}
.vacio { list-style: none; margin-left: -20px; color: var(--text-faint); }
.thread-row .count b { display: inline; }
.fact-top span { white-space: nowrap; }
@media (max-width: 640px) { .fact-top { flex-wrap: wrap; } }
.thread-row .meta { display: block; }
.thread-row .meta > * + * { margin-left: 4px; }
@media (max-width: 900px) { .cat-list { scrollbar-width: none; } .cat-list::-webkit-scrollbar { display: none; } }
div.empty { align-self: start; align-content: start; grid-column: 1 / -1; }

/* Cabecera con sesión: siempre en una fila. En la cabecera el rango se lee corto (Nv 50 y la estrella) */
@media (min-width: 901px) {
  .nav { flex-wrap: nowrap; }
  .menu { flex-wrap: nowrap; min-width: 0; }
  .menu a { white-space: nowrap; }
  .nav-tools { flex-wrap: nowrap; flex: none; }
}
.site-header .rank-name { display: none; }
.me-link, .panel-link { white-space: nowrap; }
@media (max-width: 1279px) { .nav-tools .mini-search { display: none; } }
@media (max-width: 1099px) { .site-header .me-name { display: none; } .menu a { padding: 6px 8px; } }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
  .menu-btn .i { width: 18px; height: 18px; }
  .js-menu .site-header nav { display: none; width: 100%; order: 3; }
  .js-menu .site-header.abierto nav { display: block; }
  .js-menu .menu { flex-direction: column; gap: 2px; padding: 4px 0 8px; margin: 0; }
  .js-menu .menu a { padding: 12px 8px; font-size: 16px; }
  .nav { gap: 12px; }
  .nav-tools .mini-search { display: none; }
}

/* Verificado: marca junto al nombre (acento) y pastilla en el perfil */
.verif { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--pink); }
.verif .i { width: 15px; height: 15px; }
.pill.verif-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-ink); border-color: currentColor; }
.pill.verif-pill .ic { display: grid; }
.pill.verif-pill .i { width: 14px; height: 14px; }

/* Galería de capturas de la wiki */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.shots figcaption { margin-top: 6px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }


/* ===================== Rediseño v2 (18/11/2026): "oscuro sobrio con neón puntual" =====================
   Origen: D:/ClipFactory/out/redesign/trk-gta-foro/DIRECCION_DISENO.md (favoritas de la comparativa de modelos).
   Todo el rediseño vive en este bloque: para volver atrás basta con borrarlo.
   Contraste comprobado (WCAG): texto blanco sobre --fuchsia-btn 5,4:1; iconos ≥ 3:1 sobre --surface-2. */
:root {
  --surface: #151621;
  --surface-2: #20212e;
  --fuchsia: #d12da4;      /* acento: iconos, activo, foco */
  --fuchsia-btn: #c11a9d;  /* relleno del botón primario (AA con texto blanco) */
  --violet: #a77bc4;       /* secundario (versión clara del #7A4B95 de las favoritas: el oscuro no llega a 3:1) */
  --coral: #cb717a;        /* toque cálido de atardecer */
  --cyan: #3ce0d0;         /* estados puntuales */
  --orange: #ff9a3c;       /* solo la acción principal de una página */
  --brand-grad: linear-gradient(135deg, #7a4b95, #d12da4);
}

/* Botones en píldora: primario fucsia relleno, secundario con contorno */
.btn { border-radius: 999px; }
.btn-small { border-radius: 999px; }
.btn-primary { background: var(--fuchsia-btn); color: #fff; }
.btn-primary:hover { background: var(--fuchsia); }
.btn-neon:hover, .btn-warm:hover { border-color: color-mix(in srgb, var(--fuchsia) 55%, transparent); background: var(--surface-2); }

/* Sellos de fiabilidad en píldora con fondo teñido de su propio color */
.st, .tag, .rank-pill, .pill {
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: color-mix(in srgb, currentColor 32%, transparent);
}
.st.empty, .st.teo { background: transparent; }
.legend .st { white-space: normal; }

/* Tarjetas grafito planas: el borde solo se tiñe al pasar por encima */
.card:hover, .cat:hover, .wk-card:hover, .pager a:hover { border-color: color-mix(in srgb, var(--fuchsia) 40%, transparent); }
.cat:hover { background: var(--surface); }

/* Iconos sobre cuadrado de color suave, alternando acentos (wiki, categorías, listas) */
.cat { grid-template-columns: 36px minmax(0, 1fr); align-items: center; }
.cat .cat-count { grid-column: 2; }
.cat .i, .link-list .i {
  --ac: var(--fuchsia);
  box-sizing: content-box; width: 18px; height: 18px; padding: 8px; margin: 0; border-radius: 10px;
  color: var(--ac); background: color-mix(in srgb, var(--ac) 18%, transparent); stroke-width: 1.8;
}
.cat .i { grid-row: 1 / span 3; align-self: start; }
.link-list .i { width: 16px; height: 16px; padding: 6px; border-radius: 8px; }
.link-list a { grid-template-columns: 28px minmax(0, max-content) minmax(0, 1fr); align-items: center; }
.cats > .cat:nth-child(4n+2) .i, .link-list li:nth-child(4n+2) .i { --ac: var(--violet); }
.cats > .cat:nth-child(4n+3) .i, .link-list li:nth-child(4n+3) .i { --ac: var(--coral); }
.cats > .cat:nth-child(4n+4) .i, .link-list li:nth-child(4n+4) .i { --ac: var(--cyan); }
.h-ic { color: var(--fuchsia); background: color-mix(in srgb, var(--fuchsia) 15%, transparent); border-color: transparent; }
@media (max-width: 640px) { .link-list a { grid-template-columns: 28px minmax(0, 1fr); } }

/* Navegación: el estado activo se marca con el acento, no con gris */
.cat-list button[aria-pressed="true"] { box-shadow: inset 2px 0 0 var(--fuchsia); }
.toc-link.active { box-shadow: inset 2px 0 0 var(--fuchsia); }
.toc-link.active .ic, .cat-list button[aria-pressed="true"] .ic { color: var(--fuchsia); }
.toc-bar span, .pf-bar span { background: var(--brand-grad); }
.thread-row.nuevo h3 a::after { background: var(--fuchsia); }
:focus-visible, .btn:focus-visible { outline-color: var(--fuchsia); }
.faq-search:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fuchsia) 45%, transparent); }
.callout { border-left-color: var(--fuchsia); }
.brand span { color: var(--fuchsia); }

/* Brillo solo en momentos (cuenta atrás y nivel del perfil), nunca en páginas de lectura */
.fact { border-color: color-mix(in srgb, var(--fuchsia) 35%, transparent); box-shadow: 0 24px 64px rgba(0, 0, 0, .45), 0 0 40px color-mix(in srgb, var(--fuchsia) 12%, transparent); }
.pf-rank { border-color: color-mix(in srgb, var(--fuchsia) 35%, transparent); box-shadow: 0 0 32px color-mix(in srgb, var(--fuchsia) 10%, transparent); }

/* ===== Imágenes propias (pack IA 18/11/2026, sin personas; assets/ia/pack3/manifest.json) ===== */
.hub-hero, .wk-banner { width: 100%; height: auto; aspect-ratio: 21 / 7; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); margin: 8px 0 24px; background: var(--surface-2); }
.wk-banner { aspect-ratio: 21 / 5; margin-bottom: 20px; }
.cat.has-cover { overflow: hidden; }
.cat.has-cover .cat-cover { grid-column: 1 / -1; grid-row: 1; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -16px -16px 12px; border-bottom: 1px solid var(--border); transition: transform var(--rapido) var(--ease); }
.cat.has-cover .i { grid-row: 2 / span 3; }
.cat.has-cover:hover .cat-cover { transform: scale(1.03); }
.slot.ph { position: relative; border-style: solid; }
.slot.ph .slot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.slot.ph > :not(.slot-bg) { position: relative; }
div.empty img.empty-wide { width: min(360px, 100%); height: auto; aspect-ratio: 1216 / 640; object-fit: cover; border-radius: 14px; }
@media (max-width: 640px) { .hub-hero { aspect-ratio: 16 / 9; } .wk-banner { aspect-ratio: 16 / 7; } }
@media (prefers-reduced-motion: reduce) { .cat.has-cover:hover .cat-cover { transform: none; } }

/* ===== Cabecera de categoría sobre su imagen (rediseño 18/11/2026) ===== */
.wk-hero { position: relative; display: grid; min-height: 300px; margin: 8px 0 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.wk-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 13, 20, .05) 0%, rgba(11, 13, 20, .55) 50%, rgba(11, 13, 20, .96) 100%), linear-gradient(90deg, rgba(11, 13, 20, .65), transparent 65%); }
.wk-hero-body { position: relative; z-index: 1; align-self: end; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 28px; }
.wk-hero.sin-img { min-height: 0; }
.wk-hero.sin-img::after { display: none; }
.wk-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.wk-kicker .h-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--fuchsia) 35%, transparent); }
.wk-hero h1 { margin: 12px 0 6px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.wk-hero .wk-desc { color: var(--text); opacity: .86; max-width: 60ch; margin: 0 0 14px; }
.wk-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.wk-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(11, 13, 20, .6); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); color: var(--text-muted); font-size: 13px; }
.wk-chip strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .wk-hero { min-height: 280px; border-radius: 16px; }
  .wk-hero-body { padding: 20px; }
  .wk-hero-body > .btn { width: 100%; justify-content: center; }
}

/* ===== Ficha de usuario en la cabecera (rediseño 18/11/2026) ===== */
.me-chip { gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.me-chip:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--fuchsia) 45%, transparent); }
.me-chip .av { --s: 32px; }
.me-chip .av img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--fuchsia); }
.me-chip .av-lv, .me-chip .av-pr { display: none; }
.me-txt { display: grid; gap: 1px; line-height: 1.15; }
.me-chip .me-name { color: var(--text); font-weight: 600; font-size: 14px; }
.me-chip .rank-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 11px; line-height: 14px; color: var(--text-faint); }
.me-chip .rank-pill::before { display: none; }
.me-chip .rank-pill:empty { display: none; }
.me-chip .rank-pr { color: var(--pink-ink); }
.me-out { background: transparent; border: 1px solid transparent; color: var(--text-muted); }
.me-out:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
@media (max-width: 1099px) { .me-chip { padding-right: 12px; } }

/* ===== Subgrupos dentro de una categoría (p. ej. Trucos) ===== */
.wk-tabs { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wk-tabs::-webkit-scrollbar { display: none; }
.wk-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color var(--rapido) var(--ease), color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.wk-tab:hover { color: var(--text); border-color: var(--border-strong); }
.wk-tab[aria-pressed="true"] { color: #fff; background: var(--fuchsia-btn); border-color: transparent; }
.wk-tab:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 2px; }
.wk-tab-n { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.wk-groups { display: grid; gap: 32px; }
.wk-sub-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; letter-spacing: -.01em; }
.wk-sub-h::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--brand-grad); }
.wk-sub-h .wk-tab-n { color: var(--text-muted); }
