/* FAQ Contenedor general */
#faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
}

/* Título principal */
#faq-line h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Índice FAQ */
.faq-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.faq-index li {
  margin: 8px 12px;
}

.faq-index a {
  text-decoration: none;
  color: #ffffff;
  padding: 8px 14px;
  border: 1px solid #ffffff;
  background-color: #f6c23a;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.faq-index a:hover {
  background-color: #ffffff;
  color: #f6c23a;
  border: 1px solid #f6c23a;
}

/* Título de sección */
section.anchor h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #34495e;
  border-left: 6px solid #ffefbe;
  padding-left: 15px;
}

/* Item FAQ */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

/* Pregunta */
.faq-item-q {
  cursor: pointer;
  background-color: #ffefbe;
  padding: 15px 20px;
  border-radius: 6px;
  transition: background 0.3s;
  position: relative;
}

.faq-item-q:hover {
  background-color: #d6e8ff;
}

.faq-item-q p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Flecha indicador */
.faq-item-q::after {
  content: '▼';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 1rem;
  color: #555;
}

.faq-item-q.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Respuesta */
.faq-item-a {
  padding: 15px 20px;
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  background-color: #fff;
  border-left: 3px solid antiquewhite;
  border-bottom: 3px solid antiquewhite;
  margin-top: 10px;
  border-radius: 0 6px 6px 6px;
}

.faq-item-a a {
  color: #cf6a6a;
  text-decoration: underline;
}

/* Mostrar respuesta cuando está activa */
.faq-item-q.active + .faq-item-a {
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .faq-index {
    flex-direction: column;
    align-items: center;
  }

  .faq-index li {
    margin: 6px 0;
  }

  #faq-line h1 {
    font-size: 1.8rem;
  }

  section.anchor h2 {
    font-size: 1.5rem;
  }
}


