/* Portada v2: continuidad visual entre consultoría, MetalAgent y formación. */
.home-v2 {
	--home-bg: #060b0a;
	--home-panel: #0b1614;
	--home-panel-soft: #101d1a;
	--home-line: #1b2d28;
	--home-text: #f5f1ec;
	--home-muted: #9fb0ac;
	--home-tech: #2dd8e8;
	--home-tech-dim: #0b4e5c;
	--home-copper: var(--mm-brand-orange, #C16900);
	--home-success: #3fcb7a;
	background: var(--home-bg);
	color: var(--home-text);
}

.home-v2 *, .home-v2 *::before, .home-v2 *::after { box-sizing: border-box; }
.home-section { position: relative; padding: clamp(64px, 8vw, 112px) 0; overflow: hidden; }
.home-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.home-heading { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.home-heading--split { max-width: none; display: grid; gap: 24px; }
.home-heading--split > p { max-width: 52ch; align-self: end; }
.home-eyebrow {
	margin: 0 0 12px;
	font: 600 .75rem/1.4 var(--font-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--home-copper);
}
.home-eyebrow--tech { color: var(--home-tech); }
.home-v2 h2 {
	margin: 0;
	font: 650 clamp(2rem, 4vw, 3.5rem)/1.05 var(--font-display);
	letter-spacing: -.035em;
	color: var(--home-text);
	text-wrap: balance;
}
.home-v2 h3 { color: var(--home-text); }
.home-v2 p { color: var(--home-muted); }
.home-heading > p:last-child { margin: 20px 0 0; font-size: 1.0625rem; line-height: 1.7; }

/* Separación uniforme entre todos los paneles principales de la portada. */
.home-problems,
.home-solutions,
.home-method,
.home-metalagent,
.home-training {
	padding-block: 20px;
}

.home-problems {
	background:
		radial-gradient(circle at 78% 18%, rgba(11, 78, 92, .18), transparent 34%),
		var(--home-bg);
}
.home-problems .home-shell {
	position: relative;
	width: min(1440px, calc(100% - 48px));
	padding: clamp(24px, 3vw, 42px);
	background:
		linear-gradient(rgba(27, 45, 40, .16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27, 45, 40, .16) 1px, transparent 1px),
		linear-gradient(145deg, rgba(11, 22, 20, .9), rgba(6, 11, 10, .76));
	background-size: 52px 52px, 52px 52px, auto;
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(45, 216, 232, .04);
}
.home-problems .home-shell::before,
.home-problems .home-shell::after {
	content: '';
	position: absolute;
	width: 76px;
	height: 24px;
	pointer-events: none;
}
.home-problems .home-shell::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 16px 0 0 0;
}
.home-problems .home-shell::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 16px 0;
}
.home-problems .home-heading {
	align-items: center;
	gap: 24px;
	margin-bottom: clamp(22px, 2.5vw, 34px);
}
.home-problems .home-heading--split > div {
	justify-self: start;
	width: auto;
	padding-right: 0;
	text-align: left;
}
.home-problems .home-heading h2 {
	max-width: 22ch;
	width: auto;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
	line-height: 1.12;
}
.home-problems .home-heading--split > p {
	padding-left: 24px;
	border-left: 2px solid var(--home-tech);
	color: #B5C7C2;
}

.problem-grid, .solution-grid { display: grid; gap: 16px; }
.problem-grid {
	position: relative;
	gap: 0;
	padding: 8px;
	background: rgba(6, 14, 12, .64);
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(45, 216, 232, .04);
}
.problem-grid::before,
.problem-grid::after {
	content: '';
	position: absolute;
	width: 52px;
	height: 15px;
	pointer-events: none;
}
.problem-grid::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 14px 0 0 0;
}
.problem-grid::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 14px 0;
}
.problem-card, .solution-card {
	position: relative;
	min-height: 280px;
	padding: 28px;
	background: linear-gradient(145deg, rgba(16,29,26,.96), rgba(7,15,13,.94));
	border: 1px solid var(--home-line);
	border-radius: 12px;
}
.problem-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 235px;
	padding: 24px clamp(20px, 2.4vw, 34px);
	text-align: center;
	background: rgba(8, 17, 15, .38);
	border-color: transparent;
	border-radius: 10px;
	overflow: hidden;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.problem-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 72px;
	height: 72px;
	background: linear-gradient(225deg, rgba(45, 216, 232, .09), transparent 64%);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.problem-card::after { display: none; }
