/* FAQs en ficha de producto - App Seo & Sem (https://microappclub.com)
   Hereda la tipografía del tema. Colores sobrescribibles desde el CSS del tema:
   .faqp { --faqp-border: #ddd; --faqp-accent: #000; } */
.faqp {
  --faqp-border: #e3e3e3;
  --faqp-accent: currentColor;
  --faqp-bg-open: #fafafa;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  box-sizing: border-box;
  font-family: inherit;
}
.faqp *,
.faqp *::before,
.faqp *::after { box-sizing: border-box; }

.faqp-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.faqp-list { border-top: 1px solid var(--faqp-border); }

.faqp-item { border-bottom: 1px solid var(--faqp-border); }
.faqp-item[open] { background: var(--faqp-bg-open); }

.faqp-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px;
  margin: 0;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faqp-q::-webkit-details-marker { display: none; }
.faqp-q::marker { content: ''; }
.faqp-q:focus-visible { outline: 2px solid var(--faqp-accent); outline-offset: -2px; }
.faqp-q:hover .faqp-q-text { text-decoration: underline; text-underline-offset: 3px; }

/* Icono + / − */
.faqp-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.faqp-icon::before,
.faqp-icon::after {
  content: '';
  position: absolute;
  background: var(--faqp-accent);
  transition: transform .2s ease, opacity .2s ease;
}
.faqp-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faqp-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faqp-item[open] .faqp-icon::after { transform: scaleY(0); opacity: 0; }

.faqp-a {
  padding: 0 14px 18px;
  font-size: .95rem;
  line-height: 1.65;
  opacity: .9;
}
.faqp-a > :first-child { margin-top: 0; }
.faqp-a > :last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .faqp { margin: 24px 0; }
  .faqp-title { font-size: 1.2rem; }
  .faqp-q { padding: 14px 4px; font-size: .95rem; }
  .faqp-a { padding: 0 4px 16px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faqp-icon::before, .faqp-icon::after { transition: none; }
}
