/**
 * Single proyecto — estructura Figma (banner, franja, imagen, reto).
 * El header flota (absolute); aquí el tope es blanco. Solo la franja usa el color del proyecto.
 */

body.single-althus_proyecto {
	background-color: #ffffff;
}

body.single-althus_proyecto .site-main,
body.single-althus_proyecto #content,
body.single-althus_proyecto .page-content {
	background-color: #ffffff;
}

.althus-proyecto-single {
	--althus-proyecto-strip: #f15a29;
	--althus-proyecto-header-clearance: clamp(5.5rem, 12vh, 8.5rem);
	width: 100%;
	padding-top: var(--althus-proyecto-header-clearance);
	background-color: #ffffff;
	box-sizing: border-box;
	font-family: var(--althus-font-family, inherit);
}

.althus-proyecto-single *,
.althus-proyecto-single *::before,
.althus-proyecto-single *::after {
	box-sizing: inherit;
}

/* 1. Banner */
.althus-proyecto-single__banner {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	line-height: 0;
	background-color: #111111;
	overflow: hidden;
}

.althus-proyecto-single__banner-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(78vh, 52rem);
	object-fit: cover;
}

/* 2. Franja cliente */
.althus-proyecto-single__strip {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-color: var(--althus-proyecto-strip);
	color: #ffffff;
}

.althus-proyecto-single__strip-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 5vw, 6rem);
}

.althus-proyecto-single__client {
	margin: 0;
	color: #ffffff;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1.75rem, 3.5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.althus-proyecto-single__slogan {
	margin: 0;
	max-width: min(28rem, 48%);
	color: #ffffff;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(0.875rem, 1.1vw, 1.125rem);
	font-weight: 300;
	line-height: 1.4;
	text-align: right;
}

/* Contenido bajo la franja */
.althus-proyecto-single__main {
	width: 100%;
	padding:
		clamp(1.5rem, 3vw, 2.5rem)
		clamp(1.5rem, 5vw, 6rem)
		clamp(3rem, 6vw, 5rem);
}

