/* ==========================================================================
   DataClever · Insights Hero (header animado con ilustración isométrica)
   ========================================================================== */

.dc-ih {
	--dcih-p: #675df6;
	--dcih-ps: #8f8ff2;
	--dcih-t2: #d3d3ea;
	--dcih-a: #00dcb1;
	--dcih-a2: #01f96d;
	--dcih-ink: #090d19;
	--dcih-g0: #8e95a5;
	--dcih-lt: #f3f7f9;

	position: relative;
	overflow: hidden;
	font-family: Helvetica, Arial, sans-serif;
	color: var(--dcih-ink);
	background:
		radial-gradient(55% 80% at 100% 10%, rgba(183, 183, 237, 0.55), transparent 70%),
		linear-gradient(rgba(211, 211, 234, 0.28) 1px, transparent 1px) 0 0 / 64px 64px,
		linear-gradient(90deg, rgba(211, 211, 234, 0.28) 1px, transparent 1px) 0 0 / 64px 64px,
		#fff;
}

.dc-ih *,
.dc-ih *::before,
.dc-ih *::after {
	box-sizing: border-box;
}

.dc-ih__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 72px 20px 80px;
	display: grid;
	grid-template-columns: 1.12fr 0.88fr;
	gap: 48px;
	align-items: center;
}

/* Sin ilustración: el texto ocupa todo el ancho */
.dc-ih--no-card .dc-ih__wrap {
	grid-template-columns: 1fr;
}

/* ---------- Texto ---------- */
.dc-ih .dc-ih__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 10px;
	border-radius: 999px;
	background: rgba(0, 220, 177, 0.08);
	border: 1.5px solid rgba(0, 220, 177, 0.45);
	font: 700 14px/1 Quicksand, Helvetica, Arial, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #00a886;
}

.dc-ih__pill i {
	position: relative;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 220, 177, 0.18);
	display: grid;
	place-items: center;
}

.dc-ih__pill i::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dcih-a);
	animation: dcIhPing 2s ease-in-out infinite;
}

.dc-ih .dc-ih__title {
	font-family: Quicksand, Helvetica, Arial, sans-serif;
	font-weight: 700;
	color: var(--dcih-ink);
	text-transform: none;
	margin: 22px 0 18px;
	font-size: clamp(40px, 5.6vw, 76px);
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.dc-ih .dc-ih__grad {
	background: linear-gradient(90deg, var(--dcih-p), var(--dcih-ps));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dc-ih .dc-ih__sub {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
	font: 600 clamp(17px, 1.8vw, 22px) / 1.3 Quicksand, Helvetica, Arial, sans-serif;
	color: var(--dcih-p);
	margin: 0 0 22px;
}

.dc-ih__sep {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--dcih-a);
}

.dc-ih .dc-ih__lead {
	font-size: 17px;
	line-height: 1.75;
	color: #3f4659;
	max-width: 600px;
	margin: 0 0 30px;
}

.dc-ih__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.dc-ih .dc-ih__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 28px;
	border-radius: 999px;
	font: 700 17px/1 Quicksand, Helvetica, Arial, sans-serif;
	text-decoration: none !important;
	transition: 0.2s;
}

.dc-ih .dc-ih__btn--primary {
	background: var(--dcih-p);
	color: #fff !important;
	box-shadow: 0 12px 28px -12px rgba(103, 93, 246, 0.8);
}

.dc-ih .dc-ih__btn--primary:hover {
	background: #5248e0;
	transform: translateY(-1px);
}

.dc-ih .dc-ih__btn--outline {
	border: 1.5px solid var(--dcih-ps);
	color: var(--dcih-p) !important;
	background: #fff;
}

.dc-ih .dc-ih__btn--outline:hover {
	background: var(--dcih-lt);
}

/* ---------- Tarjeta de ilustración ---------- */
.dc-ih__card {
	position: relative;
	aspect-ratio: 1 / 1;
	max-width: 500px;
	margin-left: auto;
	width: 100%;
	border-radius: 36px;
	border: 1.5px solid var(--dcih-t2);
	background: linear-gradient(160deg, #fff, #f7f7fd);
	box-shadow: 0 30px 70px -40px rgba(103, 93, 246, 0.55);
}

.dc-ih__svg {
	position: absolute;
	inset: 12% 2% 0;
	width: 96%;
	height: 86%;
	overflow: visible;
}

.dc-ih .dc-ih__chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 11px 16px;
	border-radius: 14px;
	font: 700 14px/1 Quicksand, Helvetica, Arial, sans-serif;
	background: #fff;
	border: 1.5px solid var(--dcih-t2);
	box-shadow: 0 10px 24px -14px rgba(9, 13, 25, 0.35);
	animation: dcIhFloat 4s ease-in-out infinite;
}

