/*
 * M-Quadrantte — Home 2026 (Figma "Website (WIP)")
 *
 * Usa los tokens --ds-* del tema. Los tamaños tipográficos siguen las
 * variables del Figma, que tienen dos modos:
 *   mobile  (375 px)  → valores por defecto
 *   desktop (1440 px) → desde 1024 px
 * Entre 768 y 1023 px los títulos escalan de forma fluida.
 */

/* ==========================================================================
   TOKENS DEL FIGMA (modo mobile por defecto)
========================================================================== */
.fh-body,
.fh-body * { box-sizing: border-box; }

.fh-body {
	--fh-gutter: 16px;
	--fh-section-y: 72px;

	--fh-h1-size: 38px;  --fh-h1-lh: 38px;  --fh-h1-ls: -1px;
	--fh-h3-size: 32px;  --fh-h3-lh: 32px;  --fh-h3-ls: -0.5px;
	--fh-h5-size: 24px;  --fh-h5-lh: 24px;  --fh-h5-ls: 0px;
	--fh-lg-size: 14px;  --fh-lg-lh: 20px;
	--fh-xl-size: 16px;  --fh-xl-lh: 24px;
	--fh-caption-ls: 0px;

	--fh-font-heading: var(--ds-font-family-heading), "Futura PT", sans-serif;
	--fh-font-button: var(--ds-font-family-button), "Futura Condensed PT", sans-serif;
	--fh-font-body: var(--ds-font-family-body);

	--fh-shadow-sm: 0 0 2px -2px rgba(3, 8, 12, .12), 0 0 2px -1px rgba(3, 8, 12, .06);

	margin: 0;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
	font-family: var(--fh-font-body);
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	overflow-x: hidden;
}

@media (min-width: 768px) {
	.fh-body {
		--fh-gutter: 32px;
		--fh-section-y: clamp(72px, 11vw, 120px);
		--fh-h1-size: clamp(38px, 5.6vw, 68px);  --fh-h1-lh: clamp(38px, 5.3vw, 64px);  --fh-h1-ls: -2px;
		--fh-h3-size: clamp(32px, 4.6vw, 56px);  --fh-h3-lh: clamp(32px, 4.6vw, 56px);  --fh-h3-ls: -1px;
		--fh-h5-size: clamp(24px, 3vw, 36px);    --fh-h5-lh: clamp(24px, 3vw, 36px);    --fh-h5-ls: -0.5px;
		--fh-lg-size: 16px;  --fh-lg-lh: 24px;
		--fh-xl-size: 18px;  --fh-xl-lh: 24px;
		--fh-caption-ls: .5px;
	}
}

/* Resets sin especificidad (:where) para no pisar los componentes */
:where(.fh-body) img { display: block; max-width: 100%; }
:where(.fh-body) a { color: inherit; text-decoration: none; }
:where(.fh-body) :is(h1, h2, h3, p, ul) { margin: 0; }
:where(.fh-body) ul { padding: 0; list-style: none; }
:where(.fh-body) button { font: inherit; color: inherit; }

/* ==========================================================================
   TIPOGRAFÍA
========================================================================== */
.fh-h1, .fh-h3, .fh-h5 {
	font-family: var(--fh-font-heading);
	font-weight: 700;
	text-transform: uppercase;
}
/* Futura PT se dibuja unos px más arriba en el navegador que en Figma (métricas de la fuente):
   se compensa sin alterar el alto de las líneas para que los títulos calcen pixel a pixel. */
.fh-h1, .fh-h2, .fh-h3, .fh-h4, .fh-h5, .fh-h6, .fh-footer__city, .fh-territory__title, .fp-card__title {
	position: relative;
	top: calc(.06em + 1.5px);
}
.fh-h1 { font-size: var(--fh-h1-size); line-height: var(--fh-h1-lh); letter-spacing: var(--fh-h1-ls); }
.fh-h3 { font-size: var(--fh-h3-size); line-height: var(--fh-h3-lh); letter-spacing: var(--fh-h3-ls); }
.fh-h5 { font-size: var(--fh-h5-size); line-height: var(--fh-h5-lh); letter-spacing: var(--fh-h5-ls); }

.fh-body-lg { font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); }
.fh-body-lg-medium { font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); font-weight: 500; }
.fh-body-xl { font-size: var(--fh-xl-size); line-height: var(--fh-xl-lh); }
.fh-caption {
	font-size: 10px;
	line-height: 14px;
	letter-spacing: var(--fh-caption-ls);
	text-transform: uppercase;
	color: var(--ds-text-tertiary);
}

