/* ==========================================================================
   Página "La firma" (diseño 02_Nosotros.pdf)
   Medidas tomadas a 1440 px; se escalan con clamp() (valor/14.4 = vw).
   Grilla ≥768: 12 columnas dentro de ppo-container (1280 máx, gutter 24).
   ========================================================================== */

/* Divi envuelve el contenido del módulo de texto y deja párrafos vacíos:
   se ocultan para que no ocupen una celda de las grillas. */
.ppo-why-cards > p:empty,
.ppo-why-col > p:empty,
.ppo-culture__grid > p:empty,
.ppo-history__grid > p:empty,
.ppo-meet__actions > p:empty,
.ppo-work-block > p:empty,
.ppo-hero__content > p:empty,
.et_pb_text .ppo-why-cards > p:empty,
.et_pb_text .ppo-why-col > p:empty,
.et_pb_text .ppo-culture__grid > p:empty,
.et_pb_text .ppo-history__grid > p:empty,
.et_pb_text .ppo-meet__actions > p:empty,
.et_pb_text .ppo-work-block > p:empty,
.et_pb_text .ppo-hero__content > p:empty {
	display: none !important;
}

/* Divi también envuelve las imágenes en un <p>: se "disuelve" para que la
   imagen sea la celda de la grilla. */
.ppo-work-block > p,
.ppo-history__grid > p,
.ppo-hero--page .ppo-hero__content > p:not([class]),
.et_pb_text .ppo-work-block > p,
.et_pb_text .ppo-history__grid > p {
	display: contents;
}

/* Bajada grande de sección (la usan todas las secciones de esta página) */
.et_pb_text .ppo-lead,
.ppo-lead {
	font-family: 'Barlow', sans-serif !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 3.06vw, 44px) !important;
	line-height: 1.03 !important;
	color: #FFF5E9 !important;
	margin: clamp(20px, 2.8vw, 40px) 0 0 !important;
	padding: 0 !important;
	max-width: 17em;
}
.et_pb_text .ppo-lead--dark,
.ppo-lead--dark {
	color: #003360 !important;
}

/* Textura de yeso de las secciones claras (imagen original del diseño) */
.et_pb_section.ppo-why,
.et_pb_section.ppo-howwework-body,
.et_pb_section.ppo-culture,
.et_pb_section.ppo-history {
	background-color: #FFFFFF !important;
	background-image: linear-gradient(rgba(255, 255, 255, .68), rgba(255, 255, 255, .68)), url('/wp-content/uploads/2026/09/textura-yeso.jpg') !important;
	background-size: auto, cover !important;
	background-position: center, center !important;
	background-repeat: no-repeat, no-repeat !important;
}

/* Fila que ocupa todo el ancho de la pantalla (sin ppo-container) */
.et_pb_row.ppo-bleed-row {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
.et_pb_row.ppo-bleed-row > .et_pb_column {
	padding: 0 !important;
}

/* En Cultura e Historia el subrayado del título es navy */
.ppo-culture .ppo-section-title::after,
.ppo-history .ppo-section-title::after {
	background: #003360 !important;
}

/* 12 columnas, igual que el Hero */
@media (min-width: 768px) {
	.ppo-work-block,
	.ppo-culture__grid,
	.ppo-history__grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 24px;
	}
}

/* ---------- 1 · Hero ----------
   Mismo componente .ppo-hero de la portada, con las medidas de esta página. */

.et_pb_section.ppo-page-hero {
	padding: 0 !important;
}
.ppo-hero--page .ppo-hero__title {
	font-weight: 300;
}
/* El diseño muestra la zona izquierda de la foto (las "plumas" en diagonal) */
.ppo-hero--page .ppo-hero__slide {
	background-size: auto 115%;
	background-position: 22% 35%;
}
/* Más oscuro a la izquierda y azul a la derecha, como en el diseño */
.ppo-hero--page .ppo-hero__overlay {
	background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, 0) 100%), linear-gradient(rgba(0, 51, 96, .45), rgba(0, 51, 96, .45));
}
.ppo-hero--page .ppo-hero__ctas {
	margin-top: 40px !important;
	padding-top: 0 !important;
}
.ppo-hero--page .ppo-hero__cta {
	font-weight: 300;
}

