﻿/**
 * Proyectos — cinta infinita (Figma, altura por contenido ~70–80% vista).
 */

.elementor-widget-althus-proyectos-marquee,
.elementor-widget-althus-proyectos-marquee > .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
}

.althus-proyectos-marquee {
	--althus-proyectos-marquee-duration: 28s;
	--althus-proyectos-marquee-word: #000000;
	--althus-proyectos-marquee-desc: #1a1a1a;
	--althus-proyectos-marquee-bg: #f5f5f5;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-color: var(--althus-proyectos-marquee-bg);
	box-sizing: border-box;
	font-family: var(--althus-font-family);
	overflow: hidden;
	/* Sin 100vh: padding superior (header) + inferior define ~70–80% visual */
	padding:
		clamp(7rem, 14vh, 10rem)
		0
		clamp(4rem, 10vh, 7rem);
}

.althus-proyectos-marquee *,
.althus-proyectos-marquee *::before,
.althus-proyectos-marquee *::after {
	box-sizing: inherit;
}

.althus-proyectos-marquee__inner {
	display: block;
	width: 100%;
}

.althus-proyectos-marquee__content {
	position: static;
	display: block;
	width: 100%;
	margin: 0;
	transform: none;
}

.althus-proyectos-marquee__viewport {
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.althus-proyectos-marquee__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: althus-proyectos-marquee-scroll var(--althus-proyectos-marquee-duration) linear infinite;
}

.althus-proyectos-marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.75rem);
	padding-right: clamp(1.25rem, 2.5vw, 2.75rem);
}

.althus-proyectos-marquee__item {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.75rem);
}

.althus-proyectos-marquee__word {
	color: var(--althus-proyectos-marquee-word);
	font-family: var(--althus-font-family) !important;
	font-size: clamp(3.75rem, 12vw, 10rem);
	font-weight: 500 !important; /* Medium */
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	white-space: nowrap;
}

.althus-proyectos-marquee__icon {
	display: block;
	width: clamp(2.75rem, 6.5vw, 5.5rem);
	height: auto;
	flex-shrink: 0;
}

@keyframes althus-proyectos-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.althus-proyectos-marquee__description-wrap {
	width: 100%;
	max-width: none;
	margin: clamp(1.35rem, 2.5vw, 2rem) 0 0;
	padding-left: clamp(1.5rem, 5vw, 6rem);
	padding-right: clamp(1.5rem, 5vw, 6rem);
}

.althus-proyectos-marquee__description {
	color: var(--althus-proyectos-marquee-desc);
	font-family: var(--althus-font-family);
}

.althus-proyectos-marquee__line {
	margin: 0;
	font-family: var(--althus-font-family) !important;
	/* Light — escala Figma (más grande que el cuerpo normal) */
	font-size: clamp(1.25rem, 1.9vw, 2.125rem);
	font-weight: 300 !important;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.althus-proyectos-marquee__line + .althus-proyectos-marquee__line {
	margin-top: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
	.althus-proyectos-marquee__track {
		animation: none;
		transform: none;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
	}

	.althus-proyectos-marquee__group:last-child {
		display: none;
	}
}

@media (min-width: 1920px) {
	.althus-proyectos-marquee {
		padding: 10rem 0 7rem;
	}

	.althus-proyectos-marquee__word {
		font-size: 10rem; /* ~160px */
	}

	.althus-proyectos-marquee__icon {
		width: 5.5rem;
	}

	.althus-proyectos-marquee__description-wrap {
		margin-top: 2rem;
		padding-left: 6rem;
		padding-right: 6rem;
	}

	.althus-proyectos-marquee__line {
		font-size: 2.125rem; /* ~34px */
		font-weight: 300 !important;
	}
}

@media (max-width: 767px) {
	.althus-proyectos-marquee {
		padding: 5.5rem 0 3.5rem;
	}

	.althus-proyectos-marquee__word {
		font-size: clamp(2.75rem, 14vw, 3.75rem);
	}

	.althus-proyectos-marquee__icon {
		width: clamp(2rem, 10vw, 2.75rem);
	}

	.althus-proyectos-marquee__description-wrap {
		padding-left: 1.15rem;
		padding-right: 1.15rem;
		margin-top: 1.25rem;
	}

	.althus-proyectos-marquee__line {
		font-size: clamp(1.0625rem, 4.2vw, 1.25rem);
		font-weight: 300 !important;
	}
}
