/* =============================================
   HOME — Secciones
   ============================================= */

/* === Hero Home (estilos exclusivos) === */
.hero__tabs {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__tabs ul {
	display: flex;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
}

.hero__tabs li {
	display: flex;
	align-items: center;
}

.hero__tabs li:not(:last-child)::after {
	content: '';
	width: 1px;
	height: 1rem;
	background: rgba(255, 255, 255, 0.2);
	margin-inline: 0.5rem;
	flex-shrink: 0;
}

.hero__tab {
	padding: 0.5rem 1.25rem;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	border: none;
	border-radius: var(--z-radius);
	font-family: var(--z-font-body);
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
	transition: background var(--z-transition), color var(--z-transition);
}

.hero__tab:hover {
	color: rgba(255, 255, 255, 0.85);
}

.hero__tab.is-active {
	background: rgba(255, 255, 255, 0.1);
	color: var(--z-color-text-inverse);
	font-weight: 700;
}

.hero__panel {
	display: none;
}

.hero__panel.is-active {
	display: block;
	animation: heroFadeIn 0.4s ease;
}

@keyframes heroFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hero__visual {
	display: none;
}

.hero__logo-wrap {
	position: absolute;
	right: -25%;
	top: 50%;
	transform: translateY(-50%);
	height: 148%;
	z-index: 1;
}

.hero__logo {
	width: auto;
	max-width: none;
	height: 100%;
}

.hero__logo-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	background-size: 200px;
	opacity: 0.35;
	mix-blend-mode: overlay;
	pointer-events: none;
	-webkit-mask-image: var(--logo-url);
	mask-image: var(--logo-url);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

@media (max-width: 768px) {
	.hero__logo-wrap {
		display: none;
	}
}

/* === General === */
.site-main--home {
	padding-block: 0;
}

/* === About (entre Hero y What We Do) === */
.home-about {
	padding-block: clamp(2rem, 4vw, 4rem);
}

.home-about__text {
	max-width: 56rem;
	margin-inline: auto;
	font-size: clamp(1.125rem, 1.6vw, 1.5rem);
	font-weight: 400;
	line-height: 1.7;
	color: var(--z-color-text);
	text-align: center;
}

.home-about__text strong {
	color: var(--z-color-dark);
	font-weight: 600;
}

/* === Servicios === */
/* services__heading ahora usa .z-section-heading global */

/* === Approach === */
.approach {
	padding-top: 0;
	padding-bottom: 0;
}

.approach > .z-container {
	min-height: calc(var(--tabs-count, 3) * 100vh);
}

.approach__sticky {
	position: sticky;
	top: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 2rem;
	box-sizing: border-box;
}

.approach__widget {
	margin-top: 2rem;
	display: flex;
	gap: 0;
}

.approach__left {
	display: flex;
	gap: 1.5rem;
	flex-shrink: 0;
}

.approach__tabs {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15vh;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.approach__timeline {
	position: relative;
	width: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
}

.approach__timeline-track {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--z-color-border);
	border-radius: 1px;
}

.approach__timeline-progress {
	width: 100%;
	background: var(--z-color-secondary);
	border-radius: 1px;
	transform-origin: top;
	height: 100%;
	transform: scaleY(0);
}

.approach__timeline-dot {
	position: absolute;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: var(--z-color-border);
	border: 2px solid var(--z-color-bg);
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	transition: background var(--z-transition), transform var(--z-transition);
}

.approach__timeline-dot.is-active,
.approach__timeline-dot.is-past {
	background: var(--z-color-secondary);
	transform: translateX(-50%) scale(1.3);
}

.approach__tab {
	padding: 1.25rem 2rem;
	font-family: var(--z-font-heading);
	font-size: 1.75rem;
	font-weight: 500;
	color: var(--z-color-text-light);
	background: transparent;
	border: 1px solid transparent;
	border-right: none;
	border-radius: var(--z-radius) 0 0 var(--z-radius);
	cursor: pointer;
	position: relative;
	right: -1px;
	text-align: left;
	white-space: nowrap;
	transition: color var(--z-transition), background var(--z-transition);
}

.approach__tab:hover:not(.is-active) {
	color: var(--z-color-primary);
}

.approach__tab.is-active {
	background: var(--z-color-bg-alt);
	color: var(--z-color-primary);
	border-color: var(--z-color-border);
}

.approach__right {
	flex: 1;
	position: relative;
	min-height: 0;
}

.approach__panels {
	position: absolute;
	top: var(--panel-top, 0);
	left: 0;
	right: 0;
	background: var(--z-color-bg-alt);
	border: 1px solid var(--z-color-border);
	border-radius: var(--z-radius);
	padding: 2.5rem;
	min-height: 14rem;
	transition: top 0.4s ease, border-radius var(--z-transition);
	overflow: hidden;
}

.approach__panels::before {
	content: '';
	position: absolute;
	top: var(--deco-top, 70%);
	left: var(--deco-left, auto);
	right: var(--deco-right, -20%);
	width: var(--deco-w, 80%);
	height: var(--deco-h, 25rem);
	transform: translateY(-50%);
	background: var(--card-deco) no-repeat center / contain;
	opacity: 0.45;
	-webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
	mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
	pointer-events: none;
	z-index: 0;
}

.approach__panels[data-active-pos="top"],
.approach__panels[data-active-pos="full"] {
	border-top-left-radius: 0;
}

.approach__panels[data-active-pos="bottom"],
.approach__panels[data-active-pos="full"] {
	border-bottom-left-radius: 0;
}

.approach__panel {
	display: none;
	position: relative;
	z-index: 1;
}

.approach__panel.is-active {
	display: flex;
	flex-direction: column;
}

.approach__panel-headline {
	font-family: var(--z-font-heading);
	font-size: 1.75rem;
	font-weight: 500;
	color: #151D30;
	margin-bottom: 1rem;
}

.approach__panel-text {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
	color: #151D30;
	max-width: 40rem;
}

.approach__panel-badge {
	margin-top: 1.5rem;
}

.approach__panel-badge img {
	max-height: 5rem;
	width: auto;
}

.approach__panel-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: #151D30;
	text-decoration: none;
	margin-top: 1.5rem;
	align-self: flex-end;
	padding: 0.625rem 1.25rem;
	background: #fff;
	border: 1px solid var(--z-color-border, #d1d5db);
	border-radius: var(--z-radius);
	transition: background var(--z-transition), border-color var(--z-transition), color var(--z-transition), box-shadow var(--z-transition);
}

.approach__panel-cta:hover {
	color: var(--z-color-secondary);
	border-color: var(--z-color-secondary);
	box-shadow: 0 2px 8px rgba(254, 155, 0, 0.15);
}

.approach__panel-cta svg {
	transition: transform var(--z-transition);
}

.approach__panel-cta:hover svg {
	transform: translateX(0.25rem);
}

@media (max-width: 1024px) {
	.approach > .z-container {
		min-height: auto;
	}

	.approach__sticky {
		position: static;
		height: auto;
		min-height: auto;
	}

	.approach__right {
		position: relative;
	}

	.approach__panels {
		position: relative;
		top: auto;
	}

	.approach__tabs {
		gap: 1rem;
		justify-content: flex-start;
	}

	.approach__tab {
		padding: 1rem 1.5rem;
	}

	.approach__panels {
		padding: 2rem;
	}
}

/* Accordion: oculto en desktop */
.approach__accordion {
	display: none;
}

@media (max-width: 768px) {
	.approach {
		padding-top: clamp(2rem, 5vw, 3rem);
		padding-bottom: clamp(2rem, 5vw, 3rem);
	}

	.approach > .z-container {
		min-height: auto;
	}

	.approach__sticky {
		position: static;
		min-height: auto;
		padding-block: 0;
	}

	.approach__widget {
		display: none;
	}

	.approach__accordion {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		margin-top: 1.5rem;
	}

	.approach__acc-item {
		border: 1px solid var(--z-color-border);
		border-radius: var(--z-radius);
		background: #fff;
		overflow: hidden;
	}

	.approach__acc-header {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 1rem 1.25rem;
		font-family: var(--z-font-heading);
		font-size: 1.125rem;
		font-weight: 600;
		color: var(--z-color-primary);
		background: none;
		border: none;
		cursor: pointer;
		text-align: left;
		transition: color var(--z-transition);
	}

	.approach__acc-item.is-open .approach__acc-header {
		color: var(--z-color-secondary);
	}

	.approach__acc-icon {
		width: 1.25rem;
		height: 1.25rem;
		position: relative;
		flex-shrink: 0;
	}

	.approach__acc-icon::before,
	.approach__acc-icon::after {
		content: '';
		position: absolute;
		background: currentColor;
		border-radius: 1px;
		transition: transform 0.3s ease;
	}

	.approach__acc-icon::before {
		width: 100%;
		height: 2px;
		top: 50%;
		left: 0;
		transform: translateY(-50%);
	}

	.approach__acc-icon::after {
		width: 2px;
		height: 100%;
		left: 50%;
		top: 0;
		transform: translateX(-50%);
	}

	.approach__acc-item.is-open .approach__acc-icon::after {
		transform: translateX(-50%) rotate(90deg);
		opacity: 0;
	}

	.approach__acc-body {
		padding: 0 1.25rem;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
	}

	.approach__acc-item.is-open .approach__acc-body {
		max-height: 40rem;
		opacity: 1;
		padding: 0 1.25rem 1.25rem;
	}

	.approach__panel-headline {
		font-size: 1.25rem;
	}

	.approach__panel-cta {
		align-self: flex-start;
	}
}

/* === Excelencia === */
.excellence {
	background: var(--z-color-primary);
	color: #fff;
	font-family: var(--z-font-heading);
	overflow: hidden;
}

.excellence__header {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.excellence__header h2 {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	margin-bottom: 1.25rem;
	font-weight: 400;
	color: #fff;
}

.excellence__header h2 strong {
	font-weight: 800;
	background: var(--z-color-accent);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.excellence__subtitle {
	font-family: var(--z-font-heading);
	color: #fff;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.5;
	max-width: 72rem;
}

.excellence__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 2vw, 2rem);
}

.excellence__item {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--z-radius);
	background: rgba(255, 255, 255, 0.04);
}

