/* ============================================================================
   La Hermandad RP - Tema de la seccion NORMATIVA (wiki)
   Overrides sobre el build. Paleta base del sitio: #d08c4b / #2a1a0e.
   Se carga despues de styles-*.css; los estilos del componente se inyectan en
   runtime, por eso se usa !important en las propiedades que se sobreescriben.
   ============================================================================ */

:root {
  --wk-accent: #d08c4b;
  --wk-accent-light: #e8a85e;
  --wk-accent-deep: #a4661f;
  --wk-ink: #f0e6d3;
  --wk-ink-body: #eadfcf;
  --wk-bg: #2a1a0e;
  --wk-card-top: rgba(255, 255, 255, .055);
  --wk-card-bot: rgba(255, 255, 255, .018);
  --wk-line: rgba(208, 140, 75, .16);
  --wk-radius: 10px;
}

/* ------------------------------- Contenido ------------------------------- */

.wiki-content {
  box-sizing: border-box !important;
  max-width: 860px !important;
  margin: 0 !important;
  padding: 30px 40px 96px !important;
  color: var(--wk-ink-body) !important;
}

/* texto mas comodo de leer: menos ancho, mas aire y mas interlineado */
.wiki-rule-body {
  max-width: 82ch;
}

.wiki-rule-body p {
  font-size: clamp(.87rem, .95vw, .97rem) !important;
  line-height: 1.8 !important;
  color: var(--wk-ink-body) !important;
  margin: 0 0 10px !important;
}

/* fuera las lineas finas entre parrafos (eran el principal motivo de "plano") */
.wiki-rule-body p + p {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.wiki-rule-body p:last-child {
  margin-bottom: 0 !important;
}

/* --------------------------- Tarjeta de cada norma ----------------------- */

.wiki-rule {
  position: relative;
  margin: 0 0 18px !important;
  padding: 16px 20px 16px 22px !important;
  border: 1px solid var(--wk-line) !important;
  border-left: 3px solid rgba(208, 140, 75, .42) !important;
  border-radius: var(--wk-radius) !important;
  background: linear-gradient(180deg, var(--wk-card-top), var(--wk-card-bot)) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .22), 0 10px 20px -18px rgba(0, 0, 0, .9) !important;
  transition: transform .18s ease, border-color .18s ease,
              box-shadow .18s ease, background .18s ease !important;
}

/* brillo superior muy sutil para dar volumen a la tarjeta */
.wiki-rule::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--wk-radius) var(--wk-radius) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  pointer-events: none;
}

.wiki-rule:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 140, 75, .32) !important;
  border-left-color: var(--wk-accent) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)) !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2), 0 16px 28px -20px rgba(0, 0, 0, 1) !important;
}

/* los sub-apartados (x.y.z) van ligeramente sangrados: marcan jerarquia */
.wiki-rule:has(.wiki-rule-title.wiki-rule-sub) {
  margin-left: 26px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .01)) !important;
}

/* ------------------------- Titulos de cada norma ------------------------- */

.wiki-rule-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px !important;
  font-size: clamp(.95rem, 1.25vw, 1.08rem) !important;
  font-weight: 700 !important;
  color: #e2b478 !important;
  letter-spacing: .01em;
  line-height: 1.4 !important;
  scroll-margin-top: calc(var(--wk-nav-h, 3.5rem) + 3.5rem);
}

/* marcador romboidal: da ritmo visual al listado */
.wiki-rule-title::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--wk-accent);
  transform: rotate(45deg);
  opacity: .92;
  box-shadow: 0 0 10px rgba(208, 140, 75, .45);
}

/* sub-apartados (x.y.z): mas ligeros, con flecha y borde discontinuo */
.wiki-rule-title.wiki-rule-sub {
  margin-left: 0 !important;
  padding-left: 12px !important;
  border-left: 2px dashed rgba(208, 140, 75, .38) !important;
  font-size: clamp(.88rem, 1.05vw, .98rem) !important;
  font-weight: 600 !important;
  color: #d9bb92 !important;
}

.wiki-rule-title.wiki-rule-sub::before {
  content: "\21B3"; /* flecha ↳ */
  flex: 0 0 auto;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  transform: none;
  font-size: .95em;
  color: rgba(208, 140, 75, .8);
}

/* ------------------------- Titulos de seccion ---------------------------- */

