/*
 * M-Quadrantte — Páginas internas 2026 (Figma "Website (WIP)")
 * Soluciones · Proyectos · Carreras · Proveedores
 *
 * Se carga después de home-figma.css y reutiliza sus tokens (--fh-*) y
 * componentes (.fh-btn, .fh-badge, .fh-eyebrow, .fh-hero, .fh-cta, footer).
 * Mobile por defecto (375 px) → desktop desde 1024 px (1440 px en el Figma).
 */

.fh-body {
	--fp-h2-size: 36px; --fp-h2-lh: 36px; --fp-h2-ls: -1px;
	--fp-h4-size: 28px; --fp-h4-lh: 28px; --fp-h4-ls: -.5px;
	--fp-h6-size: 24px; --fp-h6-lh: 24px; --fp-h6-ls: 0px;
	--fp-line: #a0aab2;          /* border/tertiary */
	--fp-field-line: #cfd4d8;    /* border/quaternary */
	--fp-placeholder: #979aa2;   /* text/tertiary */
}
@media (min-width: 768px) {
	.fh-body {
		--fp-h2-size: clamp(36px, 5.6vw, 64px); --fp-h2-lh: clamp(36px, 5.3vw, 60px); --fp-h2-ls: -2px;
		--fp-h4-size: clamp(28px, 3.4vw, 40px); --fp-h4-lh: clamp(28px, 3.4vw, 40px); --fp-h4-ls: -1px;
		--fp-h6-size: 24px; --fp-h6-lh: 28px; --fp-h6-ls: -.5px;
	}
}

.fh-h2, .fh-h4, .fh-h6 { font-family: var(--fh-font-heading); font-weight: 700; text-transform: uppercase; }
.fh-h2 { font-size: var(--fp-h2-size); line-height: var(--fp-h2-lh); letter-spacing: var(--fp-h2-ls); }
.fh-h4 { font-size: var(--fp-h4-size); line-height: var(--fp-h4-lh); letter-spacing: var(--fp-h4-ls); }
.fh-h6 { font-size: var(--fp-h6-size); line-height: var(--fp-h6-lh); letter-spacing: var(--fp-h6-ls); }
:where(.fh-body) :is(h4, h5, h6, ol, figure) { margin: 0; }
:where(.fh-body) :is(input, select, textarea, button) { font: inherit; }

/* Número grande gris (01…05) */
.fp-bignum {
	font-weight: 500;
	font-size: 64px;
	line-height: 72px;
	color: rgba(207, 212, 216, .5);
}
@media (min-width: 1024px) { .fp-bignum { font-size: 112px; line-height: 120px; } }

/* ==========================================================================
   HERO INTERNO (Figma "Hero": foto + 2 degradados)
========================================================================== */
.fh-hero--inner .fh-hero__shade {
	background:
		linear-gradient(180deg, rgba(3, 8, 12, .4) 0%, rgba(3, 8, 12, 0) 14.444%),
		linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .7) 100%);
}
.fh-hero--inner picture { display: contents; }
.fh-hero__copy--inner { gap: 16px; max-width: 909px; }
/* Mobile (Figma): bloque de texto con 192 px debajo y el icono de scroll alineado a la derecha, 16 px bajo el texto */
.fh-hero--inner { padding-bottom: 192px; }
.fh-hero--inner .fh-hero__content { gap: 16px; }
.fh-hero--inner .fh-hero__copy p { max-width: 339px; } /* corte de líneas igual al Figma */
@media (min-width: 768px) { .fh-hero--inner .fh-hero__copy p { max-width: none; } }
.fh-hero--inner .fh-hero__scroll { position: static; align-self: flex-end; }
.fh-hero--inner .fh-hero__scroll-icon { width: 40px; height: 40px; }

@media (min-width: 768px) {
	.fh-hero--inner { padding-bottom: 64px; }
	.fh-hero--inner .fh-hero__shade {
		background:
			linear-gradient(180deg, rgba(3, 8, 12, .4) 0%, rgba(3, 8, 12, 0) 12.611%),
			linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .7) 100%);
	}
	.fh-hero__copy--inner { padding-right: 0; }
	.fh-hero--inner .fh-hero__scroll-icon { width: 56px; height: 56px; }
}

/* ==========================================================================
   SECCIONES
========================================================================== */
.fp-section {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 40px;
	padding: 72px var(--fh-gutter);
	color: var(--ds-text-primary);
}
.fp-section--white { background: var(--ds-surface-primary); }
.fp-section--grey { background: #f4f4f4; }

.fp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fp-head__title, .fp-head__copy { max-width: 793px; }
.fp-head__copy { display: flex; flex-direction: column; gap: 24px; }

@media (min-width: 1024px) {
	.fp-section { gap: 80px; padding: 120px var(--fh-gutter); }
	.fp-head, .fp-head__copy { gap: 32px; }
}

/* ==========================================================================
   SOLUCIONES (Figma "Card solution")
========================================================================== */
.fp-sol { display: flex; flex-direction: column; gap: 48px; }
.fp-sol__item { display: flex; flex-direction: column; gap: 32px; }
.fp-sol__media {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--ds-surface-quaternary);
}
.fp-sol__media :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-sol__text { display: flex; flex-direction: column; gap: 8px; }
.fp-sol__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fp-sol__copy { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 1024px) {
	.fp-sol { gap: 104px; }
	.fp-sol__item { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 32px; }
	.fp-sol__item:nth-child(even) { flex-direction: row; }
	.fp-sol__media { flex: none; width: min(676px, 49%); }
	.fp-sol__text { flex: none; width: calc(442px + clamp(0px, 8.2vw, 117px)); gap: 48px; padding-left: clamp(0px, 8.2vw, 117px); }
	.fp-sol__item:nth-child(even) .fp-sol__text { padding-left: 0; padding-right: clamp(0px, 8.2vw, 117px); }
	.fp-sol__body { gap: 32px; }
	.fp-sol__copy { gap: 24px; }
}

/* ==========================================================================
   PROYECTOS — filtros + grilla (Figma 7153:14171)
========================================================================== */
.fp-projects {
	padding: 24px var(--fh-gutter) 72px;
	background: var(--ds-surface-primary);
	color: var(--ds-text-primary);
}

.fp-filter {
	position: sticky;
	z-index: 20;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: 17px;
	/* línea punteada del Figma (trazo 2 px, espacio 2 px) */
	background: repeating-linear-gradient(90deg, var(--fp-line) 0 2px, transparent 2px 4px) left top / 100% 1px no-repeat, var(--ds-surface-primary);
}
.fp-filter__bar {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
.fp-filter__bar::-webkit-scrollbar { display: none; }
.fp-tabs { display: flex; flex: none; }

.fp-tab, .fp-dropdown__toggle {
	display: flex;
	flex: none;
	align-items: center;
	padding: 12px 16px;
	border: 0;
	background: none;
	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;
	color: var(--ds-text-primary);
	cursor: pointer;
	transition: color .3s ease;
}
.fp-tab { position: relative; padding-bottom: 17px; }
.fp-tab::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	height: 1px;
	background: var(--ds-fill-brand);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s cubic-bezier(0, 0, .58, 1);
}
.fp-tab { transition: color .3s cubic-bezier(0, 0, .58, 1); }
.fp-tab:hover, .fp-tab:focus-visible { color: var(--ds-text-brand); }
.fp-tab:hover::after, .fp-tab:focus-visible::after { transform: scaleX(1); }
.fp-tab[aria-selected="true"] { color: var(--ds-text-brand); }
.fp-tab[aria-selected="true"]::after { transform: scaleX(1); }

