/* Sección "Ecosistema Mothus" y acceso a Mothus Connect. Usa los colores de la marca (variables de Avada). */
.mx-eco {
	--mx-navy: var(--awb-color4, #003267);
	--mx-blue: var(--awb-color5, #327ec7);
	--mx-red: var(--awb-custom_color_1, #d9412b);
	--mx-sun: #f2b13c;
	--mx-line: rgba(255, 255, 255, .14);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* Ancho completo aunque #main tenga relleno lateral. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 110px 30px 120px;
	box-sizing: border-box;
	color: #fff;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	background:
		radial-gradient(1200px 520px at 85% 0%, rgba(50, 126, 199, .45), transparent 60%),
		radial-gradient(900px 480px at 0% 100%, rgba(242, 177, 60, .12), transparent 60%),
		linear-gradient(160deg, #00224a 0%, var(--mx-navy) 55%, #013a78 100%);
}
/* Trama de puntos, eco del logo. */
.mx-eco::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}
.mx-eco__glow {
	position: absolute;
	width: 520px;
	height: 520px;
	right: -140px;
	top: 38%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 177, 60, .22), transparent 65%);
	filter: blur(10px);
}
.mx-eco__inner { max-width: 1200px; margin: 0 auto; }

.mx-eco__head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.mx-eco__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border: 1px solid var(--mx-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #ffe2a8;
}
.mx-eco__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mx-sun);
	box-shadow: 0 0 0 0 rgba(242, 177, 60, .7);
	animation: mx-pulse 2s infinite;
}
.mx-eco h2.mx-eco__title {
	/* !important: Avada define h2 con mayor especificidad. */
	margin: 22px 0 18px !important;
	color: #fff !important;
	font-family: Montserrat, Arial, Helvetica, sans-serif !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 4vw, 44px) !important;
	line-height: 1.15 !important;
	letter-spacing: 3px !important;
	text-transform: uppercase !important;
}
.mx-eco__title strong {
	font-weight: 600;
	background: linear-gradient(90deg, #ffd27a, #f08a3c);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.mx-eco__lead { margin: 0; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .8); }

/* Flujo: dispositivos -> plataforma -> equipo clínico */
.mx-eco__flow {
	list-style: none;
	margin: 0 0 80px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 56px 1fr 56px 1fr;
	align-items: stretch;
}
.mx-eco__step {
	position: relative;
	margin: 0;
	padding: 30px 28px 32px;
	border: 1px solid var(--mx-line);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.mx-eco__step:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, .3);
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
.mx-eco__step--hub {
	border-color: rgba(242, 177, 60, .5);
	background: linear-gradient(180deg, rgba(242, 177, 60, .16), rgba(255, 255, 255, .04));
	box-shadow: 0 0 0 1px rgba(242, 177, 60, .15), 0 30px 60px -30px rgba(242, 177, 60, .45);
}
.mx-eco__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .1);
	margin-bottom: 20px;
}
.mx-eco__step--hub .mx-eco__icon { background: linear-gradient(135deg, #ffd27a, #f08a3c); }
.mx-eco__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mx-eco__step--hub .mx-eco__icon svg { stroke: #002650; }
.mx-eco__num {
	position: absolute;
	top: 26px;
	right: 26px;
	font-size: 13px;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, .4);
}
.mx-eco .mx-eco__step h3 {
	margin: 0 0 10px;
	color: #fff;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .3px;
	line-height: 1.3;
}
.mx-eco__step p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .75); }

/* Conectores animados: los datos "viajan" entre las etapas. */
.mx-eco__link { display: flex; align-items: center; justify-content: center; }
.mx-eco__link span {
	position: relative;
	display: block;
	width: 100%;
	height: 2px;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
}
.mx-eco__link span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--mx-sun);
	box-shadow: 0 0 14px 3px rgba(242, 177, 60, .7);
	animation: mx-travel 2.4s ease-in-out infinite;
}

