/* Página Nosotros — alineada con servicio-detail (scoped) */
body.nosotros-page.servicio-detail-page .servicio-section--intro {
	padding: 0;
}

body.nosotros-page .nosotros-split__media--video {
	background: #111;
}

body.nosotros-page .nosotros-split__media--video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (min-width: 992px) {
	body.nosotros-page .nosotros-split__media--video video {
		position: absolute;
		inset: 0;
	}
}

body.nosotros-page .nosotros-split__copy-extra p + p {
	margin-top: 1rem;
}

body.nosotros-page .nosotros-cert-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.nosotros-page .nosotros-cert-badges .badge {
	font-size: calc(0.78rem * var(--vita-font-scale, 1.1));
	font-weight: 500;
	letter-spacing: 0.04em;
}

body.nosotros-page .nosotros-gallery {
	position: relative;
	padding: 2.5rem 0 3rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.nosotros-page .nosotros-gallery__head {
	max-width: 40rem;
	margin: 0 auto 2rem;
	padding: 0 clamp(1.25rem, 4vw, 2.75rem);
	text-align: center;
}

body.nosotros-page .nosotros-gallery__title {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	color: #fff;
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
	line-height: 1.1;
	white-space: nowrap;
}

body.nosotros-page .nosotros-gallery__title .vita-servicio-split__title-chip {
	background-color: rgba(255, 255, 255, 0.12);
	color: var(--vita-gold-text-on-dark, var(--bs-primary)) !important;
	white-space: nowrap;
}

body.nosotros-page .nosotros-italian-note {
	display: inline;
	font-size: 0.92em;
	font-style: italic;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
}

body.nosotros-page .nosotros-gallery__lead {
	margin: 0.85rem auto 0;
	max-width: 34rem;
	font-size: calc(1rem * var(--vita-font-scale, 1.1));
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

body.nosotros-page .nosotros-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: row;
	gap: clamp(0.5rem, 1.8vw, 0.85rem);
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 clamp(0.75rem, 3vw, 2.75rem);
}

body.nosotros-page .nosotros-gallery__cell {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: #111;
	box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.25);
}

body.nosotros-page .nosotros-gallery__cell:focus-visible {
	outline: 2px solid var(--bs-primary);
	outline-offset: 3px;
}

body.nosotros-page .nosotros-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.nosotros-page .nosotros-gallery__morph .nosotros-gallery__img {
	transition:
		opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 1.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.nosotros-page .nosotros-gallery__cell:first-child {
	grid-column: span 2;
	aspect-ratio: 16 / 9;
}

body.nosotros-page .nosotros-gallery__morph {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

body.nosotros-page .nosotros-gallery__morph-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: scale(1.06);
	transition:
		opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 1.35s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: opacity, transform;
}

body.nosotros-page .nosotros-gallery__morph-layer.is-img-ready.is-active,
body.nosotros-page .nosotros-gallery__morph.is-morphing .nosotros-gallery__morph-layer.is-img-ready.is-entering {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
}

body.nosotros-page .nosotros-gallery__morph.is-morphing .nosotros-gallery__morph-layer.is-img-ready.is-entering {
	z-index: 2;
}

body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--morph-ready) .nosotros-gallery__morph-layer:first-child.is-img-ready {
	opacity: 1;
	transform: scale(1);
}

body.nosotros-page .nosotros-gallery__morph.is-morphing .nosotros-gallery__morph-layer.is-leaving {
	opacity: 0;
	transform: scale(0.96);
	z-index: 1;
}

body.nosotros-page .nosotros-gallery--paused .nosotros-gallery__morph-layer,
body.nosotros-page .nosotros-gallery--lightbox-open .nosotros-gallery__morph-layer {
	transition-duration: 0.01ms;
}

body.nosotros-page .nosotros-gallery__cell:hover .nosotros-gallery__morph-layer.is-active,
body.nosotros-page .nosotros-gallery__cell:focus-visible .nosotros-gallery__morph-layer.is-active {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	body.nosotros-page .nosotros-gallery__morph-layer {
		transition: none;
		transform: scale(1);
	}

	body.nosotros-page .nosotros-gallery__morph-layer:not(.is-active) {
		opacity: 0;
	}

	body.nosotros-page .nosotros-gallery__morph-layer.is-img-ready.is-active {
		opacity: 1;
	}
}

body.nosotros-page .nosotros-pilares {
	display: grid;
	grid-template-columns: 1fr;
	padding: 0;
	margin: 0;
}

