/* ============================================================
   Sección "Sostenibilidad" — página Comprometidos
   Paleta tomada de la Guía de Estilo del Informe de Sostenibilidad 2025.
   Todas las reglas están espacio-acotadas bajo .sost-root para no
   interferir con el resto del sitio.
   ============================================================ */

.sost-root {
	--sost-navy: #213564;
	--sost-slate: #494f7c;
	--sost-muted: #737297;
	--sost-lavender: #b7b4c9;
	--sost-teal: #2fb08c;
	--sost-paper: #ffffff;
	--sost-offwhite: #f5f6f9;
	--sost-stat-bg: #eeeef4;
	--sost-border: #e5e7eb;
	--sost-ink: #404040;
	--sost-ink-soft: #6b6b6b;

	/* Ritmo blanco/gris/blanco: Cifras y Noticias en blanco, Descargas en gris
	   (ver .sost-reports-section). El remate final (::after) marca el límite
	   con el siguiente bloque real de la página, que también es blanco. */
	background: var(--sost-paper);
	color: var(--sost-ink);
	position: relative;
}

/* Remate de cierre — franja fotográfica a todo el ancho (la misma foto de
   remate que en Descargas), con degradado oscuro por la izquierda y un
   corte oblicuo a 45° abajo a la derecha, en el mismo lenguaje visual que
   el resto de cortes de la sección. Separa el final de Noticias (blanco)
   del bloque real que viene después (también blanco). */
.sost-closing-band {
	position: relative;
	height: 90px;
	background-size: cover;
	background-position: center 65%;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}
.sost-closing-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(10,14,22,.94) 0%, rgba(10,14,22,.6) 32%, rgba(10,14,22,0) 68%);
}
@media (max-width: 640px) {
	.sost-closing-band {
		height: 60px;
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
	}
}

.sost-root h2,
.sost-root h3,
.sost-root h4 {
	font-family: 'geogrotesque_cyrbold', sans-serif;
	margin: 0;
}

.sost-root p,
.sost-root a,
.sost-root button {
	font-family: 'circular_airbook', sans-serif;
}

.sost-section { padding-block: 64px; }
.sost-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

.sost-root .sost-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sost-teal);
	margin: 0 0 10px;
	font-family: 'circular_airbook', sans-serif;
}

/* Hero: intro + cita a la izquierda, cifras a la derecha (2/3 del ancho en escritorio) */
.sost-hero-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.sost-intro-block h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; }
.sost-intro-block p.sost-lead { font-size: 17px; line-height: 1.65; color: var(--sost-ink-soft); margin: 20px 0 0; max-width: 60ch; }

.sost-quote-wrap { margin-top: 36px; padding: 32px 0 4px; border-top: 1px solid var(--sost-border); }
.sost-root .sost-quote {
	font-family: 'geogrotesque_cyrbold', sans-serif;
	font-size: clamp(22px, 2.3vw, 34px);
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
	background: linear-gradient(100deg, var(--sost-navy) 0%, var(--sost-slate) 28%, var(--sost-teal) 62%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-transform: uppercase;
}

/* Cifras — tratamiento editorial inspirado en la maquetación del informe */
.sost-kpi-title { font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--sost-navy); margin: 0 0 22px; font-family: 'circular_airbook', sans-serif; }
.sost-kpi-title .sost-accent { color: var(--sost-teal); }
.sost-kpi-panel {
	background: var(--sost-stat-bg);
	padding: 8px 58px 78px 28px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), calc(100% - 96px) 100%, 0 100%);
}
/* fila 1 = 1 dato · fila 2 = 3 datos · fila 3 = 2 datos — 6 columnas base,
   pensado para exactamente 6 cifras (ver límite del repetidor ACF) */
.sost-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.sost-kpi { padding: 24px 22px; position: relative; }
.sost-kpi:nth-child(1) { grid-column: 1/7; grid-row: 1; border-bottom: 1px solid rgba(47,176,140,.35); }
.sost-kpi:nth-child(2) { grid-column: 1/3; grid-row: 2; border-right: 1px solid rgba(47,176,140,.35); }
.sost-kpi:nth-child(3) { grid-column: 3/5; grid-row: 2; border-right: 1px solid rgba(47,176,140,.35); }
.sost-kpi:nth-child(4) { grid-column: 5/7; grid-row: 2; }
.sost-kpi:nth-child(5) { grid-column: 1/4; grid-row: 3; border-top: 1px solid rgba(47,176,140,.35); border-right: 1px solid rgba(47,176,140,.35); }
.sost-kpi:nth-child(6) { grid-column: 4/7; grid-row: 3; border-top: 1px solid rgba(47,176,140,.35); }
.sost-kpi:nth-child(1) .sost-num { font-size: clamp(36px, 3.6vw, 48px); }
.sost-kpi:nth-child(5) .sost-num,
.sost-kpi:nth-child(6) .sost-num { font-size: clamp(28px, 2.6vw, 34px); }
.sost-kpi .sost-num {
	font-family: 'geogrotesque_cyrbold', sans-serif;
	font-size: clamp(24px, 2.2vw, 30px);
	color: var(--sost-navy);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.sost-kpi .sost-label { font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--sost-slate); margin: 13px 0 7px; line-height: 1.35; font-family: 'circular_airbook', sans-serif; }