.problem-card::after, .solution-card::after {
	content: '';
	position: absolute;
	inset: auto 28px 0;
	height: 2px;
	background: linear-gradient(90deg, var(--home-copper), transparent 70%);
}
.problem-card__number, .solution-card__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 46px;
	border: 1px solid color-mix(in srgb, var(--home-copper) 70%, transparent);
	border-radius: 50%;
	font: 500 .75rem var(--font-mono);
	color: var(--home-copper);
}
.problem-card__number {
	background: color-mix(in srgb, var(--home-copper) 6%, transparent);
	box-shadow: inset 0 0 16px color-mix(in srgb, var(--home-copper) 5%, transparent);
	margin-bottom: 18px;
}
.problem-grid .problem-card h3 { margin-bottom: 9px; }
.problem-card h3 { max-width: 22ch; color: var(--home-tech); }
.problem-card p { max-width: 37ch; }

@media (hover: hover) and (pointer: fine) {
	.problem-card:hover {
		z-index: 1;
		transform: translateY(-5px) scale(1.025);
		background: color-mix(in srgb, var(--home-panel) 90%, var(--home-tech) 3%);
		border-color: color-mix(in srgb, var(--home-tech) 58%, var(--home-line));
		box-shadow: 0 18px 38px rgba(0, 0, 0, .3), 0 0 24px rgba(45, 216, 232, .09);
	}
	.problem-card:hover .problem-card__number {
		color: var(--home-text);
		border-color: var(--home-copper);
		box-shadow: 0 0 18px color-mix(in srgb, var(--home-copper) 18%, transparent);
	}
	.problem-card:hover h3 { color: var(--home-text); }
}
.problem-card h3, .solution-card h3 { margin: 0 0 12px; font: 600 1.3rem/1.25 var(--font-display); }
.problem-card p, .solution-card p { margin: 0; line-height: 1.65; }

.home-solutions {
	background: #08100e;
}
.home-solutions .home-shell {
	position: relative;
	width: min(1440px, calc(100% - 48px));
	padding: clamp(24px, 3vw, 42px);
	background:
		linear-gradient(rgba(27, 45, 40, .14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27, 45, 40, .14) 1px, transparent 1px),
		linear-gradient(145deg, rgba(11, 22, 20, .9), rgba(6, 11, 10, .76));
	background-size: 52px 52px, 52px 52px, auto;
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(45, 216, 232, .04);
}
.home-solutions .home-shell::before,
.home-solutions .home-shell::after {
	content: '';
	position: absolute;
	width: 76px;
	height: 24px;
	pointer-events: none;
}
.home-solutions .home-shell::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 16px 0 0 0;
}
.home-solutions .home-shell::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 16px 0;
}
.home-solutions .home-heading {
	align-items: center;
	margin-bottom: clamp(22px, 2.5vw, 34px);
}
.home-solutions .home-heading--split > p {
	padding-left: 24px;
	border-left: 2px solid var(--home-tech);
	color: #b5c7c2;
}
.home-solutions .home-heading h2 {
	max-width: 22ch;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
	line-height: 1.12;
}
.solution-grid {
	position: relative;
	gap: 0;
	padding: 8px;
	background: rgba(6, 14, 12, .64);
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(45, 216, 232, .04);
}
.solution-grid::before,
.solution-grid::after {
	content: '';
	position: absolute;
	width: 52px;
	height: 15px;
	pointer-events: none;
}
.solution-grid::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 14px 0 0 0;
}
.solution-grid::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 14px 0;
}
.solution-card { min-height: 330px; padding: 25px clamp(20px, 2.4vw, 32px); }
.solution-grid .solution-card {
	background: rgba(8, 17, 15, .42);
	border-color: transparent;
	border-radius: 10px;
	transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.solution-grid .solution-card h3 {
	color: var(--home-tech);
	transition: color .25s ease, text-shadow .25s ease;
}
.solution-grid .solution-card::after { display: none; }
@media (hover: hover) and (pointer: fine) {
	.solution-grid .solution-card:hover {
		z-index: 1;
		transform: translateY(-5px) scale(1.018);
		background: color-mix(in srgb, var(--home-panel) 90%, var(--home-tech) 3%);
		border-color: color-mix(in srgb, var(--home-tech) 52%, var(--home-line));
		box-shadow: 0 18px 38px rgba(0, 0, 0, .3), 0 0 24px rgba(45, 216, 232, .08);
	}
	.solution-grid .solution-card:hover h3 {
		color: var(--home-text);
		text-shadow: 0 0 14px rgba(45, 216, 232, .32);
	}
}
.solution-card__icon { margin-bottom: 20px; border-radius: 6px; }
.solution-card ul { margin: 18px 0 0; padding: 15px 0 0; list-style: none; border-top: 1px solid var(--home-line); }
.solution-card li { position: relative; margin: 9px 0; padding-left: 18px; color: var(--home-muted); }
.solution-card li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 1px; background: var(--home-copper); }
.solution-card--tech { border-color: color-mix(in srgb, var(--home-tech) 30%, var(--home-line)); }
.solution-card--tech::after { background: linear-gradient(90deg, var(--home-tech), transparent 70%); }
.solution-card--tech .solution-card__icon { border-color: var(--home-tech-dim); color: var(--home-tech); }
.solution-card--tech li::before { background: var(--home-tech); }

