/**
 * Home + páginas Territorio Sostenible.
 * Scope: .ts-hero / .home--territorio-sostenible / .section-page--territorio-sostenible
 */

/* Hero a sangre bajo el header fijo — sin franja blanca */
html:has(main.home--territorio-sostenible),
html:has(main.section-page--territorio-sostenible),
body.uao-has-header-simple:has(main.home--territorio-sostenible),
body.uao-has-header-simple:has(main.section-page--territorio-sostenible),
body.uao-has-header-v2:has(main.home--territorio-sostenible),
body.uao-has-header-v2:has(main.section-page--territorio-sostenible) {
	--uao-header-offset: 52px;
	padding-top: 0 !important;
	background-color: #f7f2e9;
}

body.admin-bar.uao-has-header-simple:has(main.home--territorio-sostenible),
body.admin-bar.uao-has-header-simple:has(main.section-page--territorio-sostenible),
body.admin-bar.uao-has-header-v2:has(main.home--territorio-sostenible),
body.admin-bar.uao-has-header-v2:has(main.section-page--territorio-sostenible) {
	padding-top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar.uao-has-header-simple:has(main.home--territorio-sostenible),
	body.admin-bar.uao-has-header-simple:has(main.section-page--territorio-sostenible),
	body.admin-bar.uao-has-header-v2:has(main.home--territorio-sostenible),
	body.admin-bar.uao-has-header-v2:has(main.section-page--territorio-sostenible) {
		padding-top: 46px !important;
	}
}

body.uao-has-header-simple:has(main.home--territorio-sostenible) #uao-site-header.uao-site-header--simple,
body.uao-has-header-simple:has(main.home--territorio-sostenible) #uao-site-header.uao-site-header--simple .uao-main-header,
body.uao-has-header-simple:has(main.home--territorio-sostenible) #uao-site-header.uao-site-header--simple .uao-main-header__inner,
body.uao-has-header-simple:has(main.section-page--territorio-sostenible) #uao-site-header.uao-site-header--simple,
body.uao-has-header-simple:has(main.section-page--territorio-sostenible) #uao-site-header.uao-site-header--simple .uao-main-header,
body.uao-has-header-simple:has(main.section-page--territorio-sostenible) #uao-site-header.uao-site-header--simple .uao-main-header__inner {
	border: 0 !important;
	border-bottom: none !important;
	box-shadow: none !important;
	outline: none !important;
}

main.home.home--territorio-sostenible,
main.section-page.section-page--territorio-sostenible {
	--ts-font: Arial, Helvetica, sans-serif;
	/* Tokens tipográficos del mockup */
	--ts-title: #747474;
	--ts-title-muted: #acacac;
	--ts-title-teal: #00adaf;
	--ts-title-sz: 26px;
	--ts-title-sz-sm: 22px;
	--ts-caption-sz: 24px;
	--ts-intro-sz: 18px;
	--ts-cta-sz: 22px;
	--ts-profile-sz: 15.5px;
	margin: 0;
	padding: 0;
	display: block;
	background: #fff;
	font-family: var(--ts-font);
	-webkit-font-smoothing: antialiased;
	color: var(--ts-title);
	overflow-x: clip;
	overflow-y: visible;
}

main.home.home--territorio-sostenible,
main.home.home--territorio-sostenible *,
main.section-page.section-page--territorio-sostenible,
main.section-page.section-page--territorio-sostenible *,
.uao-ts-home,
.uao-ts-home *,
.ts-hero,
.ts-hero * {
	font-family: Arial, Helvetica, sans-serif !important;
}

.uao-ts-home {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

.ts-hero {
	--ts-red: #ee1d23;
	--ts-text: #777777;
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	/* Medido del PDF: círculos ~16–18px */
	--ts-point: 16px;
	--ts-point-gap: 8px;
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 0;
}

.ts-hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 820;
	/* Incluye la zona bajo el header fijo (52px) para que la imagen empiece arriba del todo */
	min-height: calc(280px + 52px);
	max-height: min(calc(68vh + 52px), 772px);
	overflow: hidden;
	background: #1a1a1a;
	border: 0;
	border-bottom: 2px solid var(--ts-red);
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
}

.ts-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
	object-position: center center;
	vertical-align: top;
	z-index: 0;
}

/* YouTube de fondo (cover 16:9 dentro del media) */
.ts-hero__video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
	/* Opacidad 0 hasta PLAYING: evita ver el play nativo de YouTube */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.ts-hero__video-wrap.is-ready {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.ts-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 100%;
	min-height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ts-hero__media--video .ts-hero__image {
	/* Poster visible hasta que el iframe esté listo */
	z-index: 0;
}

.ts-hero__brand {
	position: absolute;
	right: clamp(14px, 2.4vw, 28px);
	bottom: clamp(12px, 2vw, 22px);
	width: clamp(64px, 7vw, 96px);
	height: auto;
	filter: brightness(0) invert(1);
	pointer-events: none;
	user-select: none;
	z-index: 2;
}

/* Controles custom: play/pausa + audio (sin UI nativa de YouTube) */
.ts-hero__controls {
	position: absolute;
	left: clamp(14px, 2.4vw, 28px);
	bottom: clamp(12px, 2vw, 22px);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	pointer-events: auto;
}

.ts-hero__play-btn,
.ts-hero__audio-btn {
	margin: 0;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ts-hero__play-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	flex-shrink: 0;
}

.ts-hero__play-btn svg {
	display: block;
}

.ts-hero__audio-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.2 !important;
}

.ts-hero__play-btn:hover,
.ts-hero__play-btn:focus-visible,
.ts-hero__audio-btn:hover,
.ts-hero__audio-btn:focus-visible,
.ts-hero__audio-btn.is-unmuted {
	background: rgba(238, 29, 35, 0.9);
	border-color: #ee1d23;
	outline: none;
}

.ts-hero__play-btn.is-paused {
	background: rgba(238, 29, 35, 0.85);
	border-color: #ee1d23;
}

/* Barra compacta en páginas: solo los 6 puntos del home */
.ts-hero--page .ts-hero__bar--page .ts-hero__bar-inner {
	min-height: calc((var(--ts-point) * 2) + var(--ts-point-gap) + clamp(36px, 4vw, 56px));
	padding: clamp(18px, 2.2vw, 28px) var(--ts-wrap);
	padding-right: calc(var(--ts-wrap) + 64px);
}

/* ========== Intro dos columnas (section-page / ACF) ========== */
.ts-intro-cols {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-point: 16px;
	--ts-point-gap: 8px;
	--ts-red: #ee1d23;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) 0 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
}

.ts-intro-cols__points {
	position: absolute;
	top: clamp(18px, 2.2vw, 28px);
	right: var(--ts-wrap);
	display: grid;
	grid-template-columns: repeat(3, var(--ts-point));
	grid-template-rows: repeat(2, var(--ts-point));
	gap: var(--ts-point-gap);
	pointer-events: none;
	z-index: 1;
}

.ts-intro-cols__points span {
	display: block;
	width: var(--ts-point);
	height: var(--ts-point);
	box-sizing: border-box;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	background: transparent;
}

.ts-intro-cols__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(36px, 4.5vw, 56px);
	padding: 0 var(--ts-wrap);
	box-sizing: border-box;
}

.ts-intro-cols__pill {
	margin: 0;
	padding: 0.5em 1.75em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.45vw, 24px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.ts-intro-cols__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(20px, 2.4vw, 36px);
	width: 100%;
	max-width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0 var(--ts-wrap);
	padding-right: calc(var(--ts-wrap) + 40px);
	box-sizing: border-box;
}

.ts-intro-cols__col {
	min-width: 0;
}

/* Misma fila flecha + texto que el intro del home */
.ts-intro-cols__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.ts-intro-cols__icon {
	flex: 0 0 auto;
	display: block;
	width: 22px;
	height: auto;
	margin-top: 3px;
}

.ts-intro-cols__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ts-intro-cols__body-text,
.ts-intro-cols__body-text p {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
	text-align: left !important;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: break-word;
}

.ts-intro-cols__body-text p + p {
	margin-top: 0.85em;
}

.ts-intro-cols__lead {
	margin: 0 0 1rem;
}

.ts-intro-cols__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.ts-intro-cols__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.ts-intro-cols__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.ts-intro-cols__item-text {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 900px) {
	.ts-intro-cols__pill-wrap {
		padding: 0 var(--ts-wrap);
		padding-right: calc(var(--ts-wrap) + 48px);
	}

	.ts-intro-cols__pill {
		max-width: 100%;
		box-sizing: border-box;
	}

	.ts-intro-cols__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-right: var(--ts-wrap);
	}
}

