/* Bitácora — Estudio Foresta
   Tokens, barra, menú y apertura viven en shared/internas.css; el
   footer, en shared/footer.css; los bloques de la sección, en foresta.css.
   Aquí el listado de notas y el cuerpo de cada artículo. */

/* Filtro por categoría. Sin JS el bloque sigue oculto y se ven todas las notas. */
.filtro {
	margin-bottom: clamp(24px, 3vw, 36px);
}

.filtro[hidden] {
	display: none;
}

.filtro-label {
	margin-bottom: 12px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition:
		background 0.25s,
		color 0.25s,
		border-color 0.25s;
}

.chip:hover,
.chip:focus-visible {
	border-color: var(--ink);
}

.chip[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.chip-num {
	font-size: 9px;
	color: var(--ochre);
}

.chip[aria-pressed="true"] .chip-num {
	color: var(--sand);
}

.filtro-estado {
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--ochre);
}

.filtro-estado:empty {
	display: none;
}

.notas-list {
	list-style: none;
	border-top: 1px solid var(--line);
}

.nota {
	border-bottom: 1px solid var(--line);
}

.nota a {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: clamp(18px, 3vw, 32px);
	align-items: start;
	padding-block: clamp(20px, 3vw, 30px);
	transition: color 0.3s;
}

.nota-img {
	overflow: hidden;
	background: var(--paper-2);
}

.nota-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.nota a:hover .nota-img img,
.nota a:focus-visible .nota-img img {
	transform: scale(1.04);
}

.nota-texto {
	min-width: 0;
}

@media (max-width: 640px) {
	.nota a {
		grid-template-columns: 1fr;
	}

	.nota-img img {
		aspect-ratio: 16 / 9;
	}
}

.nota a:hover,
.nota a:focus-visible {
	color: var(--ochre);
}

.nota[hidden] {
	display: none;
}

.nota-cat {
	display: block;
	margin-bottom: 6px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ochre);
}

.nota time {
	display: block;
	margin-bottom: 10px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}

.nota h2 {
	margin-bottom: 10px;
	font-family: var(--sans);
	font-size: clamp(23px, 3.1vw, 31px);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nota p {
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

.nota-link {
	display: inline-block;
	margin-top: 14px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Artículo */
.nota-head {
	padding-top: clamp(136px, 16vw, 180px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

.nota-head .eyebrow.miga {
	justify-content: flex-start;
}

.nota-head h1 {
	margin-bottom: 18px;
	font-family: var(--display);
	font-size: clamp(38px, 6.3vw, 67px);
	font-weight: 300;
	line-height: 1.02;
}

.nota-meta {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.nota-body {
	max-width: 720px;
	padding-bottom: clamp(72px, 10vw, 120px);
}

.nota-body p {
	margin-bottom: 20px;
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.75;
}

.nota-hero {
	margin-bottom: 32px;
	overflow: hidden;
	background: var(--paper-2);
}

.nota-hero img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
}

.nota-volver {
	margin-top: 36px;
}

.nota-volver a {
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.nota-volver a:hover {
	color: var(--ochre);
}

/* La categoría va en línea dentro de la línea de metadatos del artículo. */
.nota-meta .nota-cat {
	display: inline;
	margin-bottom: 0;
}

/* CTA de las notas que ofrecen un servicio (taller, asesoría, Refugio). */
.btn-solid {
	display: inline-block;
	padding: 16px 40px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	transition: background 0.35s;
}

.btn-solid:hover,
.btn-solid:focus-visible {
	background: var(--ochre);
}

.nota-cta {
	margin-top: 32px;
}

/* Anclas de los pasos de propagación: la barra fija no debe tapar el párrafo
   cuando se entra por un enlace directo a #paso-N. */
.nota-articulo p[id^="paso-"] {
	scroll-margin-top: clamp(90px, 12vw, 130px);
}
