/* ==========================================================================
   JUG — Modern editorial layer (TASK-076)
   Loaded after brand.css + jug-motion.css. Advanced visual system for the
   public site: display scale, sticky blurred header, impact hero, marquee,
   bento grid, editorial blog, article reading experience and global effects.
   Brand palette only: #FD4326 / #252525 / #42454A / #737373 / #F3F3F3 / #FFFFFF.
   ========================================================================== */

:root {
	--mx-display-1: clamp(2.75rem, 6.2vw, 5.5rem);
	--mx-display-2: clamp(2.1rem, 4.4vw, 3.6rem);
	--mx-display-3: clamp(1.65rem, 2.8vw, 2.4rem);
	--mx-display-4: clamp(1.3rem, 1.9vw, 1.65rem);
	--mx-body-lg: clamp(1.02rem, 1.2vw, 1.15rem);
	--mx-space-section: clamp(72px, 9vw, 128px);
	--mx-radius-lg: 22px;
	--mx-radius: 16px;
	--mx-radius-sm: 10px;
	--mx-line: #E4E4E7;
	--mx-ink: #252525;
	--mx-slate: #42454A;
	--mx-steel: #737373;
	--mx-smoke: #F3F3F3;
	--mx-accent: #FD4326;
	--mx-glow: radial-gradient(circle at 50% 50%, rgba(253, 67, 38, .22), rgba(253, 67, 38, 0) 65%);
	--mx-shadow: 0 1px 1px rgba(37, 37, 37, .04), 0 24px 60px -40px rgba(37, 37, 37, .35);
}

/* --------------------------------------------------------------------------
   Global: texture, glows, typography scale, page transition
   -------------------------------------------------------------------------- */
body {
	position: relative;
}

/* subtle film grain (fixed overlay, never intercepts clicks) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: .035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
	mix-blend-mode: multiply;
}

body[data-page-transition] .wrapper {
	animation: mx-page-in .5s ease both;
}

@keyframes mx-page-in {
	from { opacity: 0; transform: translate3d(0, 10px, 0); }
	to { opacity: 1; transform: none; }
}

.mx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--jug-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mx-accent);
	margin: 0 0 18px;
}

.mx-eyebrow::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 1px;
	background: currentColor;
}

.mx-display {
	font-family: var(--jug-font-display);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.02;
	color: var(--mx-ink);
}

.mx-lead {
	font-family: var(--jug-font-body);
	font-size: var(--mx-body-lg);
	line-height: 1.75;
	color: var(--mx-slate);
}

.mx-section {
	padding: var(--mx-space-section) 0;
}

.mx-section--smoke { background: var(--mx-smoke); }
.mx-section--ink { background: var(--mx-ink); color: #fff; }

.mx-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: clamp(28px, 4vw, 52px);
}

.mx-section-head .mx-title {
	font-family: var(--jug-font-display);
	font-weight: 800;
	letter-spacing: -.03em;
	font-size: var(--mx-display-3);
	line-height: 1.05;
	margin: 0;
	color: inherit;
}

.mx-section-head .mx-link {
	font-family: var(--jug-font-mono);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mx-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--mx-accent);
	padding-bottom: 4px;
}

.mx-section-head .mx-link:hover { color: var(--mx-accent); }

.mx-section--ink .mx-section-head .mx-link { color: #fff; }

/* radial glows (decorative) */
.mx-glow {
	position: absolute;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: var(--mx-glow);
	filter: blur(10px);
	pointer-events: none;
	z-index: 0;
}

/* scroll progress bar (injected by jug-motion.js) */
.mx-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: var(--mx-accent);
	z-index: 9999;
	pointer-events: none;
}

/* sticky header + blur */
.main-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .82) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(228, 228, 231, .8);
}

.main-header.is-scrolled {
	background: rgba(255, 255, 255, .93) !important;
	box-shadow: 0 18px 40px -34px rgba(37, 37, 37, .65);
}

/* --------------------------------------------------------------------------
   HOME — impact hero (graphite, animated mesh/nodes, magnetic CTA)
   -------------------------------------------------------------------------- */
.mx-hero {
	position: relative;
	overflow: hidden;
	background: var(--mx-ink);
	color: #fff;
	padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 9vw, 112px);
	isolation: isolate;
}

.mx-hero__mesh {
	position: absolute;
	inset: -10%;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
	animation: mx-mesh-drift 26s linear infinite alternate;
}

@keyframes mx-mesh-drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(-24px, 18px, 0) scale(1.04); }
}

.mx-hero__nodes {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.mx-hero__nodes span {
	position: absolute;
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mx-accent);
	opacity: .65;
	box-shadow: 0 0 0 6px rgba(253, 67, 38, .12), 0 0 26px 6px rgba(253, 67, 38, .28);
}

.mx-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.mx-hero__title {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: var(--mx-display-1);
	line-height: .98;
	letter-spacing: -.045em;
	margin: 0 0 22px;
	color: #fff;
}

.mx-hero__title .mx-accent { color: var(--mx-accent); }

.mx-hero__subtitle {
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.7;
	color: #D4D4D8;
	max-width: 520px;
	margin: 0 0 32px;
}

.mx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.mx-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--jug-font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 26px;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
	will-change: transform;
}

.mx-btn--primary {
	background: var(--mx-accent);
	color: #fff !important;
}

.mx-btn--primary:hover { background: #e83a1f; color: #fff; }

.mx-btn--ghost {
	border-color: rgba(255, 255, 255, .35);
	color: #fff !important;
}

.mx-btn--ghost:hover { background: #fff; color: var(--mx-ink) !important; }

.mx-btn--dark {
	background: var(--mx-ink);
	color: #fff !important;
}

.mx-btn--dark:hover { background: var(--mx-accent); }

.mx-hero__panel {
	position: relative;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--mx-radius-lg);
	background: linear-gradient(160deg, rgba(66, 69, 74, .55), rgba(37, 37, 37, .2));
	padding: clamp(22px, 3vw, 34px);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.mx-hero__panel h2 {
	font-family: var(--jug-font-mono);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #A1A1AA;
	margin: 0 0 18px;
}

.mx-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.mx-hero__stat {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 12px;
}

.mx-hero__stat b {
	display: block;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.7rem, 2.6vw, 2.3rem);
	line-height: 1;
	color: #fff;
}

.mx-hero__stat span {
	font-size: 12px;
	color: #A1A1AA;
}

/* --------------------------------------------------------------------------
   Marquee band
   -------------------------------------------------------------------------- */
.mx-marquee {
	position: relative;
	overflow: hidden;
	background: var(--mx-accent);
	color: #fff;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.mx-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 36px;
	animation: mx-marquee 26s linear infinite;
}

.mx-marquee:hover .mx-marquee__track { animation-play-state: paused; }

.mx-marquee__item {
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 36px;
}

.mx-marquee__item::after {
	content: "✦";
	font-size: 12px;
	opacity: .7;
}

@keyframes mx-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   Bento grid (services + stats + CTA)
   -------------------------------------------------------------------------- */
.mx-bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(150px, auto);
	gap: 18px;
}

