/* ==========================================================================
   Sobre mí · Sección 5 · My Tool Box
   --------------------------------------------------------------------------
   Fondo #B3CADF. Escenario con la proporción de la referencia (800 × 614).
   Los logos son hijos de la lata (giran con ella); --lx / --ly es su centro
   y --lw su ancho, en % de la lata. Las etiquetas tienen su punto final en
   --ax / --ay (% del escenario) y se abren hacia su lado (is-left / is-right).
   ========================================================================== */

.ans-ab-tools {
	position: relative;
	overflow: hidden;
	background: var(--ans-ab-sky, #b3cadf);
}

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

/* Horizontal: la sección mide exactamente la pantalla. */
@media (min-aspect-ratio: 1/1) {
	.ans-ab-tools {
		display: grid;
		align-items: center;
		height: 100vh;
	}

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

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

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

/* Títulos */
.ans-ab-tools__title {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	font-size: inherit;
	line-height: 1;
	color: var(--ans-ab-wine, #6b1c29);
	pointer-events: none;
}

.ans-ab-tools__my {
	position: absolute;
	left: 7.2%;
	top: 9.6%;
	font-family: var(--ans-font-sans);
	font-weight: 600;
	font-size: 10.6cqw;
	letter-spacing: var(--ans-tracking);
	text-transform: uppercase;
	white-space: nowrap;
}

.ans-ab-tools__box {
	position: absolute;
	left: 56%;
	top: 70%;
	font-family: var(--ans-font-script);
	font-weight: 400;
	font-size: 23cqw;
	white-space: nowrap;
}

/* Lata ladeada, por encima de los títulos */
.ans-ab-tin {
	position: absolute;
	left: 51.9%;
	top: 49.7%;
	z-index: 2;
	width: 50cqw;
	aspect-ratio: 1;
	transform: translate(-50%, -50%) rotate(-10deg);
}

.ans-ab-tin__img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 1.4cqw 1.8cqw rgba(30, 40, 60, 0.3));
	pointer-events: none;
}

.ans-ab-tin__logos {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ans-ab-logo {
	position: absolute;
	left: var(--lx);
	top: var(--ly);
	width: var(--lw, 15.5%);
	transform: translate(-50%, -50%);
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.ans-ab-logo__pulse {
	display: block;
	width: 100%;
	transform-origin: 50% 50%;
}

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

.ans-ab-logo:focus-visible .ans-ab-logo__img {
	outline: 2px solid var(--ans-ab-cream, #f7f1ea);
	outline-offset: 4px;
	border-radius: 22%;
}

.ans-ab-logo--figma     { --lx: 23.4%; --ly: 18.1%; --lw: 15.5%; }
.ans-ab-logo--canva     { --lx: 47.4%; --ly: 33%;   --lw: 17.5%; }
.ans-ab-logo--procreate { --lx: 70%;   --ly: 16%;   --lw: 15.5%; }
.ans-ab-logo--ai        { --lx: 38.8%; --ly: 63.3%; --lw: 17.5%; }
.ans-ab-logo--audaces   { --lx: 61.8%; --ly: 62.3%; --lw: 15%; }
.ans-ab-logo--optitex   { --lx: 71.5%; --ly: 79.2%; --lw: 15%; }
.ans-ab-logo--office    { --lx: 28.5%; --ly: 85.6%; --lw: 12.5%; }

/* Líneas (SVG en coordenadas del escenario, las dibuja el JS) */
.ans-ab-tools__lines {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.ans-ab-tools__lines line {
	stroke: var(--ans-ab-cream, #f7f1ea);
	stroke-width: 1.2;
	stroke-linecap: round;
}

.ans-ab-tools__lines circle {
	fill: var(--ans-ab-cream, #f7f1ea);
}

/* Etiquetas */
.ans-ab-label {
	--gap: 0.9cqw;
	position: absolute;
	left: var(--ax);
	top: var(--ay);
	z-index: 3;
	font-family: var(--ans-font-sans);
	font-weight: 400;
	font-size: var(--ans-text-sm);
	line-height: 1;
	letter-spacing: var(--ans-tracking);
	color: var(--ans-ab-cream, #f7f1ea);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ans-ab-label.is-right {
	transform: translate(var(--gap), -50%);
}

.ans-ab-label.is-left {
	transform: translate(calc(-100% - var(--gap)), -50%);
}

.ans-ab-label--procreate { --ax: 77.5%; --ay: 25.6%; }
.ans-ab-label--figma     { --ax: 16.3%; --ay: 37.5%; }
.ans-ab-label--canva     { --ax: 72.9%; --ay: 39.6%; }
.ans-ab-label--ai        { --ax: 28.5%; --ay: 57%; }
.ans-ab-label--audaces   { --ax: 81.9%; --ay: 52.6%; }
.ans-ab-label--optitex   { --ax: 82.5%; --ay: 66%; }
.ans-ab-label--office    { --ax: 24.4%; --ay: 74.9%; }

/* --------------------------------------------------------------------------
   Vertical: lata más grande; la etiqueta (una a la vez, al tocar) aparece
   en la franja libre bajo "MY TOOL" (JS).
   -------------------------------------------------------------------------- */

@media (max-aspect-ratio: 1/1) {
	.ans-ab-tools__stage {
		aspect-ratio: 375 / 640;
	}

	.ans-ab-tools__my {
		left: 6%;
		top: 6%;
		font-size: 15cqw;
		letter-spacing: 1.6px;
	}

	.ans-ab-tools__box {
		left: auto;
		right: 4%;
		top: 76%;
		font-size: 34cqw;
	}

	.ans-ab-tin {
		top: 52%;
		width: 90cqw;
	}

	.ans-ab-label {
		letter-spacing: 1.6px;
	}

	/* El nombre se lee a la derecha de su punto, en la franja superior. */
	.is-portrait .ans-ab-label.is-left,
	.is-portrait .ans-ab-label.is-right {
		transform: translate(var(--gap), -50%);
	}
}