.dc-ih__chip i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dcih-a2);
	box-shadow: 0 0 0 4px rgba(1, 249, 109, 0.18);
}

.dc-ih .dc-ih__chip--in {
	left: -6%;
	top: 4%;
}

.dc-ih .dc-ih__chip--gh {
	right: 4%;
	top: 4%;
	animation-delay: -1.4s;
	background: var(--dcih-ink);
	border-color: var(--dcih-ink);
	color: #fff !important;
	text-decoration: none !important;
}

.dc-ih .dc-ih__chip--gh:hover {
	background: #1c2146;
}

.dc-ih__gh {
	width: 18px;
	height: 18px;
	flex: none;
}

.dc-ih__btn--outline .dc-ih__gh {
	width: 20px;
	height: 20px;
	color: var(--dcih-ink);
}

.dc-ih .dc-ih__chip--out {
	right: -5%;
	bottom: 9%;
	background: var(--dcih-a);
	border-color: var(--dcih-a);
	color: var(--dcih-ink);
	box-shadow: 0 14px 30px -12px rgba(0, 220, 177, 0.7);
	animation: dcIhPop 6s ease-in-out infinite;
}

.dc-ih__chip svg {
	width: 15px;
	height: 15px;
}

/* ---------- Animaciones de la ilustración ---------- */
.dc-ih__layer {
	animation: dcIhLift 6s ease-in-out infinite;
}

.dc-ih__l1 {
	--lift: 0px;
}

.dc-ih__l2 {
	--lift: -10px;
}

.dc-ih__l3 {
	--lift: -20px;
}

.dc-ih__bar {
	transform-box: fill-box;
	transform-origin: bottom;
	animation: dcIhBar 3s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.15s);
}

.dc-ih__lens {
	animation: dcIhLens 6s ease-in-out infinite;
}

.dc-ih__scan {
	animation: dcIhDashR 2s linear infinite;
}

.dc-ih__flow {
	animation: dcIhDash 1s linear infinite;
}

.dc-ih__dot {
	transform-box: fill-box;
	transform-origin: center;
	animation: dcIhNode 3s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.5s);
}

.dc-ih__net {
	animation: dcIhFloat 4s ease-in-out infinite;
	animation-delay: calc(var(--i) * -0.7s);
}

.dc-ih__ring {
	transform-box: fill-box;
	transform-origin: center;
	animation: dcIhRing 2s ease-out infinite;
}

@keyframes dcIhLift {
	0%,
	100% {
		transform: translateY(0);
	}
	45%,
	60% {
		transform: translateY(var(--lift));
	}
}

@keyframes dcIhBar {
	0%,
	100% {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(0.55);
	}
}

@keyframes dcIhLens {
	0%,
	100% {
		transform: translate(-40px, -6px);
	}
	30% {
		transform: translate(38px, -26px);
	}
	60% {
		transform: translate(30px, 10px);
	}
	80% {
		transform: translate(-20px, -4px);
	}
}

@keyframes dcIhDashR {
	to {
		stroke-dashoffset: -20;
	}
}

@keyframes dcIhNode {
	0%,
	70%,
	100% {
		transform: scale(1);
		fill-opacity: 0.55;
	}
	15% {
		transform: scale(1.5);
		fill-opacity: 1;
	}
}

@keyframes dcIhFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

@keyframes dcIhDash {
	to {
		stroke-dashoffset: -9.1;
	}
}

@keyframes dcIhRing {
	0% {
		transform: scale(1);
		opacity: 0.9;
	}
	100% {
		transform: scale(2.6);
		opacity: 0;
	}
}

@keyframes dcIhPing {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.35);
	}
}

@keyframes dcIhPop {
	0%,
	12% {
		transform: translateY(8px) scale(0.94);
		opacity: 0.55;
	}
	22%,
	88% {
		transform: none;
		opacity: 1;
	}
	100% {
		transform: translateY(8px) scale(0.94);
		opacity: 0.55;
	}
}

/* Fuera de pantalla se pausan las animaciones (lo marca hero-insights.js) */
.dc-ih.is-paused * {
	animation-play-state: paused !important;
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 900px) {
	.dc-ih__wrap {
		grid-template-columns: 1fr;
		padding: 48px 16px 56px;
		gap: 36px;
	}

	.dc-ih__card {
		margin: 0 auto;
		max-width: 440px;
	}

	.dc-ih .dc-ih__chip {
		font-size: 12.5px;
		padding: 9px 12px;
	}

	.dc-ih .dc-ih__chip--in {
		left: -2%;
	}

	.dc-ih .dc-ih__chip--out {
		right: -2%;
	}

	.dc-ih .dc-ih__btn {
		padding: 16px 22px;
		font-size: 16px;
	}

	.dc-ih .dc-ih__sub {
		font-size: 15px;
		gap: 6px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dc-ih * {
		animation: none !important;
	}
}
