/* ============================================================
   ScaleWiki (archivo de resource) — portado de
   siteplantilla/assets/css/pages/ScaleReady_ScaleWiki_v1.css.
   Scopeado bajo .sr-wiki para no chocar con header/footer de Elementor.
   Tokens (:root --c-*, fuentes) vienen del child theme.
   ============================================================ */
.sr-wiki { background: #fff; color: var(--c-text); font-family: var(--font-body); }
.sr-wiki * { box-sizing: border-box; }
/*
 * Heading and paragraph margins are set by the THEME, and every theme sets its
 * own: in the hero that added up to a huge gap between the label, the title and
 * the text, different on every installation. They are reset inside the plugin's
 * scope and the rhythm is controlled from here, which is the only place where
 * how it should look can be known. Prose paragraphs keep theirs further down.
 */
.sr-wiki :is(h1, h2, h3, h4, h5, h6) { margin: 0; }
.sr-wiki .wiki-hero-head > * { margin: 0; }
.sr-wiki .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* eyebrow */
.sr-wiki .eyebrow { display: inline-flex; align-items: center; gap: .8em; font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink); }
.sr-wiki .eyebrow::before { content: ""; width: 2.2em; height: 2px; background: var(--c-accent); flex: none; }

/* hero */
.sr-wiki .wiki-hero { position: relative; padding: calc(96px + 60px) 0 var(--sp-xl); overflow: hidden; isolation: isolate; background:
	radial-gradient(ellipse 55% 55% at 15% 20%, rgba(34,211,238,.30), transparent 62%),
	radial-gradient(ellipse 45% 45% at 82% 30%, rgba(249,115,22,.10), transparent 60%),
	radial-gradient(ellipse 60% 55% at 70% 100%, rgba(36,67,120,.16), transparent 60%),
	radial-gradient(ellipse 42% 42% at 25% 95%, rgba(34,211,238,.18), transparent 60%),
	linear-gradient(180deg, #fff 0%, #f4fbfd 100%); }

.sr-wiki .wiki-hero .wrap { position: relative; z-index: 2; }
.sr-wiki .wiki-hero-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; max-width: 44em; }
.sr-wiki .wiki-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -.03em; color: var(--c-ink); }
.sr-wiki .wiki-hero h1 em { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, var(--c-ink-deep), var(--c-glow) 65%, var(--c-ink-deep)); background-size: 220% 100%; background-position: 0% 50%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-wiki .wiki-hero-sub { font-family: var(--font-body); font-weight: 400; font-size: 1.12rem; line-height: 1.6; color: var(--c-text); max-width: 34em; margin-top: 0; }
.sr-wiki .wiki-stats { display: flex; flex-wrap: wrap; gap: var(--sp-xl); margin-top: .75rem; align-items: flex-end; }
.sr-wiki .wiki-stat { display: flex; flex-direction: column; line-height: 1; }
.sr-wiki .wiki-stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.4rem); color: var(--c-ink); letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: .35em; height: clamp(1.75rem, 3vw, 2.4rem); }
.sr-wiki .wiki-stat span { font-family: var(--font-display); font-size: .72rem; font-weight: 700; color: var(--c-text-soft); letter-spacing: .12em; margin-top: .5rem; text-transform: uppercase; }
.sr-wiki .wiki-stat.live b { font-size: clamp(1.05rem, 1.55vw, 1.3rem); color: var(--c-ink); letter-spacing: .02em; text-transform: uppercase; align-items: center; }
.sr-wiki .wiki-stat.live .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; display: inline-block; flex: none; position: relative; top: -2px; }

/* layout */
.sr-wiki .wiki-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-2xl); margin-top: var(--sp-xl); padding-bottom: var(--sp-3xl); position: relative; z-index: 5; }
@media (max-width: 900px) { .sr-wiki .wiki-layout { grid-template-columns: 1fr; margin-top: var(--sp-xl); } }

