/* /centro-de-ayuda/ — the help hub. Consolidates the FAQs scattered across
   the home, security, and about pages into one searchable place. New
   components only; .faq-list details come from site.css. Colour pairs
   measured against WCAG 1.4.3:

     --ink   #0e0e1a on --surface #fff     19.15:1   questions, category titles
     --muted #5b5b70 on --surface #fff      6.61:1   answers
     --quiet #68687d on --canvas #fbfbfd    5.26:1   category eyebrows, result count */

/* ---------- search ----------
   Progressive enhancement: ayuda.js filters the questions as you type. With
   no JS the field is still shown but inert, and every question is visible, so
   nothing is gated behind a script. */
.help-search {
  position: relative;
  max-width: 560px;
  margin: var(--space-8) auto 0;
}

.help-search input {
  width: 100%;
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-12);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-lg);
}

.help-search input::placeholder {
  color: var(--quiet);
}

.help-search svg {
  position: absolute;
  top: 50%;
  left: var(--space-5);
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--quiet);
  pointer-events: none;
}

.help-empty {
  margin: var(--space-8) 0 0;
  color: var(--muted);
  font-size: var(--text-lg);
  text-align: center;
}

/* ---------- categories ---------- */
.help-cat + .help-cat {
  margin-top: var(--space-12);
}

.help-cat[hidden] {
  display: none;
}

.help-cat-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
}

.help-cat-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--purple);
}

.help-cat-icon svg {
  width: 20px;
  height: 20px;
}

.help-cat-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
}

/* The .faq-list details a help item wraps must obey [hidden] when filtered. */
.faq-list details[data-help-item][hidden] {
  display: none;
}
