/* ==========================================================================
   FAQ.CSS
   "Preguntas Frecuentes" accordion.
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-brand-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  padding: 1.25rem;
  cursor: pointer;
}

.faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item__question {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.faq-icon {
  color: rgba(44, 30, 22, 0.5);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-brand-accent);
}

.faq-content {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.faq-content.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-content__text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.625;
}
