/*
 * Demo del concejal municipal (TD-22): /demo/concejal/ (.xd--council). Solo se carga en esa página (inc/enqueue.php), sobre
 * demos-nuevas.css (componentes xd-*) y demos-fotos.css. Colores propios: verde petróleo, arena, grafito y un acento ocre. Sin rojo ni
 * azul dominantes, sin colores de partidos ni símbolos. Títulos en Archivo 700 (--demo-font-titulos, inline en enqueue.php).
 *
 * Contraste: texto y botones 4,5:1 o más sobre su fondo; bordes de campos, botones y chips 3:1 o más (--xd-line-strong). El texto del
 * hero va sobre un velo petróleo (escritorio) o debajo de la foto (celular). Puntos de corte: 640, 900 y 1024 px.
 */

.xd--council {
	--xd-bg: #efe7da;
	--xd-surface: #fbf8f2;
	--xd-text: #1d2a2e;
	--xd-muted: #44545a;
	--xd-main: #0f4c5c;
	--xd-main-hover: #0a3a47;
	--xd-on-main: #ffffff;
	--xd-accent: #86560c;
	--xd-accent-soft: #ecd9ae;
	--xd-soft: #e1e9e6;
	--xd-line: #d5cab8;
	--xd-line-strong: #778689;
	--xd-dark: #0a3a47;
	--xd-on-dark: #efe7da;
	--xd-on-dark-accent: #ecc77a;
	--xd-radius: 12px;
	--xd-radius-btn: 8px;
}

.xd--council .xd-h2 {
	font-weight: 700;
}

/* ---------- Portada: foto con velo petróleo ---------- */
.xd--council .cx-hero {
	position: relative;
	background-color: var(--xd-main);
	color: #ffffff;
}

.xd--council .cx-hero__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #5d7f87;
}

.xd--council .cx-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% 30%;
}

.xd--council .cx-hero__inner {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1rem 2.5rem;
}

@media (min-width: 640px) {
	.xd--council .cx-hero__inner {
		padding-right: 1.5rem;
		padding-left: 1.5rem;
	}
}

.xd--council .cx-eyebrow {
	margin-bottom: 0.75rem;
	color: #f0cf86;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.25rem;
	text-transform: uppercase;
}

.xd--council .cx-hero__title {
	margin-bottom: 1rem;
	color: #ffffff;
	font-size: clamp(2.5rem, 10vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.xd--council .cx-hero__text {
	max-width: 30rem;
	margin-bottom: 1.5rem;
	color: #f6f1e8;
	font-size: 1.125rem;
	line-height: 1.55;
}

/* Botones sobre el verde petróleo: el principal pasa a arena y el secundario a contorno claro */
.xd--council .cx-hero .xd-btn--primary > a,
.xd--council .cx-hero a.xd-btn--primary {
	border-color: #efe7da;
	background-color: #efe7da;
	color: #0a3a47;
}

.xd--council .cx-hero .xd-btn--primary > a:hover,
.xd--council .cx-hero a.xd-btn--primary:hover {
	border-color: #ffffff;
	background-color: #ffffff;
}

.xd--council .cx-hero .xd-btn--outline > a,
.xd--council .cx-hero a.xd-btn--outline {
	border-color: #efe7da;
	background-color: transparent;
	color: #ffffff;
}

.xd--council .cx-hero .xd-btn--outline > a:hover,
.xd--council .cx-hero a.xd-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.14);
}

.xd--council .cx-hero :focus-visible {
	outline-color: #ffffff;
}

.xd--council .cx-person {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.xd--council .cx-person__avatar {
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border: 2px solid #efe7da;
	border-radius: 9999px;
	background-color: var(--xd-soft);
}

.xd--council .cx-person__avatar .dm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.xd--council .cx-person__name {
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.xd--council .cx-person__role {
	color: #efe7da;
	font-size: 0.8125rem;
	line-height: 1.25rem;
}

@media (min-width: 900px) {
	.xd--council .cx-hero {
		min-height: 36rem;
		overflow: hidden;
	}

	.xd--council .cx-hero__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
	}

	.xd--council .cx-hero__img {
		object-position: 60% 30%;
	}

	.xd--council .cx-hero::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(8, 44, 56, 0.96) 0%, rgba(8, 44, 56, 0.9) 36%, rgba(8, 44, 56, 0.5) 54%, rgba(8, 44, 56, 0) 74%);
		pointer-events: none;
	}

	.xd--council .cx-hero__inner {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 36rem;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.xd--council .cx-hero__inner > * {
		max-width: 30rem;
	}

	.xd--council .cx-hero__title {
		font-size: clamp(3.25rem, 5vw, 4.25rem);
	}
}

/* ---------- Cifras de gestión ---------- */
.xd--council .cx-stats {
	padding: 2.5rem 0;
	background-color: var(--xd-dark);
	color: var(--xd-on-dark);
}

.xd--council .cx-stats__title {
	margin-bottom: 1.5rem;
	color: #f0cf86;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.25rem;
	text-transform: uppercase;
}