.fh-brand { color: var(--ds-text-brand); }
.fh-secondary { color: var(--ds-text-secondary); }

/* Eyebrow ("Title section") */
.fh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 14px;
	font-size: 10px;
	line-height: 14px;
	letter-spacing: var(--fh-caption-ls);
	text-transform: uppercase;
	color: var(--ds-text-primary);
}
.fh-eyebrow--inverse { color: var(--ds-text-inverse); }
.fh-eyebrow__mark {
	flex: none;
	width: 4px;
	height: 4px;
	margin: 0 .83px;
	background: var(--ds-icon-brand);
	transform: rotate(45deg);
}

/* ==========================================================================
   BOTONES Y BADGES
========================================================================== */
.fh-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	height: 44px;
	font-family: var(--fh-font-button);
	font-weight: 700;
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .3s ease, color .3s ease;
}
.fh-btn__label { padding: 0 4px; }
.fh-btn__icon { width: 16px; height: 16px; transition: transform .3s ease; }
.fh-btn:hover .fh-btn__icon { transform: translate(2px, -2px); }

.fh-btn--brand, .fh-btn--light {
	padding: 8px 20px;
	border-radius: var(--ds-radius-round);
	box-shadow: var(--fh-shadow-sm);
}
.fh-btn--brand { background: var(--ds-fill-brand); color: var(--ds-text-inverse); }
.fh-btn--brand:hover { background: var(--ds-color-red-600); }
.fh-btn--light { background: var(--ds-fill-primary); color: var(--ds-text-primary); }
.fh-btn--light:hover { background: var(--ds-color-neutral-100); }

/* Botón texto con línea roja ("Accent") */
.fh-btn--link, .fh-btn--link-brand { position: relative; padding: 0 4px; }
.fh-btn--link { color: var(--ds-text-inverse); }
.fh-btn--link-brand { color: var(--ds-text-brand); }
.fh-btn--link::after, .fh-btn--link-brand::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--ds-fill-brand);
	transform-origin: left center;
	transition: transform .4s ease;
}
.fh-btn--link:hover::after, .fh-btn--link-brand:hover::after { transform: scaleX(.3); }

.fh-btn--inline-brand { height: 24px; color: var(--ds-text-brand); }

.fh-badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border-radius: var(--ds-radius-round);
	font-family: var(--fh-font-button);
	font-weight: 700;
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	text-transform: uppercase;
	color: var(--ds-text-inverse);
	white-space: nowrap;
}
.fh-badge img { width: 16px; height: 16px; margin: 0 4px 0 -4px; }
.fh-badge--glass {
	background: rgba(3, 8, 12, .2);
	border: 1px solid rgba(253, 253, 253, .2);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.fh-badge--category {
	background: rgba(var(--badge-rgb), .5);
	border: 1px solid rgba(var(--badge-rgb), .2);
}

.fh-icon-btn {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--ds-radius-round);
	background: var(--ds-fill-tertiary);
	cursor: pointer;
	transition: opacity .3s ease, background-color .3s ease;
}
.fh-icon-btn:hover:not(:disabled) { background: var(--ds-color-dark-blue-500); }
.fh-icon-btn:disabled { opacity: .3; cursor: default; }
.fh-icon-btn img { width: 24px; height: 24px; }
.fh-icon-btn--sm { width: 32px; height: 32px; }
.fh-icon-btn--sm img { width: 16px; height: 16px; }

/* ==========================================================================
   HEADER
========================================================================== */
.fh-header {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding: 0 var(--fh-gutter);
	color: var(--ds-text-inverse);
}
.fh-header__logo img { width: 128px; height: 37.8px; object-fit: contain; object-position: left center; }

.fh-header__nav { display: none; }
.fh-header__right { display: flex; align-items: center; gap: 16px; }
.fh-header__lang {
	padding: 0 4px;
	font-family: var(--fh-font-button);
	font-weight: 700;
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	text-transform: uppercase;
}
.fh-header__cta { display: none; }
.fh-header__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.fh-header__toggle img { width: 24px; height: 24px; }

