/* =========================================================
 * MATÍAS SYSTEMS — SECCIONES HOME V8
 * ========================================================= */

:root {
	--ms-section-shell: 1280px;
	--ms-section-gutter: clamp(20px, 4vw, 64px);
	--ms-section-ink: #1d1d1f;
	--ms-section-muted: #6e6e73;
	--ms-section-background: #f5f5f7;
	--ms-section-surface: #ffffff;
	--ms-section-blue: #0071e3;
}


/* =========================================================
 * BASE EDITORIAL
 * ========================================================= */

.ms-home-section {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	padding:
		clamp(78px, 9vw, 132px)
		0;
}

.ms-home-section__shell {
	width: min(
		calc(100% - (var(--ms-section-gutter) * 2)),
		var(--ms-section-shell)
	);
	margin-inline: auto;
}

.ms-home-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(34px, 5vw, 58px);
}

.ms-home-section__heading {
	max-width: 880px;
	margin: 0;
	color: var(--ms-section-ink);
	font-size: clamp(38px, 4.35vw, 62px);
	font-weight: 700;
	line-height: 1.01;
	letter-spacing: -0.052em;
	text-wrap: balance;
}

.ms-home-section__heading span {
	color: #86868b;
}

.ms-home-section__lead {
	max-width: 720px;
	margin: 20px 0 0;
	color: var(--ms-section-muted);
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.48;
	letter-spacing: -0.015em;
}

.ms-section-label {
	margin: 0 0 18px;
	color: var(--ms-section-blue);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}


/* =========================================================
 * CONTINUIDAD COMERCIAL
 * ========================================================= */

.ms-commercial-story {
	background:
		radial-gradient(
			circle at 78% 14%,
			rgba(48, 83, 255, 0.16),
			transparent 34%
		),
		linear-gradient(
			145deg,
			#071020 0%,
			#070708 58%,
			#15101e 100%
		);
	color: #f5f5f7;
}

.ms-commercial-story .ms-section-label {
	color: #9ec7ff;
}

.ms-commercial-story .ms-home-section__heading {
	max-width: 980px;
	color: #f5f5f7;
}

.ms-commercial-story .ms-home-section__heading span {
	color: rgba(245, 245, 247, 0.48);
}

.ms-commercial-story .ms-home-section__lead {
	color: rgba(245, 245, 247, 0.62);
}

.ms-panel-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(360px, 48vw, 680px);
	margin-top: 50px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 34px;
	overflow: hidden;
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.065),
			rgba(255, 255, 255, 0.025)
		);
	box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
	text-align: center;
}

.ms-panel-placeholder__copy {
	max-width: 420px;
	padding: 40px;
}

.ms-panel-placeholder__copy strong {
	display: block;
	color: #ffffff;
	font-size: clamp(22px, 2.2vw, 30px);
	letter-spacing: -0.03em;
}

.ms-panel-placeholder__copy span {
	display: block;
	margin-top: 12px;
	color: rgba(245, 245, 247, 0.48);
	font-size: 14px;
	line-height: 1.5;
}

.ms-process-track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 34px;
}

.ms-process-step {
	min-width: 0;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.035);
}

.ms-process-step__number {
	display: block;
	margin-bottom: 34px;
	color: #73aaff;
	font-size: 11px;
	font-weight: 700;
}

.ms-process-step__title {
	display: block;
	color: #f5f5f7;
	font-size: 16px;
	font-weight: 600;
}


/* =========================================================
 * CARRUSELES
 * ========================================================= */

.ms-card-band {
	background: var(--ms-section-background);
}

.ms-card-band--white {
	background: #ffffff;
}

.ms-card-band--muted {
	background: #ececf0;
}

.ms-card-band--dark {
	background: #080809;
	color: #f5f5f7;
}

.ms-card-band--dark .ms-home-section__heading {
	color: #f5f5f7;
}

.ms-card-band--dark .ms-home-section__heading span {
	color: rgba(245, 245, 247, 0.48);
}

.ms-card-band--dark .ms-home-section__lead {
	color: rgba(245, 245, 247, 0.58);
}

