/*
 * Widget sy-faq. Medidas: design/home.md §11. Cada ítem es una tarjeta;
 * abierto: borde verde, sombra y el + girado a ×.
 */

.sy-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sy-faq__item {
	border: 1px solid var(--sy-line);
	border-radius: 20px;
	background: var(--sy-white);
	transition: border-color var(--sy-fast) var(--sy-ease), box-shadow var(--sy-fast) var(--sy-ease);
}

.sy-faq__item[open] {
	border-color: rgba(13, 159, 35, 0.5);
	box-shadow: 0 18px 40px -28px rgba(10, 23, 145, 0.45);
}

.sy-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 18px;
	color: var(--sy-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
	list-style: none;
	cursor: pointer;
}

.sy-faq__q::-webkit-details-marker {
	display: none;
}

.sy-faq__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #EEF1FB;
	color: var(--sy-ultramarine);
	transition: background-color var(--sy-fast) var(--sy-ease);
}

.sy-faq__icon::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("../../icons/plus.svg") center / contain no-repeat;
	mask: url("../../icons/plus.svg") center / contain no-repeat;
	transition: transform var(--sy-fast) var(--sy-ease);
}

.sy-faq__item[open] .sy-faq__icon {
	background: var(--sy-lime);
	color: var(--sy-deep);
}

.sy-faq__item[open] .sy-faq__icon::before {
	transform: rotate(45deg);
}

.sy-faq__a {
	padding: 0 18px 20px;
	color: var(--sy-text);
	font-size: 15px;
	line-height: 24px;
}

.sy-faq__a p {
	margin: 0 0 0.8em;
}

.sy-faq__a p:last-child {
	margin-bottom: 0;
}

@media (min-width: 1024px) {
	.sy-faq { gap: 14px; }

	.sy-faq__q {
		min-height: 76px;
		padding: 0 25px;
		font-size: 18px;
		line-height: 25.2px;
	}

	.sy-faq__a {
		padding: 0 25px 23px;
		font-size: 16px;
		line-height: 26.4px;
	}
}