.sost-kpi .sost-desc { font-size: 12.5px; line-height: 1.5; color: var(--sost-ink-soft); max-width: 44ch; }

@media (max-width: 980px) {
	.sost-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
	.sost-kpi-panel { clip-path: none; padding: 8px 24px 28px; }
	.sost-kpi-grid { grid-template-columns: 1fr; }
	.sost-kpi { grid-column: 1/2 !important; grid-row: auto !important; border: none !important; display: block !important; }
	.sost-kpi:nth-child(n+2) { border-top: 1px solid rgba(47,176,140,.35) !important; }
	.sost-kpi:nth-child(1) .sost-num { font-size: clamp(28px, 7vw, 36px); }
}

/* Informes — banda gris (offwhite), alternando con el blanco de las secciones de alrededor */
.sost-reports-section { position: relative; overflow: hidden; background: var(--sost-offwhite); }
.sost-reports-ornament {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 30%;
	min-width: 260px;
	background-size: cover;
	background-position: center;
	clip-path: polygon(180px 0, 100% 0, 100% 100%, 0 100%, 0 180px);
	z-index: 0;
}
.sost-reports-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.sost-reports-head { flex: 0 1 340px; }
.sost-reports-head h3 { font-size: 26px; font-weight: 700; }
.sost-reports-head p { color: var(--sost-ink-soft); font-size: 15.5px; line-height: 1.6; margin: 12px 0 0; max-width: 52ch; }

.sost-report-nav { flex: 1; min-width: 280px; display: flex; flex-direction: column; align-items: center; }
.sost-report-single { display: flex; align-items: center; gap: 14px; }
.sost-nav-arrow {
	width: 40px; height: 40px; border-radius: 50%; flex: none;
	border: 1px solid var(--sost-border); background: var(--sost-paper); color: var(--sost-navy);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.sost-nav-arrow[disabled] { opacity: .32; cursor: default; }
.sost-report-card {
	position: relative;
	display: flex;
	align-items: stretch;
	background: var(--sost-paper);
	border: 1px solid var(--sost-border);
	border-radius: 0;
	overflow: hidden;
	width: 460px;
	max-width: 100%;
	flex: none;
	box-shadow: 0 26px 50px -30px rgba(33,53,100,.4);
}
.sost-report-card .sost-cover { width: 190px; flex: none; aspect-ratio: 5/7; object-fit: cover; background: var(--sost-navy); }
.sost-report-card .sost-body { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; flex: 1; }
.sost-report-card .sost-lang { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sost-teal); font-family: 'circular_airbook', sans-serif; }
.sost-report-card h4 { color: var(--sost-navy); font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15; }
.sost-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--sost-navy); color: #fff; border: none;
	font-family: 'circular_airbook', sans-serif; font-weight: 700; font-size: 14px;
	padding: 12px 20px; border-radius: 0; width: fit-content;
	margin-top: 16px; text-decoration: none;
}
.sost-btn-disabled { opacity: .5; cursor: default; }
.sost-btn svg { width: 15px; height: 15px; }
.sost-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.sost-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--sost-border); display: block; }
.sost-dots span.active { background: var(--sost-teal); width: 18px; border-radius: 3px; }

@media (max-width: 980px) {
	.sost-reports-ornament { display: none; }
	.sost-reports-grid { flex-direction: column; text-align: center; }
	.sost-reports-head { flex-basis: auto; }
	.sost-reports-head p { margin-inline: auto; }
	.sost-report-nav { align-items: center; width: 100%; }
}
@media (max-width: 520px) {
	.sost-report-card { flex-direction: column; width: 100%; max-width: 320px; }
	.sost-report-card .sost-cover { width: 100%; }
	.sost-report-card .sost-body { align-items: center; text-align: center; }
}

/* Noticias */
.sost-news-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.sost-news-head h3 { font-size: 26px; font-weight: 700; }
.sost-news-head a {
	font-size: 14px; font-weight: 700; color: var(--sost-navy); text-decoration: none;
	display: inline-flex; align-items: center; gap: 6px;
	font-family: 'circular_airbook', sans-serif;
}
.sost-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sost-news-card { display: flex; flex-direction: column; }
.sost-news-thumb {
	display: block;
	aspect-ratio: 4/3; position: relative; overflow: hidden; margin-bottom: 14px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	background-color: var(--sost-stat-bg);
	background-size: cover;
	background-position: center;
}
.sost-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sost-news-card .sost-date { font-size: 12.5px; font-weight: 700; color: var(--sost-teal); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; font-family: 'circular_airbook', sans-serif; }
.sost-news-card h4 { font-size: 16px; font-weight: 700; color: var(--sost-navy); line-height: 1.3; margin: 0 0 8px; }
.sost-news-card h4 a { color: inherit; text-decoration: none; }
.sost-news-card .sost-excerpt { font-size: 13px; line-height: 1.55; color: var(--sost-ink-soft); margin: 0 0 12px; }
.sost-news-card .sost-readmore { font-size: 13px; font-weight: 700; color: var(--sost-navy); text-decoration: none; margin-top: auto; font-family: 'circular_airbook', sans-serif; }
.sost-news-empty { color: var(--sost-ink-soft); font-size: 15px; }

@media (max-width: 900px) {
	.sost-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.sost-news-grid { grid-template-columns: 1fr; }
	.sost-section { padding-block: 44px; }
}
