:root {
	--brand-green: #009739; /* Color cajas, botones y menús */
	--brand-green-dark: #005722; /* Color texto sobre fondo verde claro */
	--brand-footer: #00210d; /* Color pie de página */
	--brand-green-light: #e0f4e9a2; /* Fondo verde claro */
}

body {
	font-family:
		'Calibri',
		'Segoe UI',
		system-ui,
		-apple-system,
		sans-serif;
	padding-top: 132px;
	font-size: 18px;
}

section,
header {
	scroll-margin-top: 132px;
}

/* Portada */
.portada {
	min-height: 80vh;
	display: flex;
	align-items: center;
}
.portada-img {
	max-width: 100%;
	border-radius: 0.5rem;
}
section {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

/* Navbar móvil */
.navbar {
	background: #fff;
	padding: 0.75rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	justify-content: center;
}

.navbar-container {
	display: flex;
	flex-wrap: inherit;
	align-items: center;
	justify-content: space-between;
	max-width: 1500px;
	width: 100%;
}

.navbar-brand img {
	border-radius: 4px;
}

.navbar-collapse {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
}

@media (max-width: 1200px) {
	.navbar-collapse {
		border-top: 1px solid #eee;
	}
}

/* Menú links */
.navbar-nav .nav-link {
	color: #028835;
	font-weight: bold;
	font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
	color: var(--brand-green) !important;
}

/* Selector idioma */
.navbar .dropdown-toggle {
	color: #999;
	font-size: 0.85rem;
	border-radius: 4px;
}

.navbar .dropdown-toggle:hover {
	background: rgba(0, 151, 57, 0.05);
	color: var(--brand-green);
}

/* Imagenes */
#pmus img {
	height: 100%;
	width: 75%;
	object-fit: cover;
}

#necesidad .col-6 img {
	height: 100%;
	width: 50%;
	object-fit: cover;
}

/* Secciones con fondo verde claro y texto verde oscuro */
.section-green-light {
	background-color: var(--brand-green-light);
	color: var(--brand-green-dark);
}

.box-green,
.section-green {
	background-color: var(--brand-green);
	color: #fff;
}

/* Pie de página */
footer.footer {
	background-color: var(--brand-footer);
	color: #fff;
}

/* Listado trabajos */
.listado-trabajos {
	list-style: none;
	padding-left: 0;
	counter-reset: trabajo-counter;
}

.listado-trabajos li {
	position: relative;
	margin-bottom: 1rem;
	padding: 1.25rem 1.5rem;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
	counter-increment: trabajo-counter;
}

/* .listado-trabajos li:hover {
	border-color: var(--brand-green);
	box-shadow: 0 4px 12px rgba(0, 151, 57, 0.15);
	transform: translateY(-2px);
} */

.listado-trabajos li::before {
	content: counter(trabajo-counter);
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	background: var(--brand-green);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
}

.trabajo-titulo {
	font-weight: 700 !important;
	font-size: 1.1rem;
	color: #333;
	padding-left: 3rem;
	display: block;
	margin: 0;
}

@media (max-width: 768px) {
	.listado-trabajos li {
		padding: 1rem;
		margin-bottom: 0.75rem;
	}

	.trabajo-titulo {
		padding-left: 2.5rem;
		font-size: 1rem;
	}
}

/* Listado noticias */
.listado-noticias {
	list-style: none;
	padding-left: 0;
}

.listado-noticias li {
	margin-bottom: 0.75rem;
}

.noticia-link {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	color: #333;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.4;
	text-decoration: none;
	transition: all 0.3s ease;
	background: #fff;
}

.noticia-link:hover,
.noticia-link:focus {
	color: #fff;
	background: var(--brand-green);
	border-color: var(--brand-green);
	transform: translateX(8px);
	box-shadow: 0 6px 20px rgba(0, 151, 57, 0.25);
	text-decoration: none;
}

@media (max-width: 768px) {
	.noticia-link {
		padding: 0.875rem 1rem;
		font-size: 1rem;
		transform: translateX(0) !important;
	}
}

/* Participación */

.participacion {
	background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
	border: 2px solid #e9ecef;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.participacion:hover {
	border-color: var(--brand-green);
	transform: translateY(-8px);
}

.participacion .display-4 {
	font-size: clamp(3rem, 8vw, 5rem);
}

.participacion h4 {
	font-weight: 800;
	color: #00210d;
	font-size: 1.5rem;
}

.participacion a {
	--bs-btn-color: var(--brand-green);
	--bs-btn-border-color: var(--brand-green);
	--bs-btn-hover-bg: var(--brand-green);
}

@media (max-width: 768px) {
	.participacion {
		margin-bottom: 2rem;
	}
}
