/* ==========================================================================
   Sobre mí · Sección 2 · Mi trabajo
   --------------------------------------------------------------------------
   Degradado compartido con la Sección 3: empieza aquí en #F7F1EA y termina
   en la Sección 3 en #6B1C29 (--ans-ab-mid es el color de unión).
   ========================================================================== */

.ans-ab-warm {
	--ans-ab-mid: #a8767c;
}

.ans-ab-work {
	position: relative;
	background: linear-gradient(180deg, var(--ans-ab-cream, #f7f1ea) 0%, var(--ans-ab-mid) 100%);
}

/* Escenario con la proporción de la referencia (474 × 235). */
.ans-ab-work__stage {
	position: relative;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	aspect-ratio: 474 / 235;
	container-type: inline-size;
}

.ans-ab-camera {
	position: absolute;
	left: 4.9%;
	top: 50%;
	width: 48.2%;
	aspect-ratio: 1600 / 955;
	transform: translateY(-50%);
}

/* Hueco de la pantalla (medido): 10,5 % – 67,4 % × 17,3 % – 88,8 %.
   Se amplía unas décimas por debajo del marco para que no queden bordes. */
.ans-ab-camera__screen {
	position: absolute;
	left: 10.2%;
	top: 16.9%;
	width: 57.5%;
	height: 72.3%;
	overflow: hidden;
	background: #111;
}

.ans-ab-camera__video {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 50%;
}

.ans-ab-camera__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.ans-ab-work__text {
	position: absolute;
	left: 57%;
	top: 53%;
	width: 37.6%;
	transform: translateY(-50%);
	font-family: var(--ans-font-sans);
	font-weight: 400;
	font-size: var(--ans-text-fit, var(--ans-text));
	line-height: 1.5;
	text-align: left;
	color: var(--ans-ab-cream, #f7f1ea);
}

/* --------------------------------------------------------------------------
   Vertical
   -------------------------------------------------------------------------- */

@media (max-aspect-ratio: 1/1) {
	.ans-ab-work__stage {
		aspect-ratio: auto;
		padding: 14vw 6vw 16vw;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10vw;
	}

	.ans-ab-camera {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		max-width: 620px;
		transform: none;
	}

	.ans-ab-work__text {
		position: static;
		width: 100%;
		max-width: 620px;
		transform: none;
	}
}
