/* ==========================================================================
   DataClever · Mission & Vision (panel de dos columnas con divisor ECG)
   ========================================================================== */

.dc-mv {
	--dc-mv-bg: #eceef3;
	--dc-mv-panel: #ffffff;
	--dc-mv-ink: #14163a;
	--dc-mv-muted: #555873;
	--dc-mv-violet: #5a52e8;
	--dc-mv-violet-tint: #eeedfe;
	--dc-mv-rule: #dadce6;

	background: var(--dc-mv-bg);
	color: var(--dc-mv-ink);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	padding: clamp(64px, 8vw, 112px) 16px;
}

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

.dc-mv__inner {
	max-width: 1160px;
	margin: 0 auto;
}

/* Panel con las dos columnas */
.dc-mv__panel {
	background: var(--dc-mv-panel);
	border: 1px solid var(--dc-mv-rule);
	border-radius: 16px;
	position: relative;
	display: grid;
	grid-template-columns: 1fr 64px 1fr;
}

/* Divisor central: una línea que late (onda PQRST) entre Misión y Visión */
.dc-mv__divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 0;
}

.dc-mv__divider::before,
.dc-mv__divider::after {
	content: "";
	flex: 1;
	width: 1px;
	background: linear-gradient(var(--dc-mv-rule), var(--dc-mv-rule));
}

.dc-mv__divider::before {
	background: linear-gradient(transparent, var(--dc-mv-rule));
}

.dc-mv__divider::after {
	background: linear-gradient(var(--dc-mv-rule), transparent);
}

.dc-mv__ecg {
	display: block;
	flex: none;
	overflow: visible;
}

.dc-mv__ecg--v {
	width: 48px;
	height: 160px;
}

.dc-mv__ecg--h {
	display: none;
	width: 160px;
	height: 48px;
}

.dc-mv__ecg-base {
	stroke: var(--dc-mv-violet);
	opacity: 0.22;
}

/* Barrido tipo monitor: un tramo brillante recorre el trazo */
.dc-mv__ecg-sweep {
	stroke: var(--dc-mv-violet);
	stroke-dasharray: 22 100;
	stroke-dashoffset: 122;
	filter: drop-shadow(0 0 3px rgba(90, 82, 232, 0.55));
	animation: dcMvSweep 2.4s linear infinite;
}

@keyframes dcMvSweep {
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dc-mv__ecg-sweep {
		animation: none;
		stroke-dasharray: none;
		filter: none;
	}

	.dc-mv__ecg-base {
		opacity: 0;
	}
}

.dc-mv__item {
	padding: clamp(32px, 4.5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dc-mv__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--dc-mv-violet-tint);
	color: var(--dc-mv-violet);
	display: grid;
	place-items: center;
}

.dc-mv__icon svg {
	width: 24px;
	height: 24px;
}

.dc-mv__icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* .dc-mv .dc-mv__x sube la especificidad para ganarle a los estilos de h1-h6, p y ul del tema */
.dc-mv .dc-mv__title {
	font-family: inherit;
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--dc-mv-ink);
	text-transform: none;
	margin: 0;
}

.dc-mv .dc-mv__when {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dc-mv-muted);
	margin: -10px 0 0;
}

.dc-mv .dc-mv__text {
	font-size: clamp(1.05rem, 1.35vw, 1.2rem);
	line-height: 1.6;
	color: var(--dc-mv-ink);
	margin: 0;
	max-width: 40ch;
}

.dc-mv .dc-mv__tags {
	list-style: none;
	padding: 18px 0 0;
	margin: auto 0 0;
	border-top: 1px solid var(--dc-mv-rule);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.dc-mv .dc-mv__tags li {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dc-mv-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
}

.dc-mv .dc-mv__tags li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dc-mv-violet);
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 860px) {
	.dc-mv__panel {
		grid-template-columns: 1fr;
	}

	.dc-mv__divider {
		flex-direction: row;
		padding: 0 32px;
	}

	.dc-mv__divider::before {
		background: linear-gradient(90deg, transparent, var(--dc-mv-rule));
	}

	.dc-mv__divider::after {
		background: linear-gradient(90deg, var(--dc-mv-rule), transparent);
	}

	.dc-mv__divider::before,
	.dc-mv__divider::after {
		width: auto;
		height: 1px;
	}

	.dc-mv__ecg--v {
		display: none;
	}

	.dc-mv__ecg--h {
		display: block;
	}
}