@media (max-width: 560px) {
	.ts-intro-cols__pill-wrap {
		padding: 0 var(--ts-wrap);
		padding-right: calc(var(--ts-wrap) + 40px);
	}

	.ts-intro-cols__pill {
		padding: 0.45em 1.1em;
		font-size: clamp(15px, 4.2vw, 17px);
	}

	.ts-intro-cols__points {
		--ts-point: 14px;
		--ts-point-gap: 6px;
	}

	.ts-intro-cols__icon {
		width: 18px;
	}
}

/* ========== Imagen PEI (section-page / ACF) ========== */
.ts-pei {
	margin: 0;
	padding: clamp(24px, 3.5vw, 48px) 0 0;
	background: #fff;
}

.ts-pei__figure {
	margin: 0;
	padding: 0 clamp(16px, 3vw, 48px);
	width: 100%;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.ts-pei__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
}

.ts-intro-cols .ts-divider {
	display: block;
	width: 100%;
	max-width: none;
	margin: clamp(48px, 6vw, 80px) 0 0;
	border: 0;
	border-top: 1px solid #d0d0d0;
}

.ts-pei .ts-divider {
	display: block;
	width: 100%;
	max-width: none;
	margin: clamp(28px, 4vw, 48px) 0 0;
	border: 0;
	border-top: 1px solid #d0d0d0;
}

/* ========== Unidades + Aliados (section-page / ACF) ========== */
.ts-aliados {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) 0 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	overflow: visible;
}

/* Fila superior: unidades + decorado (el decorado NO baja a Aliados) */
.ts-aliados__units-row {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.ts-aliados__inner {
	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--ts-wrap);
	box-sizing: border-box;
	z-index: 1;
}

.ts-aliados__inner--units {
	padding-bottom: clamp(8px, 1vw, 16px);
}

.ts-aliados__units {
	position: relative;
	z-index: 1;
	width: fit-content;
	max-width: min(920px, 100%);
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(28px, 3.5vw, 40px) clamp(28px, 3.2vw, 44px);
	background: #fff;
	box-sizing: border-box;
}

.ts-aliados__units-intro {
	margin: 0 0 clamp(22px, 2.8vw, 32px);
	max-width: none;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 700;
	line-height: 1.55;
	white-space: nowrap;
}

.ts-aliados__units-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.ts-aliados__unit {
	margin: 0;
	max-width: 100%;
}

.ts-aliados__unit-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: max-content;
	max-width: 100%;
	min-height: 52px;
	padding: 10px 12px 10px 22px;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	background: #fff;
	color: #747474;
	text-decoration: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.ts-aliados__unit-link:hover,
a.ts-aliados__unit-link:focus-visible {
	border-color: var(--ts-red);
	outline: none;
}

.ts-aliados__unit-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.35;
	color: #747474;
}

.ts-aliados__unit-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ts-red);
	overflow: hidden;
}

.ts-aliados__unit-btn svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
}

.ts-aliados__unit-btn svg path {
	fill: none !important;
	stroke: #fff;
}

.ts-aliados__partners {
	position: relative;
	z-index: 1;
	margin-top: clamp(48px, 6vw, 80px);
	padding: 0 0 clamp(8px, 1vw, 16px);
	background: #fff;
}

.ts-aliados__heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 clamp(36px, 4.5vw, 56px);
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.ts-aliados__heading-icon {
	display: block;
	width: 26px;
	height: auto;
	flex: 0 0 auto;
}

.ts-aliados__logos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	justify-items: center;
	align-items: center;
	column-gap: clamp(20px, 2.8vw, 40px);
	row-gap: clamp(28px, 4vw, 48px);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	max-width: 1100px;
}

.ts-aliados__logo {
	margin: 0;
	width: 100%;
	max-width: 180px;
	display: flex;
	justify-content: center;
}

/* Segunda fila (logos 6–8): centrar el bloque de 3 en la grilla de 5 */
.ts-aliados__logo:nth-child(6) {
	grid-column: 2;
}

.ts-aliados__logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	width: 100%;
}

.ts-aliados__logo-link img {
	display: block;
	width: auto;
	height: clamp(64px, 6.5vw, 96px);
	max-width: 100%;
	object-fit: contain;
}

/* Decorado solo junto a unidades — recortado por .ts-aliados__units-row */
.ts-aliados__dots {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: min(480px, 46vw);
	height: 100%;
	max-height: 100%;
	pointer-events: none;
	z-index: 0;
	background: url("../images/territorio-sostenible/icons/aliados-dots.svg") right center / contain no-repeat;
}

.ts-aliados .ts-divider {
	display: block;
	width: 100%;
	max-width: none;
	margin: clamp(48px, 6vw, 80px) 0 0;
	border: 0;
	border-top: 1px solid #d0d0d0;
}

@media (max-width: 900px) {
	.ts-aliados__units {
		max-width: 100%;
		width: 100%;
	}

	.ts-aliados__units-intro {
		white-space: normal;
	}

	.ts-aliados__unit-link {
		width: 100%;
	}

	.ts-aliados__logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 640px;
	}

	.ts-aliados__logo:nth-child(6) {
		grid-column: auto;
	}

	.ts-aliados__dots {
		width: min(280px, 42vw);
		opacity: 0.9;
	}
}

@media (max-width: 560px) {
	.ts-aliados__units {
		border-radius: 20px;
		padding: 22px 18px;
	}

	.ts-aliados__unit-btn {
		width: 30px;
		height: 30px;
	}

	.ts-aliados__heading-icon {
		width: 20px;
	}

	.ts-aliados__logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
		row-gap: 24px;
	}

	.ts-aliados__logo {
		max-width: none;
	}

	.ts-aliados__logo-link img {
		height: 56px;
	}

	.ts-aliados__dots {
		width: 140px;
		opacity: 0.75;
	}
}

/* ========== Doctorado en Sostenibilidad (section-page / ACF) ========== */
.ts-doc {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	--ts-gray: #747474;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-doc__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(36px, 4.5vw, 56px);
}

.ts-doc__pill {
	margin: 0;
	padding: 0.5em 1.75em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.45vw, 24px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-doc__top {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(18px, 2.2vw, 28px);
	max-width: 1120px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	align-items: stretch;
}

.ts-doc__card {
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(24px, 3vw, 36px);
	background: #fff;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.ts-doc__card-title {
	margin: 0 0 0.85em;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.2vw, 22px);
	font-weight: 700;
	line-height: 1.25;
}

.ts-doc__text,
.ts-doc__text p {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-doc__text p + p {
	margin-top: 0.85em;
}

.ts-doc__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	width: max-content;
	max-width: 100%;
	text-decoration: none;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	padding: 8px 22px 8px 10px;
	background: #fff;
	box-sizing: border-box;
}

.ts-doc__card--intro .ts-doc__cta {
	margin-top: clamp(20px, 2.5vw, 28px);
}

.ts-doc__cta--center {
	margin-left: auto;
	margin-right: auto;
	margin-top: clamp(20px, 2.5vw, 28px);
}

.ts-doc__cta-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ts-red);
}

.ts-doc__cta-btn svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
}

.ts-doc__cta-btn svg path {
	fill: none !important;
	stroke: #fff;
}

.ts-doc__cta-label {
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-doc__focos-head {
	max-width: 1120px;
	margin: 0 auto clamp(24px, 3vw, 36px);
	text-align: center;
}

.ts-doc__focos-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.25vw, 24px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-doc__focos-icon {
	display: block;
	width: 26px;
	height: auto;
	flex: 0 0 auto;
}

.ts-doc__focos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 28px);
	max-width: 1120px;
	margin: 0 auto clamp(40px, 5vw, 64px);
}

.ts-doc__foco {
	border: 1.5px solid var(--ts-red);
	border-radius: 28px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.ts-doc__foco-title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
	padding: 18px 22px;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.05vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	border-bottom: 1px solid #e5e5e5;
}

.ts-doc__foco-chevron {
	flex: 0 0 auto;
	display: block;
	width: 22px;
	height: auto;
	transform: rotate(90deg);
}

.ts-doc__foco-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-doc__foco-item {
	margin: 0;
	padding: 14px 22px;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 0.9vw, 17px);
	font-weight: 500;
	line-height: 1.45;
	border-bottom: 1px solid #ececec;
	background: #fff;
}

