/*
 * Estilos del listado de preguntas frecuentes (Rw FAQs).
 * Se apoyan en <details>/<summary> nativos: accesibles y funcionales
 * sin JavaScript. Las variables permiten adaptar el aspecto al estilo
 * general del sitio sin tocar este fichero (o sobreescribirlas desde
 * el widget de Elementor / el CSS del tema).
 */

.rw-faqs-header {
	margin: 0 0 24px;
}

.rw-faqs-header__title {
	margin: 0 0 8px;
	font-family: "Oxygen", sans-serif;
	font-weight: 700;
	font-size: 46px;
	line-height: 56px;
	color: var(--rw-faqs-text);
}

.rw-faqs-header__subtitle {
	margin: 0;
	font-family: "Oxygen", sans-serif;
	font-size: 18px;
	line-height: 1.5;
	color: var(--rw-faqs-text);
}

.rw-faqs {
	--rw-faqs-accent: var(--e-global-color-primary, #828e4c);
	--rw-faqs-text: var(--e-global-color-text, #2b2b2b);
	--rw-faqs-divider: #e3e3e3;

	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.rw-faqs__item {
	border-bottom: 1px solid var(--rw-faqs-divider);
	padding: 18px 0;
}

.rw-faqs__item:last-child {
	border-bottom: none;
}

.rw-faqs__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--rw-faqs-text);
	font-weight: 600;
	font-size: 1.05em;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	transition: color 0.2s ease;
}

.rw-faqs__question::-webkit-details-marker {
	display: none;
}

.rw-faqs__question::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 1.5em;
	font-weight: 300;
	line-height: 1;
	color: var(--rw-faqs-accent);
	transform: rotate(0deg);
	transition: transform 0.25s ease;
}

.rw-faqs__item[open] > .rw-faqs__question::after {
	transform: rotate(45deg);
}

.rw-faqs__question:hover,
.rw-faqs__item[open] > .rw-faqs__question {
	color: var(--rw-faqs-accent);
}

.rw-faqs__question:focus-visible {
	outline: 2px solid var(--rw-faqs-accent);
	outline-offset: 4px;
}

.rw-faqs__question--static {
	cursor: default;
}

.rw-faqs__question--static::after {
	content: none;
}

.rw-faqs__question--static:hover {
	color: var(--rw-faqs-text);
}

.rw-faqs__answer {
	margin-top: 12px;
	color: var(--rw-faqs-text);
	line-height: 1.65;
}

.rw-faqs__answer > :first-child {
	margin-top: 0;
}

.rw-faqs__answer > :last-child {
	margin-bottom: 0;
}

.rw-faqs__empty {
	color: var(--rw-faqs-text);
	font-style: italic;
	opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
	.rw-faqs__question::after {
		transition: none;
	}
}
