/* ==========================================================================
   Turbina Social — /faq público. Mobile-first. Depende de ts-ui.css.
   ========================================================================== */

.ts-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.fq-hero {
  padding: calc(var(--nav-h) + 28px) 0 30px;
  background: radial-gradient(800px 380px at 90% -20%, rgba(236, 72, 153, .16), transparent 60%), radial-gradient(700px 420px at -10% 10%, rgba(124, 58, 237, .16), transparent 60%), var(--soft);
}
.fq-eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.fq-hero h1 { font-size: clamp(1.75rem, 7vw, 3rem); max-width: 20ch; margin-bottom: 12px; }
.fq-lead { font-size: 1.02rem; max-width: 58ch; }

.fq-search { position: relative; display: block; margin: 22px 0 0; max-width: 620px; }
.fq-search > .ts-i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fq-search input {
  width: 100%; height: 56px; padding: 0 50px 0 50px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 500 1rem var(--font); -webkit-appearance: none; appearance: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-search input::placeholder { color: #a39cb8; }
.fq-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.fq-search__clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fq-search__clear[hidden] { display: none; }

.fq-topics { display: flex; gap: 8px; overflow-x: auto; margin: 14px -20px 0; padding: 2px 20px 4px; scrollbar-width: none; }
.fq-topics::-webkit-scrollbar { display: none; }
.fq-topic { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 .86rem var(--font); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.fq-topic:hover, .fq-topic.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.fq-body { padding: 22px 0 56px; }
.fq-count { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.fq-count b { color: var(--ink); }
.fq-list { display: grid; gap: 10px; max-width: 820px; }
.fq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s, border-color .2s; scroll-margin-top: 90px; }
.fq-item[hidden] { display: none; }
.fq-item[open] { border-color: #d9cffb; box-shadow: var(--shadow-sm); }
.fq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; min-height: 60px; font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary .ts-i { color: var(--brand); transition: transform .2s; }
.fq-item[open] summary .ts-i { transform: rotate(180deg); }
.fq-answer { padding: 0 18px 18px; color: var(--body); font-size: .97rem; line-height: 1.75; overflow-wrap: anywhere; }
.fq-answer p { margin: 0 0 10px; }
.fq-answer ul, .fq-answer ol { margin: 0 0 10px 20px; padding: 0; list-style: revert; }
.fq-answer img { max-width: 100%; height: auto; border-radius: 12px; }

.fq-empty { text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed #d9cffb; border-radius: 20px; color: var(--muted); }
.fq-empty[hidden] { display: none; }
.fq-empty .ts-i { color: var(--brand); margin-bottom: 8px; }
.fq-empty h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.fq-empty .ts-btn { margin-top: 14px; }

.fq-help { max-width: 820px; margin-top: 26px; display: grid; gap: 16px; padding: 22px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 22px; }
.fq-help .ts-kind { width: 52px; height: 52px; border-radius: 16px; }
.fq-help h2 { font-size: 1.2rem; margin-bottom: 4px; }
.fq-help p { font-size: .94rem; color: var(--muted); line-height: 1.6; }

@media (min-width: 760px) {
  .fq-hero { padding: calc(var(--nav-h) + 56px) 0 44px; }
  .fq-topics { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 2px 0; }
  .fq-body { padding-top: 30px; }
  .fq-help { grid-template-columns: auto 1fr auto; align-items: center; padding: 24px 28px; }
}
