/* ══════════════════════════════════════════════════════════════
   FAQ.CSS — Página de preguntas frecuentes
══════════════════════════════════════════════════════════════ */

.faq-body {
  padding: 56px clamp(18px, 6vw, 76px) 86px;
  background: var(--paper);
}

.faq-content {
  width: min(800px, 100%);
  margin: 0 auto;
}

/* ── Buscador ───────────────────────────────────────────── */

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 4px 18px;
  margin-bottom: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 111, 104, 0.10);
}

.faq-search > i {
  color: var(--muted);
  margin-right: 12px;
  font-size: 1.05rem;
}

.faq-search:focus-within > i {
  color: var(--teal);
}

.faq-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
}

.faq-search input::placeholder {
  color: var(--muted);
}

.faq-search input::-webkit-search-cancel-button {
  display: none;
}

.faq-results {
  display: none;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Secciones ──────────────────────────────────────────── */

.faq-section {
  margin: 36px 0;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.faq-section-header > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(31, 111, 104, 0.10);
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

/* ── Items individuales (details/summary) ───────────────── */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.faq-item[open] {
  border-color: rgba(31, 111, 104, 0.32);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 220ms ease, border-color 220ms ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--teal);
}

.faq-item summary:hover {
  background: var(--paper-2);
}

.faq-answer {
  padding: 4px 22px 22px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer strong {
  color: var(--ink);
}

.faq-answer a {
  color: var(--teal-dark);
  border-bottom: 1px solid rgba(31, 111, 104, 0.35);
  transition: color 160ms ease, border-color 160ms ease;
}

.faq-answer a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ── CTA final ──────────────────────────────────────────── */

.faq-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  border-radius: 14px;
  color: var(--white);
  box-shadow: 0 16px 40px rgba(16, 32, 39, 0.18);
}

.faq-cta > i {
  font-size: 2rem;
  color: var(--gold);
}

.faq-cta h3 {
  margin: 0 0 4px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  color: var(--white);
}

.faq-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.faq-cta .button {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .faq-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .faq-cta > i {
    margin: 0 auto;
  }
}
