/* Ilustración interactiva de la sección principal. */
.bt-ilus {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin-inline: auto;
	aspect-ratio: 520 / 460;
	user-select: none;
	-webkit-user-select: none;
}
.bt-capa {
	position: absolute;
	inset: 0;
	will-change: transform;
	pointer-events: none;
}
.bt-svg { width: 100%; height: 100%; display: block; }

.bt-pieza {
	position: absolute;
	width: clamp(44px, 11%, 60px);
	aspect-ratio: 1;
	z-index: 2;
	touch-action: auto;
}
.bt-capa-pieza { width: 100%; height: 100%; will-change: transform; }
.bt-flotar {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: #12243A;
	border: 2px solid #FF751F;
	color: #FF9A57;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	animation: bt-flotar 6s ease-in-out infinite;
}
.bt-pieza:nth-of-type(2n) .bt-flotar { animation-delay: -2s; animation-duration: 7s; }
.bt-pieza:nth-of-type(3n) .bt-flotar { animation-delay: -4s; animation-duration: 8s; }
.bt-flotar svg { width: 55%; height: 55%; }

@keyframes bt-flotar {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -6px; }
}

/* Solo con mouse en pantallas grandes: se puede arrastrar. */
.bt-ilus.is-interactiva .bt-pieza { cursor: grab; touch-action: none; }
.bt-ilus.is-interactiva .bt-pieza:hover .bt-flotar { background: #1A3150; transform: scale(1.06); }
.bt-ilus.is-interactiva .bt-pieza.is-arrastrando { cursor: grabbing; z-index: 3; }
.bt-ilus.is-interactiva .bt-pieza.is-arrastrando .bt-flotar {
	animation-play-state: paused;
	transform: scale(1.12);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 117, 31, 0.25);
}

.bt-ilus-ayuda {
	position: absolute;
	right: 4%;
	bottom: -0.5rem;
	margin: 0;
	font-size: 0.8rem;
	color: #A9B6C8;
	display: none;
	transition: opacity 0.4s ease;
}
.bt-ilus.is-interactiva .bt-ilus-ayuda { display: block; }
.bt-ilus.ya-arrastro .bt-ilus-ayuda { opacity: 0; }

/* Celulares: ilustración más compacta, sin animación de flotación. */
@media (max-width: 781px) {
	.bt-ilus { max-width: 380px; }
	.bt-flotar { animation: none; }
}

/* Respeta "reducir movimiento" del sistema. */
@media (prefers-reduced-motion: reduce) {
	.bt-flotar { animation: none; transition: none; }
}
