/* FAQ Blocks – front styles. Colores/tipografías llegan por variables CSS definidas por bloque. */
.adfaq {
	--fq-cols: 2;
	--fq-max: 1320px;
	box-sizing: border-box;
	margin: 2rem 0;
	padding: var(--fq-pad, 40px) 0;
	background: var(--fq-section-bg, transparent);
	font-family: var(--fq-font-text, inherit);
	clear: both;
}
.adfaq *,
.adfaq *::before,
.adfaq *::after { box-sizing: border-box; }

/* Sección de lado a lado (rompe el contenedor del tema, contenido centrado) */
.adfaq--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.adfaq__inner {
	max-width: var(--fq-max);
	margin: 0 auto;
	padding: 0 15px;
}
.adfaq--cols-1 { --fq-cols: 1; }
.adfaq--cols-2 { --fq-cols: 2; }
.adfaq--cols-3 { --fq-cols: 3; }
.adfaq--cols-4 { --fq-cols: 4; }

/* Cabecera */
.adfaq__header { margin: 0 0 1.75rem; }
.adfaq__tag {
	display: inline-block;
	margin: 0 0 .9rem;
	padding: .4em .9em;
	border-radius: calc(var(--fq-radius, 12px) / 2);
	background: var(--fq-tag-bg, #f5a623);
	color: var(--fq-tag-color, #111);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}
.adfaq__title {
	margin: 0 0 .35em;
	color: var(--fq-title-color, inherit);
	font-family: var(--fq-font-title, inherit);
	font-size: var(--fq-title-size, 28px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
}
.adfaq__desc {
	margin: 0;
	color: var(--fq-desc-color, inherit);
	font-size: 1rem;
	line-height: 1.5;
	opacity: .85;
}
.adfaq__desc p:last-child { margin-bottom: 0; }

/* Rejilla */
.adfaq__grid {
	display: grid;
	grid-template-columns: repeat(var(--fq-cols), minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}

/* Tarjeta */
.adfaq__item {
	overflow: hidden;
	border: 1px solid var(--fq-card-border, #e6e6e6);
	border-left: 3px solid var(--fq-card-border, #e6e6e6);
	border-radius: var(--fq-radius, 12px);
	background: var(--fq-card-bg, #fff);
	transition: border-color .25s ease;
}
.adfaq__item.is-open { border-left-color: var(--fq-card-active, #f5a623); }

.adfaq__q { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.adfaq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1.1rem 1.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--fq-q-color, inherit);
	font-family: var(--fq-font-title, inherit);
	font-size: var(--fq-q-size, 16px);
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}
.adfaq__btn:hover,
.adfaq__btn:focus { background: transparent; color: var(--fq-q-color, inherit); outline: none; }
.adfaq__btn:focus-visible { outline: 2px solid var(--fq-card-active, #f5a623); outline-offset: -4px; }
.adfaq__q-text { flex: 1 1 auto; }

/* Icono */
.adfaq__icon {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	width: 2.1em;
	height: 2.1em;
	border-radius: calc(var(--fq-radius, 12px) / 2);
	background: var(--fq-icon-bg, #f5a623);
	color: var(--fq-icon-color, #fff);
	transition: transform .25s ease;
}
.adfaq__icon::before,
.adfaq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	border-radius: 1px;
	transform: translate(-50%, -50%);
}
.adfaq--icon-plus .adfaq__icon::before { width: 46%; height: 2px; }
.adfaq--icon-plus .adfaq__icon::after { width: 2px; height: 46%; }
.adfaq--icon-plus .is-open .adfaq__icon { transform: rotate(45deg); }

.adfaq--icon-chevron .adfaq__icon::before {
	width: .55em;
	height: .55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	background: none;
	border-radius: 0;
	transform: translate(-50%, -65%) rotate(45deg);
}
.adfaq--icon-chevron .adfaq__icon::after { display: none; }
.adfaq--icon-chevron .is-open .adfaq__icon { transform: rotate(180deg); }

/* Respuesta (animación con grid-rows, sin cálculo de alturas) */
.adfaq__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s ease;
}
.adfaq__item.is-open .adfaq__a { grid-template-rows: 1fr; }
.adfaq__a-inner {
	min-height: 0;
	overflow: hidden;
	padding: 0 1.25rem;
	color: var(--fq-a-color, inherit);
	font-size: var(--fq-a-size, 15px);
	line-height: 1.6;
	transition: padding .3s ease;
}
.adfaq__item.is-open .adfaq__a-inner { padding-bottom: 1.25rem; }
.adfaq__a-inner > :last-child { margin-bottom: 0; }
.adfaq__a-inner a { color: inherit; text-decoration: underline; }

/* Responsive */
@media (max-width: 991px) {
	.adfaq--cols-3,
	.adfaq--cols-4 { --fq-cols: 2; }
}
@media (max-width: 767px) {
	.adfaq { --fq-cols: 1 !important; padding: calc(var(--fq-pad, 40px) * .7) 0; }
	.adfaq__btn { padding: 1rem; }
	.adfaq__a-inner { padding-left: 1rem; padding-right: 1rem; }
	.adfaq__title { font-size: calc(var(--fq-title-size, 28px) * .8); }
}
@media (prefers-reduced-motion: reduce) {
	.adfaq__a, .adfaq__a-inner, .adfaq__icon, .adfaq__item { transition: none; }
}