.ts-doc__foco-item:nth-child(even) {
	background: #f5f5f5;
}

.ts-doc__foco-item:last-child {
	border-bottom: 0;
}

.ts-doc__grupos {
	max-width: 720px;
	margin: 0 auto clamp(20px, 2.5vw, 36px);
	padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 36px);
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	background: #fff;
	text-align: center;
	box-sizing: border-box;
}

.ts-doc__grupos-title {
	margin: 0;
	padding-bottom: 10px;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 0.95vw, 17px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--ts-red);
	display: inline-block;
	max-width: 100%;
}

.ts-doc__dots {
	width: min(320px, 48vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0 auto;
	padding: 0;
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
	display: block;
	line-height: 0;
	font-size: 0;
}

/* Decorado + línea juntos; solo cuando hay sección debajo */
.ts-doc__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	width: 100%;
}

.ts-doc__footer .ts-doc__dots {
	margin: 0;
}

.ts-doc__footer .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
	flex: 0 0 auto;
}

@media (max-width: 900px) {
	.ts-doc__top,
	.ts-doc__focos {
		grid-template-columns: 1fr;
	}

	.ts-doc__cta {
		width: 100%;
		justify-content: flex-start;
		box-sizing: border-box;
	}
}

@media (max-width: 560px) {
	.ts-doc__card,
	.ts-doc__foco,
	.ts-doc__grupos {
		border-radius: 20px;
	}

	.ts-doc__foco-title,
	.ts-doc__foco-item {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ts-doc__dots {
		width: min(220px, 58vw);
	}
}

/* ========== Observatorio de Sostenibilidad (section-page / ACF) ========== */
.ts-obs {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	--ts-gray: #747474;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) clamp(48px, 6vw, 80px);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
}

.ts-obs__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(56px, 7vw, 88px);
}

.ts-obs__pill {
	margin: 0;
	padding: 0.5em 1.75em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.45vw, 24px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-obs__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(28px, 3.5vw, 48px);
	max-width: 1120px;
	margin: 0 auto;
	align-items: start;
}

.ts-obs__intro,
.ts-obs__intro p {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-obs__intro p + p {
	margin-top: 0.85em;
}

.ts-obs__intro {
	margin-bottom: clamp(22px, 2.8vw, 32px);
}

.ts-obs__media {
	border: 1.5px solid var(--ts-red);
	border-radius: 28px;
	padding: clamp(22px, 2.8vw, 32px);
	background: #fff;
	box-sizing: border-box;
}

.ts-obs__media-title {
	margin: 0 0 clamp(16px, 2vw, 22px);
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.35vw, 24px);
	font-weight: 700;
	line-height: 1.25;
}

.ts-obs__media-frame {
	border: 1.5px solid var(--ts-red);
	border-radius: 22px;
	padding: clamp(12px, 1.5vw, 18px);
	background: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-obs__figure {
	margin: 0;
}

.ts-obs__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.ts-obs__media-cta {
	display: flex;
	justify-content: flex-end;
	margin-top: clamp(18px, 2.2vw, 28px);
}

.ts-obs__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 22px 8px 10px;
	border-radius: 999px;
	background: var(--ts-red);
	color: #fff;
	text-decoration: none;
	box-sizing: border-box;
}

.ts-obs__cta-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--ts-red);
}

.ts-obs__cta-btn svg {
	display: block;
	width: 14px;
	height: 14px;
}

.ts-obs__cta-label {
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-obs__acciones-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 1rem;
}

.ts-obs__acciones-icon {
	display: block;
	width: 26px;
	height: auto;
	flex: 0 0 auto;
	margin-top: 3px;
}

.ts-obs__acciones-title {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-obs__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.ts-obs__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.ts-obs__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.ts-obs__item-text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-obs .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: clamp(48px, 6vw, 80px) 0 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

@media (max-width: 900px) {
	.ts-obs__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 560px) {
	.ts-obs__media,
	.ts-obs__media-frame {
		border-radius: 20px;
	}

	.ts-obs__cta {
		width: 100%;
		justify-content: flex-start;
	}
}

/* ========== Productos (section-page / ACF) ========== */
.ts-prod {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	--ts-gray: #747474;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-prod__heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0 0 clamp(36px, 4.5vw, 56px);
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.25vw, 22px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.ts-prod__heading-icon {
	display: block;
	width: 18px;
	height: auto;
	flex: 0 0 auto;
}

.ts-prod__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
	max-width: 960px;
	margin: 0 auto clamp(36px, 4.5vw, 56px);
	padding: 0;
	list-style: none;
	justify-items: center;
}

.ts-prod__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
	min-width: 0;
	width: 100%;
	max-width: 260px;
}

.ts-prod__frame {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 3 / 4;
	border: 1.5px solid var(--ts-red);
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}

.ts-prod__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.ts-prod__title {
	margin: clamp(18px, 2.2vw, 26px) 0 0.55em;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.05vw, 20px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-prod__desc {
	margin: 0 0 clamp(18px, 2.2vw, 26px);
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 0.9vw, 16px);
	font-weight: 500;
	line-height: 1.5;
	max-width: 34em;
}

.ts-prod__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding: 8px 22px 8px 10px;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	box-sizing: border-box;
}

.ts-prod__cta-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ts-red);
}

.ts-prod__cta-btn svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
}

.ts-prod__cta-btn svg path {
	fill: none !important;
	stroke: #fff;
}

.ts-prod__cta-label {
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-prod__dots {
	width: min(320px, 48vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0 auto;
	padding: 0;
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
	display: block;
	line-height: 0;
	font-size: 0;
}

.ts-prod__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	width: 100%;
}

.ts-prod__footer .ts-prod__dots {
	margin: 0;
}

.ts-prod__footer .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
	flex: 0 0 auto;
}