/* En la pagina de normativa el body no debe ser contenedor de scroll: eso
   anula position:sticky (lo fija styles-YBEZQQ7D.css con overflow-x:hidden). */
html:has(.wiki-page),
body:has(.wiki-page) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body:has(.wiki-page) {
  height: auto !important;
}

.wiki-section-title {
  position: sticky;
  top: var(--wk-nav-h, 3.5rem);
  z-index: 5;
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 38px 0 20px !important;
  padding: 10px 0 12px !important;
  border-bottom: 0 !important;
  font-size: clamp(1.22rem, 2.2vw, 1.62rem) !important;
  color: #e6a057 !important;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #221206 0%, #2a1a0e 100%) !important;
  box-shadow: 0 20px 24px -22px rgba(0, 0, 0, .95);
  scroll-margin-top: calc(var(--wk-nav-h, 3.5rem) + .5rem);
}

.wiki-section-title:first-child {
  margin-top: 10px !important;
}

/* linea que se desvanece a la derecha = sensacion de capitulo */
.wiki-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(208, 140, 75, .5), rgba(208, 140, 75, 0));
}

.wiki-section-line {
  width: 5px !important;
  height: 1.32em !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, var(--wk-accent-light), var(--wk-accent-deep)) !important;
  box-shadow: 0 0 14px rgba(208, 140, 75, .5);
}

/* -------------------------------- Sidebar -------------------------------- */

.wiki-sidebar {
  width: 272px !important;
  top: var(--wk-nav-h, 3.5rem) !important;
  height: calc(100vh - var(--wk-nav-h, 3.5rem)) !important;
  background: linear-gradient(180deg, #54381f 0%, #412a19 55%, #3a2315 100%) !important;
  border-right: 1px solid rgba(208, 140, 75, .22) !important;
  box-shadow: 6px 0 22px -18px #000;
}

/* la barra superior fija cambia de alto segun el ancho: lo fija wiki-extras.js */
.wiki-page {
  padding-top: var(--wk-nav-h, 3.5rem) !important;
}

.wiki-main {
  margin-left: 272px !important;
}

.wiki-search-wrap {
  padding: 18px 14px 12px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(208, 140, 75, .16) !important;
}

.wiki-search-input {
  padding: 10px 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(208, 140, 75, .26) !important;
  background: rgba(0, 0, 0, .3) !important;
  font-size: .86rem !important;
  transition: border-color .2s, background .2s, box-shadow .2s !important;
}

.wiki-search-input:focus {
  border-color: rgba(208, 140, 75, .75) !important;
  background: rgba(0, 0, 0, .45) !important;
  box-shadow: 0 0 0 3px rgba(208, 140, 75, .13);
}

.wiki-nav-all-btn {
  padding: 10px 16px !important;
  font-size: .84rem !important;
  color: rgba(240, 230, 211, .77) !important;
  border-bottom: 1px solid rgba(208, 140, 75, .14) !important;
}

.wiki-nav-group-label {
  padding-top: 4px !important;
  font-size: .6rem !important;
  color: rgba(208, 140, 75, .85) !important;
}

.wiki-cat-btn {
  margin: 2px 8px 2px 0 !important;
  padding: 9px 14px !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: .84rem !important;
  transition: all .18s ease !important;
}

.wiki-cat-btn.active {
  background: linear-gradient(90deg, rgba(208, 140, 75, .24), rgba(208, 140, 75, .05)) !important;
  box-shadow: inset 0 0 0 1px rgba(208, 140, 75, .16);
}

.wiki-sec-link {
  margin: 1px 8px 1px 12px !important;
  padding: 7px 12px !important;
  border-radius: 0 6px 6px 0 !important;
  border-left: 2px solid rgba(208, 140, 75, .16) !important;
  font-size: .79rem !important;
  color: rgba(240, 230, 211, .62) !important;
  transition: background .18s ease, padding-left .18s ease, color .18s ease !important;
}

.wiki-sec-link:hover {
  padding-left: 17px !important;
  background: rgba(208, 140, 75, .09) !important;
  border-left-color: var(--wk-accent) !important;
  color: var(--wk-accent-light) !important;
}

/* -------------------------------- Banner --------------------------------- */

.wiki-banner {
  height: 232px !important;
  border-bottom: 1px solid rgba(208, 140, 75, .22) !important;
}

.wiki-banner::after {
  background:
    linear-gradient(to right, rgba(12, 6, 2, .95), rgba(12, 6, 2, .6) 55%, rgba(12, 6, 2, .05)),
    linear-gradient(to top, rgba(42, 26, 14, .92), rgba(42, 26, 14, 0) 60%) !important;
}

.wiki-banner-inner {
  padding: 0 40px 26px !important;
}

.wiki-banner-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px !important;
  padding: 4px 12px !important;
  border: 1px solid rgba(208, 140, 75, .35);
  border-radius: 999px;
  background: rgba(12, 6, 2, .5);
  color: var(--wk-accent-light) !important;
  letter-spacing: .28em !important;
  box-shadow: 0 0 18px -6px rgba(208, 140, 75, .35);
}