.mx-bento__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(22px, 2.6vw, 32px);
	border-radius: var(--mx-radius-lg);
	border: 1px solid var(--mx-line);
	background: #fff;
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: 0 1px 0 rgba(37, 37, 37, .02);
	transform-style: preserve-3d;
	transition: border-color .25s ease, box-shadow .3s ease;
}

.mx-bento__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(253, 67, 38, .12), transparent 65%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.mx-bento__card:hover::after { opacity: 1; }

.mx-bento__card:hover {
	border-color: rgba(253, 67, 38, .55);
	box-shadow: 0 26px 60px -44px rgba(37, 37, 37, .55);
}

.mx-bento__card h3 {
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: clamp(1.15rem, 1.7vw, 1.45rem);
	letter-spacing: -.02em;
	margin: 0 0 10px;
	color: var(--mx-ink);
}

.mx-bento__card p {
	font-size: .95rem;
	line-height: 1.7;
	color: var(--mx-slate);
	margin: 0;
}

.mx-bento__card--wide { grid-column: span 7; }
.mx-bento__card--tall { grid-column: span 5; grid-row: span 2; }
.mx-bento__card--half { grid-column: span 5; }
.mx-bento__card--ink {
	background: var(--mx-ink);
	border-color: rgba(255, 255, 255, .08);
	color: #fff;
}
.mx-bento__card--ink h3 { color: #fff; }
.mx-bento__card--ink p { color: #D4D4D8; }

.mx-bento__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(253, 67, 38, .1);
	color: var(--mx-accent);
	font-size: 20px;
	flex-shrink: 0;
}

.mx-bento__card--ink .mx-bento__icon {
	background: rgba(253, 67, 38, .16);
}

.mx-bento__kpi {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(2.4rem, 4vw, 3.4rem);
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--mx-ink);
}

.mx-bento__card--ink .mx-bento__kpi { color: #fff; }

.mx-bento__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mx-steel);
}

/* --------------------------------------------------------------------------
   Latest blog (home) + shared editorial cards
   -------------------------------------------------------------------------- */
.mx-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.mx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius-lg);
	overflow: hidden;
	text-decoration: none !important;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	height: 100%;
}

.mx-card:hover {
	border-color: rgba(253, 67, 38, .4);
	box-shadow: var(--mx-shadow);
}

.mx-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--mx-smoke);
	display: block;
}

.mx-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .7s cubic-bezier(.19, 1, .22, 1);
}

.mx-card:hover .mx-card__media img { transform: scale(1.06); }

.mx-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 20%, #3a3a3a, #252525 70%);
	color: rgba(255, 255, 255, .35);
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: -.04em;
}

.mx-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(18px, 2vw, 26px);
	flex: 1;
}

.mx-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mx-steel);
}

.mx-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid var(--mx-line);
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mx-slate);
	background: #fff;
	text-decoration: none !important;
	white-space: nowrap;
}

.mx-chip:hover { border-color: var(--mx-accent); color: var(--mx-accent); }

.mx-chip--accent {
	background: rgba(253, 67, 38, .1);
	border-color: rgba(253, 67, 38, .25);
	color: var(--mx-accent);
}

.mx-card__title {
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	letter-spacing: -.02em;
	line-height: 1.25;
	margin: 0;
	color: var(--mx-ink);
}

.mx-card__excerpt {
	font-size: .92rem;
	line-height: 1.65;
	color: var(--mx-slate);
	margin: 0;
}

.mx-card__more {
	margin-top: auto;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mx-accent);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* --------------------------------------------------------------------------
   BLOG INDEX — editorial hero, featured post, chips, grid
   -------------------------------------------------------------------------- */
.mx-blog-hero {
	position: relative;
	overflow: hidden;
	background: var(--mx-ink);
	color: #fff;
	padding: clamp(64px, 8vw, 108px) 0 clamp(52px, 7vw, 88px);
}

.mx-blog-hero .mx-hero__mesh { opacity: .8; }

.mx-blog-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
}

.mx-blog-hero h1 {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: var(--mx-display-1);
	letter-spacing: -.045em;
	line-height: 1;
	margin: 0 0 18px;
	color: #fff;
}

.mx-blog-hero p {
	font-size: var(--mx-body-lg);
	line-height: 1.7;
	color: #D4D4D8;
	max-width: 620px;
	margin: 0;
}

.mx-blog-wrap { padding: clamp(40px, 6vw, 80px) 0 var(--mx-space-section); }

.mx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.mx-chips .mx-chip { padding: 8px 14px; font-size: 11px; }

.mx-chips .mx-chip.is-active {
	background: var(--mx-accent);
	border-color: var(--mx-accent);
	color: #fff;
}

/* Featured post */
.mx-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	min-height: 420px;
	border-radius: calc(var(--mx-radius-lg) + 6px);
	overflow: hidden;
	margin-bottom: clamp(40px, 5vw, 72px);
	background: var(--mx-ink);
	text-decoration: none !important;
	position: relative;
}

.mx-featured__media {
	position: relative;
	overflow: hidden;
	min-height: 300px;
}

.mx-featured__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s cubic-bezier(.19, 1, .22, 1);
}

.mx-featured:hover .mx-featured__media img { transform: scale(1.05); }

.mx-featured__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 16px;
	padding: clamp(28px, 3.4vw, 48px);
	color: #fff;
}

.mx-featured__body::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(37, 37, 37, .96), rgba(37, 37, 37, .72));
	z-index: -1;
}

.mx-featured__title {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	letter-spacing: -.03em;
	line-height: 1.08;
	color: #fff;
	margin: 0;
}

.mx-featured__excerpt {
	color: #D4D4D8;
	font-size: .98rem;
	line-height: 1.7;
	margin: 0;
}