/* Menú mobile — Figma "Menu (…) - Mobile": entra desde abajo (MOVE_IN 1.25 s, curva "Slow") */
.fh-mobile-menu {
	position: fixed;
	z-index: 60;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
	transform: translateY(100%);
	transition: transform 1.25s cubic-bezier(.16, 1, .3, 1);
}
.fh-mobile-menu.is-open { transform: none; }
.fh-mobile-menu[hidden] { display: none; }
.fh-mobile-menu__bar { display: flex; flex: none; align-items: center; justify-content: space-between; height: 80px; padding: 0 var(--fh-gutter); }
.fh-mobile-menu__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	padding: 32px var(--fh-gutter);
	overflow-y: auto;
}
.fh-mobile-menu__list { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 100%; }
.fh-mobile-menu__list .current-menu-item > a { color: var(--ds-text-brand); }
.fh-mobile-menu__list a {
	display: block;
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: 38px;
	line-height: 38px;
	letter-spacing: -1px;
	text-align: right;
	text-transform: uppercase;
	transition: color .3s ease;
}
.fh-mobile-menu__list a:hover { color: var(--ds-text-brand); }
.fh-mobile-menu__social { display: flex; gap: 8px; width: 100%; }
.fh-mobile-menu__social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.fh-mobile-menu__social img { width: 16px; height: 16px; }
.fh-menu-open { overflow: hidden; }

@media (min-width: 1024px) {
	.fh-header { height: auto; padding: 24px var(--fh-gutter); }
	.fh-header__logo img { width: 160px; height: 47.3px; }
	.fh-header__nav {
		position: absolute;
		left: 50%;
		top: 50%;
		display: block;
		transform: translate(-50%, -50%);
	}
	.fh-menu { display: flex; }
	.fh-menu a {
		position: relative;
		display: flex;
		align-items: center;
		height: 44px;
		padding: 0 24px;
		font-size: 10px;
		line-height: 14px;
		letter-spacing: .5px;
		text-transform: uppercase;
	}
	.fh-menu a::after {
		content: "";
		position: absolute;
		left: 24px;
		top: calc(50% + 11px);
		width: 0;
		height: .75px;
		background: var(--ds-fill-primary);
		transition: width .3s ease;
	}
	.fh-menu a:hover::after,
	.fh-menu .current-menu-item > a::after { width: calc(100% - 48px); }
	.fh-menu .current-menu-item > a { font-weight: 500; }
	.fh-header__cta { display: inline-flex; }
	.fh-header__toggle { display: none; }
	.fh-mobile-menu { display: none !important; }
}

/* ==========================================================================
   HERO
========================================================================== */
.fh-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding: 112px var(--fh-gutter) 80px;
	overflow: hidden;
	isolation: isolate;
}
.fh-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fh-hero__shade {
	position: absolute;
	z-index: -1;
	inset: 0;
	/* Medido en el Figma: 15 % arriba → negro sólido al 85 % de la altura */
	background: linear-gradient(180deg, rgba(3, 8, 12, .15) 0%, var(--ds-surface-inverse) 85%);
}
.fh-hero__content { display: flex; flex-direction: column; }
.fh-hero__text { display: flex; flex-direction: column; gap: 24px; }
.fh-hero__copy { display: flex; flex-direction: column; gap: 16px; }
.fh-hero__buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.fh-hero__scroll {
	position: absolute;
	right: var(--fh-gutter);
	bottom: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.fh-hero__scroll-label { display: none; }
.fh-hero__scroll-icon { width: 48px; height: 48px; animation: fh-nudge 2.4s ease-in-out infinite; }
@keyframes fh-nudge { 50% { transform: translateY(8px); } }

@media (min-width: 768px) {
	.fh-hero { padding-bottom: 56px; }
	.fh-hero__content {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 32px;
	}
	.fh-hero__text { gap: 32px; max-width: 817px; }
	.fh-hero__buttons { flex-direction: row; align-items: center; gap: 24px; }
	.fh-hero__scroll { position: static; }
	.fh-hero__scroll-label {
		display: block;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		font-size: 8px;
		line-height: 14px;
		letter-spacing: 4px;
		text-transform: uppercase;
	}
	.fh-hero__scroll-icon { width: 56px; height: 56px; }
}
@media (min-width: 1024px) {
	.fh-hero { min-height: max(700px, min(100vh, 900px)); }
}

/* ==========================================================================
   SECCIONES CON CARRUSEL (Soluciones · Proyectos)
========================================================================== */
.fh-section {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: var(--fh-section-y) 0 var(--fh-section-y) var(--fh-gutter);
}
.fh-section--light { background: var(--ds-surface-secondary); color: var(--ds-text-primary); background: #f4f4f4; }
.fh-section--navy { background: var(--ds-surface-quaternary); color: var(--ds-text-inverse); }

.fh-section__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-right: var(--fh-gutter);
}
.fh-section__row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.fh-section__text { display: flex; flex-direction: column; gap: 24px; max-width: 793px; }

@media (min-width: 768px) {
	.fh-section { gap: 64px; }
	.fh-section__head { gap: 32px; }
	.fh-section__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
	.fh-section__text { gap: 32px; }
}

.fh-track {
	display: flex;
	gap: 16px;
	padding-right: var(--fh-gutter);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.fh-track::-webkit-scrollbar { display: none; }
.fh-track > * { flex: none; scroll-snap-align: start; }
@media (pointer: fine) { .fh-track { cursor: grab; } }
.fh-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fh-track.is-dragging * { pointer-events: none; }
@media (min-width: 768px) { .fh-track { gap: 32px; } }

/* ---------- Tarjeta de servicio ---------- */
.fh-service {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 312px;
	height: 467px;
	padding: 24px;
	border-radius: var(--ds-radius-md);
	overflow: hidden;
	isolation: isolate;
	color: var(--ds-text-inverse);
	background: var(--ds-surface-quaternary);
}
.fh-service__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .5s ease, transform .8s ease;
}
.fh-service__overlay {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .9) 90%);
	transition: opacity .5s ease;
}
.fh-service__icon { position: relative; display: block; width: 56px; height: 56px; }
.fh-service__icon img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s ease; }
.fh-service__icon-brand { opacity: 0; }
.fh-service__body { display: flex; flex-direction: column; gap: 12px; }
.fh-service__title, .fh-service__text { display: block; transition: color .4s ease; }