/* filters */
.sr-wiki .wiki-filters { position: sticky; top: calc(96px + 32px); align-self: start; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--c-border); padding: var(--sp-lg); box-shadow: var(--sh-card); max-height: calc(100vh - 130px); overflow-y: auto; }
@media (max-width: 900px) { .sr-wiki .wiki-filters { position: static; max-height: none; } }
.sr-wiki .wiki-filters h2 { font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-deep); margin-bottom: var(--sp-md); padding-bottom: .75rem; border-bottom: 1px solid var(--c-line); line-height: 1.2857; }
.sr-wiki .filter-group { margin-bottom: var(--sp-md); padding-bottom: var(--sp-md); border-bottom: 1px solid var(--c-line); }
.sr-wiki .filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.sr-wiki .filter-group h3 { font-family: var(--font-display); font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-soft); margin-bottom: .8rem; line-height: 1.4; }
.sr-wiki .filter-check { display: flex; align-items: center; gap: .6em; padding: .35em 0; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--c-ink); cursor: pointer; transition: color var(--t-micro); }
.sr-wiki .filter-check:hover { color: var(--c-glow); }

.sr-wiki .filter-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--c-border); border-radius: 4px; flex: none; cursor: pointer; position: relative; transition: border-color var(--t-micro), background var(--t-micro); }
.sr-wiki .filter-check input:hover { border-color: var(--c-ink); }
.sr-wiki .filter-check input:checked { background: var(--c-ink); border-color: var(--c-ink); }
.sr-wiki .filter-check input:checked::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sr-wiki .filter-check .count { margin-left: auto; font-weight: 600; color: var(--c-text-soft); font-size: .88rem; }
.sr-wiki .filter-select { position: relative; }
.sr-wiki .filter-select select { width: 100%; appearance: none; -webkit-appearance: none; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: .68em 2.4em .68em 1em; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--c-ink); cursor: pointer; transition: border-color var(--t-micro); }
.sr-wiki .filter-select select:hover { border-color: var(--c-ink); }
.sr-wiki .filter-select::after { content: ""; position: absolute; right: 14px; top: 50%; transform: translateY(-30%) rotate(45deg); width: 7px; height: 7px; border: solid var(--c-ink); border-width: 0 2px 2px 0; pointer-events: none; }

/* content */
.sr-wiki .wiki-content { display: flex; flex-direction: column; gap: var(--sp-md); min-width: 0; }
.sr-wiki .wiki-inline-search { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: .55rem 1.3rem; box-shadow: var(--sh-soft); transition: border-color var(--t-micro), box-shadow var(--t-micro); }
.sr-wiki .wiki-inline-search:focus-within { border-color: var(--c-glow); box-shadow: var(--sh-soft); }
.sr-wiki .wiki-inline-search svg { width: 20px; height: 20px; color: var(--c-text-soft); flex: none; }
.sr-wiki .wiki-inline-search input { flex: 1; border: none; outline: none; background: none; font-family: var(--font-body); font-size: 1rem; color: var(--c-ink); padding: .5em 0; }
.sr-wiki .wiki-inline-search input::placeholder { color: #9aa4b5; }
.sr-wiki .wiki-inline-search kbd { font-family: var(--font-display); font-size: .7rem; font-weight: 700; background: var(--c-line); border: 1px solid var(--c-border); border-radius: 5px; padding: .15em .45em; color: var(--c-text); flex: none; }
/* filtros activos */
.sr-wiki .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-wiki .wiki-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-md) 0 0; }
.sr-wiki .wiki-chips[hidden] { display: none; }
.sr-wiki .chip-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem; background: var(--c-glow-soft); border: 1px solid rgba(34,211,238,.25); border-radius: var(--r-pill); padding: .35em .85em; }
.sr-wiki .chip-group-label { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .02em; color: var(--c-text-soft); }
.sr-wiki .chip { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .02em; color: var(--c-ink); text-decoration: none; }
.sr-wiki .chip:hover { color: var(--c-accent); }
.sr-wiki .chip-x { font-size: 1.05em; line-height: 1; opacity: .65; }
.sr-wiki .chip:hover .chip-x { opacity: 1; }
.sr-wiki .chips-clear { align-self: center; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-soft); background: none; border: 0; padding: .35em .2em; cursor: pointer; }
/* The Elementor kit turns a focused `button` white; "Clear all" keeps its colour. */
.sr-wiki .chips-clear:focus { color: var(--c-text-soft); background: none; }
.sr-wiki .chips-clear:hover { color: var(--c-accent); text-decoration: underline; }