.ms-carousel-controls {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

.ms-carousel-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(29, 29, 31, 0.08);
	color: var(--ms-section-ink);
	font-size: 20px;
	cursor: pointer;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.ms-carousel-control:hover {
	background: rgba(29, 29, 31, 0.14);
	transform: translateY(-1px);
}

.ms-card-band--dark .ms-carousel-control {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.ms-feature-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(310px, 31%);
	gap: 18px;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 14px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.ms-feature-track::-webkit-scrollbar {
	display: none;
}

.ms-feature-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 500px;
	padding: 30px;
	border: 1px solid rgba(29, 29, 31, 0.06);
	border-radius: 30px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 18px 58px rgba(18, 22, 34, 0.05);
	scroll-snap-align: start;
}

.ms-card-band--dark .ms-feature-card {
	border-color: rgba(255, 255, 255, 0.09);
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.075),
			rgba(255, 255, 255, 0.025)
		);
	box-shadow: none;
}

.ms-feature-card__number {
	display: block;
	margin-bottom: 48px;
	color: var(--ms-section-blue);
	font-size: 11px;
	font-weight: 700;
}

.ms-feature-card__title {
	margin: 0;
	color: var(--ms-section-ink);
	font-size: clamp(27px, 2.5vw, 38px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.045em;
}

.ms-card-band--dark .ms-feature-card__title {
	color: #ffffff;
}

.ms-feature-card__description {
	margin: 16px 0 0;
	color: var(--ms-section-muted);
	font-size: 16px;
	line-height: 1.5;
}

.ms-card-band--dark .ms-feature-card__description {
	color: rgba(245, 245, 247, 0.58);
}

.ms-feature-card__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 210px;
	margin-top: 30px;
	border-radius: 22px;
	background:
		radial-gradient(
			circle at 50% 38%,
			rgba(59, 113, 255, 0.12),
			transparent 45%
		),
		#f1f1f4;
	color: #86868b;
	text-align: center;
}

.ms-card-band--dark .ms-feature-card__visual {
	border: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(
			circle at 50% 38%,
			rgba(61, 100, 255, 0.18),
			transparent 48%
		),
		rgba(255, 255, 255, 0.035);
	color: rgba(245, 245, 247, 0.42);
}

.ms-feature-card__visual span {
	max-width: 230px;
	padding: 24px;
	font-size: 13px;
	line-height: 1.45;
}


/* =========================================================
 * CONEXIV CORE
 * ========================================================= */

.ms-core-section {
	background:
		radial-gradient(
			circle at 50% 18%,
			rgba(0, 113, 227, 0.13),
			transparent 34%
		),
		#ffffff;
}

.ms-core-intro {
	max-width: 850px;
	margin-inline: auto;
	text-align: center;
}

.ms-core-intro .ms-home-section__heading,
.ms-core-intro .ms-home-section__lead {
	margin-inline: auto;
}

.ms-core-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 56px;
}

.ms-core-item {
	min-width: 0;
	padding: 28px;
	border: 1px solid rgba(29, 29, 31, 0.08);
	border-radius: 24px;
	background: rgba(245, 245, 247, 0.72);
}

.ms-core-item strong {
	display: block;
	color: var(--ms-section-ink);
	font-size: 19px;
	letter-spacing: -0.025em;
}

.ms-core-item span {
	display: block;
	margin-top: 12px;
	color: var(--ms-section-muted);
	font-size: 14px;
	line-height: 1.5;
}


/* =========================================================
 * DIRECCIÓN PERSONAL
 * ========================================================= */

.ms-founder-section {
	background: #ececf0;
}

.ms-founder-grid {
	display: grid;
	grid-template-columns:
		minmax(0, 0.9fr)
		minmax(420px, 1.1fr);
	align-items: center;
	gap: clamp(50px, 8vw, 110px);
}

.ms-founder-copy {
	max-width: 620px;
}

.ms-founder-copy .ms-home-section__heading {
	font-size: clamp(38px, 4.3vw, 60px);
}