@media (min-width: 768px) {
	/* Desktop: tarjeta blanca; el hover revela foto + descripción (estado "Hover" del Figma) */
	.fh-service {
		width: 443px;
		height: 664px;
		padding: 48px;
		color: var(--ds-text-primary);
		background: var(--ds-surface-primary);
	}
	.fh-service__media, .fh-service__overlay { opacity: 0; }
	.fh-service__icon { width: 72px; height: 72px; }
	.fh-service__icon-brand { opacity: 1; }
	.fh-service__icon-white { opacity: 0; }
	.fh-service__body { gap: 24px; }
	.fh-service__text {
		max-height: 0;
		margin-top: -24px;
		opacity: 0;
		overflow: hidden;
		transition: max-height .5s ease, margin .5s ease, opacity .4s ease;
	}
	.fh-service:hover, .fh-service:focus-visible { color: var(--ds-text-inverse); }
	.fh-service:hover .fh-service__media,
	.fh-service:hover .fh-service__overlay,
	.fh-service:focus-visible .fh-service__media,
	.fh-service:focus-visible .fh-service__overlay { opacity: 1; }
	.fh-service:hover .fh-service__media { transform: scale(1.03); }
	.fh-service:hover .fh-service__icon-brand { opacity: 0; }
	.fh-service:hover .fh-service__icon-white { opacity: 1; }
	.fh-service:hover .fh-service__text,
	.fh-service:focus-visible .fh-service__text { max-height: 240px; margin-top: 0; opacity: 1; }
}

/* ---------- Tarjeta de proyecto ---------- */
.fh-carousel { display: flex; flex-direction: column; gap: 32px; }

.fh-project {
	position: relative;
	width: 312px;
	height: 467px;
	border-radius: var(--ds-radius-md);
	overflow: hidden;
	isolation: isolate;
	user-select: none;
}
.fh-project__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s ease;
}
.fh-project::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .6) 100%);
}
.fh-project__body {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	height: 100%;
	padding: 24px;
}
.fh-project__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
/* Logo del proyecto (opcional): arriba a la derecha, bajo el departamento */
.fh-project__top { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fh-project__logo { display: block; width: auto; height: auto; max-width: 88px; max-height: 28px; object-fit: contain; object-position: right center; filter: drop-shadow(0 2px 8px rgba(3, 8, 12, .35)); }
@media (min-width: 768px) { .fh-project__logo { max-width: 112px; max-height: 36px; } }

.fh-project__action {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 160px;
	border: 1px dashed rgba(253, 253, 253, .3);
	border-radius: 50%;
	background: rgba(3, 8, 12, .1);
	-webkit-backdrop-filter: blur(3.2px);
	backdrop-filter: blur(3.2px);
	font-family: var(--fh-font-button);
	font-weight: 700;
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	text-transform: uppercase;
	opacity: 0;
	transform: translate(-50%, -50%) scale(.8);
	transition: opacity .35s ease, transform .35s ease;
}
.fh-project:hover .fh-project__action,
.fh-project__action:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fh-project:hover .fh-project__media { transform: scale(1.04); }

.fh-pagination { display: none; align-items: center; gap: 40px; }
.fh-pagination__buttons { display: flex; gap: 12px; }
.fh-pagination__dots { display: flex; gap: 12px; }
.fh-pagination__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(253, 253, 253, .2);
	cursor: pointer;
}
.fh-pagination__dots button[aria-current="true"] { background: var(--ds-fill-primary); }