.sr-wiki .results-meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--sp-md); gap: var(--sp-md); flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
.sr-wiki .results-count { font-family: var(--font-display); font-size: .95rem; color: var(--c-text-soft); }
.sr-wiki .results-count b { color: var(--c-ink); font-weight: 800; }
.sr-wiki .sort-select { position: relative; }
.sr-wiki .sort-select select { appearance: none; -webkit-appearance: none; background: transparent; border: none; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--c-ink); padding-right: 1.4em; cursor: pointer; }
.sr-wiki .sort-select::after { content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-30%) rotate(45deg); width: 6px; height: 6px; border: solid var(--c-ink); border-width: 0 2px 2px 0; pointer-events: none; }

/* list + cards */
.sr-wiki .pub-list { display: flex; flex-direction: column; gap: var(--sp-md); }
.sr-wiki .pcard-pub { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: var(--sp-lg) var(--sp-xl); box-shadow: var(--sh-soft); transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro), border-color var(--t-micro); }
.sr-wiki .pcard-pub:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hov); border-color: transparent; }
.sr-wiki .pcard-pub::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--c-glow), var(--c-ink)); border-radius: var(--r-xl) 0 0 var(--r-xl); opacity: 0; transition: opacity var(--t-micro); }
.sr-wiki .pcard-pub:hover::before { opacity: 1; }
.sr-wiki .pub-tags { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: .65rem; }
/* Same rule as `.ms-chip` on the resource page: an explicit `line-height`.
   Without it the chip inherits the body text's and comes out tall and narrow.
   The two templates have to look the same, and until now they only matched by
   chance. */
.sr-wiki .pub-tags .tag { display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-display); font-weight: 700; font-size: .75rem; line-height: 1.25; letter-spacing: .02em; padding: .3em .9em; border-radius: var(--r-pill); }
.sr-wiki .tag-type { background: var(--c-glow-soft); color: var(--c-ink); border: 1px solid rgba(34,211,238,.25); }
.sr-wiki .tag-cell { background: #f3f6fb; color: var(--c-text-soft); border: 1px solid var(--c-border); }
.sr-wiki .tag-model { background: var(--c-accent-soft); color: var(--c-accent-ink); border: 1px solid rgba(249,115,22,.25); }
/*
 * A 14px floor for the card's figures. The date was at 12 and the authors at
 * 13, beside a 16px summary: three sizes below comfortable on the same card,
 * and the jump showed. Only the tags stay small, because they are labels and
 * not text anybody reads.
 */
.sr-wiki .pub-date { font-family: var(--font-display); font-size: .875rem; font-weight: 700; color: var(--c-text-soft); letter-spacing: .02em; margin-bottom: .5rem; }
.sr-wiki .pub-title { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--c-ink-deep); line-height: 1.25; letter-spacing: -.005em; margin-bottom: .6rem; }
.sr-wiki .pub-title a { color: inherit; text-decoration: none; transition: color var(--t-micro); }
.sr-wiki .pub-title a:hover { color: var(--c-accent); }
/*
 * Four lines and an ellipsis. The clamp is visual, not textual: the whole
 * summary (up to 700 characters) stays in the HTML, which is what the search
 * engines and the answer engines read. It clamps by lines and not by
 * characters because the card changes width — two columns, one, mobile — and
 * a character cut leaves some cards at three lines and others at six.
 */
