/* ==========================================================================
   FAQ (#preguntas) — native <details>/<summary> accordion (keyboard and
   screen-reader support built in, no JS). The "+" rotates when open.
   ========================================================================== */

.faq__header {
  grid-column: 1 / span 4;
  align-self: start;
}

.faq__header.section-header:has(+ *) {
  margin-bottom: 0;
}

.faq__list {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--color1);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q .icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  transition: transform .3s var(--ease-out-cubic);
}

.faq__item[open] .faq__q .icon {
  transform: rotate(45deg);
}

.faq__q:focus-visible {
  outline-offset: 2px;
}

.faq__a {
  max-width: 60rem;
  padding-bottom: var(--space-5);
  color: var(--muted);
  line-height: var(--leading-body);
}

@media (max-width: 1023px) {
  .faq__header { grid-column: 1 / span 11; }

  .faq__header.section-header:has(+ *) { margin-bottom: var(--space-7); }

  .faq__list { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .faq__header { grid-column: 1 / -1; }

  .faq__q {
    padding-block: var(--space-4);
    font-size: var(--text-body);
  }
}
