/* ============================================================
   PREGUNTAS-FRECUENTES.CSS — Estilos específicos de preguntas-frecuentes.html
   ============================================================ */

/* === FAQ === */

/* Salto de línea manual en el subtítulo del hero, solo en escritorio */
.faq-subtitle-break {
  display: none;
}

@media (min-width: 768px) {
  .faq-subtitle-break {
    display: block;
  }
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ded7f6;
  border-radius: 1rem;
  border: 1px solid rgba(176, 184, 217, 0.35);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #453a7a;
  font-family: 'BricolageGrotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-trigger h2,
.faq-trigger h3 {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #453a7a;
  color: #f5f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  position: relative;
  user-select: none;
}

.faq-icon svg {
  overflow: visible;
}

.faq-icon .icon-morph {
  d: path("M10 5 L10 15 M5 10 L15 10");
  transition: d 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-item.open .faq-icon .icon-morph {
  d: path("M6 7 L10 13 M10 13 L14 7");
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.38s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #453a7a;
}

/* === Responsive (solo móvil) === */
@media (max-width: 768px) {
  /* Padding horizontal de la sección FAQ reducido un 50% */
  #faq {
    padding-left: clamp(0.625rem, 2vw, 1.25rem) !important;
    padding-right: clamp(0.625rem, 2vw, 1.25rem) !important;
  }

  /* Más separación entre el botón CTA y la imagen del bocadillo */
  .faq-cta {
    margin-bottom: 6rem;
  }
}
