:root {
	--bg: #111111;
	--white: #E3E3E3;
	--red: #FF2633;
}

html,
body {
	scroll-behavior: smooth;
	background-color: var(--bg);
}

body {
	font-family: 'Space Grotesk', system-ui, -apple-system;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.71;
	color: var(--white);
	background-color: var(--bg);
	margin: 0;
}

a {
	color: var(--white);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	color: var(--red);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.container {
	width: 100%;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

@media (min-width: 768px) {
	.container {
		padding-left: 48px;
		padding-right: 48px;
	}
}

@media (min-width: 1280px) {
	.container {
		padding-left: 84px;
		padding-right: 84px;
	}
}

@media (min-width: 1512px) {
	.container {
		padding-left: 100px;
		padding-right: 100px;
	}
}

@media (min-width: 1920px) {
	.container {
		padding-left: 116px;
		padding-right: 116px;
	}
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
	margin: 0;
}

/* Hero typography */
.hero-title {
	font-family: 'Baseneue', sans-serif;
	font-weight: 900;
	font-style: normal;
	font-size: 60px;
	line-height: 1.10;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #A7A7A7;
	max-width: 886px;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.hero-title {
		font-size: 32px;
	}
}

.hero-body {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 1.71;
	letter-spacing: 0;
	color: var(--white);
}
/* Mantener ancho fijo visual en flex containers cuando se usa SplitText lines */
.hero-body { max-width: 576px; }

@media (max-width: 1024px) {
	.hero-body {
		font-size: 14px;
		line-height: 1.43;
		max-width: 400px;
	}
}

.hero-body .line { display: block; width: 100%; }
@media (min-width: 1024px) {
	.hero-body { flex: 0 0 576px; }
}

/* Section titles */
.section-title {
	font-family: 'Baseneue', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 40px;
	line-height: 1.1;
	color: #fff;
}

/* Why choose us */
.why-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.why-index {
	font-size: 30px;
	font-weight: 400;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.why-index {
		font-size: 16px;
	}
}

.why-title {
	font-weight: 700;
	font-size: 45px;
	line-height: 1.01;
}

@media (max-width: 1024px) {
	.why-title {
		font-size: 28px;
	}
}

.why-note {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.53;
	max-width: 930px;
}

/* Testimonial */
.testimonial-quote {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.testimonial-quote {
		font-size: 22px;
		line-height: 1.1;
	}
}

.testimonial-copy {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.71;
	max-width: 732px;
	text-align: center;
}

@media (max-width: 1024px) {
	.testimonial-copy {
		font-size: 14px;
		line-height: 1.43;
	}
}

.testimonial-author,
.testimonial-org {
	font-size: 18px;
	text-transform: uppercase;
	font-weight: 400;
	line-height: 1.01;
	text-align: center;
}

@media (max-width: 1024px) {
	.testimonial-author,
	.testimonial-org {
		font-size: 12px;
	}
}

/* Testimonial slider */
.testimonial-slider {
	position: relative;
	min-height: 420px;
}

.testimonial-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
	width: 100%;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.testimonial-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.testimonial-nav .testimonial-dot {
	color: var(--white);
	opacity: .5 !important; /* fuerza sobre inline styles de GSAP */
	transition: opacity .2s ease;
	padding: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.51;
}

.testimonial-nav .testimonial-dot.is-active { opacity: 1 !important; }
.testimonial-nav .testimonial-dot:hover { opacity: 1 !important; }

.testimonial-nav .testimonial-dot {
	background: transparent;
	border: 0;
	font: inherit;
	cursor: pointer;
}

/* Services cards */
.svc-card {
	position: relative;
	background: #010001;
	border: 1px solid #383838;
	padding: 53px 51px 69px 61px;
	transition: transform .4s ease, background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
	will-change: transform, box-shadow;
}

@media (max-width: 1024px) {
	.svc-card {
		padding: 32px 20px 40px 20px;
	}
}

.svc-card::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	background: linear-gradient(180deg, #383838 0%, #FF2633 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .6s ease;
	pointer-events: none;
}

.svc-title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.01;
	letter-spacing: -0.02em;
	text-transform: capitalize;
	color: #FEFEFE;
}

@media (max-width: 1024px) {
	.svc-title {
		font-size: 22px;
	}
}

.svc-note {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.53;
	color: #FFFFFF;
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.svc-note {
		font-size: 14px;
	}
}

.svc-card .svc-icon {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	transition: transform .3s ease;
}

@media (max-width: 1024px) {
	.svc-card .svc-icon {
		scale: 0.8;
	}
}

.svc-card .svc-icon > img {
	display: block;
	width: auto;
	height: auto;
	opacity: 0; /* mantiene tamaño intrínseco sin verse */
}
.svc-card .svc-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: #646464; /* base */
	-webkit-mask: var(--icon) center/contain no-repeat;
	mask: var(--icon) center/contain no-repeat;
	transition: background-color .3s ease;
}

