/* ==========================================================================
   DataClever · Hero MedTech AI
   Fondo con brillos, cuadrícula y ECG; título animado letra a letra;
   ilustración isométrica con inclinación 3D y estadísticas con contador.
   ========================================================================== */

.dc-mh {
	--dcmh-ink: #090d19;
	--dcmh-p: #675df6;
	--dcmh-ps: #8f8ff2;
	--dcmh-t1: #7272f7;
	--dcmh-t2: #b7b7ed;
	--dcmh-t3: #d3d3ea;
	--dcmh-a: #00dcb1;
	--dcmh-a2: #01f96d;

	position: relative;
	overflow: hidden;
	color: var(--dcmh-ink);
	font-family: Quicksand, Helvetica, Arial, sans-serif;
	border-radius: 0;
	isolation: isolate;
	background: linear-gradient(115deg, #fff 0%, #fff 45%, #f3f7f9 70%, #e9e9fa 100%);
}

/* A todo el ancho de la pantalla aunque el contenedor de Elementor sea más angosto */
.dc-mh--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

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

/* ---------- Fondo ---------- */
.dc-mh__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.dc-mh__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
}

.dc-mh__glow--a {
	width: 780px;
	height: 780px;
	background: var(--dcmh-t2);
	opacity: 0.55;
	right: -160px;
	top: -260px;
	animation: dcMhDrift 12s ease-in-out infinite;
}

.dc-mh__glow--b {
	width: 620px;
	height: 380px;
	background: var(--dcmh-a);
	opacity: 0.14;
	left: -180px;
	bottom: -220px;
	animation: dcMhDrift 14s ease-in-out -6s infinite;
}

.dc-mh__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(103, 93, 246, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(103, 93, 246, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

.dc-mh__ecgbg {
	position: absolute;
	left: 0;
	bottom: 18px;
	width: 100%;
	height: 70px;
	opacity: 0.28;
}

.dc-mh__ecgscroll {
	animation: dcMhScroll 6s linear infinite;
}

/* ---------- Layout ---------- */
.dc-mh__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(110px, 10vw, 140px);
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.dc-mh--no-visual .dc-mh__wrap {
	grid-template-columns: 1fr;
}

/* ---------- Texto ---------- */
.dc-mh .dc-mh__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid rgba(0, 220, 177, 0.4);
	background: rgba(0, 220, 177, 0.08);
	border-radius: 999px;
	color: #00a887;
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dc-mh__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dcmh-a);
	box-shadow: 0 0 0 0 rgba(0, 220, 177, 0.6);
	animation: dcMhPing 1.6s ease-out infinite;
}

.dc-mh .dc-mh__title,
.dc-mh .dc-mh__title * {
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: -0.02em !important;
}

.dc-mh .dc-mh__title {
	white-space: nowrap;
	font-size: clamp(52px, 7.2vw, 108px) !important;
	line-height: 0.95 !important;
	color: var(--dcmh-ink) !important;
	margin: 0 !important;
}

.dc-mh__word,
.dc-mh__ch {
	display: inline-block;
}

.dc-mh__grad {
	display: inline-block;
	background: linear-gradient(100deg, var(--dcmh-ps) 0%, var(--dcmh-p) 35%, var(--dcmh-a) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	background-size: 200% 100%;
	animation: dcMhShine 6s ease-in-out infinite;
}

.dc-mh .dc-mh__sub {
	margin: 18px 0 0;
	font-size: clamp(18px, 1.8vw, 24px);
	color: var(--dcmh-p);
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
}

.dc-mh__sub i {
	font-style: normal;
	color: var(--dcmh-a);
	margin: 0 0.25em;
}

.dc-mh .dc-mh__tag {
	margin: 28px 0 0;
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 1.25;
	color: var(--dcmh-ink);
	max-width: 20ch;
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
}

.dc-mh .dc-mh__tag strong {
	color: #00a887;
	position: relative;
	white-space: nowrap;
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
}

.dc-mh__tag strong::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	border-radius: 3px;
	background: var(--dcmh-a);
	transform-origin: left;
	animation: dcMhUnder 3.2s ease-in-out infinite;
}

.dc-mh .dc-mh__body {
	margin: 22px 0 0;
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.7;
	max-width: 60ch;
	font-family: Helvetica, Arial, sans-serif !important;
	font-weight: 400 !important;
	color: #3a4150 !important;
}

/* ---------- Botones ---------- */
.dc-mh__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.dc-mh .dc-mh__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 999px;
	font-size: 17px !important;
	text-decoration: none;
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
}

