/* ======================================================
   FAQ EDITORIAL – SINTEGRAD
   ======================================================
   Este archivo define únicamente el estilo del módulo FAQ.
   No debe afectar ni ser afectado por otros módulos.
   ====================================================== */

/* ================= CONTENEDOR GENERAL ================= */

.faq-editorial-wrapper {
  background: #080808; /* Ritmo Visual: Negro Carbón */
  padding: 6rem 0;
  margin: 0;
}

.faq-editorial {
  max-width: 1200px; /* Ancho editorial premium (desktop) */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= HEADER ================= */

.faq-editorial__header {
  max-width: 1200px;
  margin-bottom: 3.5rem;
}

.faq-editorial__header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.faq-editorial__header p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 680px; /* Control de lectura, no de layout */
}

/* ================= LISTA ================= */

.faq-editorial__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ================= ITEM ================= */

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1.5rem;
}

/* ================= PREGUNTA ================= */

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ================= ICONO ================= */

.faq-icon {
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

/* ================= RESPUESTA ================= */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease;
}

.faq-answer p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 520px; /* Lectura cómoda */
}

/* ================= ESTADO ACTIVO ================= */

.faq-item.is-open .faq-answer {
  max-height: 320px;
  opacity: 1;
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .faq-editorial {
    margin: 5rem auto;
  }

  .faq-editorial__header h2 {
    font-size: 2rem;
  }
}