.excellence__item-icon {
	font-size: 3.5rem;
	font-variation-settings: 'wght' 200;
	color: var(--z-color-secondary);
	margin-bottom: 1.25rem;
}

.excellence__item-icon-wrap {
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
}

.excellence__item-icon-wrap img {
	width: 2.5rem;
	height: 2.5rem;
}

.excellence__item-title {
	font-family: var(--z-font-heading);
	font-size: 1.75rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
	color: #fff;
}

.excellence__item p {
	font-size: 1rem;
	color: #fff;
	line-height: 1.7;
}

.excellence__trusted {
	margin-top: clamp(3rem, 6vw, 5rem);
	display: flex;
	align-items: center;
	gap: 3rem;
	flex-wrap: nowrap;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.excellence__trusted-label {
	font-family: var(--z-font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	color: #fff;
	flex-shrink: 0;
}


@media (max-width: 768px) {
	.excellence__items {
		grid-template-columns: 1fr;
	}

	.excellence__trusted {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* === Case Studies === */
.cases {
	position: relative;
	background: #f7f7f7;
	overflow: hidden;
}


.cases__carousel {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.cases__track-wrap {
	flex: 1;
	overflow: hidden;
	padding: 1.5rem 0;
	cursor: grab;
}

.cases__track-wrap:active {
	cursor: grabbing;
}

.cases__arrow {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--z-color-border);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	color: var(--z-color-primary);
	transition: border-color var(--z-transition), color var(--z-transition);
}

.cases__arrow .material-symbols-outlined {
	font-size: 1.5rem;
}

.cases__arrow:hover {
	color: var(--z-color-secondary);
	border-color: var(--z-color-secondary);
}

.cases__grid {
	display: flex;
	align-items: center;
	gap: var(--z-gap);
}

.cases__grid.has-transition {
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cases__grid > .case-card {
	flex: 0 0 calc((100% - var(--z-gap) * 2) / 3);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--z-transition), opacity 0.5s ease;
	will-change: transform, opacity;
}

.cases__grid > .case-card.is-side {
	transform: scale(0.95);
}

.cases__grid > .case-card.is-center {
	transform: scale(1);
}

.case-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--z-radius);
	border: 1px solid var(--z-color-border);
	background: #fff;
	padding: clamp(1.25rem, 2vw, 2rem);
	overflow: hidden;
	transition: box-shadow var(--z-transition);
}

.case-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.case-card[style*="--card-deco"]::before {
	content: '';
	position: absolute;
	top: var(--deco-top, 52%);
	left: var(--deco-left, -123%);
	right: var(--deco-right, auto);
	width: var(--deco-w, 240%);
	height: var(--deco-h, 85.25rem);
	transform: translateY(-50%) rotate(0deg) scale(1);
	background: var(--card-deco) no-repeat center / contain;
	opacity: 0.55;
	-webkit-mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 8%), transparent var(--deco-mask-fade, 45%));
	mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 8%), transparent var(--deco-mask-fade, 45%));
	pointer-events: none;
	z-index: 0;
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}


