/**
 * Urra Core — Content Highlight widget styles.
 *
 * Bloque de dos columnas con media + copy y tarjeta highlight flotante.
 * Estilos aislados bajo `.uc-ch`.
 */

.elementor-widget-uc_content_highlight > .elementor-widget-container {
	overflow: visible;
}

.uc-ch {
	--ch-gap: 0px;
	--ch-media-width: 50%;
	--ch-media-radius: 0;
	--ch-copy-bg: #ffffff;
	--ch-media-bg: #0b3d4a;
	--ch-eyebrow-color: #009966;
	--ch-eyebrow-line-color: #009966;
	--ch-heading-color: #1a1a1a;
	--ch-accent-color: #009966;
	--ch-body-color: rgba(31, 41, 55, 0.72);
	--ch-cta-color: #ffffff;
	--ch-cta-bg: #009966;
	--ch-cta-color-hover: #ffffff;
	--ch-cta-bg-hover: #007a52;
	--ch-hl-bg: #009966;
	--ch-hl-label-color: rgba(255, 255, 255, 0.9);
	--ch-hl-value-color: #ffffff;
	--ch-hl-desc-color: rgba(255, 255, 255, 0.92);
	--ch-hl-pad: 20px 24px;
	--ch-hl-radius: 12px;
	--ch-hl-translate-x: 0px;
	--ch-hl-translate-y: 0px;
	--ch-copy-stat-value-color: #009966;
	--ch-copy-stat-label-color: rgba(31, 41, 55, 0.72);
	--ch-copy-pad-top: 48px;
	--ch-copy-pad-right: 48px;
	--ch-copy-pad-bottom: 48px;
	--ch-copy-pad-left: 48px;

	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--ch-gap);
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.uc-ch,
.uc-ch *,
.uc-ch *::before,
.uc-ch *::after {
	box-sizing: border-box;
}

/* ── Orientación escritorio ─────────────────────────────────────── */

.uc-ch--desk-image-left {
	flex-direction: row;
}

.uc-ch--desk-image-right {
	flex-direction: row-reverse;
}

/* ── Media ──────────────────────────────────────────────────────── */

.uc-ch__media-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 0 0 var(--ch-media-width);
	flex-direction: column;
	align-self: stretch;
	min-width: 0;
	min-height: 400px;
	background: transparent;
	overflow: visible;
}

.uc-ch__media-inner {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	border-radius: var(--ch-media-radius);
	background: linear-gradient(145deg, var(--ch-media-bg) 0%, #164f5c 100%);
	overflow: hidden;
	isolation: isolate;
}

.uc-ch .uc-ch__media-inner img.uc-ch__media--image,
.uc-ch .uc-ch__media-inner .uc-ch__media--image,
.uc-ch .uc-ch__media-inner video.uc-ch__media,
.uc-ch .uc-ch__media-inner .uc-ch__media--video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: cover !important;
	object-position: center;
}

.uc-ch__media--embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.uc-ch__media--embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* ── Highlight card ─────────────────────────────────────────────── */

.uc-ch__highlight {
	position: absolute;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: max-content;
	max-width: min(280px, calc(100% - 40px));
	padding: var(--ch-hl-pad);
	border-radius: var(--ch-hl-radius);
	background: var(--ch-hl-bg);
	color: var(--ch-hl-value-color);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	transform: translate(var(--ch-hl-translate-x), var(--ch-hl-translate-y));
}

