/* Conqr Chrome: contenedor de la figura 3D, imagen de respaldo, halo y cursor. */

.cq-chrome {
	position: relative;
	width: 100%;
	height: 60vh;
	pointer-events: none;
}
/* La vista es el elemento que monta el motor (data-cq-chrome). */
.cq-chrome__view {
	position: absolute;
	inset: 0;
}
.cq-chrome__view.is-interactive {
	pointer-events: auto;
	touch-action: pan-y; /* arrastre horizontal gira la figura; el scroll vertical sigue vivo */
	cursor: grab;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
.cq-chrome__view.is-interactive:active {
	cursor: grabbing;
}
.cq-chrome__c {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.cq-chrome__glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(30, 80, 255, .55), rgba(47, 91, 255, .18) 55%, rgba(10, 18, 64, 0) 100%);
	opacity: 0;
	pointer-events: none;
	will-change: opacity, transform;
}
.cq-chrome__fallback {
	position: absolute;
	left: 50%;
	top: 50%;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: opacity .4s;
}
/* Cualquier vista montada (widget, vista previa del menú, cursor) oculta su imagen de respaldo. */
.cq-chrome__view.is-live .cq-chrome__fallback,
.is-live > .cq-chrome__fallback {
	opacity: 0;
	visibility: hidden;
}

/* Flotación del original (.floaty → @keyframes bob) */
.cq-chrome--float .cq-chrome__view {
	animation: cq-bob 7s ease-in-out infinite;
}
@keyframes cq-bob {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-18px) rotate(7deg); }
}

/* Cursor (.bead del original) */
.cq-bead {
	position: fixed;
	z-index: 65;
	top: 0;
	left: 0;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	background: #000;
	transition: width .45s var(--cq-ease, cubic-bezier(.16, 1, .3, 1)), height .45s var(--cq-ease, cubic-bezier(.16, 1, .3, 1)), margin .45s var(--cq-ease, cubic-bezier(.16, 1, .3, 1)), opacity .3s;
}
.cq-bead .cq-bead__chrome {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 108px;
	height: 108px;
	margin: -54px 0 0 -54px;
	/* el vídeo del original mide 250 % del círculo: con el círculo de 54 px la figura va a la mitad */
	transform: scale(.5);
	transition: transform .45s var(--cq-ease, cubic-bezier(.7, 0, .2, 1));
}
.cq-bead.big .cq-bead__chrome {
	transform: none;
}
.cq-bead b {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	opacity: 0;
	transition: opacity .3s;
}
.cq-bead.big {
	width: 108px;
	height: 108px;
	margin: -54px 0 0 -54px;
}
.cq-bead.big b {
	opacity: 1;
}
/* WP · con·quer: burbuja cromada de 90 px (deforma el líquido de las letras); Touch: solo el círculo */
.cq-bead.is-bubble:not(.big) {
	width: 90px;
	height: 90px;
	margin: -45px 0 0 -45px;
	box-shadow: inset 0 0 0 1px rgba(169, 188, 255, .35), 0 0 28px rgba(30, 80, 255, .28);
}
.cq-bead.is-bubble:not(.big) .cq-bead__chrome {
	transform: scale(.8333);
}
.cq-bead .cq-bead__chrome {
	transition: transform .45s var(--cq-ease, cubic-bezier(.7, 0, .2, 1)), opacity .3s;
}
.cq-bead.is-plain .cq-bead__chrome {
	opacity: 0;
}
/* .hide-bead: escenas que ocultan el cursor mientras están pinneadas (liquid statement) */
.hide-bead .cq-bead {
	opacity: 0 !important;
}
@media (hover: none), (pointer: coarse) {
	.cq-bead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cq-chrome--float .cq-chrome__view { animation: none; }
}