/* Fallback: si no hay soporte para mask, mostramos el <img> */
@supports not (-webkit-mask: url("") center/contain no-repeat) {
	.svc-card .svc-icon::after { display: none; }
	.svc-card .svc-icon > img { opacity: 1; }
}

.svc-card:hover { transform: translateY(-2px); }

.svc-card:hover::before { opacity: 1; }

.svc-card:hover .svc-icon { transform: scale(1.03); }
.svc-card:hover .svc-icon::after { background-color: var(--red); }

/* Marquee */
.svc-marquee {
	overflow: hidden;
	white-space: nowrap;
}

.svc-marquee__inner {
	display: inline-flex;
	gap: 3rem;
	animation: svc-marquee 18s linear infinite;
}

.svc-marquee__inner span {
	font-family: 'BaseneueWide', sans-serif;
	font-weight: 900;
	font-size: 70px;
	line-height: 1.19;
	opacity: .2;
	text-transform: uppercase;
	color: #fff;
}

@keyframes svc-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* CTA button (ghost wide) */
@media (min-width: 1400px) {
	.btn.wide {
		padding-left: 50px;
		padding-right: 50px;
	}
}

.unlock-title {
	font-family: 'BaseneueWide', sans-serif;
	font-weight: 900;
	font-size: 60px;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #A7A7A7;	
}

@media (max-width: 1024px) {
	.unlock-title {
		font-size: 32px;
	}
}

.ghost {
	background: rgba(17, 17, 17, .59);
}

.ghost .button-fill {
	transform: translateY(100%);
}

.button-fill {
	background-image: url('/wp-content/uploads/2025/09/mask-2.svg');
	background-size: cover;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transform: translateY(0%);
	transform-origin: top;
	transition: transform .4s ease;
}

.btn strong {
	overflow: hidden;
	display: block;
	line-height: 1;
	font-weight: 700;
}

.btn span {
	position: relative;
	z-index: 1;
	display: inline-block;
	top: 0;
	transition: transform .4s;
}

.btn span::after {
	color: #fff;
	transition: all .3s;
	position: absolute;
	mix-blend-mode: difference;
	top: 100%;
	left: 0;
	content: attr(data-hover);
	transform: translateY(0);
}

.btn:hover, .btn:focus { color: #fff; text-decoration: none; }
.btn:hover .button-fill, .btn:focus .button-fill { transform: translateY(0); }

/* Slot machine wrappers */
.slot-wrapper {
	display: inline-block;
	position: relative;
	overflow: hidden;
	vertical-align: top;
}

.slot-word {
	display: block;
}

#services { position: relative; z-index: 1; }
#unlock { position: relative; z-index: 2; }

/* Unlock video framing: use object-position instead of translateX for mobile */
.unlock-video { object-position: 80% center; }
@media (min-width: 1024px) {
	.unlock-video { object-position: 60% center; }
}

/* Featured projects */
.featured-section {
	padding-top: 128px;
	padding-bottom: 190px;
	/* background: linear-gradient(180deg, #1D1D1D 0%, #080808 100%); */
}
.featured-section .section-title {
	padding-bottom: 92px;
}

[data-barba-namespace="drupal"] .project-item {
	transform: none !important;
}
[data-barba-namespace="drupal"] #featured-projects .project-item {
	transform: none !important;
}

[data-barba-namespace="drupal"] .project-block {
	text-decoration: none !important;
}