.mx-featured .mx-card__meta { color: #A1A1AA; }
.mx-featured .mx-card__meta .mx-chip {
	background: transparent;
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

.mx-grid-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.mx-empty {
	border: 1px dashed var(--mx-line);
	border-radius: var(--mx-radius);
	padding: 56px 24px;
	text-align: center;
	color: var(--mx-steel);
	background: #fff;
}

/* Brand pagination (reuses legacy <ul class="pagination">) */
.mx-pagination {
	display: flex;
	justify-content: center;
	margin-top: clamp(32px, 4vw, 56px);
}

.mx-pagination .pagination {
	gap: 6px;
	flex-wrap: wrap;
}

.mx-pagination .page-link {
	border: 1px solid var(--mx-line) !important;
	border-radius: 10px !important;
	color: var(--mx-slate) !important;
	font-family: var(--jug-font-mono);
	font-size: 12px;
	padding: 10px 15px;
	background: #fff;
	box-shadow: none !important;
}

.mx-pagination .page-item.active .page-link {
	background: var(--mx-ink) !important;
	border-color: var(--mx-ink) !important;
	color: #fff !important;
}

.mx-pagination .page-link:hover {
	border-color: var(--mx-accent) !important;
	color: var(--mx-accent) !important;
}

/* --------------------------------------------------------------------------
   ARTICLE — cover hero, editorial typography, reading progress, related
   -------------------------------------------------------------------------- */
.mx-read-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	background: var(--mx-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: 9998;
	pointer-events: none;
}

.mx-article-hero {
	position: relative;
	overflow: hidden;
	background: var(--mx-ink);
	color: #fff;
	min-height: clamp(380px, 52vw, 620px);
	display: flex;
	align-items: flex-end;
}

.mx-article-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mx-article-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	opacity: .55;
}

.mx-article-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(37, 37, 37, .25) 0%, rgba(37, 37, 37, .82) 70%, #252525 100%);
}

.mx-article-hero__body {
	position: relative;
	z-index: 1;
	padding: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 64px);
	max-width: 900px;
}

.mx-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #A1A1AA;
	margin-bottom: 22px;
}

.mx-breadcrumbs a { color: #E4E4E7 !important; text-decoration: none; }
.mx-breadcrumbs a:hover { color: var(--mx-accent) !important; }

.mx-article-title {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 4.6vw, 3.8rem);
	letter-spacing: -.04em;
	line-height: 1.03;
	color: #fff;
	margin: 0 0 20px;
}

.mx-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-family: var(--jug-font-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #D4D4D8;
}

.mx-article-meta .mx-chip {
	background: rgba(253, 67, 38, .16);
	border-color: rgba(253, 67, 38, .35);
	color: #fff;
}

.mx-article-body {
	padding: clamp(44px, 6vw, 84px) 0;
	background: #fff;
}

.mx-article-content {
	max-width: 760px;
	margin: 0 auto;
	font-family: var(--jug-font-body);
	font-size: clamp(1.02rem, 1.15vw, 1.14rem);
	line-height: 1.85;
	color: #3F3F46;
}

.mx-article-content > * + * { margin-top: 1.35em; }

.mx-article-content h2,
.mx-article-content h3,
.mx-article-content h4 {
	font-family: var(--jug-font-display);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.15;
	color: var(--mx-ink);
	margin-top: 1.9em;
	margin-bottom: .55em;
}

.mx-article-content h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mx-article-content h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }

.mx-article-content a { color: var(--mx-accent); text-decoration: underline; text-underline-offset: 3px; }

.mx-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mx-radius);
	display: block;
	margin: 2em auto;
}

.mx-article-content figure { margin: 2em 0; }
.mx-article-content figcaption {
	font-family: var(--jug-font-mono);
	font-size: 11px;
	color: var(--mx-steel);
	text-align: center;
	margin-top: 10px;
}

.mx-article-content blockquote {
	margin: 2em 0;
	padding: 18px 26px;
	border-left: 3px solid var(--mx-accent);
	background: var(--mx-smoke);
	border-radius: 0 var(--mx-radius-sm) var(--mx-radius-sm) 0;
	font-family: var(--jug-font-display);
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--mx-ink);
}

.mx-article-content ul,
.mx-article-content ol { padding-left: 1.35em; }
.mx-article-content li + li { margin-top: .45em; }

.mx-article-content hr {
	border: 0;
	border-top: 1px solid var(--mx-line);
	margin: 2.4em 0;
}

.mx-article-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}
.mx-article-content th,
.mx-article-content td {
	border-bottom: 1px solid var(--mx-line);
	padding: 10px 12px;
	text-align: left;
}

/* CTA panel */
.mx-article-cta {
	max-width: 760px;
	margin: clamp(36px, 5vw, 64px) auto 0;
	border-radius: var(--mx-radius-lg);
	background: var(--mx-ink);
	color: #fff;
	padding: clamp(26px, 3.4vw, 44px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: relative;
	overflow: hidden;
}

.mx-article-cta::before {
	content: "";
	position: absolute;
	right: -80px;
	top: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--mx-glow);
	pointer-events: none;
}

.mx-article-cta h2 {
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.3rem, 2.2vw, 1.8rem);
	letter-spacing: -.02em;
	margin: 0 0 8px;
	color: #fff;
}

.mx-article-cta p {
	margin: 0;
	color: #D4D4D8;
	font-size: .95rem;
}

/* Related */
.mx-related { background: var(--mx-smoke); padding: var(--mx-space-section) 0; }
.mx-related .mx-cards { margin-top: 8px; }

/* --------------------------------------------------------------------------
   TIENDA / CONTACTO — subtle modernization (no structural break)
   -------------------------------------------------------------------------- */
.ts-page-shop .shoping-cart-widget h3 { border-bottom-width: 2px; }

.products .product {
	border-radius: var(--mx-radius) !important;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.products .product:hover {
	border-color: rgba(253, 67, 38, .45) !important;
	box-shadow: 0 26px 50px -40px rgba(37, 37, 37, .5);
	transform: translateY(-3px);
}

.ts-contact-form .ts-wrapper { border-radius: var(--mx-radius-lg) !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
	.mx-hero__grid { grid-template-columns: 1fr; }
	.mx-hero__panel { max-width: 560px; }
	.mx-featured { grid-template-columns: 1fr; }
	.mx-featured__media { min-height: 260px; }
	.mx-bento__card--wide,
	.mx-bento__card--tall,
	.mx-bento__card--half { grid-column: span 6; grid-row: auto; }
}

@media (max-width: 991.98px) {
	.mx-grid-posts,
	.mx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-bento__card--wide,
	.mx-bento__card--tall,
	.mx-bento__card--half { grid-column: span 2; }
	.mx-hero { padding-top: 56px; }
}

@media (max-width: 575.98px) {
	.mx-grid-posts,
	.mx-cards { grid-template-columns: 1fr; }
	.mx-bento { grid-template-columns: 1fr; }
	.mx-bento__card--wide,
	.mx-bento__card--tall,
	.mx-bento__card--half { grid-column: span 1; }
	.mx-hero__stats { grid-template-columns: 1fr 1fr; }
	.mx-hero__actions .mx-btn { width: 100%; justify-content: center; }
	.mx-marquee__item { font-size: 12px; }
	.mx-article-hero { min-height: 340px; }
}

/* --------------------------------------------------------------------------
   Reduced motion / no-JS safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.mx-hero__mesh,
	.mx-marquee__track { animation: none !important; }
	.mx-card__media img { transition: none !important; }
	body[data-page-transition] .wrapper { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Bento span helpers + hosting plans
   -------------------------------------------------------------------------- */
.mx-bento__card--3 { grid-column: span 3; }
.mx-bento__card--4 { grid-column: span 4; }
.mx-bento__card--cta {
	grid-column: span 12;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.mx-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
	align-items: stretch;
}

.mx-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius-lg);
	padding: clamp(24px, 2.6vw, 34px);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.mx-plan:hover { border-color: rgba(253, 67, 38, .4); box-shadow: var(--mx-shadow); }