@media (max-width: 900px) {
	.ts-prod__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ts-prod__grid {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.ts-prod__frame {
		border-radius: 22px;
	}

	.ts-prod__dots {
		width: min(220px, 58vw);
	}
}

/* ========== Turismo Sostenible (section-page / ACF) ========== */
.ts-tur {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	--ts-gray: #747474;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-tur__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(48px, 6vw, 72px);
	box-sizing: border-box;
}

.ts-tur__pill {
	margin: 0;
	padding: 0.5em 1.75em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.45vw, 24px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-tur__row {
	display: grid;
	gap: clamp(24px, 3vw, 40px);
	max-width: 1120px;
	margin: 0 auto clamp(36px, 4.5vw, 56px);
	align-items: start;
}

.ts-tur__row--top {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ts-tur__row--bottom {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.ts-tur__card--estrategias {
	width: 100%;
	max-width: 100%;
	justify-self: stretch;
}

.ts-tur__block-title,
.ts-tur__acceso-title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 1rem;
	color: var(--ts-gray);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.25vw, 24px);
	font-weight: 700;
	line-height: 1.25;
}

.ts-tur__icon {
	display: block;
	width: 26px;
	height: auto;
	flex: 0 0 auto;
	margin-top: 3px;
}

.ts-tur__text,
.ts-tur__text p {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-tur__text p + p {
	margin-top: 0.85em;
}

.ts-tur__quien {
	min-width: 0;
}

.ts-tur__rule {
	display: block;
	width: 100%;
	height: 0;
	margin-top: clamp(22px, 2.8vw, 32px);
	border: 0;
	border-top: 2px solid var(--ts-red);
}

.ts-tur__card {
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(22px, 2.8vw, 32px);
	background: #fff;
	box-sizing: border-box;
}

.ts-tur__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.ts-tur__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.ts-tur__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.ts-tur__item-text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-tur__accesos-wrap {
	position: relative;
	z-index: 1;
	justify-self: end;
	margin-top: clamp(56px, 6vw, 88px);
	padding-bottom: clamp(36px, 4vw, 56px);
}

.ts-tur__accesos {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, max-content);
	justify-content: start;
	column-gap: 8px;
	row-gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: start;
}

.ts-tur__acceso {
	--ts-tur-icon: 24px;
	--ts-tur-icon-gap: 10px;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: max-content;
	max-width: 280px;
	min-width: 0;
}

.ts-tur__acceso-title {
	display: flex;
	align-items: flex-start;
	gap: var(--ts-tur-icon-gap);
	margin: 0 0 14px;
	padding: 0;
	min-height: calc(2 * 1.15em);
	width: 100%;
	color: #adadad;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 1.6vw, 26px);
	font-weight: 700;
	line-height: 1.15;
	max-width: none;
}

.ts-tur__acceso-title span {
	display: block;
	max-width: none;
	overflow-wrap: normal;
	word-break: normal;
}

.ts-tur__acceso-title br {
	display: block;
	margin-top: 0.2em;
	content: "";
	line-height: 0;
}

.ts-tur__acceso-title .ts-tur__icon {
	width: var(--ts-tur-icon);
	margin-top: 2px;
	flex: 0 0 auto;
}

.ts-tur__acceso-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 148px;
	height: 148px;
	max-width: 148px;
	margin-left: calc(var(--ts-tur-icon) + var(--ts-tur-icon-gap));
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	background: var(--ts-red);
	text-decoration: none;
	box-sizing: border-box;
	overflow: hidden;
	flex: 0 0 auto;
	transform-origin: center center;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ts-tur__acceso-card:hover,
.ts-tur__acceso-card:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 16px 34px rgba(238, 29, 35, 0.32);
	z-index: 2;
	color: #fff;
	text-decoration: none;
}

.ts-tur__acceso-arrow {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1.5px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
}

.ts-tur__acceso-icon {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.ts-tur__acceso-cta {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
}

/* Mismo decorado semicírculo que doctorado / productos / observatorio */
.ts-tur__dots {
	width: min(320px, 48vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0 0 0 auto;
	padding: 0;
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
	display: block;
	line-height: 0;
	font-size: 0;
	position: relative;
	z-index: 0;
}

.ts-tur:not(:has(.ts-tur__accesos-wrap)) .ts-tur__dots,
.ts-tur:not(:has(.ts-tur__accesos-wrap)) .ts-tur__footer .ts-tur__dots {
	margin-left: auto;
	margin-right: auto;
}

/* Sube el decorado detrás de las tarjetas rojas (mockup) */
.ts-tur:has(.ts-tur__accesos-wrap) > .ts-tur__dots,
.ts-tur:has(.ts-tur__accesos-wrap) > .ts-tur__footer {
	margin-top: -clamp(48px, 6vw, 88px);
}

.ts-tur__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	width: 100%;
}

.ts-tur__footer .ts-tur__dots {
	margin: 0 0 0 auto;
}

.ts-tur__footer .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
	flex: 0 0 auto;
}

@media (max-width: 900px) {
	.ts-tur__row--top,
	.ts-tur__row--bottom {
		grid-template-columns: 1fr;
		column-gap: 32px;
		justify-content: start;
	}

	.ts-tur__accesos-wrap {
		justify-self: start;
	}

	.ts-tur__accesos {
		grid-template-columns: repeat(2, max-content);
		column-gap: 8px;
	}

	.ts-tur__acceso {
		width: max-content;
		max-width: 200px;
	}

	.ts-tur__acceso-title {
		font-size: 20px;
	}

	.ts-tur__acceso-card {
		width: 132px;
		max-width: 132px;
	}

	.ts-tur__acceso-card {
		height: 132px;
	}

	.ts-tur__acceso-icon {
		width: 64px;
		height: 64px;
	}

	.ts-tur__dots {
		margin-left: auto;
		margin-right: auto;
	}

	.ts-tur__footer .ts-tur__dots {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 560px) {
	.ts-tur__card {
		border-radius: 20px;
	}

	.ts-tur__accesos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: 300px;
	}

	.ts-tur__acceso,
	.ts-tur__acceso-card {
		width: 100%;
		max-width: none;
	}

	.ts-tur__acceso-card {
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.ts-tur__dots {
		width: min(220px, 58vw);
	}
}

/* ========== Fomento y Promoción (section-page / ACF) ========== */
.ts-fom {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) 0 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-fom__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(36px, 4.5vw, 52px);
	padding: 0 var(--ts-wrap);
	box-sizing: border-box;
}

.ts-fom__pill {
	margin: 0;
	padding: 0.55em 2.1em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.55vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-fom__text,
.ts-fom__text p {
	width: min(860px, calc(100% - 48px));
	margin: 0 auto;
	color: #777777 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(15px, 0.94vw, 18px) !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
	letter-spacing: normal;
	text-align: center;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: break-word;
}

.ts-fom__text p + p {
	margin-top: 0.85em;
}

.ts-fom__divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: clamp(72px, 9vw, 120px) 0 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

/* ========== Línea del tiempo (section-page / ACF) ========== */
.ts-tl {
	--ts-red: #f20a14;
	margin: 0;
	padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
}

.ts-tl__heading {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 10px;
	padding: 0 24px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(20px, 1.7vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.ts-tl__icon {
	width: 26px;
	height: auto;
	margin-top: 4px;
	flex: 0 0 auto;
}

.ts-tl__rule {
	display: block;
	width: min(460px, 72%);
	height: 2px;
	margin: 0 auto clamp(22px, 3vw, 36px);
	background: var(--ts-red);
}

.ts-tl__scroll {
	overflow-x: auto;
	padding: 0 8px 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	user-select: none;
}

.ts-tl__scroll::-webkit-scrollbar {
	display: none;
	height: 0;
}

.ts-tl__scroll.is-dragging {
	cursor: grabbing;
}

.ts-tl__board {
	--tl-col: 156px;
	min-width: calc(var(--tl-n) * var(--tl-col));
	width: 100%;
}

.ts-tl__groups,
.ts-tl__row,
.ts-tl__years {
	display: grid;
	grid-template-columns: repeat(var(--tl-n), minmax(var(--tl-col), 1fr));
}

.ts-tl__groups {
	align-items: end;
	min-height: 52px;
	margin-bottom: 8px;
}

.ts-tl__group {
	position: relative;
	margin: 0 10%;
	padding: 0 8px 8px;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.4vw, 24px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	border-bottom: 2px solid var(--ts-red);
}

.ts-tl__group::before,
.ts-tl__group::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 2px;
	height: 12px;
	background: var(--ts-red);
}

.ts-tl__group::before {
	left: 0;
}

.ts-tl__group::after {
	right: 0;
}

.ts-tl__row--top {
	align-items: stretch;
	min-height: 180px;
}

.ts-tl__row--bottom {
	align-items: start;
	min-height: 72px;
}

.ts-tl__cell {
	min-width: 0;
	padding: 0 6px;
	box-sizing: border-box;
}

.ts-tl__cell--up,
.ts-tl__cell--down {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ts-tl__cell--up {
	justify-content: flex-end;
	height: 100%;
}

.ts-tl__cell--down {
	justify-content: flex-start;
}

.ts-tl__label {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.95vw, 17px);
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.ts-tl__label--hito strong {
	display: block;
	margin-bottom: 4px;
	color: #747474;
	font-size: clamp(15px, 1vw, 18px);
	font-weight: 700;
}

.ts-tl__stem {
	display: block;
	width: 2px;
	flex: 1 1 22px;
	min-height: 16px;
	background: var(--ts-red);
}

.ts-tl__cell--down .ts-tl__stem {
	flex: 0 0 22px;
}

.ts-tl__band {
	position: relative;
	height: clamp(200px, 22vw, 280px);
	margin-top: 0;
	background: #ee1d23;
	overflow: hidden;
}

.ts-tl__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ts-tl__band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(238, 29, 35, 0.55);
	mix-blend-mode: multiply;
	pointer-events: none;
}

.ts-tl__years {
	position: relative;
	z-index: 1;
	height: 100%;
}

.ts-tl__year {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 12px;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 1.8vw, 34px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-shadow: 0 1px 8px rgba(90, 0, 0, 0.35);
}

.ts-tl__year--down {
	align-items: flex-end;
	padding-top: 0;
	padding-bottom: 14px;
}

.ts-tl__year::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(255, 255, 255, 0.9);
	transform: translateX(-50%);
	z-index: -1;
}

.ts-tl__cell--rail {
	position: relative;
	align-self: stretch;
}

.ts-tl__cell--rail::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	height: calc(100% + 22px);
	background: var(--ts-red);
	transform: translateX(-50%);
	z-index: 2;
}

.ts-tl__cierre-row {
	display: grid;
	grid-template-columns: repeat(var(--tl-n), minmax(var(--tl-col), 1fr));
	margin-top: 22px;
}

.ts-tl__cierre {
	position: relative;
	margin: 0;
	padding: 16px 8px 0;
	min-width: 0;
}

.ts-tl__cierre-bar {
	position: absolute;
	top: 0;
	left: 8%;
	right: 25%;
	height: 2px;
	background: var(--ts-red);
}

.ts-tl__cierre-bar::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2px;
	height: 16px;
	background: var(--ts-red);
}