.fp-dropdown__toggle { gap: 4px; padding: 12px 4px; }
.fp-dropdown__toggle img { width: 16px; height: 16px; transition: transform .3s ease; }
.fp-dropdown__toggle.is-filtered { color: var(--ds-text-brand); }
.fp-dropdown__menu {
	position: absolute;
	z-index: 2;
	top: 100%;
	right: 0;
	width: 280px;
	max-height: min(60vh, 480px);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	background: var(--ds-fill-primary);
	box-shadow: 0 0 1px rgba(3, 8, 12, .06), 0 0 1px rgba(3, 8, 12, .12), 0 12px 24px rgba(3, 8, 12, .06);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .3s cubic-bezier(0, 0, .58, 1), transform .3s cubic-bezier(0, 0, .58, 1);
}
.fp-dropdown__menu.is-open { opacity: 1; transform: none; }
.fp-dropdown__menu[hidden] { display: none; }
.fp-dd-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 48px;
	padding: 12px 20px;
	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-primary);
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease;
}
.fp-dd-item:hover { background: #f4f4f4; }
.fp-dd-item input { position: absolute; right: 20px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.fp-dd-item__box {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	border: 1px solid var(--fp-line);
	background: var(--ds-fill-primary);
	transition: background-color .2s ease, border-color .2s ease;
}
.fp-dd-item__box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid var(--ds-text-inverse);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .2s ease;
}
.fp-dd-item input:checked + .fp-dd-item__box { background: var(--ds-fill-brand); border-color: var(--ds-fill-brand); }
.fp-dd-item input:checked + .fp-dd-item__box::after { transform: rotate(45deg) scale(1); }
.fp-dd-item input:focus-visible + .fp-dd-item__box { outline: 2px solid var(--ds-text-primary); outline-offset: 2px; }

.fp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.fp-empty { padding: 48px 0; color: var(--ds-text-secondary); }

.fp-card {
	position: relative;
	aspect-ratio: 343 / 515;
	overflow: hidden;
	isolation: isolate;
	color: var(--ds-text-inverse);
	background: var(--ds-surface-quaternary);
}
.fp-card[hidden] { display: none; }
.fp-card__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.fp-card::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%);
}
.fp-card__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	padding: 24px;
	pointer-events: none;
}
.fp-card__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.fp-card__title {
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: 24px;
	line-height: 24px;
	text-transform: uppercase;
}
.fp-badge-glass {
	background: rgba(253, 253, 253, .2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.fp-card__action {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	border: 1px dashed rgba(253, 253, 253, .3);
	border-radius: 50%;
	background: rgba(253, 253, 253, .2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(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;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.fp-card__action { gap: 0; }
.fp-card__action-icon { width: 0; height: 12px; opacity: 0; transition: width .4s ease, opacity .4s ease, margin .4s ease; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-card--video .fp-card__media { background: var(--ds-surface-quaternary); }

@media (min-width: 768px) {
	.fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
	.fp-card { aspect-ratio: 443 / 664; }
}
@media (min-width: 1024px) {
	.fp-projects { padding: 40px var(--fh-gutter) 120px; }
	.fp-filter { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding-top: 1px; }
	.fp-filter__bar { overflow: visible; }
	.fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
	.fp-card__body { padding: 32px; }
	.fp-card__title { font-size: var(--fh-h5-size); line-height: var(--fh-h5-lh); letter-spacing: var(--fh-h5-ls); }
	.fp-card__action { width: 146px; height: 146px; }
}
/* Desktop: la información se ve siempre; "Ver proyecto" aparece al pasar el mouse (estado Hover del Figma) */
@media (hover: hover) and (min-width: 1024px) {
	/* Figma: Card project Default → Hover (SMART_ANIMATE 1.25 s, curva "Slow") */
	.fp-card { --fp-slow: cubic-bezier(.16, 1, .3, 1); }
	.fp-card__action { opacity: 0; transition: opacity 1.25s var(--fp-slow), width 1.25s var(--fp-slow), height 1.25s var(--fp-slow), background-color 1.25s var(--fp-slow), border-color 1.25s var(--fp-slow); }
	.fp-card:hover .fp-card__action,
	.fp-card:focus-within .fp-card__action { opacity: 1; }
	/* Figma: Button round Default (146) → Hover (200, fondo 10 %, borde sólido, icono) */
	.fp-card__action:hover { width: 200px; height: 200px; background: rgba(253, 253, 253, .1); border-style: solid; }
	.fp-card__action:hover .fp-card__action-icon { width: 12px; margin-left: 3.3px; opacity: 1; }
}

/* ==========================================================================
   CARRERAS — "Lo que nos impulsa" (Figma "Card feature")
========================================================================== */
.fp-features { display: flex; flex-direction: column; gap: 40px; }
.fp-feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 96px;
	max-width: 326px;
	padding: 0 24px;
	background: repeating-linear-gradient(180deg, var(--fp-line) 0 2px, transparent 2px 4px) left top / 1px 100% no-repeat;
}
.fp-feature__icon { width: 40px; height: 40px; }
.fp-feature__copy { display: flex; flex-direction: column; gap: 16px; }
.fp-benefit .fp-feature__icon { width: 40px; height: 40px; }

@media (min-width: 768px) {
	.fp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
	.fp-feature { justify-content: space-between; gap: 48px; max-width: none; min-height: 320px; padding: 0 32px; }
	.fp-feature__icon { width: 48px; height: 48px; }
}
@media (min-width: 1200px) {
	.fp-features { display: flex; flex-direction: row; gap: 24px; }
	.fp-feature { flex: 1 1 0; min-width: 0; max-width: 326px; height: 408px; }
}

/* ==========================================================================
   IMAGEN A TODO EL ANCHO (bloque "People")
========================================================================== */
.fp-people { position: relative; height: var(--fp-h-m, 600px); overflow: hidden; background: var(--ds-surface-quaternary); }
.fp-people img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
@media (min-width: 768px) { .fp-people { height: min(var(--fp-h, 900px), 62.5vw); } }

/* ==========================================================================
   FORMULARIOS (Figma "Text input", "Select", "Checkbox")
========================================================================== */
.fp-form { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 100%; }
.fp-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; width: 100%; }
.fp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.fp-field { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-field__label {
	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-primary);
	padding-right: 32px;
}
.fp-field__control {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--fp-field-line);
	border-radius: 0;
	background: transparent;
	font-family: var(--fh-font-body);
	font-size: 14px;
	line-height: 20px;
	color: var(--ds-text-primary);
	outline: none;
	transition: border-color .3s ease;
	-webkit-appearance: none;
	appearance: none;
}
.fp-field__control::placeholder { color: var(--fp-placeholder); }
.fp-field__control:focus { border-bottom-color: var(--ds-text-primary); }
.fp-field.is-invalid .fp-field__control { border-bottom-color: var(--ds-fill-brand); }
.fp-field.is-invalid .fp-field__label { color: var(--ds-text-brand); }
.fp-field__control[type="number"] { -moz-appearance: textfield; }
.fp-field__control::-webkit-outer-spin-button,
.fp-field__control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fp-field--select select { cursor: pointer; padding-right: 8px; }
.fp-field--select select:disabled { cursor: not-allowed; }
.fp-field__caret { position: absolute; top: 0; right: 0; width: 24px; height: 24px; cursor: pointer; }
.fp-field--select:has(select:disabled) .fp-field__caret { cursor: not-allowed; opacity: .5; }

.fp-field--file { cursor: pointer; }
.fp-field__file { display: flex; align-items: center; overflow: hidden; color: var(--fp-placeholder); white-space: nowrap; text-overflow: ellipsis; }
.fp-field--file.has-file .fp-field__file { color: var(--ds-text-primary); }
.fp-field__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fp-field--file:focus-within .fp-field__file { border-bottom-color: var(--ds-text-primary); }

.fp-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fp-check input { position: absolute; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.fp-check__box {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	border: 1px solid var(--fp-line);
	background: var(--ds-fill-primary);
	transition: background-color .2s ease, border-color .2s ease;
}
.fp-check__box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid var(--ds-text-inverse);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .2s ease;
}
.fp-check input:checked + .fp-check__box { background: var(--ds-fill-brand); border-color: var(--ds-fill-brand); }
.fp-check input:checked + .fp-check__box::after { transform: rotate(45deg) scale(1); }
.fp-check input:focus-visible + .fp-check__box { outline: 2px solid var(--ds-text-primary); outline-offset: 2px; }
.fp-check.is-invalid .fp-check__box { border-color: var(--ds-fill-brand); }
.fp-check__text { font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); color: var(--ds-text-secondary); }
.fp-check__text a { font-weight: 500; color: var(--ds-text-brand); }
.fp-check__text a:hover { text-decoration: underline; }

.fp-icon-next { transition: transform .3s ease; }
.fh-btn:hover .fp-icon-next { transform: translateX(3px); }
.fp-submit[disabled] { opacity: .6; cursor: progress; }

.fp-notice { width: 100%; padding: 16px 20px; border-left: 2px solid; font-size: 14px; line-height: 20px; }
.fp-notice--ok { border-color: #447b44; background: rgba(68, 123, 68, .08); color: #2d522d; }
.fp-notice--error { border-color: var(--ds-fill-brand); background: rgba(223, 20, 39, .06); color: var(--ds-text-brand); }

@media (min-width: 768px) {
	.fp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
	.fp-field__control { font-size: 14px; }
}

/* ---------- Carreras: "Crece con nosotros" ---------- */
.fp-apply { gap: 32px; }
.fp-apply__grid { display: flex; flex-direction: column; gap: 40px; }
.fp-apply__copy { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
	.fp-apply__grid { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 48px; }
	.fp-apply__copy { flex: 0 1 559px; gap: 32px; }
	.fp-apply__form { flex: 0 1 676px; }
}

/* ==========================================================================
   PROVEEDORES
========================================================================== */
/* Trabajemos juntos */
.fp-together { gap: 32px; }
.fp-together__head { display: flex; flex-direction: column; gap: 24px; }
.fp-together__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fp-together__images { display: flex; flex-direction: column; gap: 24px; }
.fp-together__images .fp-img:first-child { aspect-ratio: 731.49 / 584.36; }
.fp-img { position: relative; aspect-ratio: 676 / 584.36; overflow: hidden; background: var(--ds-surface-quaternary); }
.fp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
	.fp-together__images { flex-direction: row; gap: 24px; }
	.fp-img { flex: 1 1 0; }
	.fp-together__images .fp-img:first-child { aspect-ratio: 676 / 584.36; }
}
@media (min-width: 1024px) {
	.fp-together { gap: 64px; }
	.fp-together__head { flex-direction: row; gap: 32px; }
	.fp-together__head > .fh-eyebrow { flex: 1 1 0; }
	.fp-together__copy { flex: 0 1 676px; gap: 32px; }
}

/* Por qué ser nuestro proveedor (Figma "Card benefit") */
.fp-benefits__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fp-benefits__list { display: flex; flex-direction: column; }
.fp-benefit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 64px;
	padding: 24px 0; /* línea por dentro, como en el Figma: alto total 224 px */
	background: repeating-linear-gradient(90deg, #425665 0 2px, transparent 2px 4px) left bottom / 100% 1px no-repeat;
}
.fp-benefit .fp-feature__copy { gap: 8px; }
@media (min-width: 768px) {
	.fp-benefits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
	.fp-benefit { justify-content: space-between; gap: 32px; min-height: 276px; padding: 32px 0; }
	.fp-benefit .fp-feature__icon { width: 48px; height: 48px; }
	.fp-benefit .fp-feature__copy { gap: 16px; }
}
@media (min-width: 1024px) {
	.fp-benefits { flex-direction: row; align-items: flex-start; gap: 24px; }
	.fp-benefits__head { flex: 0 0 min(443px, 32%); gap: 32px; }
	.fp-benefits__list { flex: 1 1 0; }
}

/* Documentación y recursos (Figma "Card resource") */
.fp-resources {
	background: linear-gradient(180deg, var(--ds-surface-quaternary) 0%, var(--ds-surface-inverse) 100%);
	color: var(--ds-text-inverse);
}
.fp-resources__list { display: flex; flex-direction: column; gap: 24px; }
/* Figma "Card resource": fondo degradado + borde degradado (blanco 10 % → 0 %), desenfoque de fondo 4 px.
   Hover (SMART_ANIMATE 0.3 s ease-out): la tarjeta se reduce 8 px (443×344 → 435×336), el fondo pasa a
   rgba(11,26,37,.5) → transparente y el icono del botón cambia por el anillo. */
.fp-resource {
	--fp-res-ease: cubic-bezier(0, 0, .58, 1);
	--fp-res-inset: 0px;
	--fp-res-pad: 24px;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 64px;
	padding: calc(var(--fp-res-pad) + 1px + var(--fp-res-inset));
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: padding .3s var(--fp-res-ease);
}
.fp-resource::before,
.fp-resource::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: var(--fp-res-inset);
	border: 1px solid transparent;
	pointer-events: none;
	transition: inset .3s var(--fp-res-ease), opacity .3s var(--fp-res-ease);
}
.fp-resource::before {
	background:
		linear-gradient(180deg, #0b1a25 15%, rgba(15, 35, 50, .1) 100%) padding-box,
		linear-gradient(180deg, rgba(253, 253, 253, .1) 0%, rgba(253, 253, 253, 0) 100%) border-box;
}
.fp-resource::after {
	opacity: 0;
	background:
		linear-gradient(180deg, rgba(11, 26, 37, .5) 15%, rgba(15, 35, 50, 0) 100%) padding-box,
		linear-gradient(180deg, rgba(253, 253, 253, .1) 0%, rgba(253, 253, 253, 0) 100%) border-box;
}
.fp-resource .fh-btn__icon--hover { display: none; width: 12px; height: 12px; margin: 0 2px; }
@media (hover: hover) and (min-width: 768px) {
	.fp-resource:hover { --fp-res-inset: 4px; }
	.fp-resource:hover::before { opacity: 0; }
	.fp-resource:hover::after { opacity: 1; }
	.fp-resource:hover .fh-btn__icon--hover { display: block; }
	.fp-resource:hover .fh-btn__icon:not(.fh-btn__icon--hover) { display: none; }
}
.fp-resource__type { width: 32px; height: 32px; }
.fp-resource__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fp-resource__copy { display: flex; flex-direction: column; gap: 4px; }
.fp-resource__text { font-size: 14px; line-height: 20px; color: #cfd4d8; }
@media (min-width: 768px) {
	.fp-resources__list { flex-direction: row; gap: 24px; }
	.fp-resource { --fp-res-pad: 40px; flex: 0 1 443px; gap: 32px; min-height: 344px; }
	.fp-resource__type { width: 40px; height: 40px; }
}

/* Registro de proveedores (Figma "Form supplier") */
.fp-register { gap: 32px; }
.fp-register__inner { display: flex; flex-direction: column; gap: 32px; }
.fp-register { gap: 24px; }
.fp-register__head { display: flex; flex-direction: column; gap: 24px; }
.fp-note {
	max-width: 326px;
	padding-left: 16px;
	border-left: 1px solid var(--ds-fill-brand);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	color: var(--ds-text-primary);
}
.fp-steps { gap: 16px; align-items: stretch; }
.fp-step { background: var(--ds-surface-primary); }
.fp-step__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px;
	border: 0;
	background: none;
	text-align: left;
	color: var(--ds-text-primary);
	cursor: pointer;
}
.fp-step__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fp-step__n { width: 48px; font-weight: 500; font-size: 32px; line-height: 40px; color: #cfd4d8; }
.fp-step__icon { flex: none; width: 24px; height: 24px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.fp-step.is-open .fp-step__icon { transform: rotate(180deg); }
.fp-step__panel { display: flex; flex-direction: column; gap: 24px; padding: 8px 16px 24px; }
.fp-step .fp-fields { gap: 24px; }
.fp-step.is-open .fp-step__n { line-height: 30px; }
.fp-field--select .fp-field__label { padding-top: 2px; padding-bottom: 2px; } /* fila de 24 px por el icono */
@media (min-width: 768px) { .fp-field--select .fp-field__label { padding-top: 0; padding-bottom: 0; } }
.fp-step__title { font-size: 24px; line-height: 24px; letter-spacing: 0; }
.fp-step__panel[hidden] { display: none; }
.fp-step__actions { display: flex; justify-content: flex-end; }

@media (min-width: 1024px) {
	.fp-register__inner { gap: 64px; }
	.fp-register__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
	.fp-register__head .fp-head__copy { max-width: 676px; }
	.fp-note { flex: 0 0 326px; }
	.fp-step__header { align-items: center; padding: 32px 40px; }
	.fp-step__heading { flex-direction: row; align-items: center; gap: 40px; }
	.fp-step__n, .fp-step.is-open .fp-step__n { width: 88px; font-size: 64px; line-height: 64px; }
	.fp-step__title { font-size: 36px; line-height: 36px; letter-spacing: -.5px; }
	.fp-step__panel { gap: 32px; padding: 24px 40px 32px; }
	.fp-step .fp-fields { gap: 32px 24px; }
	.fp-register { gap: 32px; }
}

/* ==========================================================================
   CTA de páginas internas
========================================================================== */
.fp-cta .fh-cta__content { max-width: 253px; }
@media (min-width: 768px) {
	.fp-cta .fh-cta__content { max-width: var(--fp-cta-w, 619px); }
}

/* ==========================================================================
   CONTACTO (Figma Contact — desktop 7689:10782 · mobile 7819:5500)
========================================================================== */

/* ---------- Hero: video + degradado 80 % → 100 % y datos de contacto abajo ---------- */
.fh-hero--contact { padding: 80px var(--fh-gutter) 56px; }
.fh-hero--contact .fh-hero__shade {
	background: linear-gradient(180deg, rgba(2, 5, 8, .8) 0%, rgb(2, 5, 8) 79.862%);
}
.fh-hero--contact .fh-hero__content { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0; }
.fp-chero__top { flex: 1 1 auto; display: flex; align-items: center; }
.fp-chero__copy { gap: 24px; max-width: 676px; padding-right: 16px; }
.fp-chero__bottom { display: flex; align-items: flex-start; }
.fp-chero__items { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; margin: 0; }
.fp-chero__item { display: flex; flex-direction: column; gap: 8px; }
.fp-chero__item--fixed { width: 209px; }
.fp-chero__item dt {
	font-size: 10px;
	line-height: 14px;
	letter-spacing: var(--fh-caption-ls);
	text-transform: uppercase;
	color: #979aa2; /* text/tertiary */
}
.fp-chero__item dd { margin: 0; font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); color: var(--ds-text-inverse); }
.fp-chero__item a { color: inherit; text-decoration: none; }
.fp-chero__item a:hover { text-decoration: underline; }
.fh-hero--contact .fh-hero__scroll { position: static; flex: none; }
.fh-hero--contact .fh-hero__scroll-icon { width: 40px; height: 40px; }

@media (min-width: 768px) {
	.fh-hero--contact { padding: 96px var(--fh-gutter) 64px; }
	.fh-hero--contact .fh-hero__content { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
	.fp-chero__copy { padding-right: 0; }
	.fp-chero__bottom { align-items: flex-end; }
	.fp-chero__items { flex-direction: row; align-items: flex-end; gap: 120px; }
	.fh-hero--contact .fh-hero__scroll-icon { width: 56px; height: 56px; }
}

/* ---------- Formularios: textarea, select con placeholder y campos a todo el ancho ---------- */
.fp-field--textarea textarea.fp-field__control { height: 80px; min-height: 80px; }
.fp-field--select select:has(> option[value=""]:checked) { color: var(--fp-placeholder); }
.fp-field--select select option { color: var(--ds-text-primary); }
.fp-fields__full { grid-column: 1 / -1; display: flex; flex-direction: column; }
.fp-contact .fp-fields, .fp-request .fp-fields { gap: 24px; }
@media (min-width: 768px) {
	.fp-contact .fp-fields, .fp-request .fp-fields { gap: 32px 24px; }
}

/* ---------- "Hablemos de tu proyecto" (misma composición que Carreras) ---------- */
.fp-contact { gap: 24px; }
.fp-contact .fp-apply__grid { gap: 32px; }
@media (min-width: 1024px) {
	.fp-contact { gap: 32px; }
	.fp-contact .fp-apply__grid { gap: 48px; }
}

/* ---------- PQRS: tarjetas blancas sobre gris ---------- */
.fp-pqrs__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 676px; }
.fp-pqrs__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fp-pqrs__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 96px;
	padding: 24px;
	background: var(--ds-surface-primary);
}
.fp-pqrs__icon { width: 32px; height: 32px; }
.fp-pqrs__copy { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) {
	.fp-pqrs__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-pqrs__card { justify-content: space-between; gap: 48px; min-height: 408px; padding: 32px; }
	.fp-pqrs__icon { width: 48px; height: 48px; }
}
@media (min-width: 1024px) {
	.fp-pqrs__head { gap: 32px; }
}
@media (min-width: 1200px) {
	.fp-pqrs__cards { display: flex; gap: 24px; }
	.fp-pqrs__card { flex: 0 1 326px; min-width: 0; height: 408px; }
}

/* ---------- "Registra tu solicitud" (PQRS) ---------- */
.fp-request { gap: 24px; }
.fp-request__inner { display: flex; flex-direction: column; gap: 40px; }
.fp-request__title { max-width: 676px; }
@media (min-width: 1024px) {
	.fp-request { gap: 32px; }
	.fp-request__inner { gap: 64px; }
}

/* Botones <button> con estilo .fh-btn: sin el borde por defecto del navegador */
button.fh-btn { border: 0; }
.fp-field--textarea textarea.fp-field__control { resize: none; }
/* Figma (Contacto mobile): los enlaces de la autorización van en 16/24 */
.fp-contact .fp-check__text a, .fp-request .fp-check__text a { font-size: 16px; line-height: 24px; }

/* ==========================================================================
   NOSOTROS (Figma About us — desktop 7219:8996 · mobile 8125:19106)
========================================================================== */
.fh-body .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Quiénes somos ---------- */
.fp-who { gap: 32px; }
.fp-who__head { display: flex; flex-direction: column; gap: 24px; }
.fp-who__text p { margin: 0; }
.fp-who__text p + p { margin-top: var(--fh-lg-lh); } /* Figma: párrafo vacío entre los dos textos */
.fp-who__media { position: relative; aspect-ratio: 1376 / 774; overflow: hidden; }
.fp-who__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
	.fp-who { gap: 64px; }
	.fp-who__head { flex-direction: row; align-items: flex-start; gap: 32px; }
	.fp-who__head > .fh-eyebrow { flex: 0 0 583px; max-width: calc(42.4% - 16px); }
	.fp-who__copy { flex: 0 1 761px; margin-left: auto; }
}

/* ---------- Historia (línea de tiempo) ---------- */
.fp-history {
	position: relative;
	gap: 40px;
	background: linear-gradient(180deg, #0b1a25 0%, var(--ds-surface-inverse) 100%);
	color: var(--ds-text-inverse);
	overflow: hidden;
}
.fp-history__head { display: flex; flex-direction: column; gap: 24px; }
.fp-history__row { display: flex; flex-direction: column; gap: 32px; }
.fp-history__title { max-width: 676px; color: var(--ds-text-inverse); }
.fp-history__note {
	margin: 0;
	padding-left: 16px;
	border-left: 1px solid var(--ds-fill-brand);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
.fp-timeline { gap: 32px; }
.fp-timeline__track { display: flex; flex-direction: column; gap: 40px; }
.fp-tl-card { position: relative; display: flex; flex-direction: column; gap: 32px; }
.fp-tl-card__copy { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; text-align: right; }
.fp-tl-card__year {
	margin: 0;
	width: 100%;
	font-family: var(--fh-font-body);
	font-weight: 500;
	font-size: 96px;
	line-height: 88px;
	letter-spacing: -.5px;
	color: #132c3f;
}
.fp-tl-card__body { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.fp-tl-card__icon { display: block; width: 16px; height: 16px; margin: 3.3px 3.3px 11.3px; background: var(--ds-fill-brand); transform: rotate(45deg); }
.fp-tl-card__title {
	margin: 0;
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: 24px;
	line-height: 24px;
	text-transform: uppercase;
	color: var(--ds-text-inverse);
}
.fp-tl-card__text { margin: 0; font-size: 14px; line-height: 20px; color: #979aa2; }
.fp-tl-card__frame {
	display: flex;
	width: 100%;
	height: 449px;
	padding: 12px;
	border: 1px solid rgba(253, 253, 253, .1);
	background: #0b1a25;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.fp-tl-card__frame img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
	.fp-history { gap: 120px; }
	.fp-history__head { gap: 32px; }
	.fp-history__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
	.fp-history__note { flex: 0 1 559px; }
	.fp-timeline__track {
		flex-direction: row;
		gap: 80px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.fp-timeline__track::-webkit-scrollbar { display: none; }
	.fp-timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
	.fp-timeline__track.is-dragging * { pointer-events: none; }
	.fp-tl-card { flex: none; flex-direction: row; align-items: flex-start; gap: 48px; width: 857.75px; scroll-snap-align: start; user-select: none; }
	.fp-tl-card__copy { flex: 0 0 447px; gap: 128px; }
	.fp-tl-card__year { font-size: 172px; line-height: 168px; letter-spacing: -1px; }
	.fp-tl-card__title { font-size: 36px; line-height: 36px; letter-spacing: -.5px; }
	.fp-tl-card__text { font-size: 16px; line-height: 24px; }
	.fp-tl-card__frame { flex: none; width: 362.75px; height: 475px; margin-top: 72px; }
}
@media (min-width: 1024px) and (pointer: fine) { .fp-timeline__track { cursor: grab; } }
@media (max-width: 1023px) { .fp-timeline .fh-pagination { display: none; } }

/* ---------- Misión y visión (cambia con el scroll —la sección se fija mientras tanto— o con clic; Figma SMART_ANIMATE 2.08 s "Slow") ---------- */
.fp-mv { position: relative; overflow: hidden; }
.fp-mv__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	height: 812px;
	padding: 72px 32px;
	border: 0;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
}
.fp-mv__img {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 2.08s cubic-bezier(.16, 1, .3, 1), transform 2.08s cubic-bezier(.16, 1, .3, 1);
}
.fp-mv__img.is-active { opacity: 1; transform: none; }
.fp-mv__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(3, 8, 12, .1) 0%, rgba(3, 8, 12, .9) 100%); }
.fp-mv__copy {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: min(343px, calc(100% - 32px));
	opacity: 0;
	transform: translate(-50%, calc(-50% + 24px));
	transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), transform 2.08s cubic-bezier(.16, 1, .3, 1);
	pointer-events: none;
}
.fp-mv__copy.is-active { opacity: 1; transform: translate(-50%, -50%); transition-delay: .25s; }
.fp-mv__title { display: block; }
.fp-mv__text { display: block; font-size: 16px; line-height: 20px; }
.fp-mv__scroll { width: 40px; height: 40px; animation: fh-nudge 2.4s ease-in-out infinite; }
.fp-mv__stage:focus-visible { outline: 2px solid var(--ds-fill-brand); outline-offset: -4px; }
.fp-mv.is-pinned .fp-mv__stage { height: min(812px, 100vh); height: min(812px, 100svh); }
@media (min-width: 768px) {
	.fp-mv__stage { height: 900px; padding: 120px 32px; }
	.fp-mv.is-pinned .fp-mv__stage { height: min(900px, 100vh); }
	.fp-mv__copy { width: 676px; }
	.fp-mv__text { font-size: 18px; line-height: 24px; }
	.fp-mv__scroll { width: 56px; height: 56px; }
}

/* ---------- Equipo (lista con foto al pasar el mouse) ---------- */
.fp-team__list { display: flex; align-items: stretch; justify-content: space-between; gap: 32px; }
.fp-team__media { display: none; }
.fp-team__items { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.fp-team__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0 21px; /* + 1 px de la línea punteada */
	background: repeating-linear-gradient(90deg, var(--fp-line) 0 2px, transparent 2px 4px) left bottom / 100% 1px no-repeat;
	outline: none;
}
.fp-team__n {
	flex: none;
	width: 33px;
	font-family: var(--fh-font-body);
	font-weight: 500;
	font-size: 24px;
	line-height: 32px;
	color: #cfd4d8; /* text/disabled */
	transition: color .2s ease;
}
.fp-team__t { flex: 1 1 auto; font-weight: 500; font-size: 16px; line-height: 20px; color: var(--ds-text-primary); }
@media (min-width: 1024px) {
	.fp-team__media { position: relative; display: block; flex: 0 1 756px; min-height: 420px; overflow: hidden; }
	.fp-team__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
	.fp-team__media img.is-active { opacity: 1; }
	.fp-team__items { flex: 0 1 583px; }
	.fp-team__item { gap: 24px; padding: 24px 0 25px; cursor: default; }
	.fp-team__t { font-size: 18px; line-height: 24px; }
	.fp-team__item.is-active .fp-team__n { font-weight: 700; color: var(--ds-text-brand); }
}

/* ---------- Diferenciales (6 tarjetas, mismo componente que PQRS) ---------- */
.fp-dif__cards { gap: 20px; }
.fp-dif .fp-pqrs__card .fh-h6 { font-size: 22px; line-height: 24px; }
@media (min-width: 768px) {
	.fp-dif .fp-pqrs__card .fh-h6 { font-size: var(--fp-h6-size); line-height: var(--fp-h6-lh); }
}
@media (min-width: 1200px) {
	.fp-dif__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 23.5px; }
	.fp-dif .fp-pqrs__card { height: 408px; }
}

/* Hero interno: encuadre distinto en celular (Nosotros) */
@media (max-width: 767px) { .fh-hero--inner .fh-hero__media.has-pos-m { object-position: var(--fp-pos-m) !important; } }

/* ==========================================================================
   PÁGINA DE PROYECTO (Figma "Project" 7829:14582 · mobile 8020:18119)
========================================================================== */
.fh-body { --fp-dash-w: repeating-linear-gradient(90deg, var(--fp-line) 0 1px, transparent 1px 5px); }

/* Enlace terciario (Figma "Button" Tertiary/Inverse: blanco → naranja en hover) */
.fp-tlink {
	display: inline-flex;
	flex: none;
	align-items: center;
	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;
	color: var(--ds-text-inverse);
	transition: color .3s ease-out;
}
.fp-tlink > span { padding: 0 4px; }
.fp-tlink__icon { flex: none; width: 16px; height: 16px; transition: transform .3s ease-out; }
.fp-tlink:hover, .fp-tlink:focus-visible { color: #f34300; }
.fp-tlink:hover .fp-tlink__icon:first-child { transform: translateX(-2px); }
.fp-tlink:hover .fp-tlink__icon:last-child:not(:first-child) { transform: translate(2px, -2px); }

/* ---------- Portada ---------- */
/* Mobile (Figma): el bloque de título se centra entre el header (80 px) y los 192 px inferiores; foto centrada */
.fp-phero.fh-hero--inner { padding: 80px var(--fh-gutter) 192px; }
@media (max-width: 767px) { .fp-phero .fh-hero__media { object-position: 50% 50% !important; } }
.fp-phero.fh-hero--inner .fh-hero__shade {
	background:
		linear-gradient(180deg, rgba(3, 8, 12, .4) 0%, rgba(3, 8, 12, 0) 12.611%),
		linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .8) 100%);
}
.fp-phero__content { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.fp-phero__head {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(253, 253, 253, .3);
}
.fp-phero__badge { margin-bottom: 12px; padding: 0 12px; }
.fp-phero__head .fh-h1 { max-width: 793px; }
.fp-phero__text { max-width: 793px; margin-top: 8px; }
.fp-phero__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fp-phero__place {
	font-family: var(--fh-font-button);
	font-weight: 700;
	font-size: var(--fh-lg-size);
	line-height: var(--fh-lg-lh);
	text-transform: uppercase;
	text-align: right;
}
@media (min-width: 768px) {
	.fp-phero.fh-hero--inner { padding-top: 112px; padding-bottom: 32px; }
	.fp-phero__content { flex: 0 0 auto; gap: 24px; }
	.fp-phero__head { flex: 0 0 auto; }
	.fp-phero.fh-hero--inner .fh-hero__shade {
		background:
			linear-gradient(180deg, rgba(3, 8, 12, .4) 0%, rgba(3, 8, 12, 0) 12.611%),
			linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, rgba(3, 8, 12, .7) 100%);
	}
	.fp-phero__head { padding-bottom: 24px; }
}