@media (min-width: 768px) {
	.fh-project { width: 443px; height: 664px; }
	.fh-project__body { padding: 40px; }
	.fh-pagination { display: flex; }
}

/* ==========================================================================
   DIFERENCIADOR
========================================================================== */
.fh-diff {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	padding: 72px 32px;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}
.fh-diff::before {
	/* Medido en el Figma: capa #03080C al 40 % sobre el video */
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: rgba(3, 8, 12, .4);
}
.fh-diff__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fh-diff__head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 910px; }
.fh-diff__text { display: flex; flex-direction: column; gap: 24px; }
.fh-diff__items { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.fh-diff__items li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 195px; }

.fh-symbol {
	font-family: "Material Symbols Sharp";
	font-weight: normal;
	font-style: normal;
	font-size: 32px;
	line-height: 1;
	width: 32px;
	height: 32px;
	overflow: hidden;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
	color: var(--ds-icon-inverse);
}

@media (min-width: 768px) {
	.fh-diff {
		justify-content: space-between;
		gap: 64px;
		min-height: 900px;
		padding: var(--fh-section-y) var(--fh-gutter);
	}
	.fh-diff__head, .fh-diff__text { gap: 32px; }
	.fh-diff__items {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: space-between;
		gap: 40px 24px;
		width: 100%;
		max-width: 1370px;
		text-align: left;
	}
	.fh-diff__items li { align-items: flex-start; gap: 12px; width: 206px; }
}

/* ==========================================================================
   IMPACTO
========================================================================== */
.fh-impact {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 40px var(--fh-gutter);
	background: linear-gradient(180deg, var(--ds-surface-quaternary) 0%, var(--ds-surface-inverse) 100%);
}
.fh-impact__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fh-impact__body { display: flex; flex-direction: column; gap: 72px; }

.fh-impact__stats { display: flex; flex-direction: column; gap: 24px; }
.fh-stat + .fh-stat { padding-top: 24px; border-top: 1px dashed rgba(253, 253, 253, .2); }
.fh-stat__number { display: flex; gap: 4px; font-weight: 500; font-size: 48px; line-height: 56px; }

.fh-impact__map { display: flex; justify-content: center; }
.fh-impact__map img { width: 343px; height: auto; }

/* Tarjeta de territorio (componente "Card territory", Type=Mobile por defecto) */
.fh-territory {
	position: relative;
	width: 100%;
	border: 1px solid rgba(253, 253, 253, .1);
	border-radius: var(--ds-radius-md);
	overflow: hidden;
}
.fh-territory__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 398 / 246;
}
.fh-territory__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fh-territory__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 26, 37, .3) 0%, rgba(11, 26, 37, 0) 37.195%),
		linear-gradient(180deg, rgba(11, 26, 37, 0) 33.036%, var(--ds-surface-quaternary) 99.874%);
	pointer-events: none;
}
.fh-territory__nav { position: relative; z-index: 1; display: flex; justify-content: space-between; width: calc(100% - 32px); }
.fh-territory__title {
	position: absolute;
	z-index: 1;
	left: 24px;
	top: 24px;
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: 36px;
	line-height: 36px;
	letter-spacing: -.5px;
	text-transform: uppercase;
	white-space: nowrap;
}
.fh-territory__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 12px 16px 24px;
	background: linear-gradient(180deg, var(--ds-surface-quaternary) 13.898%, rgba(15, 35, 50, .1) 100%);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.fh-territory__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
.fh-fact { padding-left: 12px; border-left: 1px dashed rgba(253, 253, 253, .3); }
.fh-fact--full { grid-column: 1 / -1; height: 56px; }
.fh-fact__n { display: flex; gap: 4px; font-weight: 500; font-size: 32px; line-height: 40px; white-space: nowrap; }
.fh-fact__l { font-size: 12px; line-height: 16px; }
.fh-territory__badges { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.fh-territory .fh-badge { font-size: 16px; line-height: 24px; }

@media (min-width: 768px) {
	.fh-impact { gap: 64px; padding: var(--fh-section-y) var(--fh-gutter); }
	.fh-impact__head { gap: 32px; }
	.fh-stat__number { font-size: 56px; line-height: 64px; }
	.fh-impact__body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; align-items: center; }
	.fh-impact__map { grid-column: 2; grid-row: 1 / span 2; }
	.fh-impact__map img { width: 100%; max-width: 632px; }
	.fh-territory { max-width: 398px; }
}