.ms-founder-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 620px;
	border-radius: 34px;
	overflow: hidden;
	background:
		radial-gradient(
			circle at 52% 34%,
			rgba(66, 98, 255, 0.14),
			transparent 38%
		),
		#f5f5f7;
	color: #86868b;
	text-align: center;
}

.ms-founder-media span {
	max-width: 280px;
	padding: 30px;
	font-size: 14px;
	line-height: 1.5;
}


/* =========================================================
 * FAQ
 * ========================================================= */

.ms-faq-section {
	background: #ffffff;
}

.ms-faq-layout {
	display: grid;
	grid-template-columns:
		minmax(280px, 0.7fr)
		minmax(0, 1.3fr);
	gap: clamp(50px, 8vw, 120px);
}

.ms-faq-list {
	border-top: 1px solid rgba(29, 29, 31, 0.14);
}

.ms-faq-item {
	border-bottom: 1px solid rgba(29, 29, 31, 0.14);
}

.ms-faq-item summary {
	position: relative;
	padding: 24px 42px 24px 0;
	color: var(--ms-section-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.ms-faq-item summary::-webkit-details-marker {
	display: none;
}

.ms-faq-item summary::after {
	position: absolute;
	top: 24px;
	right: 3px;
	content: "+";
	color: #86868b;
	font-size: 24px;
	font-weight: 400;
}

.ms-faq-item[open] summary::after {
	content: "−";
}

.ms-faq-item p {
	max-width: 680px;
	margin: 0;
	padding: 0 42px 26px 0;
	color: var(--ms-section-muted);
	font-size: 15px;
	line-height: 1.58;
}


/* =========================================================
 * CTA FINAL
 * ========================================================= */

.ms-final-cta {
	padding:
		clamp(90px, 11vw, 160px)
		0;
	background:
		radial-gradient(
			circle at 50% 90%,
			rgba(0, 113, 227, 0.15),
			transparent 38%
		),
		#f5f5f7;
	text-align: center;
}

.ms-final-cta__content {
	max-width: 900px;
	margin-inline: auto;
}

.ms-final-cta__content .ms-home-section__heading,
.ms-final-cta__content .ms-home-section__lead {
	margin-inline: auto;
}

.ms-final-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	margin-top: 30px;
	padding: 0 25px;
	border-radius: 999px;
	background: var(--ms-section-blue);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.ms-final-cta__button:hover {
	background: #0077ed;
	color: #ffffff;
	transform: translateY(-1px);
}


/* =========================================================
 * RESPONSIVE
 * ========================================================= */

@media (max-width: 900px) {
	.ms-process-track {
		grid-template-columns: repeat(5, minmax(190px, 1fr));
		overflow-x: auto;
		padding-bottom: 12px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ms-process-step {
		scroll-snap-align: start;
	}

	.ms-core-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-founder-grid,
	.ms-faq-layout {
		grid-template-columns: 1fr;
	}

	.ms-founder-media {
		min-height: 560px;
	}
}

@media (max-width: 680px) {
	:root {
		--ms-section-gutter: 20px;
	}

	.ms-home-section {
		padding:
			72px
			0
			88px;
	}

	.ms-home-section__header {
		align-items: flex-start;
		margin-bottom: 30px;
	}

	.ms-home-section__heading {
		max-width: 350px;
		font-size: clamp(38px, 10.4vw, 46px);
	}

	.ms-home-section__lead {
		margin-top: 16px;
		font-size: 17px;
	}

	.ms-carousel-controls {
		display: none;
	}

	.ms-panel-placeholder {
		min-height: 410px;
		margin-top: 36px;
		border-radius: 28px;
	}

	.ms-process-track {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc(100% - 44px);
		gap: 10px;
		margin-top: 24px;
		padding-right: 44px;
	}

	.ms-process-step {
		min-height: 150px;
	}

	.ms-feature-track {
		grid-auto-columns: calc(100% - 28px);
		gap: 12px;
		padding-right: 28px;
	}

	.ms-feature-card {
		min-height: 540px;
		padding: 25px;
		border-radius: 28px;
	}

	.ms-feature-card__number {
		margin-bottom: 36px;
	}

	.ms-feature-card__title {
		font-size: clamp(30px, 8.5vw, 37px);
	}

	.ms-feature-card__visual {
		min-height: 230px;
	}

	.ms-core-grid {
		grid-template-columns: 1fr;
		margin-top: 38px;
	}

	.ms-founder-media {
		min-height: 480px;
		border-radius: 28px;
	}

	.ms-faq-item summary {
		font-size: 17px;
	}
}

/* MS EDITORIAL CARDS V9 START */

/* =========================================================
 * SECUENCIA COMERCIAL
 * ========================================================= */

.ms-process-step__number {
	display: none !important;
}

.ms-process-step {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 126px;
}

.ms-process-step:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -13px;
	z-index: 2;
	content: "→";
	color: rgba(245, 245, 247, 0.28);
	font-size: 16px;
	transform: translateY(-50%);
}


/* =========================================================
 * CARDS EDITORIALES
 * ========================================================= */

.ms-editorial-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(350px, 31%);
	gap: 18px;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 14px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.ms-editorial-track::-webkit-scrollbar {
	display: none;
}

.ms-editorial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid rgba(29, 29, 31, 0.06);
	border-radius: 30px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 18px 58px rgba(18, 22, 34, 0.05);
	scroll-snap-align: start;
}

.ms-editorial-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #ececf0;
	color: inherit;
	text-decoration: none;
}