.ts-tl__cierre-title {
	margin: 0;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(20px, 1.6vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	padding-left: 8%;
	padding-right: 25%;
}

.ts-tl__divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: clamp(28px, 4vw, 40px) 0 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

/* ========== Territorio Sostenible / Lab Vivo (section-page / ACF) ========== */
.ts-lab {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) 0;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-lab__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 4.6vw, 72px);
	align-items: start;
}

.ts-lab__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(18px, 2.2vw, 28px);
	align-items: start;
	margin-top: clamp(18px, 2.2vw, 28px);
}

/* Idea a ancho de columna izquierda en desktop (como el mockup). */
.ts-lab__foot .ts-lab__idea {
	grid-column: 1;
	max-width: 100%;
}

.ts-lab__side {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 2.2vw, 28px);
	min-width: 0;
}

.ts-lab__card {
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(22px, 2.6vw, 32px);
	background: #fff;
	box-sizing: border-box;
}

.ts-lab__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0.85em;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(20px, 1.45vw, 26px);
	font-weight: 700;
	line-height: 1.25;
}

.ts-lab__title--dot::before {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border: 1.5px solid #c5c5c5;
	border-radius: 50%;
	box-sizing: border-box;
}

.ts-lab__icon {
	display: block;
	width: 22px;
	height: auto;
	flex: 0 0 auto;
}

.ts-lab__subtitle {
	margin: 1.15em 0 0.35em;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.05vw, 18px);
	font-weight: 700;
	line-height: 1.35;
}

.ts-lab__text,
.ts-lab__text p,
.ts-lab__vivo-lead {
	margin: 0 0 0.75em;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-lab__text p:last-child,
.ts-lab__vivo-lead {
	margin-bottom: 0;
}

.ts-lab__list {
	margin: 0.35em 0 0.85em;
	padding: 0;
	list-style: none;
}

.ts-lab__list li {
	position: relative;
	margin: 0.28em 0;
	padding-left: 16px;
	color: #777777;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-lab__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ts-red);
}

.ts-lab__nums {
	margin: 1em 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.ts-lab__nums li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.ts-lab__nums p {
	margin: 0;
	color: #777777;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-lab__nums strong {
	color: #6e6e6e;
	font-weight: 700;
}

.ts-lab__linea-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.ts-lab__linea-link:hover,
.ts-lab__linea-link:focus-visible {
	color: var(--ts-red);
}

.ts-lab__linea-link strong {
	color: inherit;
}

.ts-lab__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	color: var(--ts-red);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.ts-lab__sellos-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 1.35em;
	flex-wrap: wrap;
}

.ts-lab__sellos-row .ts-lab__btn {
	margin-left: auto;
}

.ts-lab__sellos {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-lab__sellos li {
	margin: 0;
}

.ts-lab__sellos img {
	display: block;
	height: 120px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.ts-lab__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 5px 6px 5px 16px;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	background: #fff;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(13px, 0.85vw, 15px);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.ts-lab__btn:hover,
.ts-lab__btn:focus-visible {
	color: #777777;
	text-decoration: none;
}

.ts-lab__btn-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ts-red);
	flex: 0 0 auto;
}

.ts-lab__btn-ico svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
}

.ts-lab__btn-ico svg path {
	fill: none !important;
	stroke: #fff;
}

.ts-lab__vivo {
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 36px) clamp(24px, 2.8vw, 36px);
	background: #fff;
	box-sizing: border-box;
}

.ts-lab__vivo-lead {
	max-width: 22em;
	margin-left: 32px;
	color: #8a8a8a;
}

.ts-lab__vivo-body {
	display: grid;
	grid-template-columns: minmax(220px, 320px) minmax(190px, 230px);
	justify-content: start;
	column-gap: clamp(16px, 2vw, 28px);
	align-items: center;
	margin-top: clamp(8px, 1.2vw, 16px);
}

.ts-lab__vivo-visual {
	position: relative;
	width: min(100%, 320px);
	aspect-ratio: 323 / 332;
	overflow: visible;
}

.ts-lab__hoja {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	user-select: none;
}

.ts-lab__vivo-card {
	position: absolute;
	z-index: 1;
	left: 18.58%;
	top: 11.45%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 50.15%;
	height: 48.8%;
	padding: 8% 6% 7%;
	border-radius: 14%;
	background: var(--ts-red);
	color: #fff;
	text-decoration: none;
	box-sizing: border-box;
	transform-origin: center center;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

a.ts-lab__vivo-card:hover,
a.ts-lab__vivo-card:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 16px 34px rgba(238, 29, 35, 0.32);
	color: #fff;
	text-decoration: none;
	z-index: 2;
}

.ts-lab__vivo-arrow {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
}

.ts-lab__vivo-icon {
	display: block;
	width: 62%;
	height: auto;
	margin: 6% auto 4%;
	object-fit: contain;
}

.ts-lab__vivo-label {
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 1.35vw, 22px);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	text-align: center;
}

.ts-lab__vivo-copy .ts-lab__text,
.ts-lab__vivo-copy .ts-lab__text p {
	color: #8a8a8a;
	font-size: clamp(15px, 0.95vw, 17px);
	font-weight: 500;
	line-height: 1.45;
}

.ts-lab__vivo-copy .ts-lab__btn {
	margin-top: 16px;
}

.ts-lab__banner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 32px);
	background: #fff;
	box-sizing: border-box;
}

.ts-lab__banner-title,
.ts-lab__idea-title {
	margin: 0;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	line-height: 1.3;
}

.ts-lab__banner-title {
	font-size: clamp(18px, 1.25vw, 22px);
	white-space: nowrap;
}

.ts-lab__banner .ts-lab__btn {
	align-self: flex-end;
}

.ts-lab__idea {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.ts-lab__idea-title {
	margin-bottom: 0.75em;
	font-size: clamp(20px, 1.4vw, 26px);
}

.ts-lab__idea .ts-lab__btn {
	align-self: flex-end;
	margin-top: 1.1em;
}

.ts-lab__dots {
	width: min(340px, 46vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0 0 0 auto;
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/* Decoración encima del divisor (mismo patrón que Doctorado/Productos). */
.ts-lab__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-top: clamp(12px, 1.8vw, 24px);
	padding: 0;
}

.ts-lab__footer .ts-lab__dots {
	margin: 0;
}

.ts-lab__footer .ts-divider,
.ts-lab > .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

/* Última sección: puntos al final sin divisor. */
.ts-lab__dots--end {
	display: block;
	margin: clamp(18px, 2.5vw, 32px) 0 0 auto;
	padding-bottom: clamp(24px, 3vw, 40px);
}

@media (max-width: 980px) {
	.ts-lab__grid,
	.ts-lab__foot,
	.ts-lab__vivo-body {
		grid-template-columns: 1fr;
	}

	.ts-lab__foot .ts-lab__idea {
		grid-column: auto;
	}

	.ts-lab__vivo-body {
		justify-items: center;
	}

	.ts-lab__vivo-copy {
		width: 100%;
		max-width: 420px;
	}

	.ts-lab__vivo-lead {
		margin-left: 0;
		max-width: none;
	}

	.ts-lab__banner-title {
		white-space: normal;
		font-size: clamp(16px, 4.2vw, 20px);
	}

	.ts-lab__banner .ts-lab__btn,
	.ts-lab__idea .ts-lab__btn {
		align-self: stretch;
		justify-content: center;
	}

	.ts-lab__sellos img {
		height: 88px;
		max-width: 120px;
	}

	.ts-lab__sellos-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.ts-lab__sellos-row .ts-lab__btn {
		margin-left: 0;
	}

	.ts-lab__btn {
		white-space: normal;
		max-width: 100%;
	}

	.ts-lab__dots,
	.ts-lab__footer .ts-lab__dots {
		width: min(280px, 70vw);
		margin-left: 0;
		margin-right: auto;
	}

	.ts-lab__footer {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.ts-lab__vivo,
	.ts-lab__card,
	.ts-lab__banner,
	.ts-lab__idea {
		border-radius: 20px;
		padding: 18px 16px;
	}

	.ts-lab__vivo-visual {
		width: min(100%, 280px);
	}
}

/* ========== GreenMetric (section-page / ACF) ========== */
.ts-gm {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) clamp(36px, 4vw, 56px);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-gm__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(28px, 3.5vw, 44px);
}

.ts-gm__pill {
	margin: 0;
	padding: 0.55em 2.1em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.55vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-gm__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	align-items: start;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ts-gm__card {
	display: flex;
	flex-direction: column;
	border: 1px solid #d8d8d8;
	border-radius: 28px;
	padding: clamp(20px, 2.2vw, 28px);
	background: #fff;
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	height: auto;
	align-self: start;
}

.ts-gm__card-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 0.85em;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.1vw, 20px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-gm__icon {
	display: block;
	width: 22px;
	height: auto;
	flex: 0 0 auto;
	margin-top: 0.15em;
}

.ts-gm__text,
.ts-gm__text p {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
}

.ts-gm__text p + p {
	margin-top: 0.85em;
}

.ts-gm__list {
	margin: 0.85em 0 0;
	padding: 0;
	list-style: none;
}

.ts-gm__list li {
	position: relative;
	margin: 0 0 0.45em;
	padding-left: 1.1em;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.45;
}

.ts-gm__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ts-red);
}

.ts-gm__resultados {
	margin-top: clamp(18px, 2vw, 26px);
}

.ts-gm__resultados-title {
	margin: 0 0 0.75em;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.05vw, 18px);
	font-weight: 700;
	line-height: 1.3;
}