.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.home-actions .btn--secondary { border-color: var(--home-tech); color: var(--home-text); }
.home-actions .btn--secondary:hover { background: color-mix(in srgb, var(--home-tech) 8%, transparent); box-shadow: 0 0 20px rgba(45,216,232,.1); }
.home-actions .btn span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.home-actions .btn:hover span { transform: translateX(4px); }
.home-text-link { color: var(--home-tech); font-weight: 600; text-decoration: none; }
.home-text-link:hover { color: var(--home-text); }
.home-text-link span { margin-left: 6px; transition: transform .2s ease; display: inline-block; }
.home-text-link:hover span { transform: translateX(4px); }
.home-text-link--copper { color: var(--home-copper); }

.home-method {
	border-block: 0;
	background: #060b0a;
}
.home-method .home-shell {
	position: relative;
	width: min(1440px, calc(100% - 48px));
	padding: clamp(28px, 4vw, 58px);
	background:
		linear-gradient(rgba(27,45,40,.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27,45,40,.18) 1px, transparent 1px),
		linear-gradient(145deg, rgba(11, 22, 20, .9), rgba(6, 11, 10, .76));
	background-size: 56px 56px, 56px 56px, auto;
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(45, 216, 232, .04);
}
.home-method .home-shell::before,
.home-method .home-shell::after {
	content: '';
	position: absolute;
	width: 76px;
	height: 24px;
	pointer-events: none;
}
.home-method .home-shell::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 16px 0 0 0;
}
.home-method .home-shell::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 16px 0;
}
.home-method__grid { display: grid; gap: 42px; }
.home-method .home-heading { margin: 0; }
.home-method .home-heading h2 {
	max-width: 22ch;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
	line-height: 1.12;
}
.method-flow {
	position: relative;
	margin: 0;
	padding: 14px;
	list-style: none;
	display: grid;
	gap: 0;
	background: rgba(6, 14, 12, .64);
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 14px;
}
.method-flow::before,
.method-flow::after {
	content: '';
	position: absolute;
	width: 48px;
	height: 14px;
	pointer-events: none;
}
.method-flow::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 14px 0 0 0;
}
.method-flow::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 14px 0;
}
.method-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; background: rgba(11,22,20,.9); border: 1px solid var(--home-line); border-radius: 8px; }
.method-step { border-color: transparent; background: rgba(8, 17, 15, .42); transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.method-step span { grid-row: 1 / 3; align-self: center; font: 500 .75rem var(--font-mono); color: var(--home-tech); }
.method-step strong { font: 600 1rem var(--font-display); }
.method-step small { color: var(--home-muted); }
.method-step::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--home-tech); transform: scaleY(0); transform-origin: bottom; }
.method-step.is-active::after { animation: method-line .7s ease forwards; }
@keyframes method-line { to { transform: scaleY(1); } }
@media (hover: hover) and (pointer: fine) {
	.method-step:hover {
		z-index: 1;
		transform: translateY(-5px) scale(1.025);
		background: color-mix(in srgb, var(--home-panel) 90%, var(--home-tech) 3%);
		border-color: color-mix(in srgb, var(--home-tech) 54%, var(--home-line));
		box-shadow: 0 16px 34px rgba(0, 0, 0, .3), 0 0 22px rgba(45, 216, 232, .09);
	}
	.method-step:hover strong { color: var(--home-tech); }
}