/* ---------- El desafío: mapa + ficha ---------- */
.fp-challenge { gap: 40px; }
.fp-pmap { display: flex; justify-content: center; align-self: center; width: 100%; max-width: 343px; aspect-ratio: 1; margin: 0; }
.fp-pmap__canvas { position: relative; height: 100%; aspect-ratio: 632 / 873; }
.fp-pmap__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fp-pmap .fh-dep {
	fill: var(--ds-surface-primary);
	stroke: #8f99a1;
	stroke-width: .75px;
	vector-effect: non-scaling-stroke;
	transition: fill 1.2s cubic-bezier(.16, 1, .3, 1) .2s, stroke 1.2s cubic-bezier(.16, 1, .3, 1) .2s;
}
.fp-pmap .fh-dep.is-project { fill: var(--ds-fill-brand); stroke: var(--ds-fill-brand); }
.fp-pmap[data-fp-anim]:not(.is-in) .fh-dep.is-project { fill: var(--ds-surface-primary); stroke: var(--fp-line); }

/* Punto del mapa (Figma "Dot map": a los 0,8 s el halo crece de 12 a 48 px y se desvanece en 2 s, en bucle) */
.fp-pmap__dot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 2.366%; /* 12 px sobre 507 px de mapa */
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	transition: opacity .6s ease 1s, transform .6s cubic-bezier(.16, 1, .3, 1) 1s;
}
.fp-pmap__dot > i,
.fp-pmap__dot::before {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}
.fp-pmap__dot > i {
	background: var(--ds-text-inverse);
	box-shadow: 0 8px 8px rgba(3, 8, 12, .04), 0 20px 24px rgba(3, 8, 12, .08);
}
.fp-pmap__dot::before {
	content: "";
	border: 1px solid var(--ds-text-inverse);
	background: radial-gradient(closest-side, rgba(253, 253, 253, 0), rgba(253, 253, 253, .7));
	animation: fp-dot 2.8s infinite;
}
@keyframes fp-dot {
	0%, 28.57% { transform: scale(1); opacity: 1; animation-timing-function: ease-out; }
	100% { transform: scale(4); opacity: 0; }
}
.fp-pmap[data-fp-anim]:not(.is-in) .fp-pmap__dot { opacity: 0; transform: translate(-50%, -50%) scale(.2); }

