/*
 * Bloque de preguntas frecuentes.
 *
 * Acompana a template-parts/faq-lista.php. Se encola solo donde ese bloque se
 * usa, no en todo el sitio.
 *
 * Usa <details>/<summary> nativos: el abrir y cerrar lo hace el navegador, sin
 * una linea de JavaScript, y funciona con teclado y lectores de pantalla sin
 * que haya que agregar roles ni aria-expanded a mano.
 */

.vrlz-faq {
	background: #0b0b12;
	color: #f4f4f7;
	padding: 48px 20px 64px;
}

.vrlz-faq-inner {
	max-width: var(--wp--custom--ancho--general);
	margin: 0 auto;
}

.vrlz-faq-titulo {
	margin: 0 0 24px;
	font-size: clamp(1.35rem, 3.2vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: center;
}

.vrlz-faq-lista {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vrlz-faq-item {
	background: #14141f;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 12px;
	overflow: hidden;
}

.vrlz-faq-item:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.vrlz-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}

/* El triangulo por defecto sobra: el chevron propio ya indica el estado. */
.vrlz-faq-item summary::-webkit-details-marker { display: none; }
.vrlz-faq-item summary::marker { content: ''; }

.vrlz-faq-item summary:focus-visible {
	outline: 2px solid #e1306c;
	outline-offset: -2px;
}

.vrlz-faq-chevron {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

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

.vrlz-faq-body {
	padding: 0 20px 18px;
	color: #a9a9bd;
	line-height: 1.65;
	/* La caja acompana el ancho general, pero el texto no: a 1420px una linea
	   de respuesta pasa de 200 caracteres y se vuelve incomoda de leer. */
	max-width: var(--wp--custom--ancho--texto);
}

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