.mx-plan__head { border-bottom: 1px solid var(--mx-line); padding-bottom: 18px; margin-bottom: 18px; }

.mx-plan__price {
	display: block;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	letter-spacing: -.04em;
	color: var(--mx-ink);
	line-height: 1;
	margin-bottom: 8px;
}

.mx-plan__price small {
	font-family: var(--jug-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	color: var(--mx-steel);
}

.mx-plan h3 {
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--mx-slate);
	margin: 0;
}

.mx-plan .content-pricing { list-style: none; margin: 0; padding: 0; }

.mx-plan .content-pricing li {
	font-size: .92rem;
	color: var(--mx-slate);
	padding: 9px 0;
	border-bottom: 1px solid #EFEFF1;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.mx-plan .content-pricing li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mx-accent);
	flex-shrink: 0;
	transform: translateY(-2px);
}

.mx-plan--featured {
	background: var(--mx-ink);
	border-color: var(--mx-ink);
	color: #fff;
	transform: translateY(-8px);
}

.mx-plan--featured .mx-plan__price { color: #fff; }
.mx-plan--featured h3 { color: #D4D4D8; }
.mx-plan--featured .content-pricing li { color: #E4E4E7; border-bottom-color: rgba(255, 255, 255, .1); }

.mx-plan__badge {
	position: absolute;
	top: 18px;
	right: 18px;
	background: var(--mx-accent);
	color: #fff;
	font-family: var(--jug-font-mono);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Blog layout overrides (alternate layout uses an old sidebar/banner)
   -------------------------------------------------------------------------- */
body#blog #banner { display: none !important; }
body#blog #sidebar-right { display: none !important; }
body#blog #main-content > .container > .row > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
}
body#blog #main-content { padding-top: 0 !important; }
body#blog .mx-blog-wrap,
body#blog .mx-article { padding-top: clamp(24px, 3vw, 40px); }

.mx-blog-hero {
	border-radius: var(--mx-radius-lg);
	padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}

/* Generated split-text words (mask reveal) */
.mx-word { display: inline-block; overflow: hidden; vertical-align: top; }
.mx-word-inner { display: inline-block; will-change: transform; }

/* Article related panel needs its own container spacing */
body#blog .mx-article-body .container,
body#blog .mx-related .container,
body#blog .mx-blog-wrap > * { position: relative; }

@media (max-width: 991.98px) {
	.mx-plans { grid-template-columns: 1fr; }
	.mx-plan--featured { transform: none; }
}

/* --------------------------------------------------------------------------
   Mobile grid corrections (span helpers appended later must not leak to 1-col)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.mx-bento__card--3,
	.mx-bento__card--4 { grid-column: span 2; }
	.mx-bento__card--cta { grid-column: span 2; }
}

@media (max-width: 575.98px) {
	.mx-bento__card--wide,
	.mx-bento__card--tall,
	.mx-bento__card--half,
	.mx-bento__card--3,
	.mx-bento__card--4,
	.mx-bento__card--cta { grid-column: span 1; }
	.mx-bento__card { min-height: 0; }
	.mx-blog-hero,
	.mx-featured { border-radius: var(--mx-radius); }
}

/* Bento: keep headings top-aligned and meta at the bottom */
.mx-bento__card { justify-content: flex-start; }
.mx-bento__meta { margin-top: auto; }

/* --------------------------------------------------------------------------
   TASK-076 fixes: full-width blog column, article cover block, spacing
   -------------------------------------------------------------------------- */
body#blog #main-content .row > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Article: cover image as a block ABOVE the title (no text-over-art overlap) */
.mx-article-hero {
	display: block;
	background: var(--mx-ink);
	border-radius: var(--mx-radius-lg);
	overflow: hidden;
	min-height: 0;
	margin-top: clamp(16px, 2.4vw, 32px);
}

.mx-article-cover {
	position: relative;
	aspect-ratio: 21 / 9;
	max-height: 440px;
	overflow: hidden;
	background: #1c1c1c;
}

.mx-article-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mx-article-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(37, 37, 37, 0) 55%, rgba(37, 37, 37, .9) 100%);
	pointer-events: none;
}

.mx-article-hero__body {
	padding: clamp(26px, 3.4vw, 46px) clamp(22px, 3vw, 44px) clamp(30px, 4vw, 52px);
	max-width: 980px;
}

.mx-article-hero .mx-breadcrumbs { margin-bottom: 16px; }

body#blog .mx-related {
	border-radius: var(--mx-radius-lg);
	margin: clamp(28px, 4vw, 56px) auto 0;
	max-width: 100%;
}

body#blog .mx-article-body .container,
body#blog .mx-related .container { max-width: 1140px; }

/* Trim the legacy layout extra bottom spacing on blog pages */
body#blog .wrapper { padding-bottom: 0 !important; }
body#blog #main-content { padding-bottom: 0 !important; }
body#blog #container_full { padding-bottom: 0 !important; }

/* TASK-076: hard override for the legacy blog column (Bootstrap 3 layout) */
body#blog #main-content .col-md-9,
body#blog #main-content .col-lg-9,
body#blog #main-content [class*="col-md-9"] {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* Article cover: dimmed brand artwork as texture (avoid duplicated readable titles) */
.mx-article-cover {
	max-height: 340px;
}

.mx-article-cover img {
	opacity: .38;
	filter: saturate(.9);
}