.fp-challenge__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
.fp-challenge__copy { display: flex; flex-direction: column; gap: 24px; }
.fp-facts { width: 100%; margin: 0; }
.fp-facts__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0 17px; /* + 1 px de la línea punteada */
	background: var(--fp-dash-w) left bottom / 100% 1px no-repeat;
}
.fp-facts dt {
	font-size: 10px;
	line-height: 14px;
	letter-spacing: var(--fh-caption-ls);
	text-transform: uppercase;
	color: var(--ds-text-secondary);
}
.fp-facts dd { margin: 0; font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); color: var(--ds-text-primary); }

@media (min-width: 1024px) {
	.fp-challenge { flex-direction: row; align-items: flex-start; gap: 24px; }
	.fp-pmap { flex: 1 1 0; align-self: flex-start; max-width: 700px; }
	.fp-challenge__text { flex: 0 1 559px; min-width: 0; gap: 32px; }
	.fp-challenge__copy { gap: 32px; }
	.fp-facts__item { padding: 24px 0 25px; }
}

/* ---------- La solución ---------- */
.fp-psol {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 812px;
	padding: 72px var(--fh-gutter);
	overflow: hidden;
	color: var(--ds-text-inverse);
	background: var(--ds-surface-inverse);
}
.fp-psol__media { position: absolute; z-index: -2; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.fp-psol__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 37, .5) 39.766%, var(--ds-surface-inverse) 85.796%); }
.fp-psol__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.fp-psol__copy { display: flex; flex-direction: column; gap: 16px; max-width: 555px; }
.fp-ind { display: flex; flex-direction: column; }
.fp-ind__item { position: relative; padding: 16px 0; }
.fp-ind__item + .fp-ind__item::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: repeating-linear-gradient(90deg, rgba(253, 253, 253, .3) 0 1px, transparent 1px 5px);
}
.fp-ind__n { display: flex; gap: 4px; font-weight: 500; font-size: 48px; line-height: 56px; white-space: nowrap; }
.fp-ind__l { font-size: var(--fh-lg-size); line-height: var(--fh-lg-lh); }
@media (min-width: 1024px) {
	.fp-psol { justify-content: space-between; gap: 32px; min-height: 900px; padding: 80px var(--fh-gutter); }
	.fp-psol__body { flex: 0 0 auto; justify-content: flex-end; }
	.fp-ind { flex-direction: row; gap: 48px; }
	.fp-ind__item { flex: 1 1 0; min-width: 0; padding: 24px; }
	.fp-ind__item + .fp-ind__item::before {
		left: -24px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 1px;
		height: auto;
		background: repeating-linear-gradient(180deg, rgba(253, 253, 253, .3) 0 1px, transparent 1px 5px);
	}
	.fp-ind__n { font-size: 56px; line-height: 64px; }
}

