/* Preguntas frecuentes — Mendoza Insights */

.faq-section {
  padding: 4rem 0;
  background: #fff;
}

.faq-section__inner {
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.faq-intro {
  position: sticky;
  top: 7rem;
}

.faq-intro__eyebrow {
  margin: 0 0 0.65rem;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-steel, #19507a);
}

.faq-intro__title {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary-logo, #1f3575);
  text-transform: none;
}

h2.faq-intro__title {
  text-transform: none;
  letter-spacing: -0.025em;
}

.faq-intro__description {
  margin: 1rem 0 0;
  max-width: 26rem;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--products-muted, #64748b);
}

.faq-help {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 1rem;
  background: rgba(25, 80, 122, 0.045);
  border-left: 3px solid rgba(25, 80, 122, 0.3);
}

.faq-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--primary-steel, #19507a);
}

.faq-help__icon svg {
  width: 20px;
  height: 20px;
}

.faq-help strong {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  color: var(--primary-logo, #1f3575);
}

.faq-help p {
  margin: 0.2rem 0 0.45rem;
  font-family: Inter, sans-serif;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--products-muted, #64748b);
}

.faq-help a {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-steel, #19507a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  border-top: 1px solid var(--products-border, #e2e8f0);
}

.faq-item {
  border-bottom: 1px solid var(--products-border, #e2e8f0);
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 72px;
  padding: 0.9rem 0.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--primary-logo, #1f3575);
}

.faq-item__trigger:hover {
  background: rgba(25, 80, 122, 0.025);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--primary-steel, #19507a);
  outline-offset: 3px;
}

.faq-item__category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(25, 80, 122, 0.12);
  border-radius: 8px;
  background: rgba(25, 80, 122, 0.05);
  color: var(--primary-steel, #19507a);
}

.faq-item__category-icon svg {
  width: 18px;
  height: 18px;
}

.faq-item__question {
  font-family: Inter, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-logo, #1f3575);
}

.faq-item__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary-steel, #19507a);
  transition: transform 0.2s ease;
}

.faq-item__toggle svg {
  width: 18px;
  height: 18px;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__toggle {
  transform: rotate(180deg);
}

.faq-item__panel {
  overflow: hidden;
}

.faq-item__answer {
  padding: 0 3.75rem 1.2rem 3.25rem;
}

.faq-item__answer p {
  margin: 0;
  max-width: 44rem;
  font-family: Inter, sans-serif;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--neutral-text, #4b5563);
}

.faq-item:has(.faq-item__trigger[aria-expanded="true"]) {
  background: rgba(25, 80, 122, 0.025);
}

.faq-item__panel:not([hidden]) .faq-item__answer {
  animation: faq-answer-in 0.18s ease-out;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel:not([hidden]) .faq-item__answer {
    animation: none;
  }

  .faq-item__toggle {
    transition: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .faq-section__inner {
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 2.5rem;
  }

  .faq-intro {
    position: static;
  }
}

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

  .faq-section__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: min(100% - 3rem, 74rem);
  }

  .faq-intro {
    position: static;
  }

  .faq-intro__description {
    max-width: none;
  }

  .faq-help {
    margin-top: 1.25rem;
  }

  .faq-item__trigger {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 0.7rem;
    min-height: 64px;
    padding: 0.8rem 0.15rem;
  }

  .faq-item__category-icon {
    width: 32px;
    height: 32px;
  }

  .faq-item__question {
    font-size: 0.88rem;
  }

  .faq-item__answer {
    padding: 0 0 1rem 2.9rem;
  }

  .faq-item__answer p {
    font-size: 0.82rem;
  }
}
