/* === Company === */
.page-template-page-company .site-main {
	padding-top: 0;
}

/* Hero inner */
.hero--inner .hero__decoration--right {
	left: auto;
	right: -20%;
	bottom: -50%;
	transform: scale(5) translateZ(0);
}

.hero--inner .hero__subtitle {
	font-size: 1rem;
	font-weight: 400;
	color: #fff;
}

/* === About Us === */
.about {
	position: relative;
	background: #f7f7f7;
	overflow: hidden;
	padding-bottom: 6rem;
}

.about__deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.about__deco[style*="--card-deco"]::before {
	content: '';
	position: absolute;
	top: var(--deco-top, 50%);
	left: var(--deco-left, auto);
	right: var(--deco-right, auto);
	width: var(--deco-w, 50%);
	height: var(--deco-h, 40rem);
	transform: translateY(-50%);
	background: var(--card-deco) no-repeat center / contain;
	opacity: 0.5;
	-webkit-mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 10%), transparent var(--deco-mask-fade, 50%));
	mask-image: radial-gradient(ellipse at center, black var(--deco-mask-solid, 10%), transparent var(--deco-mask-fade, 50%));
}

.about__deco--dots[style*="--card-deco"]::before {
	-webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 45%);
	mask-image: radial-gradient(ellipse at center, black 0%, transparent 45%);
}

.about__deco--wave[style*="--card-deco"]::before {
	-webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 45%);
	mask-image: radial-gradient(ellipse at center, black 0%, transparent 45%);
}

.about__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(3rem, 6vw, 6rem);
	align-items: center;
}

.about .z-section-heading {
	margin-bottom: 1.25rem;
}

.about .z-section-heading::after {
	display: none;
}

.about__slogan {
	font-family: var(--z-font-heading);
	font-size: clamp(1.375rem, 2vw, 1.75rem);
	font-weight: 500;
	color: #151D30;
	line-height: 1.35;
	margin-bottom: 1.5rem;
}

.about__text {
	font-size: 1rem;
	font-weight: 400;
	color: #151D30;
	line-height: 1.7;
	border-left: 3px solid var(--z-color-secondary);
	padding-left: 1rem;
}

/* Imagenes superpuestas */
.about__images {
	display: grid;
	grid-template-columns: 1.3fr 1.1fr;
	gap: 0;
}

.about__img img {
	width: 100%;
	display: block;
	border-radius: var(--z-radius);
}

.about__img--main {
	z-index: 1;
}

.about__img--overlay {
	z-index: 2;
	position: relative;
	left: -2rem;
	top: 3rem;
}

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

.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: wrap;
	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;
}

.excellence__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3rem;
}

.excellence__logo {
	max-height: 2.25rem;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.6;
	transition: opacity var(--z-transition);
}

.excellence__logo:hover {
	opacity: 1;
}

/* === How We Do It === */
.howwedoit {
	background: #f7f7f7;
}

.howwedoit__slogan {
	font-family: var(--z-font-heading);
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 400;
	color: #151D30;
	line-height: 1.35;
	margin-bottom: 2.5rem;
}

.howwedoit__card {
	background: #fff;
	border-color: var(--z-color-border);
}

.howwedoit__card .service-card__pill {
	align-self: flex-start;
	margin-bottom: 1rem;
}

.howwedoit__card .excellence__item-title {
	color: #151D30;
}

.howwedoit__card p {
	color: #555;
}

/* === Featured By (Media) === */
.featured {
	background: var(--z-color-primary);
	position: relative;
	overflow: hidden;
	padding-block: 3rem;
}

.featured__deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.featured__deco[style*="--card-deco"]::before {
	content: '';
	position: absolute;
	top: var(--deco-top, 50%);
	left: var(--deco-left, auto);
	right: var(--deco-right, auto);
	width: var(--deco-w, 30%);
	height: var(--deco-h, 20rem);
	transform: translateY(-50%);
	background: var(--card-deco) no-repeat center / contain;
	opacity: 0.6;
	-webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
	mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
}

.featured__bar {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.featured__title {
	font-family: var(--z-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Marquee ── */
.featured__marquee {
	flex: 1;
	min-width: 0;
	overflow: clip;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 88%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, black 10%, black 88%, transparent 100%);
}

.featured__track {
	display: flex;
	align-items: center;
	gap: 4rem;
	width: max-content;
	animation: z-marquee 35s linear infinite;
	will-change: transform;
}

.featured__marquee:hover .featured__track {
	animation-play-state: paused;
}

@keyframes z-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.featured__logo {
	height: 3.25rem;
	width: auto;
	max-width: 11rem;
	object-fit: contain;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
	opacity: 0.75;
	transition: opacity var(--z-transition);
}

.featured__logo:hover {
	opacity: 1;
}

.featured__btn {
	display: inline-block;
	padding: 0.625rem 2rem;
	font-family: var(--z-font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--z-color-secondary);
	background: transparent;
	border: 1px solid var(--z-color-secondary);
	border-radius: var(--z-radius);
	text-decoration: none;
	transition: background var(--z-transition), color var(--z-transition);
	margin-top: 1.5rem;
}

.featured__btn:hover {
	background: var(--z-color-secondary);
	color: #fff;
}

/* === Our Accreditations === */
.accreditations {
	background: #f7f7f7;
}

.accreditations .z-section-heading {
	margin-bottom: 2.5rem;
}

.accreditations__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--z-gap);
}