@media (min-width: 1200px) {
	/* Distribución del Figma desktop: datos | mapa | tarjeta */
	.fh-impact { gap: 120px; padding-bottom: 80px; }
	.fh-impact__body {
		grid-template-columns: minmax(0, 1fr) 632px minmax(0, 1fr);
		gap: 0 32px;
		align-items: start;
	}
	.fh-impact__stats { grid-column: 1; grid-row: 1; width: 272px; margin: 166px 0 0 40px; }
	.fh-impact__map { grid-column: 2; grid-row: 1; }
	/* Card territory (Type=Desktop): x 938 dentro del contenido, 157 px bajo el mapa */
	.fh-territory { grid-column: 3; grid-row: 1; justify-self: end; width: 398px; max-width: none; margin: 157px 40px 0 -98px; }
	.fh-territory__title { left: 32px; top: 32px; }
	.fh-territory__nav { display: none; }
	.fh-territory__body { gap: 32px; padding: 16px 32px 32px; }
	.fh-territory__facts { gap: 24px 0; }
	.fh-fact { padding-left: 16px; }
	.fh-fact__l { font-size: 14px; line-height: 20px; }
}

/* ==========================================================================
   ALIADOS
========================================================================== */
.fh-partners { padding: 16px 0 48px; overflow: hidden; background: var(--ds-surface-inverse); }
.fh-marquee { display: flex; width: max-content; animation: fh-marquee 45s linear infinite; }
.fh-partners:hover .fh-marquee { animation-play-state: paused; }
.fh-marquee__group { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.fh-marquee__group li { padding: 24px; }
.fh-marquee__group img { width: 120px; height: 40px; object-fit: contain; opacity: .4; transition: opacity .3s ease; }
.fh-marquee__group img:hover { opacity: .8; }
@keyframes fh-marquee { to { transform: translateX(-50%); } }

@media (min-width: 768px) {
	.fh-partners { padding: 64px 0; }
	.fh-marquee__group { gap: 40px; padding-right: 40px; }
	.fh-marquee__group li { padding: 24px 40px; }
	.fh-marquee__group img { width: 168px; height: 56px; }
}

/* ==========================================================================
   CTA
========================================================================== */
.fh-cta {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 600px;
	padding: 0 var(--fh-gutter);
	overflow: hidden;
	isolation: isolate;
}
.fh-cta__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
}
.fh-cta__shade {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, var(--ds-surface-inverse) 99.98%);
}
.fh-cta__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 253px; }
.fh-cta__text { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 768px) {
	.fh-cta { min-height: 800px; }
	.fh-cta__media { object-position: 50% 30%; }
	.fh-cta__content { gap: 32px; max-width: 619px; }
	.fh-cta__text .fh-body-xl { max-width: 559px; }
}

/* ==========================================================================
   FOOTER
========================================================================== */
.fh-footer {
	display: flex;
	flex-direction: column;
	gap: 72px;
	padding-top: 72px;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
}
.fh-footer__main { display: flex; flex-direction: column; gap: 32px; padding: 0 var(--fh-gutter); }
.fh-footer__logo img { width: 162px; height: 48px; object-fit: contain; object-position: left center; }
.fh-footer__cols { display: flex; flex-direction: column; gap: 40px; }
.fh-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--ds-text-tertiary); font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); }
.fh-footer__menus { display: flex; flex-direction: column; gap: 40px; }
.fh-footer__menu { display: flex; flex-direction: column; gap: 16px; }
.fh-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); }
.fh-footer__links a, .fh-footer__contact a { transition: color .3s ease; }
.fh-footer__links a:hover, .fh-footer__contact a:hover { color: var(--ds-text-tertiary); }
.fh-footer__office { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fh-footer__office .fh-caption { margin-top: 0; }
.fh-footer__city {
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: var(--fh-h5-size);
	line-height: var(--fh-h5-lh);
	letter-spacing: var(--fh-h5-ls);
	text-transform: uppercase;
}
.fh-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); }
.fh-footer__contact .fh-btn { margin-left: 0; }