[data-barba-namespace="drupal"] .project-info {
	opacity: 1 !important;
	padding-top: 0 !important;
	position: static !important;
	height: auto !important;
	transform: none !important;
}
.featured-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 23px;
}
.featured-card { display: flex; flex-direction: column; }
.featured-thumb {
	width: 100%;
	height: 387px;
	overflow: hidden;
	border-radius: 6px;
	background: #0E0E0E;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-thumb:not(:has(video)) img { transition: transform .6s ease; }
.featured-card:hover .featured-thumb:not(:has(video)) img { transform: scale(1.1); }
.featured-meta { margin-top: 21px; }

/* Alinear tarjetas de Drupal al layout Featured (mantener gap y alto fijo) */
[data-barba-namespace="home"] #featured-projects .project-item { display: flex; flex-direction: column; }
[data-barba-namespace="drupal"] #featured-projects .project-item { display: flex; flex-direction: column; }

[data-barba-namespace="home"] #featured-projects .project-image-container {
	position: relative;
	width: 100%;
	height: 387px;
	overflow: hidden;
	border-radius: 6px;
	background: #0E0E0E;
}

[data-barba-namespace="drupal"] #featured-projects .project-image-container {
	position: relative;
	width: 100%;
	height: 387px !important;
	overflow: hidden;
	border-radius: 6px;
	background: #0E0E0E;
	aspect-ratio: auto !important;
}
[data-barba-namespace="home"] #featured-projects .project-image-container .img-fill,
[data-barba-namespace="home"] #featured-projects .project-image-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

[data-barba-namespace="drupal"] #featured-projects .project-image-container .img-fill,
[data-barba-namespace="drupal"] #featured-projects .project-image-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

[data-barba-namespace="home"] #featured-projects .featured-meta { margin-top: 21px; }
[data-barba-namespace="drupal"] #featured-projects .featured-meta { margin-top: 21px; }

/* Estado inicial del reveal para transición home -> project (Drupal) */
[data-barba-namespace="home"] #featured-projects .project-block .img-fill.js--reveal {
	clip-path: inset(100% 0% 0% 0%);
	will-change: clip-path;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}
[data-barba-namespace="home"] #featured-projects .project-block .img-fill.js--clip,
[data-barba-namespace="home"] #featured-projects .project-block video.js--clip {
	clip-path: inset(0% 0% 0% 0%);
	will-change: clip-path;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}
.featured-meta { margin-top: 21px; }
.featured-title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 20px;
	line-height: 1.01;
	letter-spacing: -0.02em;
	text-transform: capitalize;
}
.featured-desc {
	margin-top: 10px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 1.07;
	letter-spacing: 0;
}

@media (max-width: 1199px) {
	.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.featured-grid { grid-template-columns: 1fr; }
}

/* Insights */
.insights-section {
	padding-top: 128px;
	padding-bottom: 173px;
	background: linear-gradient(180deg, #1D1D1D 0%, #080808 100%);
}
.insights-section .section-title { padding-bottom: 104px; }

.ins-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ins-card {
	position: relative;
	background: #010001;
	border: 1px solid #383838;
	padding: 47px 32px 53px 32px; /* top x bottom */
	min-height: 356px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	transition: transform .4s ease, background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
	will-change: transform, box-shadow;
}

.ins-card a:hover {
	text-decoration: none !important;
}

.ins-card::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	background: linear-gradient(180deg, #383838 0%, #FF2633 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .6s ease;
	pointer-events: none;
}
.ins-card:hover { transform: translateY(-2px); }
.ins-card:hover::before { opacity: 1; }

.ins-date {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.53;
	letter-spacing: 0;
	opacity: .85;
}
.ins-title {
	max-width: 90%;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.01;
	letter-spacing: -0.02em;
}

.ins-arrow {
	position: absolute;
	right: 32px;
	bottom: 53px;
	width: 30px;
	height: 30px;
	background-color: #FFFFFF;
	-webkit-mask: url('/wp-content/uploads/2025/09/Arrow3.svg') center/contain no-repeat;
	mask: url('/wp-content/uploads/2025/09/Arrow3.svg') center/contain no-repeat;
	transition: background-color .3s ease;
}
.ins-card:hover .ins-arrow { background-color: var(--red); }

/* Insights marquee spacing */
.ins-marquee { margin-top: 158px; }

@media (max-width: 1199px) {
	.ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.ins-grid { grid-template-columns: 1fr; }
}

a.h3 {
	text-decoration: none !important;
}