/* Preguntas frecuentes (src/pages/questions-frequentes.astro). Sin clases de Nicepage; colores y
   tipografía como la página «Nous» (css/nous.css) y la 404. */

.faq {
  font-family: Montserrat, sans-serif;
  color: #3d4448;
  line-height: 1.65;
  padding-bottom: 90px;
  background: #f3f7f8;
}

.faq-contenedor {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Cabecera con foto, como la de la página «Nous» */
.faq-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(55vh, 480px);
  overflow: hidden;
  background-color: #1f2a30;
}

.faq-hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 25, 30, 0.8) 0%, rgba(15, 25, 30, 0.4) 55%, rgba(15, 25, 30, 0.1) 100%);
}

.faq-hero__texto {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.faq .faq-hero h1,
.faq-hero .faq-kicker {
  color: #fff;
}

.faq-hero__lead {
  margin: 0;
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Índice de temas */
.faq-indice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 48px;
}

.faq-indice a {
  padding: 8px 18px;
  border: 1px solid #dfe7ea;
  border-radius: 999px;
  background: #fff;
  color: #1f2a30;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.faq-indice a:hover {
  border-color: #018daa;
  color: #018daa;
}

html:has(.faq) {
  scroll-behavior: smooth;
}

.faq-seccion {
  scroll-margin-top: 24px;
}

.faq h1,
.faq h2,
.faq h3 {
  font-family: Montserrat, sans-serif;
  color: #1f2a30;
}

.faq h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

.faq-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #018daa;
}

.faq a {
  color: #018daa;
}

.faq a:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 3px;
}

.faq-seccion {
  margin-bottom: 48px;
}

.faq-seccion h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.faq-pregunta {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 8px;
}

.faq-pregunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.faq-pregunta summary::-webkit-details-marker {
  display: none;
}

/* Signo + que gira a × al abrir */
.faq-pregunta summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #018daa;
  transition: transform 0.2s ease;
}

.faq-pregunta[open] summary::after {
  transform: rotate(45deg);
}

.faq-pregunta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-pregunta summary:hover h3 {
  color: #018daa;
}

.faq-respuesta {
  padding: 0 20px 18px;
}

.faq-respuesta p,
.faq-respuesta ul {
  margin: 0 0 12px;
}

.faq-respuesta > :last-child {
  margin-bottom: 0;
}

.faq-respuesta ul {
  padding-left: 20px;
}

.faq-respuesta li {
  margin-bottom: 4px;
}

.faq-cta {
  margin-top: 56px;
  padding: 36px 30px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}

.faq-cta h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.faq-cta p {
  margin: 0 0 24px;
}

.faq-cta__botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.faq-boton {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #00a2c3;
  border-radius: 999px;
  background-color: #00a2c3;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-boton:hover,
.faq-boton:focus-visible {
  background-color: #018daa;
  border-color: #018daa;
}

.faq-boton--secundario {
  background-color: transparent;
  color: #018daa !important;
}

.faq-boton--secundario:hover,
.faq-boton--secundario:focus-visible {
  color: #fff !important;
}

@media (max-width: 767px) {
  .faq {
    padding-bottom: 60px;
  }

  .faq-contenedor,
  .faq-hero__texto {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-hero {
    min-height: 380px;
  }

  .faq-hero__texto {
    padding-bottom: 32px;
  }

  .faq-indice {
    margin: 28px 0 36px;
  }

  .faq h1 {
    font-size: 1.75rem;
  }

  .faq-pregunta summary {
    padding: 16px;
  }

  .faq-respuesta {
    padding: 0 16px 16px;
  }
}