body.nosotros-page .nosotros-pilar {
	display: flex;
	align-items: center;
	min-width: 0;
}

body.nosotros-page .nosotros-pilar__inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	padding: 2.25rem clamp(1.5rem, 4vw, 2.5rem);
}

body.nosotros-page .nosotros-pilar__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.nosotros-page .nosotros-pilar__text {
	margin: 0;
	max-width: none;
	font-size: calc(1.02rem * var(--vita-font-scale, 1.1));
	line-height: 1.55;
}

body.nosotros-page .nosotros-pilar__label {
	margin: 0.35rem 0 0;
	font-size: calc(0.82rem * var(--vita-font-scale, 1.1));
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.nosotros-page .nosotros-pilar--experiencia {
	background: #f4f5f6;
	color: #2c2c2c;
	text-align: center;
}

body.nosotros-page .nosotros-pilar--experiencia .nosotros-pilar__inner {
	align-items: center;
	max-width: 22rem;
	margin-inline: auto;
}

body.nosotros-page .nosotros-stat {
	margin: 0;
	font-size: clamp(3.4rem, 7vw, 4.6rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--bs-primary);
}

body.nosotros-page .nosotros-pilar--experiencia .nosotros-pilar__title {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: #1a1a1a;
}

body.nosotros-page .nosotros-pilar--certificaciones {
	background: #1c1c1c;
	color: rgba(255, 255, 255, 0.88);
	align-items: stretch;
}

body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	min-width: 0;
	min-height: 100%;
}

body.nosotros-page .nosotros-pilar__media {
	position: relative;
	overflow: hidden;
	margin: 0;
	background: #111;
}

body.nosotros-page .nosotros-pilar__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__media {
	aspect-ratio: 16 / 10;
	max-height: 18rem;
}

@media (min-width: 768px) {
	body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__media {
		max-height: 22rem;
	}
}

body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__title {
	color: var(--vita-gold-text-on-dark, var(--bs-primary));
}

body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__label {
	color: rgba(255, 255, 255, 0.62);
}

body.nosotros-page .nosotros-pilar__text--closing {
	margin-top: 0.35rem;
}

body.nosotros-page .nosotros-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
}

body.nosotros-page .nosotros-cta-row p {
	margin: 0 !important;
}