.case-card > * {
	position: relative;
	z-index: 1;
}

.case-card__pill {
	display: inline-block;
	padding: 0.1875rem 1.25rem;
	font-family: var(--z-font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--z-color-secondary);
	background: rgba(254, 155, 0, 0.1);
	border: 1px solid var(--z-color-secondary);
	border-radius: var(--z-radius-full);
	align-self: flex-start;
	margin-bottom: 1.25rem;
}

.case-card__media {
	overflow: hidden;
	border-radius: var(--z-radius-sm);
	margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.case-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.case-card:hover .case-card__media img {
	transform: scale(1.03);
}

.case-card__title {
	font-family: var(--z-font-heading);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.35;
	color: #151D30;
	margin-bottom: 0.5rem;
}

.case-card__text {
	font-size: clamp(0.875rem, 1vw, 1rem);
	color: var(--z-color-text-light);
	line-height: 1.7;
}

.cases__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.cases__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--z-color-border);
	cursor: pointer;
	transition: background var(--z-transition);
}

.cases__dot.is-active {
	background: var(--z-color-secondary);
}

@media (max-width: 768px) {
	.cases__carousel {
		position: relative;
		display: block;
	}

	.cases__track-wrap {
		padding: 1rem 0;
	}

	.cases__grid > .case-card {
		flex: 0 0 100%;
	}

	.cases__grid > .case-card.is-side {
		transform: scale(0.95);
		opacity: 0.5;
	}

	.cases__grid > .case-card.is-center {
		transform: scale(1);
		opacity: 1;
	}

	.cases__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 2rem;
		height: 2rem;
		z-index: 2;
		background: rgba(255, 255, 255, 0.9);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	.cases__arrow--prev {
		left: 0.5rem;
	}

	.cases__arrow--next {
		right: 0.5rem;
	}

	.cases__arrow .material-symbols-outlined {
		font-size: 1.125rem;
	}

	.cases__dots {
		margin-top: 1rem;
	}
}

/* === Awards === */
.awards .z-section-heading {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.awards__card {
	position: relative;
	width: 100%;
	min-height: 40vh;
	background: #fff;
	border: 1px solid var(--z-color-border);
	border-radius: var(--z-radius);
	padding: 1.5rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.awards__text {
	font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
	color: var(--z-color-primary);
	line-height: 1.7;
	max-width: 48rem;
	margin-bottom: 1.5rem;
}

.awards__card[style*="--card-deco"]::before {
	content: '';
	position: absolute;
	top: var(--deco-top, 50%);
	left: var(--deco-left, auto);
	right: var(--deco-right, -30%);
	width: var(--deco-w, 200%);
	height: var(--deco-h, 60rem);
	transform: translateY(-50%);
	background: var(--card-deco) no-repeat center / contain;
	opacity: 0.45;
	-webkit-mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 8%), transparent var(--deco-mask-fade, 45%));
	mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 8%), transparent var(--deco-mask-fade, 45%));
	pointer-events: none;
	z-index: 0;
}

.awards__card > * {
	position: relative;
	z-index: 1;
}

.awards__placeholder-text {
	font-family: var(--z-font-heading);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--z-color-text-light);
	opacity: 0.4;
}