.home-metalagent {
	background: radial-gradient(circle at 75% 35%, rgba(11,78,92,.2), transparent 42%), #050a09;
}
.home-metalagent .home-shell,
.home-training .home-shell {
	position: relative;
	width: min(1440px, calc(100% - 48px));
	padding: clamp(28px, 4vw, 58px);
	background:
		linear-gradient(rgba(27, 45, 40, .14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27, 45, 40, .14) 1px, transparent 1px),
		linear-gradient(145deg, rgba(11, 22, 20, .9), rgba(6, 11, 10, .78));
	background-size: 52px 52px, 52px 52px, auto;
	border: 1px solid color-mix(in srgb, var(--home-tech) 28%, var(--home-line));
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(45, 216, 232, .04);
}
.home-metalagent .home-shell::before,
.home-metalagent .home-shell::after,
.home-training .home-shell::before,
.home-training .home-shell::after {
	content: '';
	position: absolute;
	width: 76px;
	height: 24px;
	pointer-events: none;
}
.home-metalagent .home-shell::before,
.home-training .home-shell::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--home-tech);
	border-left: 2px solid var(--home-tech);
	border-radius: 16px 0 0 0;
}
.home-metalagent .home-shell::after,
.home-training .home-shell::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid var(--home-tech);
	border-bottom: 2px solid var(--home-tech);
	border-radius: 0 0 16px 0;
}
.home-metalagent__grid, .home-training__grid { display: grid; gap: 48px; align-items: center; }
.home-metalagent .home-heading { margin: 0; }
.home-metalagent .home-heading h2,
.home-training h2 {
	max-width: 22ch;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
	line-height: 1.12;
}
.agent-console { padding: 18px; background: rgba(5,12,10,.94); border: 1px solid color-mix(in srgb, var(--home-tech) 32%, var(--home-line)); border-radius: 12px; box-shadow: 0 26px 80px rgba(0,0,0,.38); }
.agent-console__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--home-line); }
.agent-console__bar > span { width: 8px; height: 8px; border-radius: 50%; background: #31423e; }
.agent-console__bar small { margin-left: auto; font: 500 .65rem var(--font-mono); color: var(--home-muted); }
.agent-console__status { display: flex; align-items: center; gap: 8px; margin: 18px 0; color: var(--home-success); font: .75rem var(--font-mono); }
.agent-console__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--home-success); box-shadow: 0 0 10px var(--home-success); }
.agent-console__rows { display: grid; gap: 8px; }
.agent-console__rows div { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; padding: 13px; background: var(--home-panel); border: 1px solid var(--home-line); border-radius: 5px; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.agent-console__rows span, .agent-console__rows em { font: 500 .65rem var(--font-mono); color: var(--home-tech); font-style: normal; }
.agent-console__rows strong { font-size: .82rem; font-weight: 500; }
.agent-console > p { margin: 12px 0 0; text-align: right; font-size: .7rem; }

.home-training { background: #0a100f; }
.home-training .home-shell { border-color: color-mix(in srgb, var(--home-tech) 38%, var(--home-line)); }
.home-training .home-shell::before {
	border-top-color: var(--home-tech);
	border-left-color: var(--home-tech);
}
.home-training .home-shell::after {
	border-right-color: var(--home-tech);
	border-bottom-color: var(--home-tech);
}
.training-photo { position: relative; min-height: 360px; }
.training-photo::before { content: ''; position: absolute; inset: -12px 24px 24px -12px; border: 1px solid color-mix(in srgb, var(--home-copper) 50%, var(--home-line)); border-radius: 10px; }
.training-photo img { position: relative; width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 10px; filter: saturate(.8) contrast(1.05); }
.training-photo span { position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 10px 12px; background: rgba(6,11,10,.84); color: var(--home-text); font: 500 .75rem var(--font-mono); }
.training-content h2 { margin-bottom: 18px; }
.training-content > p { line-height: 1.65; }
.course-feature { display: grid; gap: 18px; margin-top: 28px; padding: 18px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-panel); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.course-feature img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; }
.course-feature span { color: var(--home-copper); font: 500 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.course-feature h3 { margin: 7px 0; font: 600 1.1rem/1.3 var(--font-display); }
.course-feature p { margin: 0 0 10px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
	.agent-console__rows div:hover {
		transform: translateX(5px);
		border-color: color-mix(in srgb, var(--home-tech) 58%, var(--home-line));
		background: color-mix(in srgb, var(--home-panel) 92%, var(--home-tech) 3%);
	}
	.course-feature:hover {
		transform: translateY(-5px);
		border-color: color-mix(in srgb, var(--home-copper) 66%, var(--home-line));
		box-shadow: 0 18px 38px rgba(0, 0, 0, .28), 0 0 22px color-mix(in srgb, var(--home-copper) 9%, transparent);
	}
}

.home-closing {
	padding-block: 20px;
	background: #060b0a;
}
.home-closing__inner {
	position: relative;
	width: min(1440px, calc(100% - 48px));
	min-height: 220px;
	padding: clamp(32px, 4vw, 58px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	background:
		linear-gradient(rgba(27,45,40,.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27,45,40,.16) 1px, transparent 1px),
		linear-gradient(145deg, rgba(11,22,20,.94), rgba(6,11,10,.8));
	background-size: 52px 52px, 52px 52px, auto;
	border: 1px solid color-mix(in srgb, var(--home-tech) 34%, var(--home-line));
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.home-closing__inner::before,
.home-closing__inner::after {
	content: '';
	position: absolute;
	width: 76px;
	height: 24px;
	pointer-events: none;
}
.home-closing__inner::before { top: -1px; left: -1px; border-top: 2px solid var(--home-tech); border-left: 2px solid var(--home-tech); border-radius: 16px 0 0; }
.home-closing__inner::after { right: -1px; bottom: -1px; border-right: 2px solid var(--home-tech); border-bottom: 2px solid var(--home-tech); border-radius: 0 0 16px; }
.home-closing .home-eyebrow { color: var(--home-tech); }
.home-closing h2 { max-width: 22ch; color: var(--home-text); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.home-closing .btn--primary { background: var(--home-copper); border-color: var(--home-copper); color: #fff; }
.home-closing .btn--primary:hover { background: var(--home-tech); border-color: var(--home-tech); color: #04100f; box-shadow: 0 0 24px rgba(45,216,232,.2); }

/* Pie de página de la portada: continuidad con los paneles tecnológicos. */
.site-footer {
	--home-bg: #060b0a;
	--home-panel: #0b1614;
	--home-line: #1b2d28;
	--home-muted: #9fb0ac;
	--home-tech: #2dd8e8;
	background: #060b0a;
	color: var(--home-muted);
	border-top: 1px solid rgba(45,216,232,.2);
}
.site-primary-footer-wrap {
	padding: 20px 24px 0;
	background: #060b0a !important;
}
.site-primary-footer-wrap .ast-builder-grid-row-container-inner {
	position: relative;
	width: min(1440px, 100%);
	margin-inline: auto;
	padding: clamp(30px, 4vw, 52px);
	background: linear-gradient(145deg, rgba(11,22,20,.96), rgba(6,11,10,.9));
	border: 1px solid color-mix(in srgb, var(--home-tech) 30%, var(--home-line));
	border-radius: 16px;
	overflow: hidden;
}
.site-primary-footer-wrap .ast-builder-grid-row-container-inner::before,
.site-primary-footer-wrap .ast-builder-grid-row-container-inner::after {
	content: '';
	position: absolute;
	pointer-events: none;
}
.site-primary-footer-wrap .ast-builder-grid-row-container-inner::before {
	inset: 0;
	background:
		linear-gradient(rgba(45,216,232,.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(45,216,232,.018) 1px, transparent 1px),
		radial-gradient(circle at 12% 25%, rgba(193,105,0,.045), transparent 22%),
		radial-gradient(circle at 78% 18%, rgba(45,216,232,.035), transparent 24%);
	background-size: 44px 44px, 44px 44px, auto, auto;
}
.site-primary-footer-wrap .ast-builder-grid-row-container-inner::after {
	right: -90px;
	top: -110px;
	width: 240px;
	height: 240px;
	border: 1px solid rgba(45,216,232,.035);
	border-radius: 50%;
	box-shadow: 0 0 0 36px rgba(45,216,232,.01);
}
.site-primary-footer-inner-wrap {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: minmax(240px, .95fr) minmax(250px, .95fr) minmax(380px, 1.35fr) !important;
	align-items: start;
	gap: clamp(34px, 4vw, 58px);
}
.site-footer-primary-section-1,
.site-footer-primary-section-2,
.site-footer-primary-section-3 { width: 100%; }
.site-footer-primary-section-4 { display: none; }
.site-footer .widget { margin: 0; }
.site-footer .widget-title { margin: 0 0 16px; color: var(--home-tech); font: 600 .78rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.site-footer a, .site-footer p, .site-footer .uagb-ifb-desc { color: var(--home-muted) !important; }
.site-footer a { text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-footer a:hover { color: var(--home-tech) !important; }
.site-footer .widget_nav_menu li { margin-bottom: 8px; }
.site-footer-primary-section-1 img { max-width: 220px; filter: invert(1) hue-rotate(180deg); }
.site-footer-primary-section-1 { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer-primary-section-1::after {
	content: 'INGENIERÍA · DATOS · RESULTADOS\A Consultoría metalúrgica, analítica aplicada y tecnología en desarrollo.';
	display: block;
	max-width: 34ch;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(193,105,0,.38);
	white-space: pre-line;
	font: 500 .67rem/1.65 var(--font-mono);
	letter-spacing: .035em;
	color: var(--home-muted);
}
.site-footer-primary-section-1::first-line { color: var(--mm-brand-orange); }
.site-footer-primary-section-2 { min-width: 0; padding-left: clamp(18px, 2vw, 26px); border-left: 1px solid rgba(45,216,232,.1); }
.site-footer-primary-section-3 { min-width: 0; padding-left: clamp(18px, 2vw, 26px); border-left: 1px solid rgba(45,216,232,.1); }
.site-footer-primary-section-3 { display: grid; align-content: start; gap: 16px; }
.site-footer-primary-section-3 .footer-widget-area,
.site-footer-primary-section-3 .uagb-ifb-content { text-align: left; }
.site-footer-primary-section-3 .ast-builder-layout-element { justify-content: flex-start; }
.site-footer-primary-section-3 .uagb-ifb-desc { line-height: 1.8; }
.site-footer .uagb-ifb-title { color: var(--home-tech); font: 600 .78rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.site-footer .ast-footer-social-wrap { margin-bottom: 0; }
.site-footer .footer-social-inner-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.site-footer .footer-social-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(45,216,232,.35);
	border-radius: 6px;
	color: var(--home-tech) !important;
	--color: var(--home-tech) !important;
	background: rgba(45,216,232,.04) !important;
	transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-footer .footer-social-item svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}
.site-footer .footer-social-item:hover { transform: translateY(-4px); color: #fff !important; --color: #fff !important; border-color: var(--mm-brand-orange); box-shadow: 0 0 20px rgba(193,105,0,.14); }
.site-footer button.footer-social-item {
	appearance: none;
	font: inherit;
	cursor: pointer;
	line-height: 1;
}
.site-footer .minemet-social-notice {
	flex: 1 0 100%;
	margin: 8px 0 0;
	padding: 8px 10px;
	border: 1px solid rgba(193,105,0,.45);
	border-radius: 6px;
	background: rgba(193,105,0,.08);
	color: var(--home-muted) !important;
	font: 500 .72rem/1.45 var(--font-mono);
}
.site-footer .widget_nav_menu .menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.site-footer .widget_nav_menu li { position: relative; margin: 0; }
.site-footer .widget_nav_menu a { display: block; padding: 7px 4px 7px 14px; border-radius: 5px; white-space: nowrap; }
.site-footer .widget_nav_menu a::before { content: ''; position: absolute; left: 2px; top: 50%; width: 5px; height: 1px; background: var(--home-tech); transition: width .2s ease, box-shadow .2s ease; }
.site-footer .widget_nav_menu a:hover { background: rgba(45,216,232,.035); transform: translateX(3px); }
.site-footer .widget_nav_menu a:hover::before { width: 9px; box-shadow: 0 0 7px var(--home-tech); }
.site-footer-primary-section-3 .uagb-ifb-content { width: 100%; padding: 16px 18px; border: 1px solid rgba(45,216,232,.12); border-radius: 8px; background: rgba(6,14,12,.42); box-shadow: inset 0 1px rgba(255,255,255,.018); }
.site-below-footer-wrap { padding: 18px 24px; background: #040807 !important; border-top: 1px solid rgba(45,216,232,.16); }
.site-below-footer-wrap .ast-builder-grid-row-container-inner { width: min(1440px, 100%); margin-inline: auto; }
.site-below-footer-inner-wrap { display: flex !important; justify-content: center; }
.site-footer-below-section-1 { width: 100%; text-align: center; }
.site-footer .ast-footer-copyright p { margin: 0; color: #718783 !important; font: .75rem/1.5 var(--font-mono); }

.home-reveal { opacity: 1; transform: none; }
.home-v2.js-reveal .home-reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.home-v2.js-reveal .home-reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 700px) {
	.home-heading--split { grid-template-columns: 1.25fr .75fr; }
	.problem-grid { grid-template-columns: repeat(3, 1fr); }
	.problem-card + .problem-card { border-left-color: var(--home-line); }
	.course-feature { grid-template-columns: 160px 1fr; align-items: center; }
	.course-feature img { height: 150px; }
	.home-closing__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 920px) {
	.site-primary-footer-inner-wrap { grid-template-columns: 1fr 1fr !important; }
	.site-footer-primary-section-1 { grid-column: 1 / -1; justify-content: center; }
	.site-footer-primary-section-2 { border-left: 0; }
}
@media (max-width: 699px) {
	.home-problems .home-heading--split > div { justify-self: start; padding-right: 0; text-align: left; }
}
@media (max-width: 600px) {
	.site-primary-footer-inner-wrap { grid-template-columns: 1fr !important; text-align: center; }
	.site-footer-primary-section-1,
	.site-footer-primary-section-3 .ast-builder-layout-element { justify-content: center; }
	.site-footer-primary-section-1 { align-items: center; }
	.site-footer-primary-section-1::after { text-align: center; }
	.site-footer .widget_nav_menu .menu { grid-template-columns: 1fr; }
	.site-footer-primary-section-2,
	.site-footer-primary-section-3 { padding-left: 0; border-left: 0; }
	.site-footer-primary-section-3 .footer-widget-area,
	.site-footer-primary-section-3 .uagb-ifb-content { text-align: center; }
	.site-footer .footer-social-inner-wrap { justify-content: center; }
}
@media (min-width: 960px) {
	.solution-grid { grid-template-columns: repeat(3, 1fr); }
	.solution-grid .solution-card + .solution-card { border-left-color: var(--home-line); }
	.home-method__grid { grid-template-columns: .8fr 1.2fr; align-items: center; }
	.method-flow { grid-template-columns: repeat(4, 1fr); }
	.method-step + .method-step { border-left-color: var(--home-line); }
	.method-step { grid-template-columns: 1fr; min-height: 150px; align-content: end; }
	.method-step span { grid-row: auto; margin-bottom: auto; }
	.home-metalagent__grid, .home-training__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.home-shell { width: min(100% - 32px, 1280px); }
	.home-problems .home-shell { width: min(100% - 32px, 1440px); padding: 24px 18px; }
	.home-solutions .home-shell { width: min(100% - 32px, 1440px); padding: 24px 18px; }
	.home-method .home-shell { width: min(100% - 32px, 1440px); padding: 24px 18px; }
	.home-metalagent .home-shell,
	.home-training .home-shell { width: min(100% - 32px, 1440px); padding: 24px 18px; }
	.home-problems .home-heading--split > p { padding-left: 16px; }
	.agent-console__rows div { grid-template-columns: 24px 1fr; }
	.agent-console__rows em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.home-v2 *, .home-v2 *::before, .home-v2 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
