/* FAQ en acordeón (CMS 11) · rama faq-acordeon, 28/10/2026. Lo carga cms/page.tpl solo si $cms.id == 11.
 * Todo cuelga de .page-cms-11.ff-faq-on (la pone ff-faq.js): sin JS la página se ve como siempre.
 * Estética del acordeón de landing/faqs.tpl. Paleta: #444445 · #99d1dc (+ #f9f9f9 / #e5e5e5 / #fff de la landing). */

/* Cabecera fija (~107 px en ordenador): el salto a #id deja la pregunta visible. Vale también sin JS. */
.page-cms-11 h2,
.page-cms-11 h3 { scroll-margin-top: 140px; }

.page-cms-11.ff-faq-on { font-family: 'Yantramanav', sans-serif; color: #444445; }
.ff-faq-on .ff-faq-oculto { display: none !important; }
.ff-faq-on [hidden] { display: none !important; }
.ff-faq-on .ff-faq-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buscador */
.ff-faq-on .ff-faq-buscar { margin: 20px 0 12px; }
.ff-faq-on .ff-faq-buscar input {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 12px 15px; border: 1px solid #e5e5e5; border-radius: 0;
  background: #fff; color: #444445; font-family: inherit; font-size: 16px; /* 16 px: iOS no hace zoom */
  -webkit-appearance: none; appearance: none;
}
.ff-faq-on .ff-faq-buscar input:focus { outline: 2px solid #99d1dc; outline-offset: 0; border-color: #99d1dc; }

/* Accesos por tema */
.ff-faq-on .ff-faq-temas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ff-faq-on .ff-faq-temas a {
  padding: 6px 12px; border: 1px solid #99d1dc; color: #444445; background: #fff;
  font-size: 14px; line-height: 1.3; text-decoration: none;
}
.ff-faq-on .ff-faq-temas a:hover,
.ff-faq-on .ff-faq-temas a:focus { background: #99d1dc; color: #fff; }

/* Secciones */
.ff-faq-on h2.ff-faq-seccion { margin: 32px 0 12px; font-size: 20px; color: #444445; }

/* Acordeón */
.ff-faq-on .ff-faq-item { border: 1px solid #e5e5e5; margin-top: -1px; }
.ff-faq-on .ff-faq-item > h3 { margin: 0; padding: 0; font-size: 16px; font-weight: 400; }
.ff-faq-on .ff-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin: 0; padding: 10px 15px; border: 0; border-radius: 0;
  background: #f9f9f9; color: #444445; font-family: inherit; font-size: 16px; font-weight: 400;
  line-height: 1.4; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.ff-faq-on .ff-faq-q::after { content: '+'; flex: none; font-size: 22px; line-height: 1; }
.ff-faq-on .ff-faq-q[aria-expanded="true"]::after { content: '\2212'; }
.ff-faq-on .ff-faq-q:focus-visible { outline: 2px solid #99d1dc; outline-offset: -2px; }
.ff-faq-on .ff-faq-resp { padding: 15px; border-top: 1px solid #e5e5e5; background: #fff; overflow-wrap: anywhere; }
.ff-faq-on .ff-faq-resp > :last-child { margin-bottom: 0; }

/* Sin resultados y cierre */
.ff-faq-on .ff-faq-nada,
.ff-faq-on .ff-faq-cierre { margin: 24px 0; padding: 20px 15px; background: #f9f9f9; text-align: center; }
.ff-faq-on .ff-faq-contacto-tit { margin: 0 0 12px; font-size: 18px; color: #444445; }
.ff-faq-on .ff-faq-btn {
  display: inline-block; margin: 4px; padding: 10px 22px; border: 0;
  background: #99d1dc; color: #fff !important; font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase; text-decoration: none;
}
.ff-faq-on .ff-faq-btn:hover,
.ff-faq-on .ff-faq-btn:focus { background: #444445; color: #fff !important; }
