/*
 * OverFuture — componente ÚNICO de preguntas frecuentes (A4, orden de Aitor del 27/10/2026; SISTEMA_DISENO.md §6 «FAQ» y regla G45).
 * El marcado lo genera includes/faq.php (nunca se escribe a mano ni con módulos sueltos de Divi) y el comportamiento, assets/faq.js.
 * Una caja por pregunta: la pregunta es un <button> a todo el ancho (cualquier punto de la caja cerrada abre), con el mismo «+/−»
 * dibujado en CSS (no depende de ninguna fuente): 24 × 24 px, morado de marca, centrado con la PRIMERA línea de la pregunta y a 24 px
 * del borde derecho en todas las páginas. Sin transiciones ni animaciones (G36): se abre y se cierra al instante.
 * Los tokens --of-* vienen de design-system.css; los valores de reserva permiten que la hoja funcione sola.
 */
.of-faq { margin: 0; padding: 0; }
body #page-container .of-faq__item { position: relative; margin: 0 0 12px !important; padding: 0 !important; background: var(--of-surface, #ffffff); border: 1px solid var(--of-border, #e4def4); border-radius: 16px; box-shadow: none; }
body #page-container .of-faq__item:hover, body #page-container .of-faq__item.is-open { border-color: #c9bff5; }

/* pregunta: <h3> que solo contiene el botón */
body #page-container .of-faq__q { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font: inherit; line-height: 0; text-transform: none !important; letter-spacing: 0 !important; }
body #page-container .of-faq__btn { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%; margin: 0; padding: 20px 24px !important; background: transparent; border: 0 !important; border-radius: 15px; box-shadow: none; text-shadow: none; text-align: left; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; -webkit-appearance: none; appearance: none;
	font-family: var(--of-font-head, Roboto, sans-serif) !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.35 !important; color: var(--of-text, #241d35) !important; }
body #page-container .of-faq__btn:hover { background: var(--of-bg-soft, #f7f5fc); }
body #page-container .of-faq__btn[aria-expanded="true"] { border-radius: 15px 15px 0 0; }
body #page-container .of-faq__btn:focus { outline: none; }
body #page-container .of-faq__btn:focus-visible { outline: 3px solid var(--of-brand, #6849c5); outline-offset: 2px; }
.of-faq__txt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* «+/−» : caja de 24 px a la altura de la primera línea (1,35 em de alto de línea) */
.of-faq__ico { position: relative; flex: 0 0 24px; width: 24px; height: 24px; margin: calc((1.35em - 24px) / 2) 0 0; color: var(--of-brand, #6849c5); }
.of-faq__ico::before, .of-faq__ico::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 1px; }
.of-faq__ico::before { width: 14px; height: 2px; margin: -1px 0 0 -7px; }
.of-faq__ico::after { width: 2px; height: 14px; margin: -7px 0 0 -1px; }
.of-faq__btn[aria-expanded="true"] .of-faq__ico::after { display: none; }

/* respuesta: el relleno va en el interior (el contenedor oculto no deja huecos) */
.of-faq__a-in { padding: 0 24px 22px; color: #4a4360; font-family: var(--of-font-body, "Open Sans", Arial, sans-serif); font-size: 16px; font-weight: 400; line-height: 1.65; text-align: left; }
.of-faq__a-in > :first-child { margin-top: 0; }
.of-faq__a-in > :last-child { margin-bottom: 0; }
body #page-container .of-faq__a-in p { margin: 0 0 12px; padding: 0; color: inherit; font: inherit; text-align: left; }
body #page-container .of-faq__a-in p:last-child { margin-bottom: 0; }
body #page-container .of-faq__a-in ul, body #page-container .of-faq__a-in ol { margin: 0 0 12px; padding: 0 0 0 1.25em; color: inherit; }
body #page-container .of-faq__a-in ul { list-style: disc; }
body #page-container .of-faq__a-in ol { list-style: decimal; }
body #page-container .of-faq__a-in li { margin: 0 0 6px; padding: 0; color: inherit; font: inherit; }
body #page-container .of-faq__a-in a { color: var(--of-brand, #6849c5); text-decoration: underline; text-underline-offset: 3px; }
body #page-container .of-faq__a-in strong { font-weight: 700; color: inherit; }

@media (max-width: 980px) {
	body #page-container .of-faq__btn { padding: 18px 20px !important; font-size: 17px !important; }
	.of-faq__a-in { padding: 0 20px 20px; }
}
