/*
 * Conqr Geo Map (widget). Port de site.css «regional coverage» con sus tres capas fusionadas en el valor
 * final (v3: texto a la izquierda, mapa solo a la derecha a todo el alto) y sus @media. Las clases del
 * SVG (.geo-map, .ggrat, .gland, .hl, .arc, .mk, .c, .r1, .r2) y de las etiquetas (.gl) son las del original.
 */

.cq-geo {
	position: relative;
	z-index: 3;
	display: block;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	padding: 0;
	background: #fff;
	color: #0b0d12;
	overflow: hidden;
	line-height: normal;
}
.cq-geo__k {
	display: block;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7b8190;
	margin-bottom: 18px;
}
.cq-geo__h {
	margin: 0 0 clamp(26px, 4vh, 44px);
	font-family: inherit;
	font-size: clamp(38px, 4.6vw, 84px);
	font-weight: 700;
	letter-spacing: -.055em;
	line-height: .92;
	text-transform: lowercase;
	color: inherit;
}
.cq-geo__list {
	list-style: none;
	margin: 0 0 clamp(28px, 5vh, 52px);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 10px 40px;
	font-size: clamp(16px, 1.3vw, 20px);
	font-weight: 500;
	letter-spacing: -.01em;
}
.cq-geo__list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	cursor: default;
	transition: color .3s;
}
.cq-geo__list b {
	font-size: 11px;
	font-weight: 600;
	color: #2F5BFF;
	letter-spacing: .04em;
}
.cq-geo__list li.hot {
	color: #2F5BFF;
}
.cq-geo__ind {
	border-top: 1px solid #e3e6ee;
	padding-top: 18px;
}
.cq-geo__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	font-size: clamp(18px, 1.7vw, 26px);
	font-weight: 700;
	letter-spacing: -.035em;
}
.cq-geo__row i {
	font-style: normal;
	color: #c6cad4;
	font-weight: 400;
}