.ts-gm__resultados-imgs {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 24px);
}

.ts-gm__resultado {
	margin: 0;
}

.ts-gm__resultado-title {
	display: block;
	margin: 0 0 0.65em;
	padding: 0 0 0.4em;
	border-bottom: 1px solid #d0d0d0;
	color: #8a8a8a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(12px, 0.85vw, 14px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ts-gm__resultado img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.ts-gm__foot {
	display: flex;
	justify-content: flex-start;
	margin-top: clamp(18px, 2.5vw, 32px);
}

.ts-gm__dots {
	width: min(340px, 46vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0;
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.ts-gm > .ts-divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

@media (max-width: 1100px) {
	.ts-gm__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ts-gm__card--resultados {
		grid-column: 1 / -1;
	}
}

@media (max-width: 980px) {
	.ts-gm__grid {
		grid-template-columns: 1fr;
	}

	.ts-gm__card--resultados {
		grid-column: auto;
	}

	.ts-gm__pill {
		font-size: clamp(16px, 4.5vw, 22px);
		padding: 0.5em 1.4em;
	}

	.ts-gm__dots {
		width: min(280px, 70vw);
	}
}

@media (max-width: 560px) {
	.ts-gm__card {
		border-radius: 20px;
		padding: 18px 16px;
	}

	.ts-gm__resultado-title {
		font-size: 12px;
	}
}

/* ========== Documentos (acordeones / section-page) ========== */
.ts-docs {
	--ts-wrap: clamp(24px, 4.2vw, 72px);
	--ts-red: #ee1d23;
	--ts-docs-bottom: clamp(48px, 6vw, 88px);
	position: relative;
	margin: 0;
	padding: clamp(36px, 5vw, 64px) var(--ts-wrap) var(--ts-docs-bottom);
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #777777;
	box-sizing: border-box;
	overflow: hidden;
}

.ts-docs__pill-wrap {
	display: flex;
	justify-content: center;
	margin: 0 0 clamp(28px, 3.5vw, 44px);
}

.ts-docs__pill {
	margin: 0;
	padding: 0.55em 2.1em;
	border: 1.5px solid var(--ts-red);
	border-radius: 999px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.55vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: #fff;
}

.ts-docs__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.8vw, 40px);
	align-items: start;
}

.ts-docs__col {
	display: flex;
	flex-direction: column;
	gap: clamp(22px, 2.4vw, 34px);
	min-width: 0;
}

.ts-docs__group {
	margin: 0;
}

.ts-docs__group-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 0.85em;
	color: #777777;
	font-family: "DM Sans", Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.2vw, 21px);
	font-weight: 700;
	line-height: 1.25;
}

.ts-docs__group-icon {
	display: block;
	width: 22px;
	height: auto;
	flex: 0 0 auto;
	margin-top: 0.15em;
}

.ts-docs__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ts-docs__item {
	margin: 0;
}

.ts-docs__item.is-open {
	border: 1px solid #cfcfcf;
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
}

.ts-docs__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 10px 16px 10px 18px;
	border: 1px solid #cccccc;
	border-radius: 999px;
	background: #fff;
	color: #777777;
	font-family: "DM Sans", Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.15vw, 18px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
}

.ts-docs__trigger:hover,
.ts-docs__trigger:focus,
.ts-docs__trigger:focus-visible,
.ts-docs__trigger:active {
	border-color: #c4c4c4;
	outline: none;
	color: #777777;
	background: #fff;
}

.ts-docs__item.is-open .ts-docs__trigger {
	border: 0;
	border-radius: 0;
	padding: 12px 16px 6px 18px;
	background: transparent;
	font-weight: 700;
	color: #777777;
}

.ts-docs__item.is-open .ts-docs__trigger:hover,
.ts-docs__item.is-open .ts-docs__trigger:focus-visible {
	border-color: transparent;
	color: #777777;
}

.ts-docs__trigger--static {
	cursor: default;
	color: #777777;
}

.ts-docs__trigger-label {
	flex: 1 1 auto;
	min-width: 0;
	color: #777777 !important;
	font-family: "DM Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(16px, 1.15vw, 18px) !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
}

/* Mockup IEPS (PDF): DM Sans Bold #777 — tamaño subido para legibilidad en web */
main.section-page.section-page--territorio-sostenible .ts-docs__group-title,
main.home.home--territorio-sostenible .ts-docs__group-title {
	font-family: "DM Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 700 !important;
	color: #777777 !important;
}

main.section-page.section-page--territorio-sostenible .ts-docs__trigger,
main.section-page.section-page--territorio-sostenible .ts-docs__trigger-label,
main.section-page.section-page--territorio-sostenible .ts-docs__trigger--static,
main.home.home--territorio-sostenible .ts-docs__trigger,
main.home.home--territorio-sostenible .ts-docs__trigger-label,
main.home.home--territorio-sostenible .ts-docs__trigger--static {
	font-family: "DM Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(16px, 1.15vw, 18px) !important;
	color: #777777 !important;
}

.ts-docs__trigger-icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.ts-docs__trigger-icon::before,
.ts-docs__trigger-icon::after {
	content: "";
	position: absolute;
	background: var(--ts-red);
	border-radius: 1px;
}

.ts-docs__trigger-icon::before {
	left: 1px;
	top: 6px;
	width: 12px;
	height: 2px;
}

.ts-docs__trigger-icon::after {
	left: 6px;
	top: 1px;
	width: 2px;
	height: 12px;
}

.ts-docs__item.is-open .ts-docs__trigger-icon::before {
	transform: rotate(45deg);
}

.ts-docs__item.is-open .ts-docs__trigger-icon::after {
	transform: rotate(45deg);
}

.ts-docs__panel {
	margin: 0;
	padding: 0 20px 14px;
	border: 0;
	background: transparent;
	box-sizing: border-box;
}

.ts-docs__panel[hidden] {
	display: none;
}

.ts-docs__panel-text,
.ts-docs__panel-text p {
	margin: 0;
	color: #777777;
	font-family: "DM Sans", Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 400;
	line-height: 1.55;
}

main.section-page.section-page--territorio-sostenible .ts-docs__panel-text,
main.section-page.section-page--territorio-sostenible .ts-docs__panel-text p,
main.home.home--territorio-sostenible .ts-docs__panel-text,
main.home.home--territorio-sostenible .ts-docs__panel-text p {
	font-family: "DM Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 400 !important;
	font-size: clamp(15px, 0.94vw, 18px) !important;
	line-height: 1.55 !important;
	color: #777777 !important;
}

.ts-docs__panel-text p + p {
	margin-top: 0.55em;
}

.ts-docs__panel-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.ts-docs__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px 8px 10px;
	border-radius: 999px;
	background: var(--ts-red);
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 0.95vw, 17px);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(238, 29, 35, 0.22);
}

.ts-docs__cta:hover,
.ts-docs__cta:focus,
.ts-docs__cta:focus-visible,
.ts-docs__cta:active,
.ts-docs__cta:visited {
	color: #fff !important;
	background: var(--ts-red);
	text-decoration: none !important;
}