.ms-editorial-card__media::after {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(
			to bottom,
			transparent 54%,
			rgba(0, 0, 0, 0.03)
		);
	pointer-events: none;
}

.ms-editorial-card__visual {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ms-editorial-card__visual::before {
	position: absolute;
	width: 72%;
	height: 58%;
	border: 1px solid rgba(29, 29, 31, 0.1);
	border-radius: 18px;
	content: "";
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.8),
			rgba(255, 255, 255, 0.28)
		);
	box-shadow:
		0 20px 60px rgba(40, 46, 67, 0.1);
	transform: translateY(12%);
}

.ms-editorial-card__visual span {
	position: relative;
	z-index: 2;
	max-width: 220px;
	padding: 22px;
	color: #6e6e73;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.ms-editorial-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px 28px 28px;
}

.ms-editorial-card__eyebrow {
	margin: 0 0 11px;
	color: #515154;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.ms-editorial-card__title {
	margin: 0;
	color: #1d1d1f;
	font-size: clamp(27px, 2.4vw, 36px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.ms-editorial-card__description {
	margin: 14px 0 0;
	color: #6e6e73;
	font-size: 15px;
	line-height: 1.5;
}

.ms-editorial-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 24px;
	color: #0071e3;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.ms-editorial-card__link:hover {
	color: #0077ed;
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* =========================================================
 * VARIANTES VISUALES DE APLICACIONES
 * ========================================================= */

.ms-visual-opportunities {
	background:
		radial-gradient(
			circle at 76% 26%,
			rgba(84, 115, 255, 0.18),
			transparent 34%
		),
		#ececf0;
}

.ms-visual-clients {
	background:
		radial-gradient(
			circle at 35% 35%,
			rgba(64, 174, 255, 0.16),
			transparent 38%
		),
		#f1f1f4;
}

.ms-visual-agenda {
	background:
		radial-gradient(
			circle at 68% 64%,
			rgba(129, 99, 255, 0.17),
			transparent 36%
		),
		#ececf0;
}

.ms-visual-payments {
	background:
		radial-gradient(
			circle at 50% 42%,
			rgba(47, 181, 119, 0.15),
			transparent 38%
		),
		#f1f1f4;
}

.ms-visual-return {
	background:
		radial-gradient(
			circle at 55% 45%,
			rgba(0, 113, 227, 0.18),
			transparent 38%
		),
		#ececf0;
}


/* =========================================================
 * CARDS CON BOTÓN +
 * ========================================================= */

.ms-expand-card {
	position: relative;
}

.ms-expand-card__button {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1d1d1f;
	color: #ffffff;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition:
		transform 150ms ease,
		background-color 150ms ease;
}

.ms-expand-card__button:hover {
	background: #000000;
	transform: scale(1.04);
}


/* =========================================================
 * RETORNO
 * ========================================================= */

.ms-return-card .ms-editorial-card__media {
	aspect-ratio: 0.86 / 1;
	background: #ffffff;
}

.ms-return-card .ms-editorial-card__visual {
	inset: auto 0 0;
	height: 58%;
}

.ms-return-card .ms-editorial-card__visual::before {
	width: 82%;
	height: 70%;
}

.ms-return-card .ms-editorial-card__body {
	min-height: 245px;
}

.ms-return-card--investment
.ms-editorial-card__visual {
	background:
		radial-gradient(
			circle at 50% 70%,
			rgba(75, 117, 255, 0.12),
			transparent 48%
		);
}

.ms-return-card--source
.ms-editorial-card__visual {
	background:
		radial-gradient(
			circle at 50% 70%,
			rgba(130, 93, 255, 0.13),
			transparent 48%
		);
}

.ms-return-card--sales
.ms-editorial-card__visual {
	background:
		radial-gradient(
			circle at 50% 70%,
			rgba(45, 177, 112, 0.13),
			transparent 48%
		);
}

.ms-return-card--roi
.ms-editorial-card__visual {
	background:
		radial-gradient(
			circle at 50% 70%,
			rgba(0, 113, 227, 0.16),
			transparent 48%
		);
}


/* =========================================================
 * ADD-ONS INMERSIVOS
 * ========================================================= */

.ms-addons-band {
	background: #080809;
	color: #f5f5f7;
}

.ms-addons-band .ms-home-section__heading {
	color: #f5f5f7;
}

.ms-addons-band .ms-home-section__heading span {
	color: rgba(245, 245, 247, 0.48);
}

.ms-addons-band .ms-home-section__lead {
	color: rgba(245, 245, 247, 0.58);
}

.ms-addons-band .ms-carousel-control {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.ms-addon-card {
	position: relative;
	display: flex;
	min-height: 650px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 30px;
	overflow: hidden;
	background: #000000;
	color: #ffffff;
	scroll-snap-align: start;
}

.ms-addon-card__copy {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 30px;
}

.ms-addon-card__eyebrow {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	font-weight: 600;
}

.ms-addon-card__title {
	max-width: 330px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(27px, 2.5vw, 38px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.ms-addon-card__visual {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 36px;
	overflow: hidden;
}

.ms-addon-card__visual::before {
	position: absolute;
	inset: 26% 10% 4%;
	border-radius: 28px;
	content: "";
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.12),
			rgba(255, 255, 255, 0.015)
		);
	box-shadow:
		0 30px 90px rgba(0, 0, 0, 0.4);
}

.ms-addon-card__visual span {
	position: relative;
	z-index: 2;
	max-width: 240px;
	padding-bottom: 44px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.ms-addon-card--whatsapp {
	background:
		radial-gradient(
			circle at 50% 72%,
			rgba(45, 190, 110, 0.32),
			transparent 44%
		),
		#060807;
}

.ms-addon-card--mailing {
	background:
		radial-gradient(
			circle at 50% 72%,
			rgba(51, 119, 255, 0.34),
			transparent 44%
		),
		#050609;
}

.ms-addon-card--automation {
	background:
		radial-gradient(
			circle at 50% 72%,
			rgba(134, 91, 255, 0.36),
			transparent 44%
		),
		#070509;
}

.ms-addon-card--analytics {
	background:
		radial-gradient(
			circle at 50% 72%,
			rgba(0, 150, 255, 0.35),
			transparent 44%
		),
		#05080a;
}

.ms-addon-card--integrations {
	background:
		radial-gradient(
			circle at 50% 72%,
			rgba(226, 116, 57, 0.3),
			transparent 44%
		),
		#090605;
}

.ms-addon-card .ms-expand-card__button {
	background: #ffffff;
	color: #111113;
}


/* =========================================================
 * DIRECCIÓN PERSONAL
 * ========================================================= */

.ms-founder-tour {
	background: #f5f5f7;
}

.ms-founder-tour__title {
	margin-bottom: 44px;
}

.ms-founder-tour__panel {
	position: relative;
	display: grid;
	grid-template-columns:
		minmax(300px, 0.88fr)
		minmax(460px, 1.12fr);
	align-items: stretch;
	min-height: 500px;
	border-radius: 30px;
	overflow: hidden;
	background:
		linear-gradient(
			90deg,
			#dfe1e4 0%,
			#ececef 42%,
			#d98b51 100%
		);
}

.ms-founder-tour__copy {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(44px, 6vw, 78px);
	text-align: center;
}

.ms-founder-tour__copy-inner {
	max-width: 430px;
}

.ms-founder-tour__copy h3 {
	margin: 0;
	color: #1d1d1f;
	font-size: clamp(30px, 3vw, 43px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.ms-founder-tour__copy p {
	margin: 18px 0 0;
	color: #515154;
	font-size: 17px;
	line-height: 1.5;
}

.ms-founder-tour__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 26px;
	padding: 0 22px;
	border-radius: 999px;
	background: #1d1d1f;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ms-founder-tour__button:hover {
	background: #000000;
	color: #ffffff;
}

.ms-founder-tour__media {
	position: relative;
	min-height: 500px;
	overflow: hidden;
}

.ms-founder-tour__media::before {
	position: absolute;
	inset: 12% 8% 0;
	border-radius: 28px 28px 0 0;
	content: "";
	background:
		radial-gradient(
			circle at 50% 30%,
			rgba(255, 255, 255, 0.5),
			transparent 42%
		),
		rgba(255, 255, 255, 0.15);
}

.ms-founder-tour__media span {
	position: absolute;
	right: 50%;
	bottom: 46%;
	z-index: 2;
	width: 260px;
	color: rgba(29, 29, 31, 0.52);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	transform: translate(50%, 50%);
}


/* =========================================================
 * SOPORTE SIN NUMERACIÓN
 * ========================================================= */

.ms-support-card {
	min-height: 480px;
}

.ms-support-card .ms-editorial-card__media {
	aspect-ratio: 1.12 / 1;
	background: #151517;
}

.ms-support-card .ms-editorial-card__visual::before {
	border-color: rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.09),
			rgba(255, 255, 255, 0.015)
		);
}

.ms-support-card .ms-editorial-card__visual span {
	color: rgba(255, 255, 255, 0.42);
}


/* =========================================================
 * MODALES
 * ========================================================= */

.ms-modal[hidden] {
	display: none;
}

.ms-modal {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	opacity: 0;
	transition: opacity 180ms ease;
}

.ms-modal.is-open {
	opacity: 1;
}

.ms-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.ms-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(100%, 1040px);
	max-height: calc(100dvh - 56px);
	border: 1px solid rgba(0, 113, 227, 0.8);
	border-radius: 30px;
	overflow: auto;
	background: #ffffff;
	box-shadow: 0 36px 120px rgba(0, 0, 0, 0.28);
	-webkit-overflow-scrolling: touch;
}

.ms-modal__close {
	position: sticky;
	top: 18px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 18px 18px -58px auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1d1d1f;
	color: #ffffff;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.ms-modal__content {
	padding:
		clamp(54px, 7vw, 86px)
		clamp(32px, 7vw, 84px)
		clamp(38px, 6vw, 72px);
}

.ms-modal__eyebrow {
	margin: 0 0 16px;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 600;
}

.ms-modal__title {
	max-width: 780px;
	margin: 0;
	color: #1d1d1f;
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.052em;
}

.ms-modal__description {
	max-width: 760px;
	margin: 24px 0 0;
	color: #515154;
	font-size: clamp(17px, 1.7vw, 21px);
	line-height: 1.5;
}

.ms-modal__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 38px;
}

.ms-modal__detail {
	padding: 22px;
	border-radius: 20px;
	background: #f5f5f7;
}

.ms-modal__detail strong {
	display: block;
	color: #1d1d1f;
	font-size: 15px;
}

.ms-modal__detail span {
	display: block;
	margin-top: 9px;
	color: #6e6e73;
	font-size: 13px;
	line-height: 1.5;
}

.ms-modal__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	margin-top: 38px;
	border-radius: 26px;
	background:
		radial-gradient(
			circle at 50% 45%,
			rgba(0, 113, 227, 0.14),
			transparent 42%
		),
		#f5f5f7;
	color: #86868b;
	text-align: center;
}