.wiki-banner-tag::before {
  content: "\2756"; /* diamante ❖ */
  font-size: .9em;
  letter-spacing: 0;
  color: var(--wk-accent);
}

.wiki-banner-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem) !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .85), 0 1px 2px rgba(0, 0, 0, .6) !important;
}

/* ------------------- UI inyectada por assets/wiki-extras.js --------------- */

#wk-ui.wk-off {
  display: none;
}

/* barra de progreso de lectura, pegada al borde inferior de la barra superior */
#wk-progress {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}

#wk-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #a4661f, #d08c4b 45%, #e8a85e);
  box-shadow: 0 1px 8px rgba(208, 140, 75, .75);
}

/* boton flotante para volver arriba */
#wk-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(208, 140, 75, .4);
  border-radius: 999px;
  background: rgba(34, 18, 6, .94);
  color: #e8a85e;
  font-family: red_dead_cuerpo, serif;
  font-size: .85rem;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .95);
}

#wk-top span {
  font-size: 1.05em;
  line-height: 1;
}

#wk-top.wk-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#wk-top:hover {
  background: #3a2314;
  color: #f3c88a;
  border-color: rgba(208, 140, 75, .7);
}

/* seccion que se esta leyendo, marcada en la barra lateral */
.wiki-sec-link.wk-active {
  color: var(--wk-accent-light) !important;
  border-left-color: var(--wk-accent) !important;
  background: rgba(208, 140, 75, .1) !important;
}

/* ------------------- Marcadores del JSON: recuadros destacados ----------- */
/*  **texto**  ->  aviso / mencion importante      (clase .wk-badge)
    [[texto]]  ->  ejemplo                        (clase .wk-badge-ejemplo)
    ==texto==  ->  resaltado tipo rotulador       (clase .wk-resalte)
    !!texto!!  ->  prohibicion / aviso en rojo    (clase .wk-alerta)
    ++texto++  ->  resaltado en positivo (verde)  (clase .wk-positivo)      */

.wk-badge {
  display: inline-block;
  padding: 2px 10px 3px;
  margin: 2px 1px;
  border: 1px solid rgba(208, 140, 75, .55);
  border-left: 3px solid var(--wk-accent);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(208, 140, 75, .22), rgba(208, 140, 75, .07));
  color: #f6d7a5 !important;
  font-weight: 700;
  font-size: .93em;
  line-height: 1.55;
  letter-spacing: .02em;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.wk-badge-ejemplo {
  border-color: rgba(232, 168, 94, .34);
  border-left-color: rgba(232, 168, 94, .5);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  color: var(--wk-ink) !important;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
}

/*  ==texto==  resaltado tipo rotulador, dentro de la frase */
.wk-resalte {
  padding: 0 5px 1px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(232, 168, 94, .3), rgba(232, 168, 94, .14));
  color: #ffe4b8 !important;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(232, 168, 94, .45);
}

/*  !!texto!!  prohibiciones y avisos serios */
.wk-alerta {
  padding: 0 5px 1px;
  border-radius: 3px;
  background: rgba(158, 44, 32, .3);
  color: #ffb4a6 !important;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(196, 74, 58, .45);
}

/*  ++texto++  resaltado en positivo (permitido / recomendado), en verde */
.wk-positivo {
  padding: 0 5px 1px;
  border-radius: 3px;
  background: rgba(60, 140, 70, .3);
  color: #b8f0c0 !important;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(80, 170, 90, .45);
}

/* ------------------- Recuadros de ejemplo automaticos -------------------- */
/*  los <p> que empiezan por "Ejemplo(s) ...:" los monta wiki-extras.js       */

