/* =================================================================
   Miau FAQ
   ================================================================= */

.miau-faq {
	position: relative;
}

/* Section header (always visible) ----------------------------------- */

.miau-faq__header {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: #003CA5;
	border-radius: 20px;
	cursor: pointer;
	gap: 16px;
}

.miau-faq__section-title {
	color: #B2B7DD;
	font-family: "Outfit", sans-serif;
	font-size: 35px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%;
	letter-spacing: -1.12px;
	margin: 0;
}

/* Toggle icon ------------------------------------------------------- */

.miau-faq__icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	transition: transform 0.3s ease;
	transform: rotate(180deg);
}

.miau-faq__icon svg,
.miau-faq__icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.miau-faq.is-open .miau-faq__icon {
	transform: rotate(0deg);
}

/* Questions container (collapsible) --------------------------------- */

.miau-faq__questions:first-child {
	position: relative;
	z-index: 1;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	margin-top: -20px;
	background-color: rgba(0, 60, 165, 0.40);
	margin: 0px 20px;
	border-radius: 0px 0px 15px 15px;
}
.miau-faq__questions {
	position: relative;
	z-index: 1;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	margin-top: -20px;
	background-color: rgba(0, 60, 165, 0.40);
	margin: 0px 20px;
	border-radius: 0px 0px 0px 0px;
}
.miau-faq__questions:last-child {
	position: relative;
	z-index: 1;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	margin-top: -20px;
	background-color: rgba(0, 60, 165, 0.40);
	margin: 0px 20px;
	border-radius: 0px 0px 15px 15px;
}

.miau-faq.is-open .miau-faq__questions {
	max-height: 2000px;
}

/* Individual question ------------------------------------------------ */

.miau-faq__question {
	padding: 18px 24px;
	cursor: pointer;
}

.miau-faq__question + .miau-faq__question {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Question header --------------------------------------------------- */

.miau-faq__question-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.miau-faq__question-header::after {
	content: '+';
	flex-shrink: 0;
	font-family: "Outfit", sans-serif;
	font-size: 28px;
	font-weight: 300;
	color: #003CA5;
	line-height: 1;
	transition: transform 0.3s ease;
}

.miau-faq__question.is-open .miau-faq__question-header::after {
	content: '−';
}

.miau-faq__question-title {
	color: #003CA5;
	font-family: "Outfit", sans-serif;
	font-size: 25px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%;
	letter-spacing: -0.8px;
	margin: 0;
}

/* Answer (hidden by default, shown on click) ------------------------ */

.miau-faq__answer-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, margin 0.3s ease;
	margin-top: 0;
}

.miau-faq__question.is-open .miau-faq__answer-wrap {
	max-height: 500px;
	margin-top: 12px;
}

.miau-faq__answer {
	color: #003CA5;
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 150%;
	margin: 0;
}

/* Movil ---------------------------------------------------------------
   Los 35px son medida de escritorio: en una pantalla de 393px el titulo de
   seccion se parte en dos lineas y desequilibra la cabecera, que ademas lleva
   el icono al lado. El letter-spacing baja en proporcion (-0,032em): copiarlo
   tal cual dejaria las letras demasiado juntas al reducir el cuerpo. */

@media (max-width: 767px) {

	.miau-faq__section-title {
		font-size: 24px;
		letter-spacing: -0.77px;
	}

	/* La pregunta baja con el titulo, no por gusto: en escritorio es el 71% de el
	   (25 sobre 35) y esa proporcion es la que dice quien manda. Dejandola en 25px
	   con el titulo a 24 quedaba mas grande que el epigrafe que la agrupa. */
	.miau-faq__question-title {
		font-size: 18px;
		letter-spacing: -0.58px;
	}

	.miau-faq__header {
		padding: 16px 18px;
		gap: 12px;
	}
}