.ms-modal__visual span {
	max-width: 340px;
	padding: 32px;
	font-size: 14px;
	line-height: 1.5;
}


/* =========================================================
 * RESPONSIVE
 * ========================================================= */

@media (max-width: 900px) {
	.ms-editorial-track {
		grid-auto-columns: minmax(340px, 72vw);
	}

	.ms-founder-tour__panel {
		grid-template-columns: 1fr;
	}

	.ms-founder-tour__media {
		min-height: 480px;
	}

	.ms-modal__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.ms-process-step:not(:last-child)::after {
		display: none;
	}

	.ms-editorial-track {
		grid-auto-columns: calc(100% - 28px);
		gap: 12px;
		padding-right: 28px;
	}

	.ms-editorial-card {
		border-radius: 28px;
	}

	.ms-editorial-card__body {
		padding: 24px 25px 26px;
	}

	.ms-editorial-card__title {
		font-size: clamp(29px, 8.5vw, 36px);
	}

	.ms-return-card .ms-editorial-card__media {
		aspect-ratio: 0.9 / 1;
	}

	.ms-addon-card {
		min-height: 590px;
		border-radius: 28px;
	}

	.ms-addon-card__copy {
		padding: 25px;
	}

	.ms-founder-tour__title {
		margin-bottom: 30px;
	}

	.ms-founder-tour__panel {
		border-radius: 28px;
	}

	.ms-founder-tour__copy {
		padding: 42px 26px;
	}

	.ms-founder-tour__media {
		min-height: 410px;
	}

	.ms-modal {
		align-items: stretch;
		padding:
			max(12px, env(safe-area-inset-top))
			12px
			max(12px, env(safe-area-inset-bottom));
	}

	.ms-modal__dialog {
		width: 100%;
		max-height: 100%;
		border-radius: 24px;
	}

	.ms-modal__close {
		top: 14px;
		margin: 14px 14px -54px auto;
	}

	.ms-modal__content {
		padding: 58px 24px 34px;
	}

	.ms-modal__title {
		font-size: clamp(38px, 11vw, 50px);
	}

	.ms-modal__visual {
		min-height: 300px;
	}
}

