/**
 * FAQs Wake Up! — estilos base del acordeón (frontend).
 *
 * Todos estos valores son sobreescribibles desde el widget de Elementor.
 * Desarrollado por Quevedo Wake Up! Creations — https://wakeupcreations.com
 */

.fwu-accordion {
	--fwu-border-color: #e2e2e2;
	--fwu-icon-color: currentColor;
	margin: 0 0 1.5em;
}

.fwu-accordion__title {
	margin: 0 0 1rem;
}

.fwu-item {
	background: #fff;
	border: 1px solid var(--fwu-border-color);
}

.fwu-item + .fwu-item {
	margin-top: 10px;
}

.fwu-item__heading {
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: inherit;
}

/* El botón es la cabecera clicable. Reset de estilos de botón.
   Se resetea en TODOS los estados para que el tema no cuele su color de
   botón (p. ej. un fondo/color rosa en hover o focus). Los colores que
   definas en Elementor tienen más especificidad y siguen mandando. */
.fwu-item__question,
.fwu-item__question:hover,
.fwu-item__question:focus,
.fwu-item__question:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	background: transparent;
	border: 0;
	box-shadow: none;
	font: inherit;
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.fwu-item__question-text {
	flex: 1 1 auto;
	font-weight: 600;
	color: inherit;
}

.fwu-item__question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* -------- Icono -------- */
.fwu-item__icon {
	flex: 0 0 auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 16px;
	line-height: 1;
	color: var(--fwu-icon-color);
	transition: transform 0.3s ease;
}

.fwu-item__icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

/* Icono por defecto en CSS (signo «+») cuando no se elige uno en Elementor. */
.fwu-item__icon-default,
.fwu-item__icon-default::before,
.fwu-item__icon-default::after {
	box-sizing: border-box;
}

.fwu-item__icon-default {
	position: relative;
	width: 1em;
	height: 1em;
}

.fwu-item__icon-default::before,
.fwu-item__icon-default::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: currentColor;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.fwu-item__icon-default::before {
	width: 1em;
	height: 2px;
	transform: translate(-50%, -50%);
}

.fwu-item__icon-default::after {
	width: 2px;
	height: 1em;
	transform: translate(-50%, -50%);
}

/* Al abrir: el «+» se convierte en «−». */
.fwu-item.is-open .fwu-item__icon-default::after {
	transform: translate(-50%, -50%) scaleY(0);
	opacity: 0;
}

/* Icono personalizado: alternar cerrado/abierto si hay dos iconos. */
.fwu-icon-open {
	display: none;
}

.fwu-has-active-icon .fwu-item.is-open .fwu-icon-closed {
	display: none;
}

.fwu-has-active-icon .fwu-item.is-open .fwu-icon-open {
	display: inline-flex;
}

/* -------- Panel de respuesta -------- */
.fwu-item__panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease;
}

.fwu-item__answer {
	padding: 0 20px 20px;
}

.fwu-item__answer > :first-child {
	margin-top: 0;
}

.fwu-item__answer > :last-child {
	margin-bottom: 0;
}

/* Aviso en el editor cuando no hay preguntas. */
.fwu-empty-notice {
	padding: 1.5em;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	color: #646970;
	text-align: center;
	background: #f6f7f7;
}

/* Respeta la preferencia de reducir movimiento. */
@media ( prefers-reduced-motion: reduce ) {
	.fwu-item__panel,
	.fwu-item__icon,
	.fwu-item__icon-default::before,
	.fwu-item__icon-default::after {
		transition: none;
	}
}