/* ---------- Video ---------- */
.fp-pvideo {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ds-surface-inverse);
}
.fp-pvideo__media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.fp-pvideo__shade { position: absolute; z-index: -1; inset: 0; background: rgba(3, 8, 12, .3); }
.fp-pvideo__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	padding: 0;
	border: 1px dashed rgba(253, 253, 253, .3);
	border-radius: 50%;
	background: rgba(253, 253, 253, .2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--ds-text-inverse);
	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;
	cursor: pointer;
	/* Figma: Smart animate "Slow" 1,25 s */
	transition: width 1.25s cubic-bezier(.16, 1, .3, 1), height 1.25s cubic-bezier(.16, 1, .3, 1), background-color 1.25s cubic-bezier(.16, 1, .3, 1);
}
.fp-pvideo__btn > span { padding: 0 4px; }
.fp-pvideo__icon { width: 0; height: 12px; opacity: 0; transition: width 1.25s cubic-bezier(.16, 1, .3, 1), opacity 1.25s cubic-bezier(.16, 1, .3, 1); }
.fp-pvideo__btn:focus-visible { outline: 2px solid var(--ds-text-inverse); outline-offset: 4px; }
@media (min-width: 1024px) {
	.fp-pvideo__btn { width: 160px; height: 160px; }
}
@media (hover: hover) and (min-width: 1024px) {
	.fp-pvideo__btn:hover { width: 200px; height: 200px; background: rgba(253, 253, 253, .1); }
	.fp-pvideo__btn:hover .fp-pvideo__icon { width: 12px; opacity: 1; }
	.fp-pvideo:hover .fp-pvideo__media { transform: scale(1.03); }
}
.fp-video-modal__frame { width: 100%; max-width: 1200px; aspect-ratio: 16 / 9; max-height: 100%; }
.fp-video-modal__frame > * { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--ds-radius-md); background: #000; }

