/* =====================================================================
   Páginas y Sistemas — faq.css  (/preguntas-frecuentes/)
   Buscador + índice de temas fijo con contador + grupos de acordeón.
   ===================================================================== */
.fq-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 16px; min-height: 62px; border: 1px solid var(--ink); border-radius: 3px; background: var(--paper); position: relative; }
.fq-search::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1px; background: repeating-linear-gradient(90deg, var(--chalk) 0 6px, transparent 6px 10px); opacity: 0; transition: opacity .3s; }
.fq-search:focus-within::after { opacity: 1; }
.fq-search svg { width: 22px; height: 22px; color: var(--mute); }
.fq-search input { border: 0; background: none; outline: none; min-height: 58px; font-size: 1.08rem; width: 100%; min-width: 0; }
.fq-search input::placeholder { color: var(--mute); }
.fq-search .mono { color: var(--chalk-deep); white-space: nowrap; }
.fq-search:focus-within { outline: 2px solid var(--chalk); outline-offset: 3px; }

.fq-layout { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.fq-nav__in { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 14px; }
.fq-nav .mono { color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fq-nav ol { list-style: none; margin: 0; padding: 0; display: grid; }
.fq-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; padding: 6px 0 6px 0; border-bottom: 1px dashed var(--line); color: var(--mute); transition: color .25s, padding .45s var(--ease-out); }
.fq-nav a b { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; }
.fq-nav a:hover, .fq-nav a.is-active { color: var(--ink); padding-left: 8px; }
.fq-nav a.is-active { font-weight: 650; }
.fq-nav a.is-active b { color: var(--chalk-deep); }
.fq-nav a.is-empty { opacity: .35; }
.fq-nav .btn { margin-top: 10px; }

.fq-group { scroll-margin-top: calc(var(--header-h) + 20px); }
.fq-group + .fq-group { margin-top: clamp(56px, 7vw, 110px); }
.fq-group__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.fq-group__title { font-size: clamp(1.9rem, 3.6vw, 3.4rem); letter-spacing: -.04em; }
.fq-group__head .mono { color: var(--mute); white-space: nowrap; }
.fq-group.is-hidden, .fq-body .faq__item.is-hidden { display: none; }
.fq-links { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; }
.fq-empty { padding: 30px 0; font-size: 1.1rem; }
mark.fq-hit { background: var(--chalk-soft); color: inherit; padding: 0 2px; border-radius: 2px; }

@media (max-width: 899px) {
  .fq-layout { grid-template-columns: 1fr; }
  .fq-nav__in { position: relative; top: 0; }
  .fq-nav ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .fq-nav a { border: 1px solid var(--line-strong); border-radius: 40px; padding: 0 14px; white-space: nowrap; min-height: 44px; }
  .fq-nav a:hover, .fq-nav a.is-active { padding-left: 14px; }
  .fq-nav .btn { display: none; }
  .fq-group__head { flex-direction: column; align-items: start; }
}
