/**
 * Nexo FAQ Accordion — estilos estructurales del wrapper
 * Mismas clases que el export de Webflow (.faq-list-wrapper, .faq-item,
 * .faq-header, .faq-question, .faq-item-icon, .faq-item-content,
 * .faq-item-content-p) para que cualquier CSS que ya tengas apuntando a
 * esas clases siga aplicando tal cual. Esto es solo una base razonable
 * por si no tienes CSS propio para ellas todavía — puedes sobreescribir
 * cualquier valor desde tu propio CSS o desde la pestaña "Estilo" del
 * widget en Elementor.
 */

.faq-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-item {
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.faq-question {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

/* Ícono +/- simple en CSS (sin Lottie): dos líneas que forman una cruz;
   la línea vertical se encoge y desaparece al abrir, dejando el signo "-" */
.faq-item-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-icon-line {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 1px;
}

.faq-icon-line--h {
  width: 14px;
  height: 2px;
}

.faq-icon-line--v {
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-icon-line--v {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* Panel de respuesta: altura animada en JS (0 <-> scrollHeight <-> auto) */
.faq-item-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-item-content-p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #5b6178;
}

.faq-item-content-p p {
  margin: 0 0 12px;
}

.faq-item-content-p p:last-child {
  margin-bottom: 0;
}

.faq-item-content-p a {
  color: inherit;
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .faq-list-wrapper {
    gap: 12px;
  }

  .faq-header {
    padding: 16px 18px;
    gap: 12px;
  }

  .faq-question {
    font-size: 15.5px;
  }

  .faq-item-content-p {
    padding: 0 18px 16px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon-line,
  .faq-item-content {
    transition: none !important;
  }
}