.mx-article-cover::after {
	background: linear-gradient(180deg, rgba(37, 37, 37, .45) 0%, rgba(37, 37, 37, .85) 65%, #252525 100%);
}


/* Paginado del blog: contexto de página + controles */
.mx-pagination-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:clamp(32px,4vw,56px);}
.mx-pagination__meta{margin:0;font-family:var(--jug-font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mx-steel,#737373);}
.mx-pagination__meta strong{color:var(--mx-ink);}
.mx-pagination-wrap .mx-pagination{margin-top:0;}

/* ==========================================================================
   TASK-081 — UX polish del blog: gutter superior, chips y paginado alineado
   ========================================================================== */

/* 3) Gutter superior consistente en blog y artículo (header -> contenido) */
body#blog .mx-blog-wrap {
	padding-top: clamp(48px, 5vw, 72px) !important;
}

body#blog .mx-article {
	padding-top: clamp(48px, 5vw, 72px) !important;
}

.mx-blog-hero + .mx-chips {
	margin-top: clamp(24px, 3vw, 32px);
}

/* 2) Chips de categorías con aire real (fila/columna) */
.mx-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 12px;
	margin: clamp(24px, 3vw, 32px) 0 clamp(32px, 4vw, 40px);
}

.mx-chips .mx-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 16px;
	line-height: 1;
	font-size: 11px;
	letter-spacing: .1em;
}

.mx-chips .mx-chip.is-active {
	box-shadow: 0 10px 24px -18px rgba(253, 67, 38, .8);
}

/* 1) Paginado: cajas alineadas con el legacy (float/margins de Bootstrap 3) */
.mx-pagination-wrap {
	margin-top: clamp(40px, 5vw, 64px);
	gap: 14px;
}

.mx-pagination {
	display: flex;
	justify-content: center;
	width: 100%;
}

.mx-pagination .pagination {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	list-style: none;
}

.mx-pagination .pagination > li {
	display: inline-flex !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
}

.mx-pagination .page-link,
.mx-pagination .pagination > li > a,
.mx-pagination .pagination > li > span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 42px;
	min-width: 42px;
	padding: 0 16px !important;
	line-height: 1 !important;
	box-sizing: border-box;
	float: none !important;
	margin: 0 !important;
	position: static !important;
	border: 1px solid var(--mx-line) !important;
	border-radius: 10px !important;
	background: #fff;
	color: var(--mx-slate) !important;
	font-family: var(--jug-font-mono);
	font-size: 12px;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none !important;
	transform: none !important;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.mx-pagination .pagination > li:first-child > a,
.mx-pagination .pagination > li:first-child > span,
.mx-pagination .pagination > li:last-child > a,
.mx-pagination .pagination > li:last-child > span {
	border-radius: 10px !important;
}

.mx-pagination .page-item.active .page-link,
.mx-pagination .page-item.active .page-link:hover,
.mx-pagination .page-item.active .page-link:focus {
	background: var(--mx-ink) !important;
	border-color: var(--mx-ink) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.mx-pagination .page-item.disabled .page-link {
	background: #fff !important;
	border-color: var(--mx-line) !important;
	color: var(--mx-steel) !important;
	opacity: .55;
	cursor: not-allowed;
}

.mx-pagination .page-link:hover {
	background: #fff !important;
	border-color: var(--mx-accent) !important;
	color: var(--mx-accent) !important;
	transform: none !important;
}

.mx-pagination .page-link:focus-visible {
	outline: 2px solid var(--mx-accent);
	outline-offset: 2px;
}

/* Responsive: mismo alto y centrado, sin saltos */
@media (max-width: 575.98px) {
	.mx-chips {
		gap: 10px 8px;
		margin: 22px 0 32px;
	}
	.mx-chips .mx-chip {
		min-height: 36px;
		padding: 8px 13px;
		font-size: 10.5px;
	}
	.mx-pagination .pagination { gap: 6px; }
	.mx-pagination .page-link,
	.mx-pagination .pagination > li > a,
	.mx-pagination .pagination > li > span {
		height: 40px;
		min-width: 40px;
		padding: 0 12px !important;
		font-size: 11px;
	}
	.mx-pagination__meta { font-size: 10px; }
}

/* Filas incompletas (p. ej. página 4 con 2 notas): fila centrada, cards de ancho de columna */
.mx-grid-posts--partial { justify-content: center; }

@media (min-width: 992px) {
	.mx-grid-posts--partial {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: clamp(18px, 2.4vw, 28px);
	}

	.mx-grid-posts--partial .mx-card {
		flex: 0 1 calc((100% - 2 * clamp(18px, 2.4vw, 28px)) / 3);
		max-width: calc((100% - 2 * clamp(18px, 2.4vw, 28px)) / 3);
	}
}


/* TASK-086 — Tablet (2 columnas): si el número de cards es impar, la última
   card se centra a lo ancho para no dejar un hueco huérfano. */
@media (min-width: 576px) and (max-width: 991.98px) {
	.mx-grid-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mx-grid-posts > .mx-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - (clamp(18px, 2.4vw, 28px) / 2));
		max-width: calc(50% - (clamp(18px, 2.4vw, 28px) / 2));
	}
}

/* ==========================================================================
   TASK-095 — Fase 1: home de servicios, navegación sin tienda y páginas de
   servicio. Copy aprobado en docs/agents/copy/PHASE1_COPY.md.
   ========================================================================== */

/* ---------- Header: menú "Soluciones" (desplegable accesible) ---------- */
.solutions-nav { position: relative; }

.solutions-nav .solutions-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.solutions-nav .solutions-toggle::after {
	content: "\f107";
	font-family: "Font Awesome 7 Free"; font-weight: 900, sans-serif;
	font-size: 12px;
	line-height: 1;
	transition: transform .2s ease;
	position: static !important;
	color: inherit !important;
}

.solutions-nav.is-open .solutions-toggle::after,
.solutions-nav:hover .solutions-toggle::after { transform: rotate(180deg); }

.solutions-dropdown {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 268px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #252525;
	border-radius: 14px;
	box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 80;
}

.solutions-dropdown::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	width: 12px;
	height: 12px;
	background: #252525;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 2px;
}

.solutions-dropdown li { margin: 0; }

.solutions-dropdown a,
.solutions-dropdown a:visited {
	display: block;
	padding: 10px 14px;
	border-radius: 9px;
	color: #E4E4E7 !important;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none !important;
	white-space: nowrap;
}

.solutions-dropdown a:hover,
.solutions-dropdown a:focus-visible {
	background: rgba(253, 67, 38, .16);
	color: #fff !important;
	outline: none;
}

.solutions-nav:hover .solutions-dropdown,
.solutions-nav:focus-within .solutions-dropdown,
.solutions-nav.is-open .solutions-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

/* ---------- Home Fase 1 ---------- */
.mx-hero__micro {
	margin: 18px 0 0;
	font-family: var(--jug-font-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #A1A1AA;
}

.mx-builder {
	background: var(--mx-ink);
	color: #fff;
	border-radius: calc(var(--mx-radius-lg) + 6px);
	padding: clamp(24px, 3.4vw, 44px);
	margin: 0 0 clamp(48px, 6vw, 84px);
	position: relative;
	overflow: hidden;
}

.mx-builder::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -160px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: var(--mx-glow);
	pointer-events: none;
}