/* Vitrina: métricas + capturas reales de la plataforma */
.mx-eco__showcase {
	display: grid;
	grid-template-columns: minmax(260px, 4fr) 8fr;
	gap: 56px;
	align-items: center;
}
.mx-eco__stats { margin: 0; display: grid; gap: 14px; }
.mx-eco__stats > div {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--mx-line);
}
.mx-eco__stats dt {
	min-width: 104px;
	font-size: 38px;
	font-weight: 600;
	line-height: 1;
	background: linear-gradient(90deg, #fff, #9cc7f0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.mx-eco__stats dd { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.mx-eco__source { margin: 14px 0 30px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.mx-eco__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.mx-eco .mx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 15px 26px;
	border-radius: 10px;
	font-size: 14px;
	letter-spacing: 1px;
	text-decoration: none;
	transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.mx-eco .mx-btn--primary { background: var(--mx-red); color: #fff; }
.mx-eco .mx-btn--primary:hover { background: var(--mx-blue); color: #fff; transform: translateY(-2px); }
.mx-eco .mx-btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.mx-eco .mx-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.mx-eco .mx-btn:focus-visible,
.mx-eco__tabs button:focus-visible { outline: 2px solid var(--mx-sun); outline-offset: 3px; }

.mx-eco__screen {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .15);
	transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
	transition: transform .6s ease;
}
.mx-eco__screen:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.mx-eco__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	background: #eef2f7;
	border-bottom: 1px solid #dde3ea;
}
.mx-eco__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4dae2; }
.mx-eco__bar i:nth-child(1) { background: #ff6159; }
.mx-eco__bar i:nth-child(2) { background: #ffbd2e; }
.mx-eco__bar i:nth-child(3) { background: #28c941; }
.mx-eco__bar span {
	flex: 1;
	margin-left: 12px;
	padding: 5px 12px;
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	color: #5b6878;
	text-align: center;
}
.mx-eco__tabs { display: flex; gap: 4px; padding: 10px 12px 0; background: #f7f9fc; border-bottom: 1px solid #e6ebf1; }
.mx-eco .mx-eco__tabs button {
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #5b6878;
	cursor: pointer;
}
.mx-eco .mx-eco__tabs button[aria-selected="true"] { color: var(--mx-navy); border-bottom-color: var(--mx-blue); font-weight: 600; }
.mx-eco__shots { background: #fff; }
.mx-eco__shots img { display: block; width: 100%; height: auto; animation: mx-fade .45s ease; }
.mx-eco__shots img[hidden] { display: none; }

/* Aparición al hacer scroll (solo si hay JS; sin JS todo se ve igual). */
.mx-js .mx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.mx-js .mx-reveal.is-in { opacity: 1; transform: none; }
.mx-js .mx-eco__screen.mx-reveal.is-in { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.mx-js .mx-eco__screen.mx-reveal.is-in:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.mx-eco__flow .mx-reveal:nth-child(3) { transition-delay: .15s; }
.mx-eco__flow .mx-reveal:nth-child(5) { transition-delay: .3s; }

@keyframes mx-travel {
	0% { left: 0; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes mx-travel-v {
	0% { top: 0; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { top: calc(100% - 10px); opacity: 0; }
}
@keyframes mx-pulse {
	0% { box-shadow: 0 0 0 0 rgba(242, 177, 60, .7); }
	70% { box-shadow: 0 0 0 10px rgba(242, 177, 60, 0); }
	100% { box-shadow: 0 0 0 0 rgba(242, 177, 60, 0); }
}
@keyframes mx-fade { from { opacity: 0; } to { opacity: 1; } }

/* Menú: "MOTHUS CONNECT" destacado */
.awb-menu__main-li.mx-menu-connect > a,
.fusion-menu .mx-menu-connect > a { position: relative; }
.mx-menu-connect .menu-text {
	padding: 7px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	transition: background .25s ease, color .25s ease;
}
.mx-menu-connect > a:hover .menu-text { background: var(--awb-color4, #003267); border-color: var(--awb-color4, #003267); color: #fff; }

@media (max-width: 1024px) {
	.mx-eco { padding: 80px 24px 90px; }
	.mx-eco__showcase { grid-template-columns: 1fr; gap: 40px; }
	.mx-eco__screen,
	.mx-js .mx-eco__screen.mx-reveal.is-in { transform: none; }
}
@media (max-width: 860px) {
	.mx-eco__flow { grid-template-columns: 1fr; margin-bottom: 56px; }
	.mx-eco__link { height: 44px; }
	.mx-eco__link span {
		width: 2px;
		height: 100%;
		background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
	}
	.mx-eco__link span::after { left: 50%; top: 0; margin: 0 0 0 -5px; animation-name: mx-travel-v; }
	.mx-eco__head { margin-bottom: 44px; }
	.mx-eco__lead { font-size: 16px; }
	.mx-eco .mx-eco__tabs button { padding: 9px 8px; font-size: 12px; }
}
@media (max-width: 480px) {
	.mx-eco { padding: 64px 16px 72px; }
	.mx-eco__ctas .mx-btn { flex: 1 1 100%; }
	.mx-eco__stats dt { font-size: 32px; min-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
	.mx-eco *,
	.mx-eco *::after { animation: none !important; transition: none !important; }
	.mx-js .mx-reveal { opacity: 1; transform: none; }
}