/* MS EDITORIAL CARDS V9 END */

/* === MS-SECTIONS-MOBILE-FINAL:START === */
/* =========================================================
 * RETORNO · COMPOSICIÓN MÓVIL FINAL
 * ========================================================= */

@media (max-width: 767px) {
	.ms-editorial-track {
		grid-auto-columns: calc(100% - 44px);
		gap: 14px;
		padding-right: 44px;
		scroll-padding-inline: 0 44px;
	}

	.ms-return-card {
		height: auto;
		min-height: 0;
		border-radius: 30px;
	}

	.ms-return-card .ms-editorial-card__body {
		min-height: 0;
		padding: 28px 24px 23px;
	}

	.ms-return-card .ms-editorial-card__eyebrow {
		margin-bottom: 13px;
		font-size: 14px;
		line-height: 1.3;
	}

	.ms-return-card .ms-editorial-card__title {
		margin-bottom: 18px;
		font-size: clamp(33px, 9.2vw, 41px);
		line-height: 1;
		letter-spacing: -0.05em;
	}

	.ms-return-card .ms-editorial-card__description {
		font-size: 17px;
		line-height: 1.48;
	}

	.ms-return-card .ms-editorial-card__media {
		height: clamp(240px, 67vw, 292px);
		min-height: 0;
		aspect-ratio: auto;
	}

	.ms-return-card .ms-editorial-card__visual {
		inset: 0;
		height: 100%;
	}

	.ms-return-card .ms-editorial-card__visual::before {
		width: calc(100% - 28px);
		height: calc(100% - 28px);
		border-radius: 23px;
	}

	.ms-return-card .ms-expand-card__button {
		right: 14px;
		bottom: 14px;
		width: 55px;
		height: 55px;
	}
}