.mx-builder__label {
	margin: 0 0 20px;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.3rem, 2.2vw, 1.85rem);
	letter-spacing: -.02em;
	color: #fff;
}

.mx-builder__options {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.mx-builder__option {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 16px 16px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--mx-radius);
	background: rgba(255, 255, 255, .03);
	text-decoration: none !important;
	color: #fff !important;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.mx-builder__option:hover,
.mx-builder__option:focus-visible {
	border-color: rgba(253, 67, 38, .7);
	background: rgba(253, 67, 38, .12);
	outline: none;
}

.mx-builder__name {
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: .98rem;
	line-height: 1.2;
	letter-spacing: -.01em;
	padding-right: 18px;
}

.mx-builder__line {
	font-size: .8rem;
	line-height: 1.45;
	color: #C4C4C9;
}

.mx-builder__option i {
	position: absolute;
	top: 18px;
	right: 14px;
	font-size: 12px;
	color: var(--mx-accent);
	transition: transform .2s ease;
}

.mx-builder__option:hover i { transform: translateX(3px); }

.mx-builder__hint {
	margin: 18px 0 0;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #A1A1AA;
}

.mx-section-head--solutions { margin-bottom: clamp(26px, 3.4vw, 44px); }
.mx-section-head--solutions .mx-lead { margin: 14px 0 0; max-width: 62ch; }

.mx-solutions {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.mx-solution {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(22px, 2.4vw, 30px);
	background: #fff;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius-lg);
	transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
	transform-style: preserve-3d;
}

.mx-solution:hover {
	border-color: rgba(253, 67, 38, .45);
	box-shadow: 0 30px 60px -44px rgba(37, 37, 37, .55);
}

.mx-solution--1, .mx-solution--2 { grid-column: span 3; }
.mx-solution--3, .mx-solution--4, .mx-solution--5 { grid-column: span 2; }

.mx-solution__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(253, 67, 38, .1);
	color: var(--mx-accent);
	font-size: 19px;
}

.mx-solution__title {
	margin: 0;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.2rem, 1.7vw, 1.5rem);
	letter-spacing: -.02em;
	color: var(--mx-ink);
}

.mx-solution__desc {
	margin: 0;
	font-size: .95rem;
	line-height: 1.65;
	color: var(--mx-slate);
}

.mx-solution__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mx-solution__bullets li {
	position: relative;
	padding-left: 18px;
	font-size: .87rem;
	line-height: 1.55;
	color: var(--mx-steel);
}

.mx-solution__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .52em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mx-accent);
}

.mx-solution__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: .88rem;
	color: var(--mx-ink) !important;
	text-decoration: none !important;
	border-top: 1px solid var(--mx-line);
	padding-top: 14px;
}

.mx-solution__cta i { color: var(--mx-accent); font-size: 12px; transition: transform .2s ease; }
.mx-solution__cta:hover i { transform: translateX(4px); }

/* Proceso */
.mx-process {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	counter-reset: none;
}

.mx-process__step {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 20px 18px;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius);
	background: #fff;
}

.mx-process__step:nth-child(5),
.mx-process__step:nth-child(6),
.mx-process__step:nth-child(7) { grid-column: span 1; }

.mx-process__num {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mx-ink);
	color: #fff;
	font-family: var(--jug-font-mono);
	font-size: 12px;
	font-weight: 600;
}

.mx-process__title {
	margin: 0 0 6px;
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -.01em;
	color: var(--mx-ink);
}

.mx-process__text {
	margin: 0;
	font-size: .86rem;
	line-height: 1.55;
	color: var(--mx-slate);
}