@media (min-width: 768px) {
	.ppo-hero--page .ppo-hero__slide {
		min-height: clamp(640px, 71.5vw, 1030px);
	}
	.ppo-hero--page .ppo-hero__content {
		padding-top: clamp(150px, 23.75vw, 342px);
		padding-bottom: clamp(64px, 6.9vw, 100px);
	}
	.ppo-hero--page .ppo-hero__title {
		font-size: clamp(40px, 4.86vw, 70px);
		line-height: 1.22;
		max-width: 12.2em;
	}
	.ppo-hero--page .ppo-hero__subtitle {
		font-size: clamp(17px, 1.944vw, 28px);
		line-height: 1.41;
		max-width: 27.5em;
		margin-top: clamp(32px, 4.2vw, 60px);
	}
	/* El enlace queda debajo de la bajada, no pegado abajo del hero */
	.ppo-hero--page .ppo-hero__ctas {
		grid-row: 3;
		align-self: start;
		margin-top: clamp(40px, 8.3vw, 120px) !important;
	}
	.ppo-hero--page .ppo-hero__cta {
		font-size: clamp(16px, 1.53vw, 22px);
		gap: 18px;
	}
	.ppo-hero--page .ppo-hero__cta svg {
		width: 18px;
		height: 18px;
	}
}

/* ---------- 2 · Por qué nos eligen ---------- */

.et_pb_section.ppo-why {
	position: relative;
	overflow: hidden;
	padding: 72px 0 72px !important;
}
.et_pb_section.ppo-why > .et_pb_row {
	position: relative;
	z-index: 1;
}
/* El título y la bajada quedan por encima de la franja navy */
.et_pb_section.ppo-why > .et_pb_row:first-child {
	z-index: 2;
}

.ppo-why-cards {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 48px;
}
/* Franja navy: cubre desde arriba de la sección hasta un poco por debajo
   del inicio de las tarjetas, sin depender del alto del título. */