.sr-wiki .pub-desc { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--c-text); line-height: 1.6; margin-bottom: var(--sp-md); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.sr-wiki .pub-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-md); flex-wrap: wrap; padding-top: var(--sp-md); border-top: 1px solid var(--c-line); }
.sr-wiki .pub-dl { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: var(--c-accent); color: #fff; padding: .85em 1.6em; border-radius: var(--r-btn); box-shadow: 0 8px 22px rgba(249,115,22,.32); transition: background var(--t-micro), transform var(--t-micro), box-shadow var(--t-micro); white-space: nowrap; text-decoration: none; }
.sr-wiki .pub-dl:hover { background: var(--c-accent-hov); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(249,115,22,.4); }
/*
 * The button's text, in ALL its states.
 *
 * Themes style `a:hover` globally and repaint this button's text on hover:
 * over orange it ends up illegible. All five states are declared because the
 * theme only has to define one to take it away.
 */
.sr-wiki .pub-dl,
.sr-wiki .pub-dl:link,
.sr-wiki .pub-dl:visited,
.sr-wiki .pub-dl:hover,
.sr-wiki .pub-dl:focus,
.sr-wiki .pub-dl:active { color: #fff; }
.sr-wiki .pub-dl .arr { transition: transform var(--t-micro); }
.sr-wiki .pub-dl:hover .arr { transform: translateX(3px); }
.sr-wiki .pub-authors { font-family: var(--font-display); font-size: .875rem; font-weight: 700; color: var(--c-text-soft); text-align: right; line-height: 1.35; margin: 0; }
.sr-wiki .pub-authors span { color: var(--c-text-soft); font-weight: 600; }
.sr-wiki .pub-authors b { color: var(--c-ink); font-weight: 800; }
@media (max-width: 600px) { .sr-wiki .pcard-pub { padding: var(--sp-lg); } .sr-wiki .pub-title { font-size: 1.1rem; } .sr-wiki .pub-authors { text-align: left; } }

.sr-wiki .srw-empty { padding: var(--sp-2xl) 0; color: var(--c-text-soft); font-family: var(--font-display); font-weight: 700; }
.sr-wiki .srw-sentinel { display: flex; justify-content: center; align-items: center; min-height: 56px; margin-top: var(--sp-lg); }
.sr-wiki .srw-spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--c-border); border-top-color: var(--c-glow); animation: srw-spin .7s linear infinite; }
@keyframes srw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sr-wiki .srw-spinner { animation: none; } }

/* ======================================================== armadura
 *
 * WHY THIS BLOCK EXISTS
 * The catalogue is installed inside somebody else's theme, and themes style
 * forms globally: "every input gets 32px of bottom margin and is 69px tall".
 * Those rules know nothing about this component, but they reach it all the
 * same, and they turned the filter rows into 58px blocks and the search box
 * into an 89px one.
 *
 * It was patched element by element —the filter input, then the search one,
 * then the `kbd`— and every new installation found another. So everything the
 * theme can impose on the controls we draw ourselves is neutralised in one go.
 * Whatever needs a value of its own declares it afterwards: any
 * `.sr-wiki .something` rule beats this one on specificity.
 *
 * It goes at the END of the file on purpose: that way it also beats whatever
 * the theme injects at the same specificity, which is resolved by order.
 */
.sr-wiki :is(input, select, textarea, button, kbd),
.sr-doc  :is(input, select, textarea, button, kbd) {
  margin: 0;
  height: auto;
  min-height: 0;
  max-width: none;
  line-height: normal;
  box-shadow: none;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/*
 * And the FOCUS state, which was slipping through.
 *
 * The armour above resets the resting state, but the theme styles focus too:
 * Foundation gives a focused field `border: 2px solid #1e3668` and
 * `box-shadow: 0 0 5px #1e3668`. That drew a second box INSIDE the search
 * field, on top of the ring the container already shows — two indicators for
 * one thing, and the inner one belonging to a different design.
 *
 * The theme's is neutralised and ours is kept, which is the one that goes with
 * the catalogue. The ring stays on the container, so keyboard users still see
 * where they are.
 */
.sr-wiki :is(input, select, textarea):focus,
.sr-doc  :is(input, select, textarea):focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
  background-color: transparent;
}
.sr-wiki .wiki-inline-search input:focus,
.sr-wiki .wiki-inline-search input:focus-visible {
  border: none;
  box-shadow: none;
  outline: none;
}

/* The theme's loose text carries paragraph margins and throws the rows out. */
.sr-wiki :is(.results-count, .filter-check, .chip, .chip-group-label),
.sr-doc  :is(.ms-detail dt, .ms-detail dd) { margin: 0; }

/* The few values of our own that the armour just reset are declared again. */
.sr-wiki .wiki-inline-search input { padding: .5em 0; }
.sr-wiki .sort-select { display: inline-flex; align-items: center; }
.sr-wiki .sort-select select { padding-right: 1.4em; }
.sr-wiki .filter-check { padding: .35em 0; }