/* Reloj con la hora de Cali */
.fh-clock { position: relative; display: block; width: 40px; height: 40px; }
.fh-clock i { position: absolute; left: 50%; bottom: 50%; background: var(--ds-fill-primary); transform-origin: 50% 100%; }
.fh-clock__h { width: 2px; height: 14px; margin-left: -1px; transform: rotate(46deg); }
.fh-clock__m { width: 1px; height: 19px; margin-left: -.5px; transform: rotate(194deg); }
.fh-clock__s { width: .5px; height: 16px; margin-left: -.25px; transform: rotate(110deg); }

.fh-footer__bottom { display: flex; flex-direction: column; gap: 16px; margin: 0 var(--fh-gutter); padding: 24px 0; border-top: 1px solid var(--ds-fill-quaternary); }
.fh-footer__legal { display: flex; flex-direction: column; gap: 4px; font-size: 10px; line-height: 14px; letter-spacing: var(--fh-caption-ls); text-transform: uppercase; color: var(--ds-text-tertiary); }
.fh-footer__social { display: flex; gap: 8px; }
.fh-footer__social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; transition: background-color .3s ease; }
.fh-footer__social a:hover { background: var(--ds-fill-quaternary); }
.fh-footer__social img { width: 16px; height: 16px; }

@media (min-width: 1024px) {
	.fh-footer { gap: 120px; padding-top: 120px; }
	.fh-footer__logo img { width: 184px; height: 54.4px; }
	.fh-footer__cols { flex-direction: row; justify-content: space-between; gap: 32px; }
	.fh-footer__about { gap: 24px; width: 326px; }
	.fh-footer__menus { flex-direction: row; gap: 24px; }
	.fh-footer__menu { gap: 24px; width: 209px; }
	.fh-footer__office { gap: 24px; width: 209px; }
	.fh-footer__bottom {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		align-items: center;
		gap: 0;
		padding: 16px 0 24px;
	}
	.fh-footer__legal { display: contents; }
	.fh-footer__rights { justify-self: center; }
	.fh-footer__social { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
	.fh-body *, .fh-body *::before, .fh-body *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   ANIMACIONES — Proyectos destacados y Nuestro impacto
========================================================================== */

/* Proyectos (Figma "Card project", estado Hover): la tarjeta se ensancha
   de 443 a 886 px, la imagen se expande hacia el lado y aparece "Ver video". */
@media (hover: hover) and (min-width: 1024px) {
	.fh-project { transition: width .7s cubic-bezier(.65, 0, .35, 1); }
	.fh-project:hover, .fh-project:focus-within { width: 886px; }
	.fh-project__media { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
	.fh-project__action {
		width: 160px;
		height: 160px;
		transition: opacity .4s ease .15s, transform .5s cubic-bezier(.2, .8, .2, 1) .15s, width .3s ease, height .3s ease, background-color .3s ease;
		cursor: pointer;
	}
	.fh-project__action:hover { width: 200px; height: 200px; background: rgba(3, 8, 12, .25); }
}
.fh-project__action { border-style: dashed; color: var(--ds-text-inverse); padding: 0; }
button.fh-project__action:not([data-fh-video]) { cursor: default; }
a.fh-project__action { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Modal de video */
.fh-video-modal {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px var(--fh-gutter);
	background: rgba(3, 8, 12, .92);
}
.fh-video-modal[hidden] { display: none; }
.fh-video-modal__player { width: 100%; max-width: 1200px; max-height: 100%; border-radius: var(--ds-radius-md); background: #000; }
.fh-video-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ds-fill-tertiary);
	color: var(--ds-text-inverse);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Mapa interactivo por departamentos (SVG del Figma con cada departamento identificado) */
.fh-map { position: relative; width: 343px; max-width: 100%; }
.fh-map__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 96%);
	mask-image: linear-gradient(180deg, #000 60%, transparent 96%);
}
.fh-dep {
	fill: #132c3f;
	stroke: #071119;
	stroke-width: 1;
	stroke-linejoin: round;
	transition: fill .6s ease;
}
.fh-dep.has-data { cursor: pointer; }
@media (hover: hover) { .fh-dep.has-data:hover { fill: #1a3a52; } }
/* Departamento activo (Figma: relleno degradado naranja→rojo al 15 % y borde degradado) */
.fh-dep-hl {
	fill: url(#fh-dep-active);
	fill-opacity: .15;
	stroke: url(#fh-dep-active);
	stroke-width: 1.5;
	stroke-linejoin: round;
	pointer-events: none;
}
@media (min-width: 768px) { .fh-map { width: 632px; } }

.fh-map__dot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 1.9%;
	aspect-ratio: 1;
	border-radius: 50%;
	margin: -0.95% 0 0 -0.95%; /* centra el punto (los % del margen son del ancho del mapa) */
	background: var(--ds-fill-brand);
	box-shadow: 0 10px 12px rgba(3, 8, 12, .08), 0 4px 4px rgba(3, 8, 12, .04);
}
.fh-map__dot::before,
.fh-map__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(223, 20, 39, .35);
	animation: fh-pulse 2.8s cubic-bezier(.2, .6, .3, 1) infinite;
	animation-delay: calc(var(--i) * -0.37s);
}
.fh-map__dot::after { animation-delay: calc(var(--i) * -0.37s - 1.4s); }
.fh-map__dot.is-active::before,
.fh-map__dot.is-active::after { background: rgba(223, 20, 39, .5); animation-duration: 2s; }
button.fh-map__dot { padding: 0; border: 0; cursor: pointer; transition: transform .3s ease; }
button.fh-map__dot:hover, button.fh-map__dot:focus-visible, .fh-map__dot.is-active { transform: scale(1.35); }
button.fh-map__dot:focus-visible { outline: 2px solid var(--ds-text-inverse); outline-offset: 3px; }
/* zona táctil más grande que el punto */
button.fh-map__dot > i { position: absolute; inset: -150%; border-radius: 50%; }
@keyframes fh-pulse {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(3.6); opacity: 0; }
}

/* El departamento activo "respira" (el resplandor sigue al territorio elegido) */
.fh-map::after {
	content: "";
	position: absolute;
	left: var(--gx, 37.1%);
	top: var(--gy, -0.5%);
	width: var(--gw, 34%);
	height: var(--gh, 13%);
	transition: left .8s cubic-bezier(.2, .8, .2, 1), top .8s cubic-bezier(.2, .8, .2, 1), width .8s ease, height .8s ease;
	background: radial-gradient(closest-side, rgba(223, 20, 39, .28), transparent);
	pointer-events: none;
	animation: fh-glow 3.2s ease-in-out infinite;
}
/* Mobile: misma animación que desktop (La Guajira respira y su punto late más fuerte) */
@keyframes fh-glow { 50% { opacity: .35; } }

/* Tarjeta de territorio: zoom lento de la foto */
.fh-territory__media > img { transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.fh-territory:hover .fh-territory__media > img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
	.fh-map__dot::before, .fh-map__dot::after, .fh-map::after { display: none; }
}

/* Icono play del botón "Ver video" (Figma: Play-Arrow-Fill) */
.fh-project__action { gap: 6px; }
.fh-project__action-icon { width: 12px; height: 12px; flex: none; transition: width .3s ease, height .3s ease; }
.fh-project__action:hover .fh-project__action-icon { width: 14px; height: 14px; }

/* Tarjeta destacada: toda la tarjeta lleva al proyecto; el botón "Ver video" queda encima */
.fh-project__link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.fh-project__link:focus-visible { outline: 2px solid var(--ds-text-inverse); outline-offset: -4px; }
.fh-project__action { z-index: 2; }
.fh-project__action--link { cursor: pointer; }
.fh-project:focus-within .fh-project__action { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Íconos del Figma que no existen en Material Symbols (p. ej. "geothermal") */
.fh-symbol--svg { display: inline-flex; font-family: inherit; }
.fh-symbol--svg svg { display: block; width: 100%; height: 100%; }

/* Proyecto en varios departamentos: etiquetas apiladas, alineadas a la derecha (Figma) */
.fh-project__deps { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* "4 millones" en una sola línea también mientras cuenta */
.fh-stat__number { white-space: nowrap; }

/* Línea de servicio con su nombre completo: si no cabe, baja a otra línea (sin cortar el texto) */
.fh-badge--category { height: auto; min-height: 32px; max-width: 100%; padding-top: 4px; padding-bottom: 4px; white-space: normal; border-radius: 16px; }

/* Aliados: tamaños del Figma (caja 168 × 56 en escritorio, 120 × 40 en celular). Los logos se recortan
   automáticamente (mqf_logo_trim) para que ocupen la caja como en el diseño. */

/* "Ver proyecto" solo aparece al pasar el mouse por la tarjeta; tras un clic no queda visible.
   Con teclado aparece al enfocar; en pantallas táctiles no se muestra (tocar la tarjeta abre el proyecto). */
.fh-project .fh-project__action { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.fh-project:has(:focus-visible) .fh-project__action { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) {
	.fh-project:hover .fh-project__action { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
