:root {
  --faq-ease: cubic-bezier(0.25, 1, 0.3, 1);
}

/* ==== CONTENEDOR GENERAL ==== */
.sectionFAQ {
  background: var(--neutro1);
  padding: 100px 0;
  font-family: "Lexend Deca", sans-serif;
}

.sectionFAQ__container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.sectionFAQ__title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--neutro2);
  margin: 0 0 10px;
}

.sectionFAQ__subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 620px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* ==== LISTA ==== */
.faq__items {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==== ITEM ==== */
.faq__item {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--faq-ease);
}

/* ==== BOTÓN DE PREGUNTA ==== */
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neutro2);
  border-radius: 10px;
  transition: background 0.4s var(--faq-ease), color 0.4s var(--faq-ease);
}

/* ==== ICONO ==== */
.faq__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  position: relative;
  transition: transform 0.3s var(--faq-ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--neutro2);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: all 0.3s var(--faq-ease);
}

.faq__icon::after {
  width: 2px;
  height: 14px;
}

/* ==== PANEL ==== */
.faq__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  will-change: height, opacity, transform;
  transition:
    height 0.6s var(--faq-ease),
    opacity 0.5s ease-out,
    transform 0.6s var(--faq-ease);
}

/* ==== CONTENIDO ==== */
.faq__answer {
  padding: 20px 28px 26px;
  font-size: 0.96rem;
  color: #555;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s var(--faq-ease);
}

/* ==== ESTADO ABIERTO ==== */
.faq__item.is-open {
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.faq__item.is-open .faq__question {
  background: var(--color3);
  color: #fff;
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: #fff;
}

.faq__item.is-open .faq__icon::after {
  opacity: 0;
}

/* Panel visible */
.faq__item.is-open .faq__panel {
  opacity: 1;
  transform: translateY(0);
}

/* Texto animado */
.faq__item.is-open .faq__answer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
  padding-bottom: 0px;
}

/* ==== SIN BORDES EN CERRADO ==== */
.faq__item:not(.is-open) {
  box-shadow: none;
  border: none;
  background: transparent;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 640px) {
  .sectionFAQ__title {
    font-size: 1.8rem;
  }
  .faq__question {
    padding: 18px;
  }
  .faq__answer {
    padding: 18px;
  }
}
