/* Preguntas frecuentes: acordeón nativo con <details>/<summary>.
   Sin JavaScript, accesible por teclado y con el buscador del navegador. */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.4rem rgba(13, 71, 161, 0.07);
}

.faq-item[open] {
  border-color: rgba(13, 71, 161, 0.22);
  box-shadow: 0 0.75rem 2rem rgba(13, 71, 161, 0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: #212529;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

/* Quita el triángulo por defecto en todos los navegadores. */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

.faq-question:hover {
  color: #0d47a1;
}

.faq-question:focus-visible {
  border-radius: 1rem;
  outline: 3px solid rgba(33, 150, 243, 0.35);
  outline-offset: -3px;
}

.faq-icon {
  flex: 0 0 auto;
  color: #0d47a1;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  color: #6c757d;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  .faq-question {
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon {
    transition: none;
  }
}