/* =========================================================
 * MODAL EDITORIAL COMPARTIDO
 * Retorno y Add-ons.
 * ========================================================= */

html.ms-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.ms-modal {
	padding:
		max(18px, env(safe-area-inset-top))
		max(18px, env(safe-area-inset-right))
		max(18px, env(safe-area-inset-bottom))
		max(18px, env(safe-area-inset-left));
}

.ms-modal__backdrop {
	background: rgba(7, 8, 10, 0.76);
	backdrop-filter:
		blur(28px)
		saturate(0.68)
		brightness(0.72);
	-webkit-backdrop-filter:
		blur(28px)
		saturate(0.68)
		brightness(0.72);
	transform: translateZ(0);
}

.ms-modal__dialog {
	border: 1px solid rgba(255, 255, 255, 0.55);
	outline: 0;
	box-shadow:
		0 38px 120px rgba(0, 0, 0, 0.42),
		0 0 0 1px rgba(0, 0, 0, 0.025);
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.ms-modal__close {
	width: 46px;
	height: 46px;
	font-size: 28px;
	transition:
		transform 160ms ease,
		background-color 160ms ease;
}

.ms-modal__close:hover {
	transform: scale(1.04);
	background: #000000;
}

.ms-modal__close:focus {
	outline: none;
}

.ms-modal__close:focus-visible,
.ms-expand-card__button:focus-visible {
	outline: 3px solid #2997ff;
	outline-offset: 3px;
}

.ms-modal__title {
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.ms-modal__details {
	align-items: stretch;
}

.ms-modal__detail {
	border-radius: 24px;
	background: #f5f5f7;
}


/* =========================================================
 * MODAL · OPTIMIZACIÓN RESPONSIVE
 * ========================================================= */

@media (max-width: 767px) {
	.ms-modal {
		align-items: flex-end;
		padding:
			max(10px, env(safe-area-inset-top))
			10px
			max(10px, env(safe-area-inset-bottom));
	}

	.ms-modal__dialog {
		width: 100%;
		max-height: calc(
			100dvh
			- max(10px, env(safe-area-inset-top))
			- max(10px, env(safe-area-inset-bottom))
		);
		border: 0;
		border-radius: 29px;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		-webkit-overflow-scrolling: touch;
	}

	.ms-modal__close {
		position: sticky;
		top: 12px;
		width: 48px;
		height: 48px;
		margin: 12px 12px -60px auto;
		font-size: 29px;
	}

	.ms-modal__content {
		padding:
			68px
			24px
			calc(30px + env(safe-area-inset-bottom));
	}

	.ms-modal__eyebrow {
		margin-bottom: 16px;
		font-size: 15px;
		line-height: 1.3;
	}

	.ms-modal__title {
		max-width: none;
		font-size: clamp(39px, 11.2vw, 50px);
		line-height: 0.98;
		letter-spacing: -0.058em;
	}

	.ms-modal__description {
		margin-top: 27px;
		font-size: 20px;
		line-height: 1.46;
		letter-spacing: -0.02em;
	}

	.ms-modal__details {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 30px;
	}

	.ms-modal__detail {
		min-height: 0;
		padding: 24px 22px;
		border-radius: 23px;
	}

	.ms-modal__detail strong {
		margin-bottom: 11px;
		font-size: 21px;
		line-height: 1.15;
	}

	.ms-modal__detail span {
		font-size: 17px;
		line-height: 1.45;
	}

	.ms-modal__visual {
		min-height: 260px;
		margin-top: 28px;
		border-radius: 24px;
	}

	.ms-addon-card__copy {
		padding: 28px 24px 0;
	}

	.ms-addon-card__title {
		max-width: 100%;
		font-size: clamp(36px, 10vw, 43px);
		line-height: 1;
	}

	.ms-addon-card__visual {
		padding: 24px;
	}

	.ms-addon-card__visual::before {
		inset: 34% 8% 4%;
	}
}


/* =========================================================
 * REDUCCIÓN DE MOVIMIENTO
 * ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.ms-modal,
	.ms-modal__close {
		transition: none;
	}
}
/* === MS-SECTIONS-MOBILE-FINAL:END === */
