/**
 * Interactive Globe - globe-style.css  v1.16.0
 */

/* ─── Wrapper y contenedor ─────────────────────────────────────── */
.k-globe-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
	background-color: #06070A; /* fallback; Elementor lo sobreescribe con la var CSS */
	pointer-events: none; /* las esquinas cuadradas no capturan el mouse */
}

.k-globe-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	height: 500px;
	overflow: hidden;
	line-height: 0;
	font-size: 0;
	cursor: grab;
	pointer-events: none; /* solo el canvas recibe eventos */
}

.k-globe-container:active { cursor: grabbing; }

.k-globe-container canvas {
	display: block;
	margin: 0 auto;
	outline: none;
	pointer-events: auto; /* único elemento que captura el mouse */
}

.k-globe-container > div { margin: 0 auto !important; }

/* ─── Marcador fijo ─────────────────────────────────────────────── */
.k-globe-marker {
	pointer-events: none;
	font-family: inherit;
	font-size: clamp(10px, 2.5vw, 13px);
	font-weight: 600;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,.7));
}

.k-marker-label {
	display: inline-block;
	max-width: 38vw;
	padding: 3px 9px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: rgba(6,7,10,.75);
	border-radius: 6px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,.08);
}

.k-marker-pin {
	width: 1px;
	height: 12px;
	background: currentColor;
	opacity: .75;
}

.k-marker-pin::after {
	content:'';
	display: block;
	width: 6px; height: 6px;
	margin: 0 0 0 -3px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
}

/* ─── SVG conector ──────────────────────────────────────────────── */
.k-globe-connector {
	position: absolute;
	top: 0; left: 0;
	overflow: visible;
	pointer-events: none;
}
.k-globe-connector line { opacity: .8; }
.k-globe-connector circle { filter: drop-shadow(0 0 5px currentColor); }

/* ─── Anotación hover ───────────────────────────────────────────── */
.k-globe-annotation {
	position: absolute;
	top: 0; left: 0;
	z-index: 999999;
	display: none;
	max-width: min(280px, 70vw);
	padding: 11px 15px;
	pointer-events: none;
	font-family: inherit;
	font-size: clamp(11px, 2.5vw, 13px);
	line-height: 1.5;
	color: #EAF4F8;
	background: rgba(6,7,10,.92);
	border: 1px solid rgba(0,164,197,.45);
	border-radius: 10px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,164,197,.08) inset;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.k-globe-annotation strong {
	display: block;
	margin-bottom: 4px;
	font-size: clamp(12px, 2.8vw, 14px);
	font-weight: 600;
	letter-spacing: .02em;
}

.k-globe-annotation .k-tooltip-desc {
	font-size: clamp(10.5px, 2.3vw, 12px);
	opacity: .85;
}

.k-globe-annotation .k-tooltip-desc a {
	color: inherit;
	text-decoration: underline;
}

/* ─── Tooltip legacy (compatibilidad) ──────────────────────────── */
.k-globe-tooltip {
	position: absolute; top:0; left:0;
	z-index: 999999;
	display: none;
	pointer-events: none;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.k-globe-annotation { max-width: min(240px, 65vw); }
	.k-marker-label { max-width: 44vw; }
}

@media (max-width: 767px) {
	.k-globe-annotation { max-width: min(200px, 80vw); padding: 9px 12px; }
	.k-marker-label { max-width: 58vw; }
}
