/* ==========================================================================
   Mil Suspiros · Sección 4 · Indagación
   --------------------------------------------------------------------------
   El cuaderno de la imagen de fondo cubre la pantalla. El "escenario" se
   coloca exactamente sobre la parte opaca del cuaderno (medida por píxeles,
   sin la sombra: x 1,2 %–98,3 %, y 22,2 %–79,7 %), así los recuadros y el título quedan
   siempre sobre su página.
   ========================================================================== */

.ans-ms-research {
	container-type: size;
	background: #fff;
	/* Ancho de la imagen completa para que el cuaderno cubra la sección. */
	--iw: max(calc(100cqw / 0.971), calc(100cqh * 1.6887 / 0.971));
}

.ans-ms-research__stage {
	position: absolute;
	width: calc(var(--iw) * 0.971);
	height: calc(var(--iw) * 0.575);
	left: calc(50cqw - var(--iw) * 0.971 / 2);
	top: calc(50cqh - var(--iw) * 0.575 / 2);
}

.ans-ms-research__bg {
	position: absolute;
	inset: 0;
}

.ans-mspage .ans-ms-research__img {
	position: absolute;
	width: calc(100% / 0.971);
	left: calc(-100% * 0.012 / 0.971);
	top: calc(-100% * 0.222 / 0.575);
	max-width: none;
	height: auto;
}

.ans-ms-research__page {
	position: absolute;
	top: 0;
	bottom: 0;
}

.ans-ms-research__page--left {
	left: 0;
	width: 49%;
}

.ans-ms-research__page--right {
	left: 51%;
	width: 49%;
}

.ans-ms-research__box {
	position: absolute;
	max-height: 40%;
	overflow: hidden;
	padding: 1.5em 1.9em;
	font-size: var(--ms-text);
}

.ans-ms-research__box--light {
	left: 12%;
	top: 12%;
	width: 82%;
}

.ans-ms-research__box--wine {
	left: 4%;
	bottom: 9%;
	width: 88%;
}

.ans-ms-research__text {
	font-size: inherit;
	line-height: 1.6;
	letter-spacing: var(--ans-tracking);
	text-align: left;
}

.ans-ms-research__box--light .ans-ms-research__text {
	color: #000;
}

.ans-ms-research__box--wine .ans-ms-research__text {
	color: #fff;
}

.ans-ms-research__title {
	position: absolute;
	left: 10%;
	top: 10.5%;
	z-index: 2;
	font-size: 2.9cqw;
	color: var(--ms-wine);
}

@media (max-width: 767px) {
	.ans-ms-research {
		/* El cuaderno cubre todo el alto (se ve la zona del lomo). */
		--iw: calc(100cqh / 0.575 * 1.01);
	}

	.ans-ms-research__stage {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 2.4vh;
		inset: 0;
		width: auto;
		height: auto;
		padding: 76px 20px 28px;
	}

	.ans-ms-research__bg {
		position: absolute;
		inset: 0;
		overflow: hidden;
	}

	.ans-mspage .ans-ms-research__img {
		width: var(--iw);
		left: calc(50% - var(--iw) * 0.497);
		top: calc(50% - var(--iw) * 0.5105);
	}

	.ans-ms-research__page {
		position: relative;
		inset: auto;
		width: auto;
		display: flex;
		flex-direction: column;
		gap: 2.4vh;
	}

	.ans-ms-research__page--left {
		order: 2;
	}

	.ans-ms-research__page--right {
		display: contents;
	}

	.ans-ms-research__title {
		position: relative;
		order: 1;
		left: auto;
		top: auto;
		align-self: center;
		font-size: 8.6vw;
	}

	.ans-ms-research__box,
	.ans-ms-research__box--light,
	.ans-ms-research__box--wine {
		position: relative;
		inset: auto;
		width: auto;
		max-height: 39.5vh;
		padding: 0.9em 1em;
	}

	.ans-ms-research__box--wine {
		order: 3;
	}
}
