/* Oculta el shortcode sanitizado de Elementor V4 (el mapa real se inyecta tras Mundo Top). */
[data-id="7a2ca9ca"],
[data-id="6474fdf9"],
[data-id="40448dda"] {
	display: none !important;
}

/* Secciones Mundo: el mapa rompe el shell; título/intro siguen centrados. */
.elementor-element-6f34df30.rea-section,
.elementor-element-a12a206.rea-section {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible;
}

/*
 * Por encima de Comunidad sticky (z-index: 2) para que el mapa
 * no quede tapado en resoluciones pequeñas.
 */
.elementor-element-a12a206 {
	position: relative;
	z-index: 3;
	padding-block-end: 0 !important;
}

/* Placeholder del shortcode: sin altura ni padding residual (azul claro). */
.elementor-element-6f34df30 {
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.elementor-element-6f34df30 > .e-con-inner,
.elementor-element-6f34df30.e-flexbox-base,
.elementor-element-a12a206 > .e-con-inner,
.elementor-element-a12a206.e-flexbox-base {
	max-width: none !important;
	width: 100% !important;
}

.elementor-element-6f34df30 .elementor-element-4cb35143,
.elementor-element-6f34df30 .elementor-element-1428d62c,
.elementor-element-a12a206 .elementor-element-4cb35143,
.elementor-element-a12a206 .elementor-element-1428d62c {
	width: var(--rea-shell, min(1360px, calc(100% - 32px))) !important;
	max-width: 1360px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.rea-mundo {
	--rea-mundo-gold: #ffbc22;
	--rea-mundo-gold-light: #f9da92;
	--rea-mundo-ink: #ffffff;
	--rea-mundo-panel: #292a2a;
	--rea-mundo-info: #0e4f8e;
	--rea-mundo-muted: rgba(255, 255, 255, 0.78);
	--rea-mundo-border: rgba(255, 255, 255, 0.35);
	color: var(--rea-mundo-ink);
	position: relative;
	z-index: 1;
	width: 100vw;
	max-width: 100vw;
	margin: clamp(8px, 1.5vw, 20px) 0 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

.rea-mundo__map-wrap {
	position: relative;
	width: 100%;
	max-width: none;
	overflow: hidden;
	isolation: isolate;
	background: transparent;
	/* Reserva zona inferior: tabs + dos cards (hora/CTA | info). */
	padding-bottom: clamp(200px, 20vw, 200px);
}

/* Relleno bajo el ecuador de la elipse (full-bleed). */
.rea-mundo__map-wrap::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	/* Ecuador elipse Figma ≈ 3.69% + 50% de la altura 163.33% del dome */
	top: calc((100% - clamp(200px, 20vw, 260px)) * 0.8536);
	bottom: 0;
	z-index: 0;
	background: #0d3d6b;
	pointer-events: none;
}

.rea-mundo__map-dome {
	/* Frame Figma «Mapa» 1939×741 — ancla de posición del fondo y continentes. */
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 1939 / 741;
	overflow: visible;
	background: transparent;
}

/*
 * Elipse de fondo Figma (6:225):
 * left -13.17%, top 3.69%, width 126.34% del frame 1939×741.
 * max-width !important: el reset global `img { max-width:100% }` lo aplastaba.
 */
.rea-mundo__map-shape {
	display: block;
	position: absolute;
	left: 50%;
	top: 3.69% !important;
	z-index: 0;
	width: 126.34% !important;
	max-width: none !important;
	height: auto !important;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
}

/* Continentes Figma (6:226): inset 7.6% / -2.62% / 6.27% / -0.02% */
.rea-mundo__map-stage {
	position: absolute;
	z-index: 1;
	left: -0.02%;
	top: 7.6%;
	width: 102.64%;
	height: 86.13%;
	padding: 0;
	box-sizing: border-box;
	background: transparent;
}

.rea-mundo__map-canvas {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
}

.rea-mundo__basemap {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill; /* mismo viewBox que overlays: sin letterbox */
	opacity: 0.92;
	pointer-events: none;
	user-select: none;
}

.rea-mundo__countries {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.rea-mundo__country {
	pointer-events: auto;
	cursor: pointer;
	outline: none;
	transition: fill 0.45s ease;
}

.rea-mundo__country.is-hidden {
	display: none;
	pointer-events: none;
}

.rea-mundo__country:not(.is-hidden):hover,
.rea-mundo__country:not(.is-hidden):focus-visible {
	fill: var(--rea-mundo-gold) !important;
}

.rea-mundo__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.rea-mundo__link {
	pointer-events: none;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	/* Segmentos cortos como Vector 1 del prototipo Figma. */
	stroke-dasharray: 2.5 11;
	opacity: 1;
	transition: opacity 0.28s ease;
}

.rea-mundo__link.is-fading {
	opacity: 0;
}

.rea-mundo__marker {
	pointer-events: none;
	cursor: default;
	outline: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.rea-mundo__marker.is-active,
.rea-mundo__marker--hub {
	opacity: 1;
	visibility: visible;
}

.rea-mundo__marker--hub {
	pointer-events: none;
	cursor: default;
}

.rea-mundo__hit {
	fill: transparent;
}

/* Icono Figma: ripples blancos (fill) + punto blanco. */
.rea-mundo__pulse {
	fill: #fff;
	stroke: none;
	opacity: 0;
	pointer-events: none;
	transform-origin: center;
	transform-box: fill-box;
}

.rea-mundo__dot {
	fill: #fff;
	stroke: none;
}

.rea-mundo__marker.is-active .rea-mundo__pulse--mid,
.rea-mundo__marker--hub .rea-mundo__pulse--mid {
	animation: rea-mundo-marker-ripple 2s ease-out infinite;
}

.rea-mundo__marker.is-active .rea-mundo__pulse--outer,
.rea-mundo__marker--hub .rea-mundo__pulse--outer {
	animation: rea-mundo-marker-ripple 2s ease-out infinite 0.45s;
}

@keyframes rea-mundo-marker-ripple {
	0% {
		transform: scale(0.3);
		opacity: 0.55;
	}
	70% {
		opacity: 0.12;
	}
	100% {
		transform: scale(1);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rea-mundo__marker.is-active .rea-mundo__pulse,
	.rea-mundo__marker--hub .rea-mundo__pulse {
		animation: none;
	}

	.rea-mundo__marker.is-active .rea-mundo__pulse--mid,
	.rea-mundo__marker--hub .rea-mundo__pulse--mid {
		opacity: 0.35;
		transform: scale(0.7);
	}

	.rea-mundo__marker.is-active .rea-mundo__pulse--outer,
	.rea-mundo__marker--hub .rea-mundo__pulse--outer {
		opacity: 0.2;
		transform: scale(1);
	}
}

.rea-mundo__label {
	position: absolute;
	transform: translate(-50%, calc(-100% - 18px));
	padding: 4px 10px;
	border-radius: 8px;
	background: #fff;
	color: #0f1d07;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
	z-index: 2;
	transition: left 0.45s ease, top 0.45s ease;
}

.rea-mundo__label--hub {
	background: #fff;
	color: #0f1d07;
}

.rea-mundo__panels {
	position: absolute;
	left: 50%;
	bottom: clamp(12px, 1.6vw, 24px);
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(10px, 1.2vw, 14px);
	/* Figma: cards 264 + 14 + 208 ≈ 486 */
	width: min(500px, 42vw, calc(100% - 32px));
	margin: 0;
}

.rea-mundo__tabs-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.rea-mundo__tabs {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: none;
	mask-image: none;
}

.rea-mundo__tabs-track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 8px 10px;
	width: max-content;
	transform: translate3d(0, 0, 0);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.rea-mundo__tabs-track.is-instant {
	transition: none !important;
}

.rea-mundo__tabs.has-more-next {
	-webkit-mask-image: linear-gradient(
		to right,
		#000 0%,
		#000 calc(100% - 52px),
		rgba(0, 0, 0, 0.35) calc(100% - 24px),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		#000 0%,
		#000 calc(100% - 52px),
		rgba(0, 0, 0, 0.35) calc(100% - 24px),
		transparent 100%
	);
}


.rea-mundo__tabs-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.rea-mundo button.rea-mundo__tabs-arrow,
.rea-mundo__tabs-arrow {
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 !important;
	border: 1px solid #fff !important;
	border-radius: 50% !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rea-mundo button.rea-mundo__tabs-arrow:hover,
.rea-mundo button.rea-mundo__tabs-arrow:focus-visible,
.rea-mundo__tabs-arrow:hover,
.rea-mundo__tabs-arrow:focus-visible {
	background: rgba(255, 255, 255, 0.12) !important;
	outline: none;
}

.rea-mundo button.rea-mundo__tabs-arrow:disabled,
.rea-mundo__tabs-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.rea-mundo button.rea-mundo__tab,
.rea-mundo__tab {
	appearance: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 8px 18px !important;
	min-height: 36px;
	border: 1px solid #fff !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease,
		opacity 0.3s ease;
}

.rea-mundo button.rea-mundo__tab.is-peek,
.rea-mundo__tab.is-peek {
	opacity: 0.28;
	cursor: pointer;
}

.rea-mundo button.rea-mundo__tab.is-peek:hover,
.rea-mundo button.rea-mundo__tab.is-peek:focus-visible,
.rea-mundo__tab.is-peek:hover,
.rea-mundo__tab.is-peek:focus-visible {
	opacity: 0.45;
	background: rgba(255, 255, 255, 0.08) !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
}

.rea-mundo button.rea-mundo__tab:hover,
.rea-mundo button.rea-mundo__tab:focus-visible,
.rea-mundo__tab:hover,
.rea-mundo__tab:focus-visible {
	background: rgba(255, 255, 255, 0.1) !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
	outline: none;
}

.rea-mundo button.rea-mundo__tab.is-active,
.rea-mundo__tab.is-active {
	background: var(--rea-mundo-gold) !important;
	background-color: var(--rea-mundo-gold) !important;
	border-color: var(--rea-mundo-gold) !important;
	color: #0f1d07 !important;
	font-weight: 500;
}

.rea-mundo__cards {
	display: grid;
	/* Figma: hora 264 / info 208 */
	grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	width: 100%;
}

.rea-mundo__card {
	margin: 0;
	border-radius: 16px;
	padding: 28px;
	box-sizing: border-box;
	min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
	.rea-mundo__country,
	.rea-mundo__link,
	.rea-mundo__label,
	.rea-mundo__tabs,
	.rea-mundo button.rea-mundo__tab,
	.rea-mundo__tab {
		transition: none !important;
	}

	.rea-mundo__tabs-track {
		transition: none !important;
	}

	.rea-mundo__link.is-fading {
		opacity: 1;
	}
}

.rea-mundo__card--time {
	background: var(--rea-mundo-panel);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
	min-height: 221px;
}

.rea-mundo__card--info {
	background: var(--rea-mundo-info);
	display: flex;
	align-items: center;
	min-height: 218px;
}

.rea-mundo__time-label {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
}

.rea-mundo__time-value {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px 12px;
	border: 1px solid #fff;
	border-radius: 8px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.rea-mundo a.rea-mundo__cta,
.rea-mundo__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin: 0;
	min-height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--rea-mundo-gold) !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.rea-mundo a.rea-mundo__cta::after,
.rea-mundo__cta::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 17 16' fill='none'%3E%3Cpath d='M7.19702 0.621948C7.19702 0.799648 7.28605 0.977354 7.3749 1.15505L14.128 7.90766L7.3749 14.6603C7.10835 14.9268 7.10835 15.3711 7.3749 15.6376C7.46375 15.8153 7.73082 15.8153 7.90852 15.8153C8.08622 15.8153 8.26357 15.7265 8.44127 15.6376L16.1714 7.90766L8.44127 0.177698C8.26357 0 8.08622 0 7.90852 0C7.73082 0 7.5526 0.0888476 7.3749 0.177698C7.28605 0.177698 7.19702 0.355398 7.19702 0.621948Z' fill='%23000'/%3E%3Cpath d='M0 7.81887C0 8.17427 0.355224 8.52967 0.710624 8.52967L14.3045 8.44081C14.6599 8.44081 15.016 8.08541 15.016 7.73001C15.016 7.37461 14.6599 7.01922 14.3045 7.01922L0.710624 7.10806C0.266374 7.10806 0 7.37462 0 7.81887Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 17 16' fill='none'%3E%3Cpath d='M7.19702 0.621948C7.19702 0.799648 7.28605 0.977354 7.3749 1.15505L14.128 7.90766L7.3749 14.6603C7.10835 14.9268 7.10835 15.3711 7.3749 15.6376C7.46375 15.8153 7.73082 15.8153 7.90852 15.8153C8.08622 15.8153 8.26357 15.7265 8.44127 15.6376L16.1714 7.90766L8.44127 0.177698C8.26357 0 8.08622 0 7.90852 0C7.73082 0 7.5526 0.0888476 7.3749 0.177698C7.28605 0.177698 7.19702 0.355398 7.19702 0.621948Z' fill='%23000'/%3E%3Cpath d='M0 7.81887C0 8.17427 0.355224 8.52967 0.710624 8.52967L14.3045 8.44081C14.6599 8.44081 15.016 8.08541 15.016 7.73001C15.016 7.37461 14.6599 7.01922 14.3045 7.01922L0.710624 7.10806C0.266374 7.10806 0 7.37462 0 7.81887Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: translateX(0);
	transition: transform 0.25s ease;
}

.rea-mundo a.rea-mundo__cta:hover,
.rea-mundo a.rea-mundo__cta:focus-visible,
.rea-mundo__cta:hover,
.rea-mundo__cta:focus-visible {
	opacity: 0.85;
	outline: none;
	filter: none;
	transform: none;
	color: var(--rea-mundo-gold) !important;
}

.rea-mundo a.rea-mundo__cta:hover::after,
.rea-mundo a.rea-mundo__cta:focus-visible::after,
.rea-mundo__cta:hover::after,
.rea-mundo__cta:focus-visible::after {
	transform: translateX(6px);
}

.rea-mundo__info-text {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.35;
	color: #fff;
	text-align: left;
}

@media (max-width: 1100px) {
	.rea-mundo__map-wrap {
		padding-bottom: clamp(200px, 24vw, 280px);
	}

	.rea-mundo__map-wrap::before {
		top: calc((100% - clamp(200px, 24vw, 280px)) * 0.8536);
	}

	.rea-mundo__panels {
		width: min(480px, calc(100% - 32px));
	}
}

@media (max-width: 900px) {
	/* Reserva espacio del panel absoluto en desktop; en móvil el panel es relative. */
	.rea-mundo__map-wrap {
		padding-bottom: 0;
	}

	.rea-mundo__map-wrap::before {
		top: calc(100% * 0.8536);
	}

	.rea-mundo__map-shape {
		width: 140% !important;
	}

	.rea-mundo__map-stage {
		top: 10%;
		height: 82%;
	}

	.rea-mundo__panels {
		position: relative;
		left: auto;
		bottom: auto;
		transform: none;
		/* Mantener ancho suficiente para las dos cards en fila (264+14+208). */
		width: min(500px, calc(100% - 24px));
		margin: clamp(-28px, -5vw, -16px) auto 0;
		padding-bottom: 8px;
		gap: 12px;
	}

	.rea-mundo__card {
		padding: 22px;
	}

	.rea-mundo a.rea-mundo__cta,
	.rea-mundo__cta {
		white-space: normal;
	}

	.rea-mundo__time-value {
		font-size: 36px;
		padding: 14px 12px;
	}

	.rea-mundo__label {
		font-size: 12px;
		padding: 4px 8px;
	}
}

/* Solo apilar cuando no caben las dos cards (~486px + márgenes). */
@media (max-width: 520px) {
	.rea-mundo__cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.rea-mundo__card--time,
	.rea-mundo__card--info {
		min-height: 0;
	}

	.rea-mundo button.rea-mundo__tab,
	.rea-mundo__tab {
		padding: 7px 14px !important;
		font-size: 12px;
	}
}