.dc-mh .dc-mh__btn--main {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, var(--dcmh-p), var(--dcmh-t1));
	color: #fff !important;
	box-shadow: 0 10px 30px -8px rgba(103, 93, 246, 0.7);
	transition:
		transform 0.25s,
		box-shadow 0.2s;
}

.dc-mh .dc-mh__btn--main:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -8px rgba(103, 93, 246, 0.9);
	color: #fff !important;
}

/* Brillo que cruza el botón principal */
.dc-mh__btn--main::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	animation: dcMhSweep 3.6s ease-in-out 2s infinite;
}

.dc-mh__btn--main span {
	display: inline-block;
	transition: transform 0.25s;
}

.dc-mh__btn--main:hover span {
	transform: translateX(5px);
}

.dc-mh .dc-mh__btn--ghost {
	border: 1.5px solid var(--dcmh-t2);
	color: var(--dcmh-p) !important;
	background: #fff;
	transition:
		transform 0.2s,
		box-shadow 0.2s,
		background 0.2s;
}

.dc-mh .dc-mh__btn--ghost:hover {
	border-color: var(--dcmh-p);
	background: #f3f7f9;
	color: var(--dcmh-p) !important;
}

/* ---------- Estadísticas ---------- */
.dc-mh__stats {
	list-style: none;
	margin: 44px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid var(--dcmh-t3);
	display: grid;
	grid-template-columns: repeat(var(--dcmh-stat-cols, 3), minmax(0, 1fr));
	gap: 16px 28px;
	max-width: 620px;
}

.dc-mh__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 0;
}

.dc-mh .dc-mh__stats b,
.dc-mh .dc-mh__stats b .dc-mh__num {
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(24px, 2.3vw, 32px) !important;
	color: var(--dcmh-p) !important;
	line-height: 1.1 !important;
}

.dc-mh__stats b .dc-mh__num {
	display: inline;
}

.dc-mh .dc-mh__stat > span {
	font-family: Helvetica, Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #3a4150 !important;
	line-height: 1.4 !important;
}

/* ---------- Ilustración ---------- */
.dc-mh__visual {
	position: relative;
}

.dc-mh__stage {
	position: relative;
	aspect-ratio: 1;
	max-width: 540px;
	margin: 0 auto;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.dc-mh__stage::before {
	content: "";
	position: absolute;
	inset: 4% 2%;
	border-radius: 32px;
	border: 1px solid var(--dcmh-t3);
	background: linear-gradient(160deg, #f3f7f9, #fff 70%);
	box-shadow: 0 30px 60px -30px rgba(103, 93, 246, 0.35);
}

.dc-mh__svg {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
}

.dc-mh__cube {
	animation: dcMhFloat 3.2s ease-in-out infinite;
}

.dc-mh__ecg {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: dcMhDraw 3.2s ease-in-out infinite;
}

.dc-mh__wave {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: dcMhDraw 3.2s ease-in-out 0.4s infinite;
}

.dc-mh__flow {
	animation: dcMhFlowa 1s linear infinite;
}

.dc-mh__halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: dcMhPulse 1.6s ease-out infinite;
}

.dc-mh__col {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.dc-mh__chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 14px;
	font-size: 14px;
	white-space: nowrap;
	animation: dcMhFloat 4s ease-in-out infinite;
}

.dc-mh .dc-mh__chip {
	font-family: Quicksand, Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
}

.dc-mh__chip--a {
	left: 2%;
	top: 10%;
	background: #fff;
	border: 1px solid var(--dcmh-t2);
	color: var(--dcmh-ink);
	box-shadow: 0 10px 24px -10px rgba(103, 93, 246, 0.45);
}

.dc-mh__chip--b {
	right: 0;
	bottom: 12%;
	background: var(--dcmh-a);
	color: var(--dcmh-ink);
	animation-delay: -2s;
	box-shadow: 0 10px 24px -8px rgba(0, 220, 177, 0.6);
}

.dc-mh__chip--b svg {
	width: 16px;
	height: 16px;
}

.dc-mh__live {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dcmh-a2);
	animation: dcMhPing 1.6s ease-out infinite;
}

