/* Estilos página /nodos — autónomos, dark theme, mobile-first */

/* Page wrapper */
.p-nodos {
	padding-block: clamp(3rem, 8vw, 5rem);
	background: #0a0a0a;
	color: #c0c0c0;
}

.p-nodos__inner {
	width: min(100% - 2rem, 1120px);
	margin-inline: auto;
}

/* Header section */
.p-nodos__header {
	max-width: 72ch;
	margin: 0 0 clamp(3rem, 6vw, 4rem);
}

.p-nodos__title {
	margin: 0 0 1.5rem;
	color: #efefef;
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.1;
	text-transform: uppercase;
}

.p-nodos__lead {
	margin: 0 0 1rem;
	color: #c0c0c0;
	font-size: clamp(1.125rem, 2.5vw, 1.25rem);
	line-height: 1.6;
}

.p-nodos__context {
	margin: 0;
	color: #888888;
	font-size: 1rem;
	line-height: 1.6;
	font-style: italic;
}

/* City sections */
.p-nodos__city {
	margin-bottom: clamp(3rem, 6vw, 4rem);
}

.p-nodos__city-title {
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #333333;
	color: #efefef;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Cards list */
.p-nodos__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-nodos__card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
	background: #141414;
	border: 1px solid #333333;
	border-radius: 0.75rem;
}

/* Logo wrapper: light background so dark logos remain visible */
.p-nodos .p-nodos__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 1.25rem;
	border-radius: 1.125rem;
	overflow: hidden;
	flex-shrink: 0;
	min-width: 0;
	min-height: 0;
}

.p-nodos .p-nodos__logo-wrap--light {
	background: #e8e8e8;
	border: 1px solid #d0d0d0;
}

.p-nodos .p-nodos__logo-wrap--dark {
	background: #1a1a1a;
	border: 1px solid #333333;
}

.p-nodos .p-nodos__logo-wrap img,
.p-nodos .p-nodos__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, 300px);
	max-height: min(100%, 300px);
	object-fit: contain;
}

.p-nodos__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.p-nodos__card-title {
	margin: 0;
	color: #efefef;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.p-nodos__specialty {
	margin: 0;
	color: #888888;
	font-size: 0.875rem;
}

.p-nodos__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.25rem;
}

.p-nodos__category {
	color: #c0c0c0;
	font-size: 0.875rem;
}

/* Node type badge: compact one-line chip */
.p-nodos__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	white-space: nowrap;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: none;
}

.p-nodos__badge--general {
	background: #333333;
	color: #c0c0c0;
}

.p-nodos__badge--incentivo {
	background: #c0c0c0;
	color: #0a0a0a;
}

.p-nodos__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.p-nodos__link {
	color: #c0c0c0;
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.p-nodos__link:hover {
	color: #efefef;
}

/* CTA section */
.p-nodos__cta {
	padding-block: clamp(3rem, 8vw, 4rem);
	margin-top: clamp(2rem, 5vw, 3rem);
	background: #141414;
	border-radius: 0.75rem;
	text-align: center;
}

.p-nodos__cta-title {
	margin: 0 0 1.5rem;
	color: #efefef;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.p-nodos__cta-button {
	display: inline-block;
	padding: 0.875rem 1.75rem;
	border-radius: 0.5rem;
	background: #c0c0c0;
	color: #0a0a0a;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: background 0.2s, color 0.2s;
}

.p-nodos__cta-button:hover {
	background: #efefef;
	color: #0a0a0a;
}

.p-nodos__empty {
	color: #888888;
	font-size: 1rem;
}

/* Tablet: 2 columns */
@media (min-width: 700px) {
	.p-nodos__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
	.p-nodos__list {
		grid-template-columns: repeat(3, 1fr);
	}
}