/* ---------- Enfoque ---------- */
.fp-focus { gap: 32px; }
.fp-focus__col { display: flex; flex-direction: column; gap: 32px; }
.fp-focus__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.fp-checks__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0 17px;
	background: var(--fp-dash-w) left bottom / 100% 1px no-repeat;
}
.fp-checks__item img { flex: none; width: 32px; height: 32px; }
.fp-focus__media { aspect-ratio: 746 / 559; overflow: hidden; }
.fp-focus__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
	.fp-focus { flex-direction: row; align-items: stretch; gap: 56px; }
	.fp-focus__col { flex: 0 1 574px; min-width: 0; justify-content: space-between; }
	.fp-focus__head { gap: 32px; }
	.fp-checks__item { padding: 24px 0 25px; }
	.fp-focus__media { flex: 0 1 746px; min-width: 0; align-self: flex-start; }
}

/* ---------- Galería (desktop: fila que se arrastra · mobile: fotos apiladas) ---------- */
.fp-gallery { padding: 72px 0; background: linear-gradient(180deg, #0f2332 50%, var(--ds-surface-inverse) 100%); }
.fp-gallery__track { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.fp-gallery__item { aspect-ratio: 375 / 500; overflow: hidden; }
.fp-gallery__item img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
@media (min-width: 768px) {
	.fp-gallery { padding: 120px 0; }
	.fp-gallery__track {
		flex-direction: row;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.fp-gallery__track::-webkit-scrollbar { display: none; }
	.fp-gallery__item { flex: none; width: 443px; height: 590px; aspect-ratio: auto; }
	.fp-gallery__item img { transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
	.fp-gallery__item:hover img { transform: scale(1.04); }
}
@media (pointer: fine) and (min-width: 768px) { .fp-gallery__track { cursor: grab; } }
.fp-gallery__track.is-dragging { cursor: grabbing; }
.fp-gallery__track.is-dragging * { pointer-events: none; }

/* ---------- Llamado final con texto en movimiento (Figma "Marquee CTA") ---------- */
.fp-mcta {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 600px;
	padding: 0 var(--fh-gutter);
	overflow: hidden;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
}
.fp-mcta__marquee { position: absolute; z-index: -1; left: 0; top: 160px; pointer-events: none; }
.fp-mcta__track { display: flex; width: max-content; animation: fp-marquee 10s linear infinite; }
.fp-mcta__track > span {
	padding-right: .25em;
	font-family: var(--fh-font-heading);
	font-weight: 700;
	font-size: 280px;
	line-height: 280px;
	letter-spacing: -3px;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(11, 26, 37, .6);
}
@keyframes fp-marquee { to { transform: translateX(-50%); } }
.fp-mcta__content { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 676px; text-align: center; }
@media (min-width: 1024px) {
	.fp-mcta { height: 800px; }
	.fp-mcta__marquee { top: 186px; }
	.fp-mcta__track > span { font-size: 352px; line-height: 352px; letter-spacing: -3.67px; }
	.fp-mcta__content { gap: 32px; }
}

/* ---------- Siguiente proyecto ---------- */
.fp-next {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 812px;
	padding: 0 var(--fh-gutter);
	overflow: hidden;
	background: var(--ds-surface-inverse);
	color: var(--ds-text-inverse);
}
.fp-next__media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.fp-next__shade {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(180deg, var(--ds-surface-inverse) 0%, rgba(3, 8, 12, 0) 50%),
		linear-gradient(180deg, rgba(3, 8, 12, 0) 0%, var(--ds-surface-inverse) 100%);
}
.fp-next__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 676px; text-align: center; }
.fp-next__cover-link { position: absolute; inset: 0; z-index: 0; }
.fp-next:hover .fp-next__media { transform: scale(1.04); }
@media (min-width: 1024px) {
	.fp-next { height: 900px; }
	.fp-next__content { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.fp-mcta__track, .fp-pmap__dot::before { animation: none; }
}

/* Iconos de los botones redondos (Figma: Call-Made "Ver proyecto" · Play-Arrow-Fill "Ver video"), siempre visibles */
.fp-card__action { gap: 6px; }
.fp-card__action-icon,
.fp-pvideo__icon { width: 12px; height: 12px; opacity: 1; margin: 0; flex: none; }
.fp-pvideo__btn { gap: 2px; }
@media (hover: hover) and (min-width: 1024px) {
	.fp-card__action:hover .fp-card__action-icon,
	.fp-pvideo__btn:hover .fp-pvideo__icon { width: 14px; height: 14px; margin: 0; }
}

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

/* Proveedores: pasos bloqueados hasta completar el anterior */
.fp-step.is-locked .fp-step__header { cursor: not-allowed; }
.fp-step.is-locked .fp-step__heading,
.fp-step.is-locked .fp-step__icon { opacity: .45; }

/* ---------- Nosotros: Objetivo 2030 (Figma "Slider" 8430:12849 / 8431:12858; móvil 8434:13003 / 8434:13090) ----------
   Igual que Misión y visión: la sección se fija y cambia con el scroll o el clic (escritorio y celular).
   En celular la línea de tiempo es más alta que la pantalla: mientras la sección sigue fija,
   el contenido sube con el scroll (--fp-shift lo calcula pages-figma.js). */
.fp-o30__inner { display: flex; flex-direction: column; gap: inherit; transform: translateY(calc(-1 * var(--fp-shift, 0px))); }
.fp-o30__head { display: flex; flex-direction: column; gap: 4px; text-transform: uppercase; }
.fp-o30__title { display: block; }
.fp-o30__year { display: block; font-family: var(--fh-font-body); font-weight: 400; font-size: var(--fh-h3-size); line-height: var(--fh-h3-lh); letter-spacing: 0; }

.fp-road { display: flex; flex-direction: column; text-align: left; }
.fp-road__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px dashed rgba(253, 253, 253, .5); color: var(--ds-text-inverse); }
.fp-road__item:last-child { border-bottom: 0; padding-bottom: 0; }
.fp-road__item:first-child { padding-top: 0; }
.fp-road__top { display: flex; align-items: center; }
.fp-road__stage { font-family: var(--fh-font-body); font-weight: 400; font-size: 40px; line-height: 48px; text-transform: uppercase; }
.fp-road__stage.is-word { font-family: var(--fh-font-heading); font-weight: 700; line-height: 40px; letter-spacing: -1px; }
.fp-road__line { display: none; }
.fp-road__title { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.fp-road__text { display: block; font-size: 16px; line-height: 24px; }

/* Celular: el camino arranca arriba (como el Figma móvil) y deja libre el indicador de scroll */
@media (max-width: 767.98px) {
	.fp-o30__copy--road { top: 72px; gap: 40px; transform: translate(-50%, 24px); }
	.fp-o30__copy--road.is-active { transform: translate(-50%, 0); }
	.fp-o30__copy--road .fp-o30__head { text-align: center; }
}

@media (min-width: 768px) {
	.fp-o30__copy--road { width: min(1376px, calc(100% - 64px)); gap: 80px; }
	.fp-o30__copy--road .fp-o30__head { text-align: center; }
	.fp-road { --gap: clamp(24px, 6vw, 86px); display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); column-gap: var(--gap); }
	.fp-road__item { gap: 12px; padding: 0; border: 0; }
	.fp-road__stage { line-height: 56px; }
	.fp-road__stage.is-word { line-height: 56px; }
	/* Línea punteada entre etapas (desde el año hasta casi la siguiente) */
	.fp-road__line { display: block; flex: 1 1 auto; height: 1px; margin: 0 calc(38px - var(--gap)) 0 24px; background: linear-gradient(90deg, var(--ds-text-inverse) 1px, transparent 1px) 0 0 / 4.9px 1px repeat-x; opacity: .9; }
	.fp-road__text { font-size: 14px; line-height: 20px; }
	.fp-road__title, .fp-road__text { max-width: 206px; }
}
/* Mientras la línea de tiempo sube (celular), el indicador de scroll se atenúa para no tapar el texto */
.fp-o30 .fp-mv__scroll { transition: opacity .4s ease; }
.fp-o30.is-shifting .fp-mv__scroll { opacity: .25; }

/* "Ver proyecto" solo aparece al pasar el mouse por la tarjeta (en todos los tamaños de pantalla).
   Con teclado aparece al enfocar el enlace. En pantallas táctiles no se muestra: tocar la tarjeta abre el proyecto. */
.fp-card__action { opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.16, 1, .3, 1), width 1.25s cubic-bezier(.16, 1, .3, 1), height 1.25s cubic-bezier(.16, 1, .3, 1), background-color .6s ease, border-color .6s ease; }
.fp-card:has(:focus-visible) .fp-card__action { opacity: 1; pointer-events: auto; }
@media (hover: hover) {
	.fp-card:hover .fp-card__action { opacity: 1; pointer-events: auto; }
}
@media (hover: hover) and (min-width: 1024px) {
	.fp-card:focus-within:not(:has(:focus-visible)):not(:hover) .fp-card__action { opacity: 0; }
}
/* Toda la tarjeta abre el proyecto (también en celular, donde el botón no se muestra) */
.fp-card__link { position: absolute; z-index: 1; inset: 0; }
.fp-card__action { z-index: 2; }

/* Formularios: motivo del error debajo del campo */
.fp-field__error { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--ds-text-brand); text-transform: none; }
.fp-check .fp-field__error { flex-basis: 100%; }
.fp-check:has(.fp-field__error) { flex-wrap: wrap; }