/* Galería móvil: rejilla bento (anchos mixtos, sin huecos) */
@media (max-width: 767.98px) {
	body.nosotros-page .nosotros-gallery {
		padding-top: 2rem;
		padding-bottom: 2.25rem;
	}

	body.nosotros-page .nosotros-gallery__head {
		margin-bottom: 1.35rem;
		padding-inline: 1rem;
	}

	body.nosotros-page .nosotros-gallery__title {
		font-size: clamp(1.45rem, 6.5vw, 1.85rem);
		white-space: normal;
	}

	body.nosotros-page .nosotros-gallery__lead {
		font-size: 0.9rem;
		line-height: 1.48;
	}

	body.nosotros-page .nosotros-gallery__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-auto-flow: row;
		grid-auto-rows: auto;
		align-items: stretch;
		gap: 0.35rem;
		max-width: none;
		padding-inline: 0.35rem;
	}

	body.nosotros-page .nosotros-gallery__cell {
		aspect-ratio: 4 / 3;
		min-height: 0;
		align-self: stretch;
		border-radius: 0.35rem !important;
	}

	body.nosotros-page .nosotros-gallery__cell:first-child {
		grid-column: 1 / -1;
		grid-row: 1;
		aspect-ratio: 16 / 10;
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:not(:first-child) {
		grid-column: span 6;
	}

	/* 8 fotos: filas y columnas fijas (mitades 6+6 con separación clara) */
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell {
		grid-column: auto;
		width: 100%;
		max-width: 100%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(1) {
		grid-row: 1;
		grid-column: 1 / -1;
		aspect-ratio: 16 / 10;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(2) {
		grid-row: 2;
		grid-column: 1 / 7;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(3) {
		grid-row: 2;
		grid-column: 7 / 13;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(4) {
		grid-row: 3;
		grid-column: 1 / 7;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(5) {
		grid-row: 3;
		grid-column: 7 / 13;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(6) {
		grid-row: 4;
		grid-column: 1 / 7;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(7) {
		grid-row: 4;
		grid-column: 7 / 13;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(8) {
		grid-row: 5;
		grid-column: 1 / -1;
		aspect-ratio: 16 / 9;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(2) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(2) .nosotros-gallery__morph-layer {
		object-position: center 38%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(3) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(3) .nosotros-gallery__morph-layer {
		object-position: center 30%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(4) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(4) .nosotros-gallery__morph-layer {
		object-position: center 42%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(5) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(5) .nosotros-gallery__morph-layer {
		object-position: 52% center;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(6) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(6) .nosotros-gallery__morph-layer {
		object-position: center 40%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(8) .nosotros-gallery__img,
	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(8) .nosotros-gallery__morph-layer {
		object-position: center 45%;
	}
}

@media (min-width: 768px) {
	body.nosotros-page .nosotros-gallery {
		padding: 3rem 0 3.75rem;
	}

	body.nosotros-page .nosotros-gallery__head {
		margin-bottom: 2.35rem;
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(0.65rem, 1.5vw, 1rem);
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:first-child {
		grid-column: span 2;
		grid-row: span 2;
		aspect-ratio: auto;
		min-height: 100%;
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:nth-last-child(2),
	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:nth-last-child(1) {
		grid-column: span 1;
	}

	/* Tablet+: rejilla 8 fotos (12 cols) — evita hueco inferior derecho del grid 3×3 genérico */
	body.nosotros-page .nosotros-gallery__grid--8 {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-auto-flow: row;
		align-items: stretch;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell {
		width: 100%;
		max-width: 100%;
		min-height: 0;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(1) {
		grid-column: 1 / 7;
		grid-row: 1 / 3;
		aspect-ratio: auto;
		min-height: 100%;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(2) {
		grid-column: 7 / 10;
		grid-row: 1;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(3) {
		grid-column: 10 / 13;
		grid-row: 1;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(4) {
		grid-column: 7 / 10;
		grid-row: 2;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(5) {
		grid-column: 10 / 13;
		grid-row: 2;
		aspect-ratio: 4 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(6) {
		grid-column: 1 / 5;
		grid-row: 3;
		aspect-ratio: 16 / 10;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(7) {
		grid-column: 5 / 9;
		grid-row: 3;
		aspect-ratio: 16 / 10;
	}

	body.nosotros-page .nosotros-gallery__grid--8 > .nosotros-gallery__cell:nth-child(8) {
		grid-column: 9 / 13;
		grid-row: 3;
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 992px) {
	body.nosotros-page .nosotros-pilares {
		grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
		align-items: stretch;
	}

	body.nosotros-page .nosotros-pilar--experiencia .nosotros-pilar__inner {
		padding: 2.75rem 1.75rem;
	}

	body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__layout {
		grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
		align-items: stretch;
	}

	body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__inner {
		padding: 2.75rem clamp(2.25rem, 4.5vw, 4.5rem);
		max-width: none;
	}

	body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__media {
		aspect-ratio: auto;
		max-height: none;
		min-height: 100%;
		align-self: stretch;
	}

	body.nosotros-page .nosotros-pilar--certificaciones .nosotros-pilar__media img {
		position: absolute;
		inset: 0;
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:nth-last-child(2),
	body.nosotros-page .nosotros-gallery__grid:not(.nosotros-gallery__grid--8) .nosotros-gallery__cell:nth-last-child(1) {
		grid-column: span 2;
		aspect-ratio: 16 / 10;
	}

	/* 10 fotos: fila 6–8 a ancho completo en tres columnas iguales (resto sin cambios) */
	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:first-child {
		grid-column: 1 / 7;
		grid-row: 1 / 3;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(2) {
		grid-column: 7 / 10;
		grid-row: 1;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(3) {
		grid-column: 10 / 13;
		grid-row: 1;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(4) {
		grid-column: 7 / 10;
		grid-row: 2;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(5) {
		grid-column: 10 / 13;
		grid-row: 2;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(6),
	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(7),
	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(8) {
		grid-row: 3;
		aspect-ratio: 16 / 10;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(6) {
		grid-column: 1 / 5;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(7) {
		grid-column: 5 / 9;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-child(8) {
		grid-column: 9 / 13;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:nth-last-child(2) {
		grid-column: 1 / 7;
		grid-row: 4;
	}

	body.nosotros-page .nosotros-gallery__grid:has(> .nosotros-gallery__cell:nth-child(10):last-child) > .nosotros-gallery__cell:last-child {
		grid-column: 7 / 13;
		grid-row: 4;
	}
}