.ts-docs__cta-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	position: relative;
	flex-shrink: 0;
}

.ts-docs__cta-icon::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 8px;
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--ts-red);
	border-right: 2px solid var(--ts-red);
	transform: rotate(45deg);
}

.ts-docs__foot {
	display: flex;
	justify-content: flex-start;
	margin-top: clamp(18px, 2.5vw, 32px);
}

.ts-docs__dots {
	width: min(340px, 46vw);
	aspect-ratio: 458 / 202;
	height: auto;
	margin: 0 0 calc(var(--ts-docs-bottom) * -1);
	background: url("../images/territorio-sostenible/icons/doctorado-dots.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.ts-docs > .ts-divider,
.ts-docs__divider {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	border: 0;
	border-top: 1px solid #d0d0d0;
}

@media (max-width: 1100px) {
	.ts-docs__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* En tablet: columna 3 debajo a ancho completo para no mezclar el orden del diseño */
	.ts-docs__col--3 {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.ts-docs__columns {
		grid-template-columns: 1fr;
	}

	.ts-docs__col--3 {
		grid-column: auto;
	}

	.ts-docs__pill {
		font-size: clamp(16px, 4.5vw, 22px);
		padding: 0.5em 1.4em;
	}

	.ts-docs__group-title {
		font-size: clamp(16px, 4.2vw, 18px);
	}

	.ts-docs__trigger,
	.ts-docs__trigger-label {
		font-size: 16px !important;
	}

	.ts-docs__cta {
		width: 100%;
		justify-content: center;
	}

	.ts-docs__dots {
		width: min(280px, 70vw);
	}
}

.section-page__content {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(24px, 4.2vw, 72px) clamp(48px, 6vw, 80px);
	box-sizing: border-box;
	color: #747474;
	font-size: 18px;
	line-height: 1.6;
}

.section-page__content > *:first-child {
	margin-top: 0;
}

.ts-hero__bar {
	position: relative;
	background: #fff;
	border-bottom: none;
	line-height: normal;
	font-size: 16px;
}

.ts-hero__bar-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(20px, 2.4vw, 36px);
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(36px, 4.5vw, 56px) var(--ts-wrap);
	padding-right: calc(var(--ts-wrap) + 64px);
	box-sizing: border-box;
}

/* Texto intro, columna izquierda */
.ts-hero__intro {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 0 0 auto;
	width: min(420px, 34%);
	min-width: 220px;
	max-width: 420px;
}

.ts-hero__intro-icon {
	flex: 0 0 auto;
	display: block;
	width: 22px;
	height: auto;
	margin-top: 3px;
}

.ts-hero__intro-text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
	text-align: left !important;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: break-word;
}

/* 5 iconos de capacidades */
.ts-hero__capabilities {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 1 auto;
	gap: clamp(18px, 2.2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.ts-hero__capability {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
	line-height: 0;
}

.ts-hero__capability-icon {
	display: block;
	width: clamp(56px, 5.2vw, 78px);
	height: clamp(56px, 5.2vw, 78px);
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
}

/* 6 puntos pequeños — grilla 3×2, esquina superior derecha */
.ts-hero__points {
	position: absolute;
	top: clamp(18px, 2.2vw, 28px);
	right: var(--ts-wrap);
	display: grid;
	grid-template-columns: repeat(3, var(--ts-point));
	grid-template-rows: repeat(2, var(--ts-point));
	gap: var(--ts-point-gap);
	pointer-events: none;
}

.ts-hero__points span {
	display: block;
	width: var(--ts-point);
	height: var(--ts-point);
	box-sizing: border-box;
	border: 1.5px solid var(--ts-red);
	border-radius: 50%;
	background: transparent;
}

.ts-hero .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1100px) {
	.ts-hero__bar-inner {
		gap: 22px;
	}

	.ts-hero__intro {
		flex-basis: 36%;
		max-width: 360px;
	}

	.ts-hero__capabilities {
		gap: 14px;
	}
}

@media (max-width: 900px) {
	.ts-hero__media {
		aspect-ratio: 16 / 9;
		max-height: 480px;
	}

	/* Móvil/tablet: solo imagen, sin YouTube */
	.ts-hero__video-wrap,
	.ts-hero__controls {
		display: none !important;
	}

	.ts-hero__media--video .ts-hero__image {
		z-index: 1;
	}

	.ts-hero__bar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		padding-top: clamp(44px, 6vw, 56px);
		padding-right: var(--ts-wrap);
	}

	.ts-hero__intro {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
		min-width: 0;
	}

	.ts-hero__capabilities {
		justify-content: flex-start;
		gap: 12px;
		flex-wrap: wrap;
	}

	.ts-hero__points {
		top: 14px;
		right: var(--ts-wrap);
	}
}

@media (max-width: 560px) {
	.ts-hero {
		--ts-point: 14px;
		--ts-point-gap: 6px;
	}

	.ts-hero__media {
		min-height: 220px;
		max-height: 380px;
	}

	.ts-hero__intro-icon {
		width: 18px;
	}

	.ts-hero__intro-text {
		font-size: 15px;
		line-height: 1.45;
		text-align: left !important;
	}

	.ts-hero__capability-icon {
		width: 44px;
		height: 44px;
	}
}

/* ========== Shared ========== */
.ts-divider {
	display: block;
	width: 100%;
	max-width: none;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid #d0d0d0;
}

.ts-fom > .ts-divider {
	margin-top: clamp(48px, 5.5vw, 72px);
}

/* Pill Noticias — sin rayas laterales, compacto */
.ts-pill-line {
	position: relative;
	margin: 0;
	padding: clamp(28px, 3.5vw, 44px) 16px;
	text-align: center;
}

.ts-pill-line__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 8px 28px;
	border: 1.5px solid #ee1d23;
	border-radius: 999px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 1.05vw, 18px);
	font-weight: 700;
	text-decoration: none;
	background: #fff;
	line-height: 1.2;
	box-shadow: none;
}

.uao-ts-home {
	font-family: Arial, Helvetica, sans-serif;
	color: #747474;
	background: #fff;
}

/* ========== Noticias ========== */
.ts-noticias {
	padding: 0 0 clamp(40px, 5vw, 72px);
	background: #fff;
}

.ts-noticias__carousel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 1.5vw, 20px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(12px, 2vw, 28px);
}

.ts-noticias__stage {
	position: relative;
	flex: 1 1 auto;
	max-width: 980px;
	aspect-ratio: 16 / 9;
	border-radius: 48px;
	overflow: hidden;
	background: #1a1a1a;
}

.ts-noticias__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	text-decoration: none;
	text-align: left;
}

.ts-noticias__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ts-noticias__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-noticias__slide::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	pointer-events: none;
}

.ts-noticias__caption {
	position: absolute;
	left: clamp(18px, 3vw, 36px);
	bottom: clamp(16px, 2.5vw, 28px);
	z-index: 2;
	display: block;
	box-sizing: border-box;
	color: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 2.2vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	max-width: 72%;
	margin: 0;
	text-align: left;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.ts-noticias__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 64px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ee1d23;
	cursor: pointer;
}

.ts-noticias__arrow svg {
	display: block;
	width: 22px;
	height: 48px;
}

.ts-noticias__arrow:hover {
	opacity: 0.75;
}

.ts-noticias__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.ts-noticias__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d0d0d0;
	cursor: pointer;
}

.ts-noticias__dot.is-active {
	background: #ee1d23;
}

/* ========== Servicio / viaje / por qué ========== */
.ts-servicio {
	padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
	background: #fff;
}

.ts-servicio__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.95fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	width: min(1240px, calc(100% - 48px));
	margin: clamp(28px, 4vw, 48px) auto 0;
}

.ts-servicio__card {
	position: relative;
	border: 1.5px solid #ee1d23;
	border-radius: 36px;
	padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px) clamp(76px, 8vw, 96px);
	background: #fff;
	box-sizing: border-box;
}

.ts-servicio__card-title {
	margin: 0 0 clamp(16px, 2vw, 22px);
	color: #acacac;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.2vw, 22px);
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
}

.ts-servicio__inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(16px, 2vw, 24px);
	align-items: stretch;
	padding: clamp(16px, 2vw, 22px);
	border: 1.5px solid #ee1d23;
	border-radius: 28px;
	background: #fff;
	box-sizing: border-box;
}

.ts-servicio__inner-title {
	margin: 0 0 12px;
	color: #00adaf;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(26px, 2vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	text-align: left;
}