.wk-ejemplos {
  margin: 12px 0 14px;
  padding: 11px 15px 12px;
  border: 1px dashed rgba(232, 168, 94, .34);
  border-left: 3px solid rgba(232, 168, 94, .5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}

/* varios ejemplos seguidos comparten recuadro: se separan con una linea */
.wk-ejemplo + .wk-ejemplo {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(232, 168, 94, .18);
}

.wk-ejemplo-rotulo {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 8px 2px;
  border: 1px solid rgba(232, 168, 94, .32);
  border-radius: 4px;
  background: rgba(0, 0, 0, .26);
  color: var(--wk-accent-light) !important;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wk-ejemplo-item {
  margin: 0;
  max-width: 78ch;
  color: rgba(240, 230, 211, .88) !important;
  font-size: clamp(.85rem, .93vw, .95rem);
  font-style: italic;
  line-height: 1.72;
}

.wk-ejemplo-lista {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-ejemplo-lista .wk-ejemplo-item {
  position: relative;
  padding-left: 15px;
}

.wk-ejemplo-lista .wk-ejemplo-item + .wk-ejemplo-item {
  margin-top: 3px;
}

.wk-ejemplo-lista .wk-ejemplo-item::before {
  content: "\2013";
  position: absolute;
  left: 2px;
  color: rgba(232, 168, 94, .8);
  font-style: normal;
}

/* comandos del juego citados en el texto (/me, /do, /dopj, /Escena.Corta...):
   los marca wiki-extras.js en cualquier parrafo, no solo dentro de los ejemplos */
.wk-cmd {
  padding: 0 5px 1px;
  border: 1px solid rgba(208, 140, 75, .38);
  border-radius: 4px;
  background: rgba(0, 0, 0, .3);
  color: #f3c98f !important;
  font-family: inherit;
  font-size: .95em;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* dentro de los ejemplos el texto va en cursiva, pero el chip no */
.wk-ejemplo-item .wk-cmd {
  font-style: normal;
}

/* ------------------------------ Detalles finos --------------------------- */

::selection {
  background: #d08c4b;
  color: #21130b;
}

html {
  scroll-behavior: smooth;
}

.wiki-sidebar::-webkit-scrollbar {
  width: 6px;
}

.wiki-sidebar::-webkit-scrollbar-thumb {
  background: rgba(208, 140, 75, .3);
  border-radius: 3px;
}

.wiki-postulacion {
  padding: 14px 40px !important;
  background: rgba(0, 0, 0, .2) !important;
  border-bottom: 1px solid rgba(208, 140, 75, .12) !important;
}

.wiki-postulacion-btn {
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-weight: 700;
  letter-spacing: .03em;
}

.wiki-postulacion-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(208, 140, 75, .7);
}

/* ------------------- Entrada suave de las tarjetas (1 sola vez) ---------- */

@keyframes wk-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.wiki-rule {
  animation: wk-in .5s cubic-bezier(.2, .7, .3, 1) backwards;
}

.wiki-rule:nth-child(2)  { animation-delay: .03s; }
.wiki-rule:nth-child(3)  { animation-delay: .06s; }
.wiki-rule:nth-child(4)  { animation-delay: .09s; }
.wiki-rule:nth-child(5)  { animation-delay: .12s; }
.wiki-rule:nth-child(6)  { animation-delay: .15s; }
.wiki-rule:nth-child(7)  { animation-delay: .18s; }
.wiki-rule:nth-child(8)  { animation-delay: .21s; }
.wiki-rule:nth-child(9)  { animation-delay: .24s; }
.wiki-rule:nth-child(n+10) { animation-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .wiki-rule { animation: none; }
  .wiki-rule:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------- Responsive ------------------------------ */

@media screen and (max-width: 1280px) {
  .wiki-sidebar { width: 246px !important; }
  .wiki-main { margin-left: 246px !important; }
  .wiki-content { padding: 26px 34px 72px !important; }
}

@media screen and (max-width: 736px) {
  .wiki-sidebar {
    width: 100% !important;
    top: auto !important;
    height: auto !important;
  }
  .wiki-main { margin-left: 0 !important; }
  .wiki-content { padding: 18px 18px 56px !important; }
  .wiki-section-title { position: static !important; margin: 26px 0 14px !important; }
  .wiki-rule { margin-bottom: 14px !important; padding: 13px 15px !important; }
  .wiki-rule:has(.wiki-rule-title.wiki-rule-sub) { margin-left: 14px !important; }
  .wiki-rule-body { max-width: none; }
  .wiki-banner { height: 158px !important; }
  .wiki-banner-inner { padding: 0 18px 16px !important; }
}

@media screen and (max-width: 480px) {
  .wiki-content { padding: 14px 13px 44px !important; }
  .wiki-rule { padding: 12px 13px !important; }
  .wiki-banner-tag { letter-spacing: .18em !important; }
  .wk-badge { padding: 1px 8px 2px; font-size: .95em; }
  .wk-ejemplos { padding: 10px 12px 11px; }
  .wk-ejemplo-rotulo { letter-spacing: .09em; white-space: normal; }
  .wk-ejemplo-item { max-width: none; }
  .wk-cmd { padding: 0 4px 1px; font-size: .9em; }
}

/* ------------------------- Sitio general (movil) -------------------------- */
/* El menu (Inicio/Clips/Galeria/Normativa/RedM) no cabe entero en movil.
   Respaldo SIN JS: sigue con su overflow-x:auto de siempre, pero alineado a
   la izquierda (empieza en "Inicio") y con un desvanecido en el borde
   derecho en vez de quedar centrado y cortado por los dos lados sin pista
   de que se puede deslizar. Si wiki-extras.js carga bien, el bloque
   siguiente (html.wk-menu-js) lo sustituye por un menu hamburguesa. */
@media screen and (max-width: 736px) {
  /* :not([data-wk-never]) sube la especificidad para ganar al selector
     con atributo de encapsulado de Angular (nav[_ngcontent-xxx]), que si
     no tendria mas peso que un simple "nav" y no se aplicaria.
     :not(.wiki-nav) excluye el <nav class="wiki-nav"> de la barra lateral
     de normativa (categorias), que es un <nav> totalmente distinto al
     menu de cabecera y no debe verse afectado por nada de este bloque. */
  nav:not(.wiki-nav):not([data-wk-never]) {
    justify-content: flex-start !important;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%) !important;
            mask-image: linear-gradient(to right, #000 85%, transparent 100%) !important;
  }

  /* "885 FORASTEROS": el translate() esta calculado para superponer la caja
     a la imagen del personaje en el layout de escritorio; en movil esa
     imagen esta en otra posicion y el mismo desplazamiento saca la caja
     fuera de la pantalla, cortando el texto por los dos lados. */
  .cartel-forasteros:not([data-wk-never]) {
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --------------------- Menu movil: hamburguesa (con JS) -------------------
   wiki-extras.js inserta #wk-menu-btn justo despues del <nav> y anade la
   clase "wk-menu-js" a <html> si lo consigue. Reutiliza --wk-nav-h, la
   altura de cabecera que el propio script calcula en ajustarBarra(). */
#wk-menu-btn { display: none; }

@media screen and (max-width: 736px) {
  html.wk-menu-js #wk-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 210;
  }
  html.wk-menu-js #wk-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--wk-ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  html.wk-menu-open #wk-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.wk-menu-open #wk-menu-btn span:nth-child(2) { opacity: 0; }
  html.wk-menu-open #wk-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* fondo oscurecido detras del desplegable */
  html.wk-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    top: var(--wk-nav-h, 56px);
    background: rgba(0, 0, 0, .5);
    z-index: 150;
  }

  html.wk-menu-js nav:not(.wiki-nav):not([data-wk-never]) {
    position: fixed !important;
    top: var(--wk-nav-h, 56px) !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    max-height: 0 !important;
    overflow: hidden !important;
    overflow-x: visible !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: var(--wk-bg) !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
    transition: max-height .25s ease;
    z-index: 200;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .35);
  }
  html.wk-menu-open nav:not(.wiki-nav):not([data-wk-never]) {
    max-height: 70vh !important;
    overflow-y: auto !important;
  }
  html.wk-menu-js nav:not(.wiki-nav):not([data-wk-never]) ul {
    flex-direction: column !important;
  }
  html.wk-menu-js nav:not(.wiki-nav):not([data-wk-never]) li {
    width: 100% !important;
    margin: 0 !important;
  }
  html.wk-menu-js nav:not(.wiki-nav):not([data-wk-never]) a {
    display: block !important;
    padding: 15px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  }
}