.uc-ch__highlight-label {
	display: block;
	margin: 0;
	color: var(--ch-hl-label-color);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.uc-ch__highlight-value {
	display: block;
	margin: 0;
	color: var(--ch-hl-value-color);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.uc-ch__highlight-desc {
	display: block;
	margin: 0;
	color: var(--ch-hl-desc-color);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	white-space: normal;
	word-wrap: break-word;
}

/* ── Copy ─────────────────────────────────────────────────────────── */

.uc-ch__copy {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	min-width: 0;
	padding: var(--ch-copy-pad-top) var(--ch-copy-pad-right) var(--ch-copy-pad-bottom) var(--ch-copy-pad-left);
	background: var(--ch-copy-bg);
}

@media (min-width: 1025px) {
	.uc-ch--desk-image-right {
		--ch-copy-pad-left: 0;
	}

	.uc-ch--desk-image-left {
		--ch-copy-pad-right: 0;
	}
}

.uc-ch__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--ch-eyebrow-color) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.uc-ch__eyebrow::before {
	content: "";
	display: block;
	flex: 0 0 28px;
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: var(--ch-eyebrow-line-color);
}

.uc-ch__heading {
	margin: 0;
	padding: 0;
	color: var(--ch-heading-color) !important;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/*
 * La palabra resaltada hereda tipografía del heading y solo cambia color
 * (mismo patrón que Hero Slider).
 */
.uc-ch .uc-ch__heading .uc-ch__heading-accent,
.uc-ch .uc-ch__heading > .uc-ch__heading-accent {
	color: var(--ch-accent-color) !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	font-variant: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	background: transparent !important;
	-webkit-text-fill-color: currentColor;
}

.uc-ch__body {
	margin: 0;
	padding: 0;
	color: var(--ch-body-color) !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}

.uc-ch__body p {
	margin: 0 0 1em;
	padding: 0;
	color: inherit !important;
}

.uc-ch__body p:last-child {
	margin-bottom: 0;
}

/* ── Highlights de contenido (3 columnas) ─────────────────────────── */

.uc-ch__copy-stats {
	display: grid;
	grid-template-columns: repeat(var(--ch-copy-stats-cols, 3), minmax(0, 1fr));
	gap: 32px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.uc-ch__copy-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.uc-ch__copy-stat-value {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--ch-copy-stat-value-color) !important;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.uc-ch__copy-stat-label {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--ch-copy-stat-label-color) !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

/* ── CTA ─────────────────────────────────────────────────────────── */

.uc-ch a.uc-ch__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	margin: 4px 0 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--ch-cta-bg);
	color: var(--ch-cta-color) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.uc-ch a.uc-ch__cta:hover,
.uc-ch a.uc-ch__cta:focus {
	background: var(--ch-cta-bg-hover);
	color: var(--ch-cta-color-hover) !important;
	text-decoration: none !important;
	outline: none;
	box-shadow: none;
}

.uc-ch a.uc-ch__cta:focus-visible {
	outline: 2px solid var(--ch-accent-color);
	outline-offset: 2px;
}

.uc-ch a.uc-ch__cta:visited {
	color: var(--ch-cta-color) !important;
}

.uc-ch a.uc-ch__cta:hover .uc-ch__cta-icon,
.uc-ch a.uc-ch__cta:focus .uc-ch__cta-icon {
	color: inherit;
}

.uc-ch__cta--icon-before {
	flex-direction: row;
}

.uc-ch__cta--icon-after {
	flex-direction: row;
}

.uc-ch__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: inherit;
}

.uc-ch__cta-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.uc-ch__cta-icon i,
.uc-ch__cta-icon i::before {
	color: inherit;
	font-size: inherit;
	line-height: 1;
}

.uc-ch__cta-text {
	display: inline-block;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.uc-ch {
		flex-direction: column !important;
	}

	.uc-ch--mob-image-bottom {
		flex-direction: column-reverse !important;
	}

	.uc-ch__media-wrap {
		flex: 0 0 auto;
		width: 100%;
		min-height: 320px;
	}

	.uc-ch__media-inner {
		flex: 1 1 auto;
		min-height: 320px;
	}

	.uc-ch__copy {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.uc-ch__copy {
		gap: 16px;
	}

	.uc-ch__heading {
		font-size: 1.625rem;
	}

	.uc-ch__body {
		font-size: 15px;
	}

	.uc-ch__copy-stats {
		grid-template-columns: repeat(var(--ch-copy-stats-cols, 3), minmax(0, 1fr));
		gap: 12px;
	}

	.uc-ch__copy-stat-value {
		font-size: 20px;
		line-height: 1.1;
	}

	.uc-ch__copy-stat-label {
		font-size: 10px;
		line-height: 1.25;
	}

	.uc-ch__highlight {
		--ch-hl-offset: 16px;
		--ch-hl-pad: 16px 18px;
		max-width: min(260px, calc(100% - 32px));
	}

	.uc-ch__highlight-value {
		font-size: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uc-ch a.uc-ch__cta {
		transition: none;
	}
}
