/* ══════════ Secciones extra: FAQ · Respaldo · Cobertura · Glosario ══════════ */

.ext-wrap { max-width: 1440px; margin: 0 auto; }
.ext-intro {
  font-size: 18px; line-height: 1.65; color: var(--mut);
  max-width: 640px; margin-top: 22px; text-wrap: pretty;
}

/* ═══ FAQ Acordeón ═══ */
.faq-list { display: grid; gap: 10px; margin-top: 48px; }

.faq-item {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(255,255,255,0.008) 100%), var(--bg2);
  border: 1px solid rgba(180,170,155,0.10);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--fire); opacity: 0.5; transition: opacity 0.3s, height 0.3s;
}
.faq-item[open] { border-color: rgba(242,112,29,0.22); }
.faq-item[open]::before { opacity: 1; height: 3px; }

.faq-item summary {
  cursor: pointer; padding: 20px 52px 20px 24px;
  list-style: none; position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 8px; }

.faq-item summary h3 {
  font-family: var(--disp); font-weight: 700; font-size: clamp(16px, 2vw, 19px);
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); line-height: 1.3;
  margin: 0;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--disp); font-weight: 800; font-size: 22px; color: var(--acc);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-a {
  padding: 0 24px 22px; font-size: 16px; line-height: 1.65;
  color: var(--mut); max-width: 760px;
}
.faq-a p { margin: 0; }

/* ── Búsqueda FAQ ── */
.faq-search {
  display: block; width: 100%; max-width: 480px; margin-top: 28px; padding: 12px 18px;
  background: rgba(243,239,232,0.04); border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); font-family: var(--body);
  font-size: 15px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-search:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(242,112,29,0.1); }
.faq-search::placeholder { color: var(--dim); }

/* ── Tabs de categoría ── */
.faq-tabs {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px;
}
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tab {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  color: var(--mut); cursor: pointer; font-family: var(--body);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  white-space: nowrap;
}
.faq-tab:hover { border-color: rgba(242,112,29,0.2); color: var(--ink); }
.faq-tab.on {
  background: rgba(242,112,29,0.1); border-color: var(--acc); color: var(--acc);
}

/* ── Contenedor scrollable FAQ ── */
.faq-scroll {
  max-height: 70vh; overflow-y: auto; margin-top: 16px;
  scrollbar-width: thin; scrollbar-color: rgba(242,112,29,0.2) transparent;
  scroll-behavior: smooth;
}
.faq-scroll::-webkit-scrollbar { width: 5px; }
.faq-scroll::-webkit-scrollbar-track { background: transparent; }
.faq-scroll::-webkit-scrollbar-thumb { background: rgba(242,112,29,0.25); border-radius: 3px; }

.faq-date {
  margin-top: 32px; font-size: 13px; color: var(--dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ═══ Respaldo ═══ */
.resp-card {
  position: relative; margin-top: 48px; padding: 44px 36px 40px;
  background: linear-gradient(145deg, rgba(255,255,255,0.025) 0%, transparent 50%), var(--bg2);
  border: 1px solid rgba(180,170,155,0.12); border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.25);
}
.resp-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fire);
  box-shadow: 0 0 10px rgba(242,112,29,0.35), 0 2px 14px rgba(242,112,29,0.15);
}
.resp-text {
  font-size: 18px; line-height: 1.7; color: var(--mut); max-width: 760px; text-wrap: pretty;
}
.resp-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 14px 24px;
  background: rgba(242,112,29,0.06); border: 1px solid rgba(242,112,29,0.18);
  border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.01em;
}
.resp-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245,166,35,0.6);
}

/* ═══ Cobertura / Provincias ═══ */
.prov-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px; margin-top: 40px;
}
.prov-card {
  position: relative; padding: 16px 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.018) 0%, transparent 60%), var(--bg2);
  border: 1px solid rgba(180,170,155,0.08); border-radius: 7px;
  overflow: hidden; transition: border-color 0.3s;
}
.prov-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--fire); opacity: 0.4; transition: opacity 0.3s;
}
.prov-card:hover { border-color: rgba(242,112,29,0.2); }
.prov-card:hover::before { opacity: 1; }
.prov-name {
  font-family: var(--disp); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink);
  line-height: 1.2;
}
.prov-cap {
  display: block; font-size: 13px; color: var(--dim); margin-top: 3px;
  font-weight: 500;
}
.prov-tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--acc); font-weight: 700; margin-top: 4px;
}

/* ═══ Glosario — nube de chispas ═══ */
.gloss-wrap { max-width: 1440px; margin: 0 auto; }
.gloss-cat { margin-top: 40px; }
.gloss-cat h3 {
  font-family: var(--disp); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.gloss-cat h3::before {
  content: ""; width: 18px; height: 2px; background: var(--fire); flex-shrink: 0;
}
.gloss-lead {
  font-size: 14px; color: var(--dim); margin-top: 6px; margin-bottom: 14px;
  font-style: italic;
}
.chip-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.chip {
  display: inline-block; padding: 6px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(180,170,155,0.08);
  border-radius: 5px; font-size: 13px; color: var(--mut);
  letter-spacing: 0.01em; transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.chip:hover { border-color: rgba(242,112,29,0.25); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .chip {
    animation: chipFloat var(--dur, 6s) ease-in-out infinite alternate;
    animation-delay: var(--del, 0s);
  }
  @keyframes chipFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(var(--dy, -3px))); }
  }
}

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
  .resp-card { padding: 30px 20px 28px; }
  .resp-text { font-size: 16px; }
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-item summary { padding: 18px 48px 18px 18px; }
  .faq-a { padding: 0 18px 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip { animation: none !important; }
}

/* Fix ya no necesario — .solid cubre todo */

/* Fallback: si JS no carga, el contenido se ve igual */
.no-js [data-reveal], .no-js .prov-card { opacity: 1 !important; transform: none !important; }

/* ═══ Disclaimer materiales ═══ */
.tar-disclaimer {
  margin-top: 40px; padding: 18px 22px;
  background: rgba(243,239,232,0.02); border: 1px dashed rgba(243,239,232,0.08);
  border-radius: 8px; font-size: 13px; line-height: 1.6; color: var(--dim);
}
.tar-disclaimer strong { color: var(--mut); }

/* ═══ CTA Reseñas ═══ */
.review-cta {
  text-align: center; padding: 60px 24px; border-top: 1px solid var(--line);
  position: relative; z-index: 2;
  background: var(--bg);
}
.review-cta p {
  font-size: 16px; color: var(--mut); max-width: 560px; margin: 0 auto 24px;
  line-height: 1.65; text-wrap: pretty;
}
.review-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.review-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--mut);
  transition: border-color 0.3s, color 0.3s;
}
.review-link:hover { border-color: var(--acc); color: var(--ink); }