.accreditations__block {
	background: #fff;
	border: 1px solid var(--z-color-border);
	border-radius: var(--z-radius);
	padding: 2.5rem;
}

.accreditations__block h3,
.accreditations__block strong {
	color: var(--z-color-dark);
}

.accreditations__block p {
	margin-top: 1rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--z-color-text);
}

.accreditations__logo {
	display: block;
	max-width: 10rem;
	margin-top: 2rem;
}

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

/* === Why Partner With Us === */
.partner {
	background: #f7f7f7;
}

.partner .z-section-heading {
	margin-bottom: 2.5rem;
}

.partner__row {
	display: flex;
	border-radius: var(--z-radius);
	overflow: hidden;
	container-type: inline-size;
}

.partner__card {
	flex: 1 1 0;
	min-width: 0;
	background: #fff;
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--z-color-border);
	transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner__card:last-child {
	border-right: none;
}

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

.partner__icon img {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
}

.partner__card .excellence__item-title {
	color: #151D30;
}

.partner__card-reveal {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner__card-text {
	overflow: hidden;
	font-size: 0.9375rem;
	color: #555;
	line-height: 1.6;
	margin-top: 0.75rem;
	width: calc(45.45cqi - 4.5rem);
}

.partner__row:hover .partner__card:hover,
.partner__row:focus-within .partner__card:focus {
	flex: 2.5 1 0;
}

.partner__row:hover .partner__card:hover .partner__card-reveal,
.partner__row:focus-within .partner__card:focus .partner__card-reveal {
	grid-template-rows: 1fr;
}

/* === Meet Our Team === */
.team {
	background: #f7f7f7;
	padding-bottom: 0;
}

.team .z-section-heading {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.team__group:last-child {
	margin-bottom: 0;
}

.team__group-label {
	font-family: var(--z-font-heading);
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 400;
	color: #151D30;
	line-height: 1.35;
	margin-bottom: 1.5rem;
}

.team__body {
	background: #f7f7f7;
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--z-gap);
}

.team__card {
	position: relative;
	border-radius: var(--z-radius);
	display: flex;
	flex-direction: column;
}

.team__card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 30%;
	background: var(--z-color-primary);
	border-radius: var(--z-radius);
	z-index: 0;
}

.team__photo {
	position: relative;
	z-index: 1;
	width: 80%;
	margin-inline: auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	border-radius: var(--z-radius);
}

.team__info {
	position: relative;
	z-index: 1;
	padding: 1.25rem 1.5rem 1.5rem;
}

.team__info .service-card__pill {
	margin-bottom: 0.75rem;
}

.team__name {
	font-family: var(--z-font-heading);
	font-size: 1.375rem;
	font-weight: 500;
	color: #fff;
	margin-bottom: 0.5rem;
}

.team__location {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.team__location .material-symbols-outlined {
	font-size: 1.125rem;
	color: var(--z-color-secondary);
	font-variation-settings: 'wght' 400, 'FILL' 0;
}

.team__linkedin {
	display: inline-flex;
	align-items: center;
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.6);
	transition: color 0.2s;
}

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

/* === Global Presence === */
.presence {
	background: #f7f7f7;
}

.presence .z-section-heading {
	margin-bottom: 2.5rem;
}

.presence__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--z-gap);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.presence__card {
	background: #fff;
	border: 1px solid var(--z-color-border);
	border-radius: var(--z-radius);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.presence__pin {
	font-size: 1.5rem;
	color: var(--z-color-secondary);
	font-variation-settings: 'wght' 300, 'FILL' 0;
}

.presence__card .service-card__pill {
	font-size: 0.875rem;
}

.presence__address {
	font-size: 0.9375rem;
	color: #151D30;
	line-height: 1.6;
}

.presence__image {
	border-radius: var(--z-radius);
	overflow: hidden;
}

.presence__image img {
	width: 100%;
	display: block;
	object-fit: cover;
	max-height: 28rem;
}

/* === Responsive === */
@media (max-width: 768px) {
	.hero--inner .hero__decoration--right {
		right: -50%;
		opacity: 0.2;
		top: -10%;
		bottom: auto;
	}

	.about {
		padding-bottom: 3rem;
	}

	.about__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.about__images {
		max-width: 100%;
		grid-template-columns: 1.3fr 1fr;
	}

	.about__img--overlay {
		left: -1rem;
		top: 2rem;
	}

	.about__deco {
		display: none;
	}

	.excellence__items {
		grid-template-columns: 1fr;
	}

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

	.team__grid {
		grid-template-columns: 1fr;
		max-width: 24rem;
		margin-inline: auto;
	}

.presence__cards {
		grid-template-columns: 1fr;
	}

	.partner__row {
		flex-direction: column;
	}

	.partner__card {
		border-right: none;
		border-bottom: 1px solid var(--z-color-border);
	}

	.partner__card:last-child {
		border-bottom: none;
	}

	.partner__card-reveal {
		grid-template-rows: 1fr;
	}

	.partner__card-text {
		width: auto;
	}
}
