/* ==========================================================================
   LicitaciónYa — Interactive FAQ Accordion Component
   Compact & Direct
   ========================================================================== */

.faq-section {
  padding: 3.5rem 0 4rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: var(--brand-blue);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--brand-navy);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  user-select: none;
  gap: 0.75rem;
}

.faq-item.active .faq-question-btn {
  color: var(--brand-blue);
}

.faq-icon {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
  color: var(--text-dim);
  flex-shrink: 0;
  font-weight: 400;
}

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

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer-wrapper {
  max-height: 350px;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer-content {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .faq-section {
    padding: 2.25rem 0 3rem;
  }
}