.xd--council .cx-stats__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.xd--council .cx-stats__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.xd--council .cx-stat__value {
	color: #ffffff;
	font-family: var(--demo-font-titulos);
	font-size: 2.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.xd--council .cx-stat__label {
	margin-top: 0.375rem;
	color: var(--xd-on-dark);
	font-size: 1rem;
	line-height: 1.4;
}

.xd--council .cx-stats__note {
	margin-top: 1.5rem;
	color: var(--xd-on-dark);
	font-size: 0.875rem;
	line-height: 1.4;
}

/* ---------- Propuestas: tarjetas con foto ---------- */
.xd--council .xe-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.xd--council .xe-card__photo {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: var(--xd-soft);
}

.xd--council .xe-card__photo .dm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xd--council .xe-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
}

.xd--council .xd-area__name {
	font-size: 1.25rem;
	font-weight: 700;
}

/* ---------- Dos columnas: lista y foto ---------- */
.xd--council .cx-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 900px) {
	.xd--council .cx-split {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 2.5rem;
	}

	.xd--council .cx-split--reverse {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}

	.xd--council .cx-split--reverse .cx-split__photo {
		order: -1;
	}
}

.xd--council .cx-split__photo {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--xd-radius);
	background-color: var(--xd-soft);
}

@media (min-width: 900px) {
	.xd--council .cx-split__photo {
		position: sticky;
		top: 5rem;
		aspect-ratio: 4 / 5;
	}

	.xd--council .cx-split--reverse .cx-split__photo {
		aspect-ratio: 5 / 4;
	}
}

.xd--council .cx-split__photo .dm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* El formulario de "Súmate" ocupa su columna completa */
.xd--council .cx-split > .xd-formcard {
	max-width: none;
	margin: 0;
}

/* ---------- Gestión: proyectos con estado ---------- */
.xd--council .cx-projects {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xd--council .cx-project {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--xd-line);
	border-radius: var(--xd-radius);
	background-color: var(--xd-surface);
}

.xd--council .cx-project[hidden] {
	display: none;
}

.xd--council .cx-project__main {
	flex: 1 1 14rem;
	min-width: 0;
}

.xd--council .cx-project__name {
	color: var(--xd-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.xd--council .cx-project__meta {
	margin-top: 0.125rem;
	color: var(--xd-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.xd--council .cx-state {
	flex: none;
	padding: 0.125rem 0.75rem;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5rem;
}

.xd--council .cx-state--presentado {
	border-color: var(--xd-line-strong);
	background-color: transparent;
	color: var(--xd-text);
}

.xd--council .cx-state--comision {
	background-color: var(--xd-accent-soft);
	color: #5e3b05;
}

.xd--council .cx-state--aprobado {
	background-color: var(--xd-main);
	color: #ffffff;
}

/* ---------- Agenda ---------- */
.xd--council .cx-agenda {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xd--council .cx-act {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--xd-line);
	border-left: 4px solid var(--xd-main);
	border-radius: var(--xd-radius);
	background-color: var(--xd-surface);
}

@media (min-width: 640px) {
	.xd--council .cx-act {
		grid-template-columns: 9.5rem minmax(0, 1fr);
		gap: 1rem;
		align-items: center;
	}
}

.xd--council .cx-act__when {
	color: var(--xd-main);
	font-family: var(--demo-font-titulos);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.xd--council .cx-act__what {
	color: var(--xd-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.xd--council .cx-act__where {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.125rem;
	color: var(--xd-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

/* ---------- Prensa ---------- */
.xd--council .cx-press {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 900px) {
	.xd--council .cx-press {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2rem;
	}
}

.xd--council .cx-press__photos {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) and (max-width: 899.98px) {
	.xd--council .cx-press__photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.xd--council .cx-press__photo {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--xd-radius);
	background-color: var(--xd-soft);
}

.xd--council .cx-press__photo .dm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xd--council .cx-press__photo figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 2rem 1rem 0.75rem;
	background: linear-gradient(0deg, rgba(8, 44, 56, 0.92) 0%, rgba(8, 44, 56, 0.88) 60%, rgba(8, 44, 56, 0) 100%);
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.xd--council .cx-clips {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.xd--council .cx-clip {
	padding: 1rem 1.25rem;
}

.xd--council .cx-clip__media {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--xd-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25rem;
	text-transform: uppercase;
}

.xd--council .cx-clip__media em {
	margin-left: auto;
	color: var(--xd-muted);
	font-style: normal;
	font-weight: 600;
}

.xd--council .cx-clip__title {
	margin-top: 0.25rem;
	color: var(--xd-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.xd--council .cx-kit {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
}

.xd--council .cx-kit__title {
	color: var(--xd-text);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.xd--council .cx-kit__text {
	color: var(--xd-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* ---------- Sobre mí: retrato con un bloque de color corrido 24 px detrás ---------- */
.xd--council .xe-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.xd--council .xe-about {
		grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
		gap: 4rem;
	}
}

.xd--council .xe-about__photo {
	position: relative;
	max-width: 24rem;
	margin: 0 24px 24px 0;
}

.xd--council .xe-about__block {
	position: absolute;
	inset: 24px -24px -24px 24px;
	border-radius: var(--xd-radius);
	background-color: var(--xd-accent-soft);
}

.xd--council .xe-about__photo .dm-img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--xd-radius);
}

.xd--council .xe-about__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---------- Contacto ---------- */
.xd--council .xe-social {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.xd--council .xe-social a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	color: var(--xd-main);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.xd--council .xd-contact__item .xd-ico,
.xd--council .xd-about__facts .xd-ico {
	color: var(--xd-main);
}