/* Parallax: el JS mueve cada capa según el puntero */
.dc-mh [data-depth] {
	translate: var(--px, 0) var(--py, 0);
	transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Animaciones ---------- */
@keyframes dcMhFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

@keyframes dcMhDraw {
	0% {
		stroke-dashoffset: 1;
		opacity: 1;
	}
	45%,
	80% {
		stroke-dashoffset: 0;
		opacity: 1;
	}
	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}

@keyframes dcMhFlowa {
	to {
		stroke-dashoffset: -6;
	}
}

@keyframes dcMhPulse {
	0% {
		transform: scale(0.8);
		opacity: 0.7;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

@keyframes dcMhPing {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 220, 177, 0.6);
	}
	100% {
		box-shadow: 0 0 0 10px rgba(0, 220, 177, 0);
	}
}

@keyframes dcMhShine {
	0%,
	100% {
		background-position: 0% 0;
	}
	50% {
		background-position: 100% 0;
	}
}

@keyframes dcMhUnder {
	0% {
		transform: scaleX(0);
	}
	40%,
	85% {
		transform: scaleX(1);
	}
	100% {
		transform: scaleX(1);
		opacity: 0;
	}
}

@keyframes dcMhScroll {
	to {
		transform: translateX(-400px);
	}
}

@keyframes dcMhDrift {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-40px, 30px);
	}
}

@keyframes dcMhRise {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dcMhPop {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dcMhGrow {
	to {
		transform: scaleY(1);
	}
}

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

@keyframes dcMhSweep {
	0% {
		left: -60%;
	}
	35%,
	100% {
		left: 130%;
	}
}

@keyframes dcMhChipin {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Fuera de pantalla se pausan todas las animaciones */
.dc-mh.dc-mh--paused,
.dc-mh.dc-mh--paused * {
	animation-play-state: paused !important;
}

/* ---------- Movimiento de entrada (solo cuando el JS está activo) ---------- */
.dc-mh--js .dc-mh__in {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--d) * 0.09s + 0.1s);
}

.dc-mh--js.dc-mh--on .dc-mh__in {
	opacity: 1;
	transform: none;
}

.dc-mh--js .dc-mh__visual.dc-mh__in {
	transform: translateY(28px) scale(0.94);
}

.dc-mh--js.dc-mh--on .dc-mh__visual.dc-mh__in {
	transform: none;
}

.dc-mh--js .dc-mh__ch {
	opacity: 0;
	transform: translateY(0.55em) rotate(6deg);
}

.dc-mh--js.dc-mh--on .dc-mh__ch {
	animation: dcMhRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
	animation-delay: calc(var(--i) * 0.05s + 0.15s);
}

.dc-mh--js .dc-mh__grad {
	opacity: 0;
	transform: scale(0.6);
}

.dc-mh--js.dc-mh--on .dc-mh__grad {
	animation:
		dcMhPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.3) 0.6s forwards,
		dcMhShine 6s ease-in-out 1.4s infinite;
}

.dc-mh--js .dc-mh__col {
	transform: scaleY(0);
}

.dc-mh--js.dc-mh--on .dc-mh__col {
	animation:
		dcMhGrow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) forwards,
		dcMhBreathe 3.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.14s + 0.7s), calc(var(--i) * 0.4s + 1.8s);
}

.dc-mh--js .dc-mh__chip--a {
	opacity: 0;
}

.dc-mh--js.dc-mh--on .dc-mh__chip--a {
	animation:
		dcMhChipin 0.6s ease-out 1.3s forwards,
		dcMhFloat 4s ease-in-out 1.9s infinite;
}

.dc-mh--js .dc-mh__chip--b {
	opacity: 0;
}

.dc-mh--js.dc-mh--on .dc-mh__chip--b {
	animation:
		dcMhChipin 0.6s ease-out 2s forwards,
		dcMhFloat 4s ease-in-out 2.6s infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.dc-mh .dc-mh__title {
		white-space: normal;
	}
}

@media (max-width: 900px) {
	.dc-mh .dc-mh__title {
		white-space: nowrap;
	}

	.dc-mh__wrap {
		grid-template-columns: 1fr;
	}

	.dc-mh__visual {
		order: -1;
	}

	.dc-mh__stage {
		max-width: 380px;
	}

	.dc-mh .dc-mh__tag {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.dc-mh .dc-mh__title {
		white-space: normal;
	}

	.dc-mh__stats {
		grid-template-columns: 1fr 1fr;
	}

	.dc-mh__chip {
		font-size: 12px;
		padding: 8px 12px;
	}

	.dc-mh .dc-mh__btn {
		width: 100%;
		justify-content: center;
	}
}

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

	.dc-mh__ecg,
	.dc-mh__wave {
		stroke-dashoffset: 0;
	}

	.dc-mh--js .dc-mh__in,
	.dc-mh--js .dc-mh__ch,
	.dc-mh--js .dc-mh__grad,
	.dc-mh--js .dc-mh__col,
	.dc-mh--js .dc-mh__chip {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.dc-mh__packets {
		display: none;
	}

	.dc-mh__stage {
		transform: none !important;
	}
}