.althus-proyecto-single__back {
	margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

.althus-proyecto-single__back-link {
	color: #1a1a1a;
	font-size: clamp(0.875rem, 1vw, 1rem);
	font-weight: 500;
	text-decoration: none;
}

.althus-proyecto-single__back-link:hover,
.althus-proyecto-single__back-link:focus-visible {
	text-decoration: underline;
}

/* 3. Imagen grande */
.althus-proyecto-single__feature {
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
	overflow: hidden;
	border-radius: clamp(0.75rem, 1.2vw, 1.25rem);
	background-color: #f0f0f0;
	line-height: 0;
}

.althus-proyecto-single__feature-img {
	display: block;
	width: 100%;
	height: auto;
}

/* 4–6. Reto / Proceso (misma estructura tipográfica) */
.althus-proyecto-single__copy-block {
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.althus-proyecto-single__copy-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

.althus-proyecto-single__copy-title {
	margin: 0;
	color: #cfcfcf;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}

.althus-proyecto-single__copy-body {
	color: #333333;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1rem, 1.15vw, 1.125rem);
	font-weight: 300;
	line-height: 1.65;
}

.althus-proyecto-single__copy-body > *:first-child {
	margin-top: 0;
}

.althus-proyecto-single__copy-body > *:last-child {
	margin-bottom: 0;
}

.althus-proyecto-single__copy-body p {
	margin: 0 0 1rem;
}

.althus-proyecto-single__copy-body a {
	color: inherit;
	text-decoration: underline;
}

.althus-proyecto-single__copy-body ul,
.althus-proyecto-single__copy-body ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

/* 5. Galería 1–2 */
.althus-proyecto-single__pair {
	display: grid;
	gap: clamp(0.85rem, 1.5vw, 1.25rem);
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.althus-proyecto-single__pair--1 {
	grid-template-columns: minmax(0, 1fr);
}

.althus-proyecto-single__pair--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.althus-proyecto-single__pair-item {
	margin: 0;
	overflow: hidden;
	border-radius: clamp(0.75rem, 1.2vw, 1.25rem);
	background-color: #f0f0f0;
	line-height: 0;
}

.althus-proyecto-single__pair-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.althus-proyecto-single__pair--1 .althus-proyecto-single__pair-img {
	aspect-ratio: auto;
}

/* 8. Resultados */
.althus-proyecto-single__resultados {
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.althus-proyecto-single__resultados-title {
	margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
	color: #cfcfcf;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.althus-proyecto-single__resultados-grid {
	display: grid;
	grid-template-columns: repeat(var(--althus-resultados-cols, 3), minmax(0, 1fr));
	gap: clamp(0.85rem, 1.5vw, 1.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.althus-proyecto-single__resultado {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: clamp(7rem, 12vw, 9rem);
	padding: clamp(1.25rem, 2vw, 1.75rem);
	border: 1px solid #e5e5e5;
	border-radius: clamp(0.75rem, 1.2vw, 1rem);
	background-color: #ffffff;
	text-align: center;
	overflow: hidden;
}

.althus-proyecto-single__resultado--image {
	padding: 0 0 clamp(0.85rem, 1.2vw, 1.1rem);
	border: 1px solid #e5e5e5;
	background-color: #ffffff;
	gap: 0.65rem;
}

.althus-proyecto-single__resultado-img {
	display: block;
	width: 100%;
	height: auto;
	min-height: clamp(7rem, 12vw, 9rem);
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.althus-proyecto-single__resultado--image .althus-proyecto-single__resultado-label {
	padding: 0 clamp(0.75rem, 1.2vw, 1rem);
}

.althus-proyecto-single__resultado-value {
	margin: 0;
	color: #0a0a0a;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}

.althus-proyecto-single__resultado-label {
	margin: 0;
	color: #9a9a9a;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.althus-proyecto-single__resultados-texto {
	width: 100%;
	max-width: none;
	color: #1a1a1a;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1rem, 1.15vw, 1.125rem);
	font-weight: 300;
	line-height: 1.55;
}

.althus-proyecto-single__resultados-texto > *:first-child {
	margin-top: 0;
}

.althus-proyecto-single__resultados-texto > *:last-child {
	margin-bottom: 0;
}

.althus-proyecto-single__resultados-texto p {
	margin: 0 0 1em;
}

.althus-proyecto-single__resultados-texto a {
	color: inherit;
	text-decoration: underline;
}

/* 10. Servicios brindados */
.althus-proyecto-single__servicios {
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.althus-proyecto-single__servicios-title {
	margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
	color: #cfcfcf;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.althus-proyecto-single__servicios-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.althus-proyecto-single__servicio {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border-radius: 9999px;
	background-color: #0a0a0a;
	color: #ffffff;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Casos relacionados */
.althus-proyecto-single__related {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-color: #0a0a0a;
	color: #ffffff;
}

.althus-proyecto-single__related-inner {
	padding:
		clamp(2.5rem, 5vw, 4rem)
		clamp(1.5rem, 5vw, 6rem)
		clamp(3rem, 6vw, 5rem);
}

.althus-proyecto-single__related-title {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	color: #ffffff;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 500;
	line-height: 1.2;
}

.althus-proyecto-single__related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.althus-proyecto-single__related-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
}

.althus-proyecto-single__related-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

.althus-proyecto-single__related-media {
	margin: 0;
	overflow: hidden;
	border-radius: clamp(0.75rem, 1.2vw, 1rem);
	background-color: #1a1a1a;
	line-height: 0;
}

.althus-proyecto-single__related-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.althus-proyecto-single__related-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(0.75rem, 1.2vw, 1rem);
}

.althus-proyecto-single__related-name {
	color: #ffffff;
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(1rem, 1.15vw, 1.25rem);
	font-weight: 500;
	line-height: 1.25;
}

.althus-proyecto-single__related-attr {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.65);
	font-family: var(--althus-font-family, inherit);
	font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
	font-weight: 300;
	white-space: nowrap;
}

.althus-proyecto-single__related-link:hover .althus-proyecto-single__related-name {
	text-decoration: underline;
}

@media (min-width: 1920px) {
	.althus-proyecto-single__strip-inner,
	.althus-proyecto-single__main,
	.althus-proyecto-single__related-inner {
		padding-left: 6rem;
		padding-right: 6rem;
	}

	.althus-proyecto-single__client {
		font-size: 3.25rem;
	}

	.althus-proyecto-single__copy-title {
		font-size: 4.5rem;
	}

	.althus-proyecto-single__resultado-value {
		font-size: 2.75rem;
	}
}

@media (max-width: 767px) {
	.althus-proyecto-single {
		--althus-proyecto-header-clearance: 4.5rem;
	}

	.althus-proyecto-single__banner-img {
		max-height: 50vh;
	}

	.althus-proyecto-single__strip-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.25rem 1.15rem;
	}

	.althus-proyecto-single__slogan {
		max-width: none;
		text-align: left;
	}

	.althus-proyecto-single__main {
		padding: 1.25rem 1.15rem 3rem;
	}

	.althus-proyecto-single__related-inner {
		padding: 2.5rem 1.15rem 3rem;
	}

	.althus-proyecto-single__copy-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.althus-proyecto-single__copy-title {
		font-size: clamp(2rem, 10vw, 2.75rem);
	}

	.althus-proyecto-single__pair--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.althus-proyecto-single__resultados-grid,
	.althus-proyecto-single__related-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