.cq-geo__copy {
	position: relative;
	z-index: 2;
	height: 100%;
	width: min(42vw, 680px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(90px, 12vh, 120px) 0 clamp(30px, 5vh, 60px) var(--cq-m);
}
.cq-geo__stage {
	position: absolute;
	left: min(42vw, 680px);
	right: 0;
	top: 0;
	bottom: 0;
	height: auto;
	min-height: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* WP: capa que lleva mapa + etiquetas juntos (fija, como el original) */
.cq-geo__par {
	position: absolute;
	inset: 0;
}
.cq-geo .geo-map {
	position: absolute;
	inset: auto;
	top: 0;
	bottom: 0;
	left: 50%;
	height: 100%;
	width: auto;
	max-width: none;
	aspect-ratio: 1500 / 958;
	transform: translateX(-60%);
	overflow: visible;
}

.cq-geo .geo-map .ggrat { fill: none; stroke: #eceef3; stroke-width: .8; }
.cq-geo .geo-map .gland { fill: #e3e5eb; stroke: #fff; stroke-width: .7; stroke-linejoin: round; }
.cq-geo .geo-map .hl {
	fill: #e3e5eb;
	stroke: #fff;
	stroke-width: .7;
	stroke-linejoin: round;
	stroke-linecap: round;
	transform-box: fill-box;
	transform-origin: 50% 100%;
	transition: fill .7s ease calc(var(--i) * .14s + .2s), transform .45s var(--cq-ease);
}
.cq-geo.is-in .geo-map .hl {
	fill: #2F5BFF;
	stroke: #2F5BFF;
	stroke-width: .4;
	filter: url(#geoGlow);
}
.cq-geo .geo-map .hl.hot {
	fill: #0a1240 !important;
	stroke: #0a1240 !important;
	transition: fill .3s ease;
}
.cq-geo .geo-map .arc {
	fill: none;
	stroke: #2F5BFF;
	stroke-width: 1.4;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	opacity: .9;
	transition: stroke-width .35s ease, opacity .35s ease;
}
.cq-geo.is-in .geo-map .arc { animation: cq-geoArc 1.4s cubic-bezier(.6, 0, .2, 1) forwards; }
.cq-geo.is-in .geo-map .arc:nth-child(1) { animation-delay: .9s; }
.cq-geo.is-in .geo-map .arc:nth-child(2) { animation-delay: 1.05s; }
.cq-geo.is-in .geo-map .arc:nth-child(3) { animation-delay: 1.2s; }
.cq-geo.is-in .geo-map .arc:nth-child(4) { animation-delay: 1.35s; }
.cq-geo.is-in .geo-map .arc:nth-child(5) { animation-delay: 1.5s; }
.cq-geo.is-in .geo-map .arc:nth-child(6) { animation-delay: 1.65s; }
@keyframes cq-geoArc { to { stroke-dashoffset: 0; } }
.cq-geo .geo-map .mk { opacity: 0; transition: opacity .4s ease calc(var(--i) * .14s + 1.6s); }
.cq-geo.is-in .geo-map .mk { opacity: 1; }
.cq-geo .geo-map .mk .c { fill: #fff; stroke: #2F5BFF; stroke-width: 3; }
.cq-geo .geo-map .mk[data-k="mx"] .c { fill: #2F5BFF; }
.cq-geo .geo-map .mk .r1,
.cq-geo .geo-map .mk .r2 { fill: none; stroke: #2F5BFF; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.cq-geo.is-in .geo-map .mk .r1 { stroke-width: 1.2; animation: cq-geoPing 2.4s cubic-bezier(.2, .6, .3, 1) calc(var(--i) * .3s + 2s) infinite; }
.cq-geo.is-in .geo-map .mk .r2 { stroke-width: 1.2; animation: cq-geoPing 2.4s cubic-bezier(.2, .6, .3, 1) calc(var(--i) * .3s + 3.2s) infinite; }
@keyframes cq-geoPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.cq-geo .geo-map .mk.hot .c { fill: #0a1240; stroke: #0a1240; }

/* WP: el país en hover brilla y su arco también (solo color/brillo; nada se eleva ni se mueve) */
.cq-geo.is-in .geo-map .hl.hot {
	filter: url(#geoGlow);
}
.cq-geo .geo-map .arc.hot {
	stroke-width: 2.6;
	opacity: 1;
	filter: drop-shadow(0 0 3px rgba(47, 91, 255, .9));
}

.cq-geo__labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.cq-geo__labels .gl {
	position: absolute;
	transform: translate(14px, -50%);
	white-space: nowrap;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0b0d12;
	background: #fff;
	padding: 3px 7px;
	border-radius: 999px;
	box-shadow: 0 0 0 1px #e3e6ee;
	opacity: 0;
	line-height: normal;
	transition: opacity .5s ease calc(var(--i) * .14s + 2s), transform .5s ease calc(var(--i) * .14s + 2s);
}
.cq-geo.is-in .cq-geo__labels .gl { opacity: 1; transform: translate(16px, -50%); }
.cq-geo__labels .gl.hot { background: #2F5BFF; color: #fff; box-shadow: none; }
.cq-geo__labels .gl[data-k="us"] { transform: translate(-50%, -180%); }
.cq-geo.is-in .cq-geo__labels .gl[data-k="us"] { transform: translate(-50%, -200%); }
.cq-geo__labels .gl[data-k="ca"],
.cq-geo__labels .gl[data-k="pe"] { transform: translate(calc(-100% - 14px), -50%); }
.cq-geo.is-in .cq-geo__labels .gl[data-k="ca"],
.cq-geo.is-in .cq-geo__labels .gl[data-k="pe"] { transform: translate(calc(-100% - 16px), -50%); }
.cq-geo__labels .gl[data-k="mx"] { transform: translate(calc(-100% - 14px), -130%); }
.cq-geo.is-in .cq-geo__labels .gl[data-k="mx"] { transform: translate(calc(-100% - 16px), -130%); }
.cq-geo__labels .gl[data-k="cb"] { transform: translate(14px, -120%); }
.cq-geo.is-in .cq-geo__labels .gl[data-k="cb"] { transform: translate(16px, -120%); }
.cq-geo__labels .gl[data-k="co"] { transform: translate(14px, -10%); }
.cq-geo.is-in .cq-geo__labels .gl[data-k="co"] { transform: translate(16px, -10%); }

@media (max-width: 820px) {
	.cq-geo {
		height: auto;
		min-height: 100vh;
		min-height: 100svh;
		display: flex;
		flex-direction: column;
	}
	.cq-geo__copy {
		width: auto;
		height: auto;
		padding: 100px var(--cq-m) 10px;
	}
	.cq-geo__stage {
		position: relative;
		inset: auto;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		width: 100%;
		aspect-ratio: 1500 / 958;
		height: auto;
		margin-top: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.cq-geo .geo-map {
		inset: 0;
		left: 0;
		width: 100%;
		height: 100%;
		transform: none;
	}
	.cq-geo__labels .gl {
		font-size: 8px;
		padding: 2px 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cq-geo .geo-map * {
		animation: none !important;
		transition: none !important;
	}
	.cq-geo .arc {
		stroke-dashoffset: 0;
	}
}

/* Editor: el mapa ya encendido. */
.elementor-editor-active .cq-geo .geo-map .hl { fill: #2F5BFF; stroke: #2F5BFF; }
.elementor-editor-active .cq-geo .geo-map .arc { stroke-dashoffset: 0; }
.elementor-editor-active .cq-geo .geo-map .mk,
.elementor-editor-active .cq-geo__labels .gl { opacity: 1; }