/* Integraciones (sección grafito) */
.mx-section--ink .mx-lead { color: #D4D4D8; }
.mx-lead--light { color: #D4D4D8 !important; }
.mx-link--light { color: #fff !important; }

.mx-integrations {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.mx-integration {
	padding: clamp(20px, 2.2vw, 28px);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--mx-radius);
	background: rgba(255, 255, 255, .03);
}

.mx-integration__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(253, 67, 38, .16);
	color: var(--mx-accent);
	font-size: 18px;
	margin-bottom: 12px;
}

.mx-integration h3 {
	margin: 0 0 8px;
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: 1.05rem;
	color: #fff;
}

.mx-integration p {
	margin: 0;
	font-size: .9rem;
	line-height: 1.6;
	color: #D4D4D8;
}

.mx-integration__examples {
	margin-top: 10px !important;
	font-family: var(--jug-font-mono);
	font-size: 10.5px !important;
	line-height: 1.6 !important;
	letter-spacing: .02em;
	color: #A1A1AA !important;
}

.mx-integrations__note {
	margin: 26px 0 0;
	font-size: .95rem;
	line-height: 1.6;
	color: #E4E4E7;
}

.mx-integrations__note--soft {
	margin-top: 8px;
	font-size: .88rem;
	color: #A1A1AA;
}

/* CTA final */
.mx-cta-final { padding-top: 0; }

.mx-cta-final__panel {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	padding: clamp(28px, 4vw, 56px);
	border-radius: calc(var(--mx-radius-lg) + 8px);
	background: var(--mx-ink);
	color: #fff;
	overflow: hidden;
}

.mx-cta-final__panel::before {
	content: "";
	position: absolute;
	right: -100px;
	top: -140px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: var(--mx-glow);
	pointer-events: none;
}

.mx-cta-final__title {
	position: relative;
	margin: 0 0 12px;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	letter-spacing: -.03em;
	line-height: 1.08;
	color: #fff;
}

.mx-cta-final__text {
	position: relative;
	margin: 0;
	max-width: 56ch;
	font-size: 1rem;
	line-height: 1.7;
	color: #D4D4D8;
}

.mx-cta-final__micro {
	position: relative;
	margin: 14px 0 0;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #A1A1AA;
}

.mx-cta-final__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Footer Fase 1 ---------- */
.mx-footer {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, .9fr);
	gap: clamp(24px, 3.4vw, 48px);
	padding: clamp(34px, 4.4vw, 56px) 0 clamp(26px, 3.4vw, 42px);
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.mx-footer__brand .brand-footer-logo { margin-bottom: 16px; }

.mx-footer__tagline {
	margin: 0;
	max-width: 40ch;
	font-size: .88rem;
	line-height: 1.65;
	color: #c4c4c9;
}

.mx-footer__col h3 {
	margin: 4px 0 14px;
	font-family: var(--jug-font-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #FD4326;
}

.mx-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.mx-footer__col a,
.mx-footer__col span {
	font-size: .88rem;
	line-height: 1.45;
	color: #E4E4E7;
	text-decoration: none;
}

.mx-footer__col a:hover,
.mx-footer__col a:focus-visible { color: #FD4326; outline: none; }

.mx-footer .ts-social-footer { margin-top: 18px; }

body footer .mx-footer { background: transparent; }

/* ---------- Página de servicio / contenido ---------- */
.mx-service-hero {
	position: relative;
	overflow: hidden;
	background: var(--mx-ink);
	color: #fff;
	padding: clamp(72px, 8vw, 120px) 0 clamp(48px, 6vw, 84px);
}

.mx-service-hero__mesh {
	position: absolute;
	inset: -10%;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 25% 15%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 25% 15%, #000 0%, transparent 75%);
	pointer-events: none;
}

.mx-service-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
}

.mx-service-hero .mx-breadcrumbs { color: #A1A1AA; }
.mx-service-hero .mx-breadcrumbs a { color: #E4E4E7 !important; }
.mx-service-hero .mx-breadcrumbs [aria-current="page"] { color: #A1A1AA; }

.mx-service-hero__title {
	margin: 18px 0 18px;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.6vw, 3.7rem);
	letter-spacing: -.04em;
	line-height: 1.04;
	color: #fff;
}

.mx-service-hero__lead {
	margin: 0;
	max-width: 62ch;
	font-size: clamp(1rem, 1.3vw, 1.16rem);
	line-height: 1.7;
	color: #D4D4D8;
}

.mx-service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.mx-service-body {
	padding: clamp(44px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
	background: #fff;
}

.mx-service-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

.mx-service-content {
	max-width: 760px;
	font-family: var(--jug-font-body);
	font-size: clamp(1rem, 1.1vw, 1.1rem);
	line-height: 1.85;
	color: #3F3F46;
}

.mx-service-content > * + * { margin-top: 1.25em; }

.mx-service-content h2 {
	margin: 1.9em 0 .55em;
	font-family: var(--jug-font-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	letter-spacing: -.03em;
	line-height: 1.15;
	color: var(--mx-ink);
	scroll-margin-top: 110px;
}

.mx-service-content h3 {
	margin: 1.6em 0 .4em;
	font-family: var(--jug-font-display);
	font-weight: 700;
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	letter-spacing: -.015em;
	line-height: 1.25;
	color: var(--mx-ink);
}

.mx-service-content p { margin: 0; }
.mx-service-content a { color: var(--mx-accent); text-decoration: underline; text-underline-offset: 3px; }

.mx-service-content ul,
.mx-service-content ol { padding-left: 1.3em; }
.mx-service-content li + li { margin-top: .5em; }
.mx-service-content li::marker { color: var(--mx-accent); }

.mx-service-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mx-radius);
	display: block;
	margin: 2em auto;
}

.mx-service-content blockquote {
	margin: 2em 0;
	padding: 18px 24px;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius);
	background: var(--mx-smoke);
	font-family: var(--jug-font-display);
	font-weight: 600;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.45;
	color: var(--mx-ink);
}

.mx-service-content .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 4px 0 0;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--mx-accent);
	color: #fff !important;
	font-family: var(--jug-font-body);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none !important;
	transition: background-color .2s ease, transform .2s ease;
}

.mx-service-content .button:hover { background: #e83a1f; }

.mx-service-aside {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mx-service-aside__card {
	padding: 22px;
	border: 1px solid var(--mx-line);
	border-radius: var(--mx-radius);
	background: #fff;
}

.mx-service-aside__label {
	margin: 0 0 12px;
	font-family: var(--jug-font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mx-accent);
}

.mx-service-aside__card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.mx-service-aside__card a {
	font-size: .9rem;
	line-height: 1.4;
	color: var(--mx-slate);
	text-decoration: none;
}

.mx-service-aside__card a:hover { color: var(--mx-accent); }
.mx-service-aside__card .is-current a { color: var(--mx-ink); font-weight: 700; }

.mx-service-aside__card--cta {
	background: var(--mx-ink);
	border-color: var(--mx-ink);
}

.mx-service-aside__card--cta p {
	margin: 0 0 14px;
	font-size: .88rem;
	line-height: 1.6;
	color: #D4D4D8;
}

.mx-service-aside__card--cta .mx-btn { width: 100%; justify-content: center; font-size: .9rem; padding: 13px 18px; }

/* ---------- Responsive Fase 1 ---------- */
@media (max-width: 1199.98px) {
	.mx-builder__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mx-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-solution--1, .mx-solution--2, .mx-solution--3, .mx-solution--4, .mx-solution--5 { grid-column: span 1; }
	.mx-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-service-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 991.98px) {
	.solutions-dropdown {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: none;
		background: rgba(255, 255, 255, .04);
		padding: 6px 0 0;
		margin: 6px 0 0;
		min-width: 0;
		display: none;
	}

	.solutions-dropdown::before { display: none; }
	.solutions-nav.is-open .solutions-dropdown { display: block; }
	.solutions-dropdown a { white-space: normal; color: #E4E4E7 !important; }

	.mx-solution--1, .mx-solution--2, .mx-solution--3,
	.mx-solution--4, .mx-solution--5 { grid-column: span 1; }

	.mx-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-footer__brand { grid-column: 1 / -1; }

	.mx-service-layout { grid-template-columns: 1fr; }
	.mx-service-aside { position: static; flex-direction: row; flex-wrap: wrap; }
	.mx-service-aside__card { flex: 1 1 240px; }
}

@media (max-width: 575.98px) {
	.mx-builder__options { grid-template-columns: 1fr; }
	.mx-solutions { grid-template-columns: 1fr; }
	.mx-process { grid-template-columns: 1fr; }
	.mx-integrations { grid-template-columns: 1fr; }
	.mx-cta-final__actions .mx-btn { width: 100%; justify-content: center; }
	.mx-footer { grid-template-columns: 1fr; }
	.mx-service-aside { flex-direction: column; }
	.mx-service-hero { padding-top: 56px; }
}

/* TASK-095 — correcciones de integración con el header legacy */
@media (min-width: 992px) {
	.ts-mainmenu { float: none; display: flex; justify-content: flex-end; align-items: center; }
	.ts-mainmenu .main-menu { text-align: left; }
	.ts-mainmenu .menu-nav {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 4px;
		margin: 0;
		padding: 0;
		flex-wrap: nowrap;
	}
	.ts-mainmenu .menu-nav > .menu-item {
		float: none;
		display: inline-flex;
		align-items: center;
		margin: 0;
		border-right: 0;
		border-left: 0;
	}
	.ts-mainmenu .menu-nav > .menu-item > a {
		padding: 18px 16px;
		border-radius: 8px;
		line-height: 1;
	}
	.ts-mainmenu .menu-nav > .menu-item > a:hover,
	.ts-mainmenu .menu-nav > .menu-item > a:focus,
	.ts-mainmenu .menu-nav > .menu-item > a.active {
		background: transparent;
		color: var(--jug-vermilion);
		box-shadow: inset 0 -2px 0 var(--jug-vermilion);
	}
	.main-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
	.main-header .logo { flex: none; }
	.main-header .mobile-navigation { display: none; }
	.main-header .navbar-form { margin-left: 18px; padding: 0; }
	.main-header .navbar-form .ts-bt {
		display: inline-flex;
		align-items: center;
		padding: 12px 20px;
		font-size: 12px;
		letter-spacing: .06em;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.solutions-nav { position: relative; }
	.solutions-nav .solutions-toggle::after { display: none; }
}

/* Contenido editorial de la página de servicio: listas visibles */
.mx-service-content ul { list-style: disc outside; padding-left: 1.4em; }
.mx-service-content ol { list-style: decimal outside; padding-left: 1.4em; }
.mx-service-content li { padding-left: .25em; }
.mx-service-content li::marker { color: var(--mx-accent); }

/* Home Fase 1: hero con mejor equilibrio */
.mx-home--phase1 .mx-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.mx-home--phase1 .mx-hero__title { font-size: clamp(2.4rem, 4.7vw, 4.3rem); }
.mx-home--phase1 .mx-hero__subtitle { max-width: 54ch; }
.mx-home--phase1 .mx-hero__stat b { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }

/* Proceso: centrar la segunda fila (7 pasos = 4 + 3) */
@media (min-width: 1200px) {
	.mx-process__step:nth-child(5) { grid-column: 2 / 3; }
}

/* TASK-095 — desplegable Soluciones: integración fina con el menú legacy */
.ts-mainmenu .main-menu {
	display: flex;
	align-items: center;
	gap: 18px;
}

.solutions-nav .solutions-dropdown li,
.menu-nav .solutions-nav .solutions-dropdown li {
	display: block !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

.solutions-nav .solutions-dropdown a {
	display: block !important;
	padding: 10px 14px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #E4E4E7 !important;
	background: transparent !important;
	border-radius: 9px;
	text-decoration: none !important;
}

.solutions-nav .solutions-dropdown a:hover,
.solutions-nav .solutions-dropdown a:focus-visible {
	background: rgba(253, 67, 38, .16) !important;
	color: #fff !important;
}

@media (max-width: 991.98px) {
	.ts-mainmenu .main-menu { display: block; }
	.solutions-nav .solutions-dropdown a { color: #E4E4E7 !important; }
}

/* ==========================================================================
   TASK-098 — Revisión UI/UX global
   1) Escala tipográfica por tokens (corrige el blog: Bootstrap 3 legacy fija
      html{font-size:10px} y encogía todos los rem solo en el layout de blog).
   ========================================================================== */
html {
	font-size: 100%; /* 16px base en TODOS los layouts (blog usaba 10px legacy) */
}

:root {
	--jug-text-base: 16.5px;
	--jug-text-reading: clamp(17px, 1.2vw, 18px);
	--jug-text-card: 15.5px;
	--jug-text-meta: 12.5px;
	--jug-text-label: 12px;
}

body {
	font-size: var(--jug-text-base);
	line-height: 1.7;
}

@media (max-width: 575.98px) {
	:root { --jug-text-base: 16px; }
}

/* Lectura editorial (artículo y páginas de servicio) */
.mx-article-content {
	font-size: var(--jug-text-reading) !important;
	line-height: 1.8;
}

.mx-service-content {
	font-size: var(--jug-text-reading);
	line-height: 1.8;
}

.mx-lead,
.mx-section-head .mx-lead {
	font-size: clamp(16.5px, 1.15vw, 18px);
	line-height: 1.65;
}

/* Metadatos legibles (mínimo 12.5px) */
.mx-card__meta,
.mx-article-meta,
.mx-card__more,
.mx-pagination__meta,
.mx-card__excerpt,
.mx-solution__bullets li,
.mx-process__text,
.mx-integration p {
	font-size: var(--jug-text-meta);
	line-height: 1.6;
}

.mx-card__excerpt { font-size: var(--jug-text-card); }
.mx-card__more,
.mx-pagination__meta { font-size: 12.5px; }

.mx-chip { font-size: var(--jug-text-label); }
.mx-eyebrow { font-size: var(--jug-text-label); }
.mx-builder__line { font-size: 13px; }
.mx-builder__hint,
.mx-integrations__note--soft,
.mx-footer__col a,
.mx-footer__col span,
.mx-footer__tagline { font-size: 13px; }

.mx-service-aside__card a,
.mx-service-aside__card--cta p { font-size: 13.5px; }

.mx-service-content h2 { font-size: clamp(24px, 2.3vw, 32px); }
.mx-service-content h3 { font-size: clamp(18px, 1.5vw, 21px); }
.mx-article-content h2 { font-size: clamp(24px, 2.4vw, 32px); }
.mx-article-content h3 { font-size: clamp(20px, 1.9vw, 25px); }

/* 2) Dropdown "Soluciones": anclado al ítem, sin clipping ni desbordes */
.main-header,
.main-header .container,
.main-header .ts-mainmenu,
.main-header .main-menu,
.main-header .menu-nav,
.solutions-nav {
	overflow: visible !important;
}

.solutions-nav { position: relative; }

.solutions-dropdown {
	left: 0;
	top: calc(100% + 12px);
	transform: translateY(6px);
	z-index: 9999;
}

.solutions-dropdown::before { left: 30px; }

.solutions-nav:hover .solutions-dropdown,
.solutions-nav:focus-within .solutions-dropdown,
.solutions-nav.is-open .solutions-dropdown {
	transform: translateY(0);
}

/* TASK-098 — consistencia de escala: H1 de blog alineado al de páginas internas
   (misma escala clamp que el hero de página de servicio) */
.mx-blog-hero h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.7rem);
}

/* TASK-098 — menos aire muerto al final del listado del blog */
body#blog .mx-blog-wrap {
	padding-bottom: clamp(40px, 5vw, 72px) !important;
}


/* TASK-103 — puente invisible entre "Soluciones" y su panel (hover intent) */
.solutions-nav::after {
	content: "";
	position: absolute;
	left: -12px;
	right: -12px;
	top: 100%;
	height: 20px;
	display: none;
	z-index: 9997;
}

.solutions-nav:hover::after,
.solutions-nav:focus-within::after,
.solutions-nav.is-open::after {
	display: block;
}
