/* ==========================================================================
   Sobre mí · Sección 4 · Experiencia
   --------------------------------------------------------------------------
   Fondo #F7F1EA. Medidas de la referencia; el cuaderno es un contenedor
   (cqw = 1 % de su ancho) con las áreas de texto medidas sobre la imagen:
   página izquierda 16,7 % – 46,7 %, derecha 53,3 % – 82,7 %.
   ========================================================================== */

.ans-ab-exp {
	position: relative;
	background: var(--ans-ab-cream, #f7f1ea);
	overflow: hidden;
}

.ans-ab-exp__stage {
	position: relative;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	aspect-ratio: 800 / 690;
	container-type: inline-size;
}

/* Horizontal: la sección mide exactamente la pantalla; el escenario se
   ajusta para caber completo (los lados quedan con el fondo). */
@media (min-aspect-ratio: 1/1) {
	.ans-ab-exp {
		display: grid;
		align-items: center;
		height: 100vh;
	}

	.ans-ab-exp__stage {
		width: min(100%, calc(100vh * 800 / 690));
	}

	@supports (height: 100svh) {
		.ans-ab-exp {
			height: 100svh;
		}

		.ans-ab-exp__stage {
			width: min(100%, calc(100svh * 800 / 690));
		}
	}
}

/* Título: "E" en Parfumerie + "XPERIENCIA" en Inter Tight Semibold. */
.ans-ab-exp__title {
	position: absolute;
	left: 5.4%;
	top: 1.5%;
	z-index: 3;
	display: flex;
	align-items: baseline;
	margin: 0;
	line-height: 1;
	color: var(--ans-ab-wine, #6b1c29);
	white-space: nowrap;
	pointer-events: none;
}

.ans-ab-exp__initial {
	font-family: var(--ans-font-script);
	font-weight: 400;
	font-size: 19cqw;
	line-height: 1;
}

.ans-ab-exp__rest {
	margin-left: -2.6cqw;
	font-family: var(--ans-font-sans);
	font-weight: 600;
	font-size: 6.1cqw;
	letter-spacing: var(--ans-tracking);
	text-transform: uppercase;
}

/* Cuaderno */
.ans-ab-exp__scroller {
	position: absolute;
	left: 8.6%;
	top: 15.6%;
	width: 86%;
}

.ans-ab-folder {
	position: relative;
	width: 100%;
	aspect-ratio: 1536 / 1024;
	container-type: inline-size;
}

.ans-ab-folder__img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 1.2cqw 1.6cqw rgba(0, 0, 0, 0.25));
	pointer-events: none;
}

.ans-ab-page {
	position: absolute;
	top: 15%;
	height: 72%;
	display: flex;
}

.ans-ab-page--left {
	left: 19.8%;
	width: 25.8%;
}

.ans-ab-page--right {
	left: 54.6%;
	width: 25%;
}

.ans-ab-page__text {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: var(--ans-font-sans);
	font-weight: 400;
	font-size: var(--ans-text-fit, var(--ans-text));
	line-height: 1.45;
	color: #000000;
	text-align: center;
}

.ans-ab-page__text p {
	margin: 0;
}

/* Polaroids superpuestas en los bordes del cuaderno. */
.ans-ab-folder__polaroid {
	position: absolute;
	z-index: 2;
}

.ans-ab-folder__polaroid-img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 0.6cqw 1cqw rgba(0, 0, 0, 0.28));
}

.ans-ab-folder__polaroid--x3 {
	left: 80.3%;
	top: 6.8%;
	width: 13.5%;
	transform: rotate(0.5deg);
}

.ans-ab-folder__polaroid--nb {
	left: -9%;
	top: 64%;
	width: 30%;
	transform: rotate(-6deg);
}

.ans-ab-folder__snap,
.ans-ab-exp__dots {
	display: none;
}

/* --------------------------------------------------------------------------
   Vertical: el cuaderno se amplía y se desliza entre sus dos páginas.
   -------------------------------------------------------------------------- */

@media (max-aspect-ratio: 1/1) {
	.ans-ab-exp__stage {
		aspect-ratio: auto;
		padding: 6vw 0 12vw;
	}

	.ans-ab-exp__title {
		position: relative;
		left: auto;
		top: auto;
		margin: 0 0 0 5vw;
	}

	.ans-ab-exp__initial {
		font-size: 30vw;
	}

	.ans-ab-exp__rest {
		margin-left: -5vw;
		font-size: 10.4vw;
		letter-spacing: 1.4px;
	}

	.ans-ab-exp__scroller {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		margin-top: -4vw;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.ans-ab-exp__scroller::-webkit-scrollbar {
		display: none;
	}

	.ans-ab-folder {
		width: 260vw;
		margin: 0 4vw 14vw;
	}

	.ans-ab-folder__snap {
		position: absolute;
		top: 50%;
		display: block;
		width: 1px;
		height: 1px;
		scroll-snap-align: center;
	}

	.ans-ab-folder__snap--left { left: 31.75%; }
	.ans-ab-folder__snap--right { left: 67.75%; }

	.ans-ab-exp__dots {
		display: flex;
		justify-content: center;
		gap: 10px;
	}

	.ans-ab-exp__dots span {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--ans-ab-wine, #6b1c29);
		opacity: 0.25;
		transition: opacity 0.3s var(--ans-ease);
	}

	.ans-ab-exp__dots span.is-active {
		opacity: 1;
	}
}
