.cbc-world-map {
	box-sizing: border-box;
	color: var(--cbc-world-map-text, #52525b);
}

.cbc-world-map *,
.cbc-world-map *::before,
.cbc-world-map *::after {
	box-sizing: border-box;
}

.cbc-world-map__intro {
	max-width: 960px;
}

.cbc-world-map__eyebrow {
	margin-bottom: 10px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cbc-world-map-title, #2b2d2a);
	opacity: 0.7;
}

.cbc-world-map__title {
	margin: 0 0 16px;
	font-size: clamp(32px, 4vw, 54px);
	font-weight: 600;
	color: var(--cbc-world-map-title, #2b2d2a);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cbc-world-map__text {
	margin: 0;
	font-size: clamp(16px, 2vw, 24px);
	color: var(--text-color);
	line-height: 1.5;
	max-width: 800px;
}

.cbc-world-map__text > :last-child,
.cbc-world-map__card-text > :last-child {
	margin-bottom: 0;
}

.cbc-world-map__tabs-container {
	margin-bottom: 40px;
	width: 100%;
}

.cbc-world-map__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.cbc-world-map__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--cbc-world-map-title, #2b2d2a);
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.cbc-world-map__tab:hover,
.cbc-world-map__tab:focus-visible {
	background: rgba(243, 197, 57, 0.12);
	outline: none;
}

.cbc-world-map__tab.is-active {
	background: var(--cbc-world-map-accent, #f3c539);
	box-shadow: 0 14px 34px rgba(243, 197, 57, 0.34);
}

.cbc-world-map__mobile-dropdown {
	display: none;
	width: 100%;
	margin-top: 24px;
}

.cbc-world-map__selector-bar {
	margin-bottom: 0;
}

.cbc-world-map__select {
	width: 100%;
}

.cbc-world-map__select .cbc-ui-dropdown-trigger,
.cbc-world-map__select .cbc-ui-dropdown-option {
	font-family: inherit;
}

.cbc-world-map__layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.44fr);
	gap: 20px;
	align-items: stretch;
}

.cbc-world-map__side {
	display: contents;
}

.cbc-world-map__cards,
.cbc-world-map__map-frame {
	min-width: 0;
}

.cbc-world-map__card,
.cbc-world-map__map-frame {
	height: 100%;
	border-radius: 24px;
	background: var(--cbc-world-map-surface, #ffffff);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.04);
}

.cbc-world-map__card {
	display: none;
	position: relative;
	background: var(--cbc-world-map-surface, #ffffff);
	border: 2px solid var(--cbc-world-map-border, #e1e1e1);
	border-radius: var(--radius);
	padding: 20px 20px 100px;
	height: auto;
	overflow: hidden;
}

.cbc-world-map__card.is-active {
	display: block;
}

.cbc-world-map__card-media {
	aspect-ratio: 4 / 3;
	background: #ececec;
	border-radius: 8px;
	overflow: hidden;
}

.cbc-world-map__card-media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(circle at top right, rgba(243, 197, 57, 0.38), transparent 42%),
		linear-gradient(135deg, #faf7e9, #f4f4ef);
	color: var(--cbc-world-map-title, #2b2d2a);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.cbc-world-map__card-image {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.cbc-world-map__card-body {
	padding: 22px 20px 24px;
}

.cbc-world-map__card-title {
	margin: 0;
	color: var(--cbc-world-map-title, #2b2d2a);
	font-size: 24px;
	line-height: 1.1;
}

.cbc-world-map__card-text {
	margin: 0;
	font-size: clamp(16px, 1.5vw, 20px);
	color: #747474;
	line-height: 1.6;
}

.cbc-world-map__card-actions {
	position: absolute;
	left: 40px;
	bottom: 20px;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.cbc-world-map__card-cta {
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: none;
	height: 40px;
	margin: 0;
	padding: 8px 24px;
	border: 2px solid var(--cbc-world-map-border, #e1e1e1);
	border-radius: 24px;
	background: #ffffff;
	font-size: 16px;
	font-weight: 500;
	color: var(--cbc-world-map-title, #2b2d2a);
	text-decoration: none;
	white-space: nowrap;
	transition: none;
}

.cbc-world-map__card-cta:hover,
.cbc-world-map__card-cta:focus-visible {
	background: var(--cbc-world-map-accent, #f3c539);
	border-color: var(--cbc-world-map-accent, #f3c539);
	box-shadow: 0 4px 28px 0 rgba(243, 197, 57, 0.7);
	color: var(--cbc-world-map-title, #2b2d2a);
}

.cbc-world-map__card-cta-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbc-world-map__card-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	line-height: 1;
}

.cbc-world-map__card-cta-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.cbc-world-map__map-frame {
	background: var(--cbc-world-map-map-surface, #fbfbf8);
}

.cbc-world-map__map {
	position: relative;
	height: 100%;
	min-height: clamp(360px, 42vw, 640px);
	overflow: hidden;
	border-radius: 16px;
	background: var(--cbc-world-map-map-surface, #f3f3f3);
	border: 2px solid var(--cbc-world-map-border, #e1e1e1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbc-world-map__svg-wrapper {
	position: absolute;
	width: 600%; /* Super-sampled for crisp GPU scaling */
	flex-shrink: 0;
	transform-origin: 50% 50%;
	transform: translate(0, 0) scale(0.166666);
	transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
	--zoom-scale: 0.166666;
}

.cbc-world-map--initializing .cbc-world-map__svg-wrapper {
	transition: none;
}

.cbc-world-map__map-base {
	position: relative;
	z-index: 1;
	display: none;
}

.cbc-world-map__map-base.is-active {
	display: block;
}

/* El detalle circular de Panamá pertenece únicamente a la vista general. */
.cbc-world-map:not([data-active-country="todos"]):not([data-active-country="all"])
.cbc-world-map__map-base--cropped [id="Frame 5989"],
.cbc-world-map:not([data-active-country="todos"]):not([data-active-country="all"])
.cbc-world-map__map-base--cropped [id="Panama"] {
	display: none;
}

.cbc-world-map__map-base svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.cbc-world-map__markers {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.cbc-world-map__marker[hidden] {
	display: none;
}

.cbc-world-map__marker {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(var(--inv-zoom-scale, 1));
	transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
	opacity: 1;
}

.cbc-world-map[data-marker-click-enabled="false"] .cbc-world-map__marker {
	cursor: default;
	pointer-events: none;
}

.cbc-world-map__marker:hover,
.cbc-world-map__marker:focus-visible {
	outline: none;
	transform: translate(-50%, -50%) scale(calc(1.08 * var(--inv-zoom-scale, 1)));
}

.cbc-world-map__marker.is-active {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(calc(1.16 * var(--inv-zoom-scale, 1)));
}

.cbc-world-map__marker-icon {
	display: block;
	width: clamp(20px, 2vw, 28px);
	height: auto;
	line-height: 0;
}

.cbc-world-map__marker-icon svg {
	display: block;
	width: 100%;
	height: auto;
}

.cbc-world-map__map-base .cbc-map-region path,
.cbc-world-map__map-base path.cbc-map-region {
	transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.cbc-world-map__map-base .cbc-map-region path,
.cbc-world-map__map-base path.cbc-map-region {
	fill: #ffffff;
}

.cbc-world-map__map-base .cbc-map-region path[stroke],
.cbc-world-map__map-base path.cbc-map-region[stroke] {
	stroke: #919191;
}

.cbc-world-map__map-base .cbc-map-region path + path:not([stroke]) {
	fill: rgb(145, 145, 145);
}

.cbc-world-map__map-base .cbc-map-region.is-active path + path:not([stroke]) {
	fill: var(--cbc-world-map-accent, #f3c539);
}

.cbc-world-map__map-base .cbc-map-region.is-active path,
.cbc-world-map__map-base path.cbc-map-region.is-active {
	fill: var(--cbc-world-map-accent, #f3c539);
	filter: drop-shadow(0 4px 14px rgba(243, 197, 57, 0.70));
}

.cbc-world-map--zooming .cbc-world-map__map-base .cbc-map-region.is-active path,
.cbc-world-map--zooming .cbc-world-map__map-base path.cbc-map-region.is-active {
	filter: none;
}

.cbc-world-map__map-base .cbc-map-region.is-active path[stroke],
.cbc-world-map__map-base path.cbc-map-region.is-active[stroke] {
	stroke: var(--cbc-world-map-accent, #f3c539);
}

/* Select based variant */
.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__layout {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 14px;
}

.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__side {
	display: contents;
}

.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__selector-bar {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	max-width: 413px;
}

.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__cards {
	display: none;
}

.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__map-frame {
	grid-column: 1;
	grid-row: 2;
	width: 100%;
	height: auto;
}

.cbc-world-map--select-based.cbc-world-map--all-countries
.cbc-world-map__map {
	width: 100%;
	height: auto;
	min-height: 0;
	aspect-ratio: 950 / 445;
}


.cbc-world-map--select-based {
	padding: 0px 0;
	background: #ffffff;
	font-family: var(--text-font-family, "Space Grotesk", sans-serif);
}

.cbc-world-map--select-based .cbc-world-map__container {
	display: block;
	padding: 0;
}

.cbc-world-map--select-based .cbc-world-map__intro,
.cbc-world-map--select-based .cbc-world-map__text {
	width: 100%;
	max-width: none;
}

.cbc-world-map--select-based .cbc-world-map__title {
	margin: 0 0 20px;
	font-size: 42px;
	font-weight: 400;
	line-height: 54px;
	letter-spacing: 0;
}

.cbc-world-map--select-based .cbc-world-map__text {
	font-size: 24px;
	line-height: 36px;
}

.cbc-world-map--select-based .cbc-world-map__text > * {
	margin-top: 0;
}

.cbc-world-map--select-based .cbc-world-map__layout {
	grid-template-columns: 413px minmax(0, 1fr);
	gap: 20px;
	margin-top: 40px;
	align-items: stretch;
}

.cbc-world-map--select-based .cbc-world-map__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.cbc-world-map--select-based .cbc-world-map__selector-bar {
	position: relative;
	z-index: 2;
	flex: 0 0 50px;
	width: 100%;
}

.cbc-world-map--select-based .cbc-world-map__select .cbc-ui-dropdown-trigger {
	font-weight: 400;
}

.cbc-world-map--select-based .cbc-world-map__cards {
	flex: none;
	min-height: 0;
}

.cbc-world-map--select-based .cbc-world-map__card {
	height: auto;
	padding: 20px;
	border: 0;
	box-shadow: inset 0 0 0 2px var(--cbc-world-map-border, #e1e1e1);
}

.cbc-world-map--select-based .cbc-world-map__card--has-cta {
	padding-bottom: 100px;
}

.cbc-world-map--select-based .cbc-world-map__card-actions {
	left: 20px;
}

.cbc-world-map--select-based .cbc-world-map__card-media {
	height: 227px;
	aspect-ratio: auto;
}

.cbc-world-map--select-based .cbc-world-map__card-body {
	margin-top: 20px;
	padding: 0;
}

.cbc-world-map--select-based .cbc-world-map__card-title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
}

.cbc-world-map--select-based .cbc-world-map__card-text {
	font-size: 20px;
	line-height: 28px;
}

.cbc-world-map--select-based .cbc-world-map__card-text > * {
	margin-top: 0;
}

.cbc-world-map--select-based .cbc-world-map__map-frame {
	position: relative;
	z-index: 1;
	border-radius: 16px;
	box-shadow: none;
	height: 100%;
}

.cbc-world-map--select-based .cbc-world-map__map {
	position: relative;
	min-height: 0;
	padding: 10px;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--Neutral-200, #F3F3F3);
	box-shadow: none;
	height: 100%;
}

.cbc-world-map--select-based .cbc-world-map__map::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--Neutral-300, #E1E1E1);
	border-radius: 16px;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 20;
}

/* ─── Map-only variant ─── */

.cbc-world-map--map-only .cbc-world-map__intro {
	max-width: none;
}

.cbc-world-map--map-only .cbc-world-map__text {
	max-width: none;
}

.cbc-world-map--map-only .cbc-world-map__selector-bar {
	margin-top: 24px;
	max-width: 413px;
	width: 100%;
}

.cbc-world-map--map-only .cbc-world-map__selector-bar .cbc-world-map__select {
	width: 100%;
}

.cbc-world-map--map-only .cbc-world-map__map-frame--full {
	width: 100%;
}

@media (min-width: 992px) {
	.cbc-world-map--height-limited .cbc-world-map__layout {
		height: 649px;
		max-height: 649px;
		grid-template-rows: minmax(0, 1fr);
	}

	.cbc-world-map--height-limited .cbc-world-map__map-frame,
	.cbc-world-map--height-limited .cbc-world-map__map {
		height: 100%;
		min-height: 0;
		max-height: 100%;
	}

	.cbc-world-map--height-limited .cbc-world-map__cards,
	.cbc-world-map--height-limited .cbc-world-map__card {
		min-height: 0;
		max-height: 100%;
	}

	.cbc-world-map--height-limited .cbc-world-map__cards {
		height: 100%;
		overflow: hidden;
	}

	.cbc-world-map--height-limited .cbc-world-map__card {
		height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-gutter: stable;
	}

	.cbc-world-map--height-limited.cbc-world-map--select-based
	.cbc-world-map__side {
		height: 100%;
		min-height: 0;
		max-height: 100%;
		overflow: hidden;
	}

	.cbc-world-map--height-limited.cbc-world-map--select-based
	.cbc-world-map__cards {
		flex: 1 1 0;
		height: auto;
		max-height: calc(649px - 70px);
		overflow: hidden;
	}

	.cbc-world-map--height-limited.cbc-world-map--select-based
	.cbc-world-map__card {
		height: 100%;
	}

	.cbc-world-map--height-limited.cbc-world-map--select-based.cbc-world-map--all-countries
	.cbc-world-map__layout {
		height: auto;
		max-height: none;
	}

	.cbc-world-map--height-limited.cbc-world-map--select-based.cbc-world-map--all-countries
	.cbc-world-map__map-frame,
	.cbc-world-map--height-limited.cbc-world-map--map-only
	.cbc-world-map__map-frame--full {
		height: 649px;
		max-height: 649px;
	}

	.cbc-world-map:not(.cbc-world-map--height-limited).cbc-world-map--select-based.cbc-world-map--all-countries
	.cbc-world-map__map-frame,
	.cbc-world-map:not(.cbc-world-map--height-limited).cbc-world-map--select-based.cbc-world-map--all-countries
	.cbc-world-map__map {
		height: auto;
		min-height: clamp(360px, 42vw, 640px);
		max-height: none;
	}
}

@media (max-width: 991px) {
	.cbc-world-map__tabs-container {
		margin-bottom: 0;
	}

	.cbc-world-map__marker {
		cursor: default;
		pointer-events: none;
	}

	.cbc-world-map__tabs {
		display: none;
	}

	.cbc-world-map__mobile-dropdown {
		display: block;
	}

	.cbc-world-map__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cbc-world-map__cards {
		order: 2;
	}

	.cbc-world-map__map-frame {
		order: 1;
	}

	.cbc-world-map__card-title {
		font-size: 20px;
	}

	.cbc-world-map__card {
		padding-bottom: 88px;
	}

	.cbc-world-map__card-actions {
		left: 40px;
	}

	.cbc-world-map__map {
		min-height: 320px;
	}

	/* Map-only: selector full-width on mobile */
	.cbc-world-map--map-only .cbc-world-map__selector-bar {
		max-width: none;
	}

	.cbc-world-map--select-based {
		padding: 40px 0;
	}

	.cbc-world-map--select-based .cbc-world-map__title {
		margin-bottom: 12px;
		font-size: 32px;
		line-height: 44px;
	}

	.cbc-world-map--select-based .cbc-world-map__text {
		font-size: 16px;
		line-height: 24px;
	}

	.cbc-world-map--select-based .cbc-world-map__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		height: auto;
		margin-top: 20px;
	}

	.cbc-world-map--select-based .cbc-world-map__side {
		display: contents;
	}

	.cbc-world-map--select-based .cbc-world-map__selector-bar {
		order: 1;
	}

	.cbc-world-map--select-based.cbc-world-map--all-countries
	.cbc-world-map__selector-bar {
		max-width: none;
	}

	.cbc-world-map--select-based .cbc-world-map__map-frame {
		order: 2;
		height: auto;
	}

	.cbc-world-map--select-based .cbc-world-map__cards {
		order: 3;
		height: auto;
	}

	.cbc-world-map--select-based .cbc-world-map__map,
	.cbc-world-map--select-based.cbc-world-map--all-countries .cbc-world-map__map {
		height: auto;
		min-height: 0;
		aspect-ratio: 335 / 237.4051513672;
		padding: 5px;
		border-radius: 12px;
	}

	.cbc-world-map--select-based .cbc-world-map__card {
		height: auto;
		min-height: 0;
		padding: 20px;
	}

	.cbc-world-map--select-based .cbc-world-map__card--has-cta {
		padding-bottom: 88px;
	}

	.cbc-world-map--select-based .cbc-world-map__card-media {
		height: 200px;
	}

	.cbc-world-map--select-based .cbc-world-map__card-title {
		font-size: 20px;
		line-height: 32px;
	}

	.cbc-world-map--select-based .cbc-world-map__card-text {
		font-size: 16px;
		line-height: 24px;
	}
}
