/* ============================================================
   Einblick KI — FAQ  ·  estilos (.fq)
   Requiere einblick-tokens.css cargado antes.
   ============================================================ */

.fq {
  font-family: var(--ek-body); color: var(--ek-ink); background: var(--ek-bg);
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  padding: 0;
}
.fq *, .fq *::before, .fq *::after { box-sizing: border-box; }
.fq-wrap { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Cabecera ---------- */
.fq-head { margin-bottom: 2rem; }
.fq-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ek-red); margin: 0 0 1.25rem;
}
.fq-tick { width: 22px; height: 2px; background: var(--ek-red); display: inline-block; }
.fq-title {
  font-family: var(--ek-display); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem;
}
.fq-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ek-muted); margin: 0 0 2rem; }
.fq-lede a { color: var(--ek-red); text-decoration: none; font-weight: 500; }
.fq-lede a:hover { text-decoration: underline; }

/* ---------- Buscador ---------- */
.fq-search { position: relative; margin-bottom: 1.25rem; }
.fq-search__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--ek-faint);
}
.fq-search input {
  width: 100%; font-family: var(--ek-body); font-size: 16px; color: var(--ek-ink);
  background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: 99px;
  padding: 14px 20px 14px 48px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.fq-search input::placeholder { color: var(--ek-faint); }
.fq-search input:focus { border-color: var(--ek-red); box-shadow: 0 0 0 3px var(--ek-red-soft); }

/* ---------- Filtros ---------- */
.fq-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-chip {
  font-family: var(--ek-body); font-size: 13.5px; font-weight: 500; color: var(--ek-muted);
  background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: 99px;
  padding: 7px 15px; cursor: pointer; transition: all .15s ease;
}
.fq-chip:hover { border-color: var(--ek-line-2); color: var(--ek-ink); }
.fq-chip.is-active { background: var(--ek-ink); color: var(--ek-bg); border-color: var(--ek-ink); }

/* ---------- Lista / acordeón ---------- */
.fq-list { margin-top: 1.75rem; display: grid; gap: 10px; }
.fq-item {
  background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: var(--ek-radius);
  overflow: hidden; transition: border-color .15s ease;
}
.fq-item[open] { border-color: var(--ek-line-2); }
.fq-q {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; display: flex; align-items: center; gap: 14px;
}
.fq-q::-webkit-details-marker { display: none; }
.fq-cat {
  flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ek-red); background: var(--ek-red-soft); padding: 4px 9px; border-radius: 6px;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fq-q__text { flex: 1; font-family: var(--ek-display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.fq-q__icon { flex-shrink: 0; width: 14px; height: 14px; position: relative; }
.fq-q__icon::before, .fq-q__icon::after {
  content: ""; position: absolute; background: var(--ek-muted); border-radius: 2px;
  transition: transform .2s ease;
}
.fq-q__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.fq-q__icon::after  { top: 0; left: 6px; width: 2px; height: 14px; }
.fq-item[open] .fq-q__icon::after { transform: scaleY(0); }
.fq-a { padding: 0 1.4rem 1.3rem; }
.fq-a p { margin: 0; color: var(--ek-muted); font-size: 15.5px; line-height: 1.7; max-width: 64ch; }

@media (max-width: 540px) {
  .fq-cat { display: none; }
}

.fq-empty { text-align: center; color: var(--ek-muted); margin: 2rem 0; }
.fq-empty a { color: var(--ek-red); font-weight: 500; text-decoration: none; }

/* ---------- CTA ---------- */
.fq-cta {
  margin-top: 2.5rem; text-align: center; background: var(--ek-ink); color: var(--ek-bg);
  border-radius: var(--ek-radius-l); padding: clamp(2rem, 5vw, 3rem);
}
.fq-cta h2 { font-family: var(--ek-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 .6rem; color: #fff; }
.fq-cta p { color: rgba(255,255,255,.7); margin: 0 auto 1.5rem; max-width: 480px; }
.fq-btn {
  display: inline-block; background: var(--ek-red); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 99px;
  transition: transform .12s ease, background .15s ease;
}
.fq-btn:hover { transform: translateY(-2px); background: var(--ek-red-hover); }

@media (prefers-reduced-motion: reduce) { .fq * { transition: none !important; } }