.ts-servicio__inner-text {
	margin: 0;
	color: #777777;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(15px, 0.94vw, 18px);
	font-weight: 500;
	line-height: 1.55;
	text-align: left !important;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: break-word;
}

.ts-servicio__inner-media {
	border-radius: 8px;
	overflow: hidden;
	min-height: 100%;
}

.ts-servicio__inner-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.ts-servicio__cta {
	position: absolute;
	right: clamp(18px, 2vw, 28px);
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 22px 10px 12px;
	border-radius: 999px;
	background: #ee1d23;
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.17vw, 22px);
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(238, 29, 35, 0.28);
	z-index: 2;
}

.ts-servicio__cta:hover,
.ts-servicio__cta:focus,
.ts-servicio__cta:focus-visible,
.ts-servicio__cta:active,
.ts-servicio__cta:visited {
	color: #fff !important;
	background: #ee1d23;
	text-decoration: none !important;
}

.ts-servicio__cta-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	position: relative;
	flex-shrink: 0;
}

.ts-servicio__cta-icon::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 10px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #ee1d23;
	border-right: 2px solid #ee1d23;
	transform: rotate(45deg);
}

.ts-servicio__viaje-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: clamp(12px, 2vw, 20px);
}

.ts-servicio__viaje-icon {
	width: 22px;
	height: auto;
	margin-top: 6px;
	flex: 0 0 auto;
}

.ts-servicio__viaje-title {
	margin: 0;
	color: #acacac;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.2vw, 22px);
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
}

.ts-servicio__viaje-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 24px 0 12px;
}

.ts-servicio__viaje-splash {
	display: block;
	width: min(100%, 460px);
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* Tarjetica roja — card Inicio */
.ts-inicio-card {
	position: absolute;
	left: 6%;
	top: 10%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: clamp(110px, 12vw, 148px);
	height: clamp(110px, 12vw, 148px);
	padding: 14px 14px 12px;
	border-radius: 22px;
	background: #ee1d23;
	color: #fff;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: 0 10px 28px rgba(238, 29, 35, 0.28);
	transform-origin: center center;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ts-inicio-card:hover,
.ts-inicio-card:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 16px 34px rgba(238, 29, 35, 0.36);
	color: #fff;
	text-decoration: none;
	z-index: 3;
}

.ts-inicio-card__arrow {
	align-self: flex-end;
	display: flex;
	line-height: 0;
}

.ts-inicio-card__arrow svg {
	display: block;
}

.ts-inicio-card__waves {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	margin: 2px 0;
	line-height: 0;
}

.ts-inicio-card__waves svg {
	display: block;
	width: clamp(40px, 4.2vw, 52px);
	height: auto;
}

.ts-inicio-card__label {
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 1vw, 17px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
}

/* ========== Video ========== */
.ts-video {
	padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
	background: #fff;
	text-align: center;
}

.ts-video__wrap {
	position: relative;
	width: min(980px, calc(100% - 48px));
	margin: clamp(28px, 4vw, 48px) auto 0;
	isolation: isolate;
}

.ts-video__media {
	position: relative;
	z-index: 2;
	display: block;
	border-radius: 48px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #1a1a1a;
}

.ts-video__trigger {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ts-video__media img,
.ts-video__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-video__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ts-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 78px;
	height: 78px;
	transform: translate(-50%, -50%);
	border: 3px solid #ee1d23;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.85);
	box-sizing: border-box;
	pointer-events: none;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.ts-video__play::after {
	content: "";
	position: absolute;
	left: 29px;
	top: 22px;
	border-style: solid;
	border-width: 16px 0 16px 26px;
	border-color: transparent transparent transparent #ee1d23;
}

.ts-video__trigger:hover .ts-video__play,
.ts-video__trigger:focus-visible .ts-video__play {
	background: #fff;
	transform: translate(-50%, -50%) scale(1.06);
}

.ts-video__media.is-playing .ts-video__play {
	display: none;
}

.ts-video__heading {
	margin: clamp(28px, 3.5vw, 40px) 0 8px;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(16px, 1.1vw, 20px);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-align: center;
}

.ts-video__underline {
	display: block;
	width: min(220px, 36%);
	height: 2px;
	margin: 0 auto;
	background: #ee1d23;
}

/* ========== Equipo (Pattern Lab: uao-card-profile) ========== */
.ts-equipo {
	padding: clamp(36px, 5vw, 64px) 0 0;
	background: #fff;
	margin-bottom: 0;
}

.ts-equipo__header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: clamp(36px, 5vw, 56px) auto clamp(64px, 7vw, 96px);
}

.ts-equipo__icon {
	width: 18px;
	height: auto;
	flex: 0 0 auto;
}

.ts-equipo__title {
	margin: 0;
	color: #747474;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(18px, 1.25vw, 22px);
	font-weight: 700;
	line-height: 1.2;
}

.ts-equipo .uao-cards-profile,
.ts-equipo__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px 56px;
	width: min(1280px, calc(100% - 40px));
	margin: 0 auto 56px;
}

.ts-equipo__row--3 {
	margin-bottom: 32px;
	gap: 48px 72px;
}

.ts-equipo .uao-card-profile {
	text-align: center;
	width: 210px;
	max-width: 100%;
	flex-shrink: 0;
	font-family: Arial, Helvetica, sans-serif;
}

.ts-equipo .uao-card-profile__frame {
	position: relative;
	width: 100%;
	max-width: 190px;
	margin: 0 auto;
	padding: 10px 12px 0;
}

.ts-equipo .uao-card-profile__frame::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 28px;
	left: 0;
	border: 2px solid #ff051e;
	border-bottom: none;
	border-radius: 28px 28px 0 0;
	mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
	pointer-events: none;
	z-index: 2;
}

.ts-equipo .uao-card-profile__photo {
	width: 100%;
	height: 220px;
	overflow: hidden;
	position: relative;
	background: transparent;
}

.ts-equipo .uao-card-profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	mask-image: linear-gradient(to bottom, #000 48%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 100%);
}

.ts-equipo .uao-card-profile__name {
	font-size: 15.5px;
	font-weight: 700;
	color: #777777;
	line-height: 1.25;
	margin: 18px 0 0;
	overflow-wrap: break-word;
}

.ts-equipo .uao-card-profile__meta {
	font-size: 15.5px;
	font-weight: 400;
	color: #777777;
	line-height: 1.25;
	margin: 8px 0 0;
}

.ts-equipo .uao-card-profile__meta span {
	display: block;
}

.ts-equipo__arc {
	display: block;
	width: min(320px, 48vw);
	max-width: 320px;
	height: auto;
	margin: clamp(28px, 3.5vw, 48px) auto 0;
	pointer-events: none;
	user-select: none;
	image-rendering: auto;
}

/* Pegar el arco al footer (sin hueco flotante) */
main.home.home--territorio-sostenible,
main.home.home--territorio-sostenible #uao-ts-home {
	margin-bottom: 0;
	padding-bottom: 0;
}

main.section-page.section-page--territorio-sostenible {
	margin-bottom: 0;
	padding-bottom: 0;
}

main.section-page.section-page--territorio-sostenible .ts-doc {
	margin-bottom: 0;
	padding-bottom: 0;
}

body.home #uao-site-footer,
body.home .uao-site-footer,
.home--territorio-sostenible + #uao-site-footer,
body.home footer,
.section-page--territorio-sostenible + #uao-site-footer,
body:has(main.section-page--territorio-sostenible) #uao-site-footer,
body:has(main.section-page--territorio-sostenible) .uao-site-footer {
	margin-top: 0;
}

@media (max-width: 960px) {
	.ts-servicio__grid,
	.ts-servicio__inner {
		grid-template-columns: 1fr;
	}

	.ts-servicio__cta {
		position: static;
		margin-top: 22px;
		align-self: flex-end;
	}

	.ts-servicio__card {
		padding-bottom: clamp(22px, 2.4vw, 32px);
		display: flex;
		flex-direction: column;
	}

	.ts-inicio-card {
		left: 4%;
		top: 8%;
	}

	.ts-noticias__stage {
		border-radius: 28px;
	}
}

@media (max-width: 640px) {
	.ts-noticias__arrow {
		width: 32px;
	}

	.ts-noticias__arrow svg {
		width: 16px;
		height: 36px;
	}

	.ts-inicio-card {
		width: 104px;
		height: 104px;
		border-radius: 18px;
		padding: 12px;
	}
}
