/* Página /faq — visualmente alineada con las páginas legales (privacidad,
   condiciones). Reutilizamos la rejilla 240px + contenido, el TOC sticky y
   las cabeceras serif con acento teal. Los estilos del bloque <details>
   viven en assets/css/shared/faq.css (compartidos con el FAQ embebido). */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.faq-hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(46,182,188,.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 0% 60%, rgba(46,182,188,.08), transparent 60%);
  pointer-events: none;
}
.faq-hero .wrap { position: relative; max-width: 760px; }

.faq-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--teal-soft);
  border: 1px solid rgba(46,182,188,.3);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
.faq-hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

.faq-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 24px; text-wrap: balance;
}
.faq-hero h1 em { font-style: italic; color: var(--teal-deep); font-weight: 400; }

.faq-hero .lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 600px; margin: 0;
}
.faq-hero .lede b { color: var(--ink); font-weight: 600; }

/* ── Layout principal: rejilla TOC + contenido ──────────────────────── */
.faq-page {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 72px; padding: 64px 0 96px; align-items: start;
  max-width: 1240px; margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}
@media (max-width: 900px) { .faq-page { grid-template-columns: 1fr; gap: 32px; } }

/* ── TOC sticky ─────────────────────────────────────────────────────── */
.faq-toc { position: sticky; top: 96px; align-self: start; }
@media (max-width: 900px) {
  .faq-toc {
    position: static; padding: 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  }
}

.faq-toc-title {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.faq-toc-title::before { content: ""; width: 24px; height: 1px; background: var(--muted); }

.faq-toc-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: faqtoc;
  display: flex; flex-direction: column; gap: 4px;
}
.faq-toc-list li { counter-increment: faqtoc; margin: 0; }

.faq-toc-list a {
  display: flex; gap: 12px; padding: 8px 0;
  font-size: 14px; color: var(--ink-2);
  border-left: 2px solid transparent;
  padding-left: 14px; margin-left: -16px;
  border-bottom: 0;
  transition: color .15s, border-color .15s, padding-left .15s;
  text-decoration: none;
}
.faq-toc-list a::before {
  content: counter(faqtoc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px;
}
.faq-toc-list a:hover { color: var(--teal-deep); border-color: var(--teal); }
.faq-toc-list a.is-active { color: var(--ink); border-color: var(--teal-deep); font-weight: 500; }

/* ── Secciones ─────────────────────────────────────────────────────── */
.faq-sections { min-width: 0; max-width: 760px; }

.faq-section {
  padding-top: 56px; margin-top: 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.faq-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }

.faq-section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 24px; text-wrap: balance;
}
.faq-section-title em { font-style: italic; color: var(--teal-deep); }

.faq-section .faq-list {
  display: flex; flex-direction: column; gap: 8px;
}

/* ── CTA final ──────────────────────────────────────────────────────── */
.faq-cta {
  background: var(--ink); color: var(--white);
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.faq-cta::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.18; pointer-events: none;
}
.faq-cta .wrap { max-width: 640px; position: relative; }

.faq-cta h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--white);
}
.faq-cta h2 em { font-style: italic; color: var(--teal); }

.faq-cta p {
  font-size: 16.5px; line-height: 1.55;
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}

.faq-cta .btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--ink);
}
.faq-cta .btn-primary:hover { background: var(--white); color: var(--ink); }
