/* =========================================================
   FAQ PAGE STYLES — Soul Backpackers Hostel
   Archivo: /styles/faqs.css
   Versión: sin sidebar (contenido centrado)
   ========================================================= */

/* --- Sección FAQ --- */
.section--faq{
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background-color: var(--color-offwhite);
}

/* --- Buscador --- */
.faq-search{ margin-top: 1.2rem; text-align: center; }
.faq-search input{
  width: min(900px, 92vw);
  padding: .9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease;
}
.faq-search input:focus{ border-color: var(--color-primary); }

/* --- Contenedor principal (sin sidebar) --- */
.faq-grid{ display: block; }               /* una sola columna */
.faq-main{
  --faq-max: 900px;                        /* cambia ancho si quieres (820–980px) */
  max-width: var(--faq-max);
  margin: 0 auto;                          /* centra el bloque */
  padding-inline: clamp(12px, 3vw, 20px);
}

/* --- Títulos de categoría --- */
.faq-main h1{
  display: inline-block;
  margin: 0 0 .25rem;
  background: linear-gradient(to bottom, #F8E1E9 0%, #F8E1E9 100%);
  background-repeat: no-repeat;
  background-position: 0 80%; 
  background-size: 100% 60%; 
}

/* --- Bloques FAQ --- */
.faq-group{ margin-bottom: 2rem; }
.faq-group details{
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.faq-group details:hover{
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.faq-group summary{
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
.faq-group summary::-webkit-details-marker{ display:none; }
.faq-group summary::after{
  content: "▾"; font-size: 1.1rem; transform: rotate(0);
  transition: transform .25s ease; opacity: .6;
}
.faq-group details[open] summary::after{ transform: rotate(-180deg); opacity: .9; }

.faq-a{
  padding: 1rem 1.2rem 1.2rem;
  line-height: 1.6; font-size: .95rem; color: var(--text-main);
}
.faq-a p{ margin-bottom: .75rem; }
/* Sin resaltes en el texto */
.faq-a strong{ font-weight: 700; color: inherit; }

/* --- Tarjeta de ayuda final --- */
.card{
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.faq-help{
  text-align: center;
  border-style: dashed;
  margin: 2.5rem auto 0;
  max-width: var(--faq-max);
}
.faq-help h3{ margin-bottom: .75rem; font-size: 1.25rem; }
.faq-help p{ margin-bottom: 1rem; }
.faq-help .btn-row{ display:flex; justify-content:center; flex-wrap:wrap; gap:.75rem; }