.ppo-why-cards::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -100vw;
	right: -100vw;
	bottom: calc(100% - 48px);
	height: 3000px;
	background: #003360;
}
.ppo-why-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ppo-card {
	padding: 36px 28px 40px;
}
.et_pb_text .ppo-card h3,
.ppo-card h3 {
	font-family: 'Barlow', sans-serif !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 3.06vw, 44px) !important;
	line-height: 1.05 !important;
	margin: 0 0 clamp(16px, 2.36vw, 34px) !important;
	padding: 0 !important;
}
.et_pb_text .ppo-card p,
.ppo-card p {
	font-family: 'Barlow', sans-serif;
	font-size: clamp(16px, 1.53vw, 22px) !important;
	line-height: 1.23 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ppo-card--beige {
	background: #D2B48C;
}
.ppo-card--beige h3,
.ppo-card--beige p,
.et_pb_text .ppo-card--beige h3,
.et_pb_text .ppo-card--beige p {
	color: #003360 !important;
}
.ppo-card--cyan {
	background: #00A7E2;
}
.ppo-card--cyan h3,
.ppo-card--cyan p,
.et_pb_text .ppo-card--cyan h3,
.et_pb_text .ppo-card--cyan p {
	color: #FFF5E9 !important;
}
.ppo-card--navy {
	background: #003360;
}
.ppo-card--navy h3,
.ppo-card--navy p,
.et_pb_text .ppo-card--navy h3,
.et_pb_text .ppo-card--navy p {
	color: #FFF5E9 !important;
}

@media (min-width: 768px) {
	.et_pb_section.ppo-why {
		padding: clamp(96px, 13.2vw, 190px) 0 clamp(96px, 12.5vw, 180px) !important;
	}
	.ppo-why-cards {
		flex-direction: row;
		align-items: flex-start;
		gap: 14px;
		margin-top: clamp(64px, 7.6vw, 110px);
	}
	.ppo-why-cards::before {
		bottom: calc(100% - 66px);
	}
	.ppo-why-col {
		flex: 1 1 0;
	}
	/* La columna derecha arranca más abajo: 25% del ancho del bloque de
	   tarjetas (255 px a 1440), así escala solo */
	.ppo-why-col--offset {
		margin-top: 25%;
	}
	/* La primera tarjeta de cada columna es más alta */
	.ppo-why-col .ppo-card:first-child {
		min-height: clamp(0px, 47.2vw, 680px);
	}
	.ppo-card {
		min-height: clamp(0px, 39.6vw, 570px);
		padding: clamp(40px, 7.5vw, 108px) clamp(24px, 3.9vw, 56px) clamp(44px, 8.3vw, 120px) clamp(28px, 4.72vw, 68px);
	}
}

/* Desde 1024: las tarjetas ocupan de la columna 2 a la 11 */
@media (min-width: 1024px) {
	.ppo-why-cards {
		margin-left: calc((100% - 264px) / 12 + 24px);
		margin-right: calc((100% - 264px) / 12 + 24px);
	}
}

/* ---------- 3 · Cómo trabajamos ---------- */

.et_pb_section.ppo-howwework {
	padding: 72px 0 72px !important;
	background-color: #003360 !important;
}
.et_pb_section.ppo-howwework-body {
	position: relative;
	padding: 48px 0 56px !important;
	/* Recorta el sangrado horizontal de la foto sin cortar lo que sube */
	overflow-x: clip;
}

.ppo-work-block__text {
	max-width: 480px;
}
.et_pb_text .ppo-work-block__text p,
.ppo-work-block__text p {
	font-family: 'Barlow', sans-serif;
	font-size: clamp(17px, 1.944vw, 28px) !important;
	line-height: 1.41 !important;
	color: #003360 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ppo-work-block__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1400 / 1833;
	object-fit: cover;
	margin-top: 40px;
}

@media (min-width: 768px) {
	.et_pb_section.ppo-howwework {
		padding: clamp(96px, 13.2vw, 190px) 0 clamp(120px, 23vw, 332px) !important;
	}
	.et_pb_section.ppo-howwework-body {
		padding: 0 !important;
	}
	.ppo-work-block {
		align-items: start;
	}
	.ppo-work-block__text {
		grid-column: 1 / 6;
		grid-row: 1;
		margin-top: clamp(48px, 9vw, 130px);
		max-width: clamp(280px, 31.2vw, 450px);
	}
	/* Columnas 6–12, sangra hasta el borde derecho y sube sobre el navy */
	.ppo-work-block__photo {
		grid-column: 6 / 13;
		grid-row: 1;
		position: relative;
		z-index: 1;
		justify-self: start;
		/* Ancho de la celda + la distancia al borde derecho de la pantalla */
		width: calc(100% + max(24px, (100vw - 1280px) / 2 + 24px));
		max-width: none;
		margin-top: clamp(-214px, -14.86vw, -90px);
	}
}

/* ---------- 4 · Cultura ---------- */

.et_pb_section.ppo-culture {
	padding: 72px 0 !important;
}
.ppo-culture__grid {
	display: grid;
	gap: 32px;
	margin-top: 48px;
}
.et_pb_text .ppo-culture__lead,
.ppo-culture__lead {
	font-family: 'Barlow', sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(22px, 2.5vw, 36px) !important;
	line-height: 1.1 !important;
	color: #003360 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.et_pb_text .ppo-culture__body p,
.ppo-culture__body p {
	font-family: 'Barlow', sans-serif;
	font-size: clamp(16px, 1.667vw, 24px) !important;
	line-height: 1.2 !important;
	color: #003360 !important;
	margin: 0 0 1.2em !important;
	padding: 0 !important;
}
.et_pb_text .ppo-culture__body p:last-child,
.ppo-culture__body p:last-child {
	margin-bottom: 0 !important;
}

@media (min-width: 768px) {
	.et_pb_section.ppo-culture {
		padding: clamp(96px, 18.75vw, 270px) 0 clamp(72px, 10.4vw, 150px) !important;
	}
	.ppo-culture__grid {
		row-gap: 0;
		margin-top: clamp(64px, 12.5vw, 180px);
	}
	.ppo-culture__lead,
	.et_pb_text .ppo-culture__lead {
		grid-column: 1 / 5;
		margin-right: -24px !important;
	}
	.ppo-culture__body {
		grid-column: 6 / 13;
	}
}

/* ---------- 5 · Historia ---------- */

.et_pb_section.ppo-history {
	position: relative;
	z-index: 1;
	padding: 72px 0 72px !important;
}
.ppo-history__grid {
	display: grid;
	margin-top: 40px;
}
.ppo-history__photo {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
	object-position: center;
}
.ppo-history__intro {
	margin: 32px 0;
}
.et_pb_text .ppo-history__intro p,
.ppo-history__intro p {
	font-family: 'Barlow', sans-serif;
	font-size: clamp(16px, 1.667vw, 24px) !important;
	line-height: 1.17 !important;
	color: #003360 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.et_pb_text .ppo-history__intro p + p,
.ppo-history__intro p + p {
	margin-top: 12px !important;
}
.ppo-history__intro strong {
	font-weight: 700;
}

.ppo-timeline,
.et_pb_text ul.ppo-timeline {
	background: #00A7E2;
	padding: 48px 28px 64px !important;
	list-style: none !important;
	margin: 0 !important;
}
.ppo-timeline li {
	padding: 0 !important;
}
.ppo-timeline li + li {
	margin-top: clamp(48px, 7.8vw, 112px);
}
.et_pb_text .ppo-timeline__year,
.ppo-timeline__year {
	display: block;
	font-family: 'Barlow', sans-serif !important;
	font-weight: 300 !important;
	font-size: clamp(40px, 4.44vw, 64px) !important;
	line-height: 1 !important;
	color: #FFF5E9 !important;
	margin-bottom: clamp(20px, 2.9vw, 42px);
}
.et_pb_text .ppo-timeline p,
.ppo-timeline p {
	font-family: 'Barlow', sans-serif;
	font-size: clamp(16px, 1.667vw, 24px) !important;
	line-height: 1.2 !important;
	color: #003360 !important;
	margin: 0 !important;
	padding: 0 0 0 clamp(16px, 4.2vw, 60px) !important;
	max-width: calc(16.6em + clamp(16px, 4.2vw, 60px));
}

@media (min-width: 768px) {
	.et_pb_section.ppo-history {
		padding: clamp(96px, 13.2vw, 190px) 0 0 !important;
	}
	.ppo-history__grid {
		align-items: start;
		margin-top: clamp(64px, 9.2vw, 132px);
		/* El panel cian se monta sobre la sección Conócenos */
		margin-bottom: clamp(-113px, -7.85vw, -48px);
	}
	/* Foto: columnas 1–6, por encima del panel. El borde derecho es un arco
	   de círculo medido en el diseño (radio 1689 px a 1440): arriba empieza
	   al 78,5 % del ancho, toca el borde al 47 % de la altura y termina
	   abajo al 72,5 %. Arriba, abajo y a la izquierda, bordes rectos. */
	.ppo-history__photo {
		grid-column: 1 / 7;
		grid-row: 1;
		position: relative;
		z-index: 2;
		height: clamp(640px, 95.8vw, 1379px);
		object-position: right center;
		clip-path: ellipse(280% 122.5% at -180% 47%);
	}
	/* Texto introductorio: columnas 8–12, a la altura del borde de la foto */
	.ppo-history__intro {
		grid-column: 8 / 13;
		grid-row: 1;
		position: relative;
		z-index: 3;
		margin: 0 -24px 0 0;
	}
	/* Panel: columnas 5–12, empieza debajo del texto introductorio */
	.ppo-timeline,
	.et_pb_text ul.ppo-timeline {
		grid-column: 5 / 13;
		grid-row: 1;
		position: relative;
		z-index: 1;
		margin-top: clamp(120px, 12.1vw, 174px) !important;
		padding: clamp(40px, 5vw, 73px) clamp(24px, 4vw, 60px) clamp(64px, 13vw, 188px) clamp(170px, 16.8vw, 242px) !important;
	}
}

/* ---------- 6 · Conócenos ---------- */

.et_pb_section.ppo-meet {
	padding: 72px 0 80px !important;
	background-color: #003360 !important;
}
.ppo-meet__link {
	display: inline-flex;
	align-items: center;
	gap: clamp(24px, 4.4vw, 64px);
	margin-top: 32px;
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	font-size: clamp(34px, 4.86vw, 70px);
	line-height: 1.1;
	color: #FFF5E9 !important;
	text-decoration: none;
}
.ppo-meet__link::after {
	content: "";
	width: clamp(14px, 1.8vw, 26px);
	height: clamp(14px, 1.8vw, 26px);
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}
.ppo-meet__link:hover {
	color: #00A7E2 !important;
}
.ppo-meet__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px clamp(28px, 3.9vw, 56px);
	margin-top: 56px;
}
.ppo-meet__actions .ppo-btn,
.et_pb_text .ppo-meet__actions .ppo-btn {
	font-size: clamp(15px, 1.39vw, 20px);
}
.ppo-meet__actions .ppo-btn:not(.ppo-btn--plain),
.et_pb_text .ppo-meet__actions .ppo-btn:not(.ppo-btn--plain) {
	font-weight: 700;
	gap: 28px;
	padding: clamp(16px, 2vw, 29px) clamp(20px, 1.9vw, 28px) clamp(16px, 2vw, 29px) clamp(18px, 1.53vw, 22px);
}

@media (min-width: 768px) {
	/* El padding superior deja lugar al panel cian de Historia que se monta encima */
	.et_pb_section.ppo-meet {
		padding: clamp(120px, 20vw, 290px) 0 clamp(72px, 7.2vw, 104px) !important;
	}
	.ppo-meet__link {
		margin-top: clamp(32px, 3.5vw, 50px);
	}
	.ppo-meet__actions {
		justify-content: flex-end;
		margin-top: clamp(64px, 12vw, 174px);
		padding-right: clamp(0px, 3vw, 56px);
	}
}
