/* Tema «ixpop»: papel crema, tinta casi negra y los cuatro colores del tejido
   del caparazón de la tortuga del logo (rojo, maíz, jade y añil) en rombos y
   fajas. Titulares en Bricolage Grotesque, lectura en Literata (servidas aquí). */

@font-face {
	font-family: "Bricolage";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fuentes/bricolage.woff2") format("woff2");
}
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fuentes/literata.woff2") format("woff2");
}
@font-face {
	font-family: "Literata";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("fuentes/literata-italica.woff2") format("woff2");
}

:root {
	--papel: #f6efe2;
	--papel-claro: #fffaf1;
	--hueso: #efe5d3;
	--linea: #e2d6bf;
	--linea-osc: #cdbd9f;
	--tinta: #1c1722;
	--tinta-2: #2b2433;
	--texto: #2e2834;
	--suave: #5c5562;
	--rojo: #c8323a;
	--rojo-osc: #9e232b;
	--maiz: #e9b92f;
	--jade: #23845a;
	--anil: #2a56a5;
	--titulos: "Bricolage", "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lectura: "Literata", Georgia, "Times New Roman", serif;
	--radio: 6px;
	--sombra: 0 22px 44px -26px rgb(28 23 34 / .5);
	--ancho: 1200px;
	--alto-encabezado: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-encabezado) + 16px); }
body {
	margin: 0;
	background: var(--papel);
	color: var(--texto);
	font: 400 1.0625rem/1.7 var(--lectura);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rojo-osc); }
:focus-visible { outline: 3px solid var(--anil); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--titulos); color: var(--tinta); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.9rem + 3.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.9vw, 3.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--rojo); background: linear-gradient(transparent 68%, rgb(233 185 47 / .55) 68%, rgb(233 185 47 / .55) 92%, transparent 92%); padding-inline: .04em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; }
.oculto, .campo-trampa { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.contenedor--texto { width: min(100% - 2.5rem, 760px); }
.centrado { text-align: center; margin-top: 2.5rem; }

.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--tinta); color: var(--papel); padding: .6rem 1rem; border-radius: 4px; font-family: var(--titulos); }
.saltar:focus { top: 1rem; }

/* ---------- Tejido: faja, rombo y panel ---------- */
.faja { height: 14px; background: url("faja.svg") 0 50% / auto 14px repeat-x; }
.faja--ancha { height: 20px; background-size: auto 20px; }
.faja--fina { height: 10px; background-size: auto 10px; opacity: .9; }
.rombo { display: inline-block; width: .62em; height: .62em; flex: none; transform: rotate(45deg); background: conic-gradient(var(--rojo) 0 25%, var(--maiz) 0 50%, var(--jade) 0 75%, var(--anil) 0); }
.tejido { --c: var(--rojo); display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background-color: var(--c);
	background-image: linear-gradient(45deg, rgb(255 255 255 / .14) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / .14) 75%), linear-gradient(-45deg, rgb(0 0 0 / .12) 25%, transparent 25%, transparent 75%, rgb(0 0 0 / .12) 75%);
	background-size: 34px 34px; }
.tejido span { font: 800 clamp(3rem, 2rem + 4vw, 6rem)/1 var(--titulos); color: var(--papel-claro); text-shadow: 0 4px 0 rgb(0 0 0 / .18); }
.tejido--maiz { --c: var(--maiz); }
.tejido--maiz span { color: var(--tinta); text-shadow: none; }
.tejido--jade { --c: var(--jade); }
.tejido--anil { --c: var(--anil); }

/* ---------- Botones y enlaces ---------- */
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.boton {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 50px; padding: .7rem 1.5rem;
	border: 2px solid var(--tinta); border-radius: 4px;
	background: var(--tinta); color: var(--papel);
	font: 700 1rem/1 var(--titulos); letter-spacing: .01em; text-decoration: none;
	box-shadow: 4px 4px 0 var(--rojo);
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	cursor: pointer;
}
.boton:hover { color: var(--papel); background: var(--tinta-2); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rojo); }
.boton:active { transform: none; box-shadow: 2px 2px 0 var(--rojo); }
.boton--linea { background: transparent; color: var(--tinta); box-shadow: none; }
.boton--linea:hover { background: var(--tinta); color: var(--papel); box-shadow: 4px 4px 0 var(--maiz); }
.boton--claro { background: var(--papel); border-color: var(--papel); color: var(--tinta); box-shadow: 4px 4px 0 var(--maiz); }
.boton--claro:hover { background: var(--papel-claro); color: var(--tinta); box-shadow: 6px 6px 0 var(--maiz); }
.boton--linea-claro { background: transparent; border-color: rgb(246 239 226 / .75); color: var(--papel); box-shadow: none; }
.boton--linea-claro:hover { background: var(--papel); border-color: var(--papel); color: var(--tinta); box-shadow: none; }
.boton--chico { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; box-shadow: 3px 3px 0 var(--rojo); }
.boton[disabled] { opacity: .6; cursor: progress; }
.enlace-flecha { display: inline-flex; gap: .45rem; align-items: center; font: 700 1rem/1.3 var(--titulos); color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--rojo); padding-bottom: .15rem; }
.enlace-flecha span { transition: transform .2s; color: var(--rojo); }
.enlace-flecha:hover { color: var(--rojo); }
.enlace-flecha:hover span { transform: translateX(4px); }

.antetitulo {
	display: inline-flex; align-items: center; gap: .6rem;
	margin: 0 0 1rem; color: var(--rojo);
	font: 700 .8rem/1.2 var(--titulos); letter-spacing: .16em; text-transform: uppercase;
}
.antetitulo--claro { color: var(--maiz); }

/* ---------- Encabezado ---------- */
.encabezado {
	position: sticky; top: 0; z-index: 50;
	background: rgb(246 239 226 / .94);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--linea);
}
.encabezado > .faja { height: 6px; background-size: auto 6px; }
.encabezado__fila { display: flex; align-items: center; gap: 1.25rem; min-height: var(--alto-encabezado); }
.logo { display: inline-flex; align-items: center; flex: none; color: var(--tinta); font: 800 1.6rem/1 var(--titulos); text-decoration: none; }
.logo img { height: 50px; width: auto; }
.menu { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.menu__lista { display: flex; align-items: center; gap: 0; list-style: none; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__item > a {
	display: block; padding: .5rem .58rem;
	color: var(--tinta); font: 600 .95rem/1.2 var(--titulos); text-decoration: none; white-space: nowrap;
	transition: color .2s;
}
.menu__item > a:hover { color: var(--rojo); }
.menu__item > a[aria-current], .menu__item > a.activo { color: var(--rojo); }
.menu__item > a[aria-current]::after, .menu__item > a.activo::after { content: ""; display: block; height: 3px; margin-top: 3px; background: url("faja.svg") 0 50% / auto 3px repeat-x; }
.menu__flecha { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -.4rem; padding: 0; border: 0; background: none; color: var(--tinta); cursor: pointer; border-radius: 50%; }
.menu__flecha svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.submenu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
	list-style: none; padding: .5rem; margin: 0;
	background: var(--papel-claro); border: 2px solid var(--tinta); border-radius: 4px; box-shadow: 6px 6px 0 var(--maiz);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.submenu a { display: block; padding: .55rem .8rem; border-radius: 3px; color: var(--texto); text-decoration: none; font: 600 .98rem/1.3 var(--titulos); }
.submenu a:hover, .submenu a[aria-current] { background: var(--hueso); color: var(--rojo); }
.submenu li:last-child a { margin-top: .3rem; border-top: 1px solid var(--linea); border-radius: 0; color: var(--rojo); }
.menu__item--hijos:hover .submenu, .menu__item--hijos:focus-within .submenu, .menu__item--hijos.abierto .submenu { opacity: 1; visibility: visible; transform: none; }
.menu__item--hijos:hover .menu__flecha svg, .menu__item--hijos.abierto .menu__flecha svg { transform: rotate(180deg); }
.menu-boton { display: none; }
.idiomas { display: flex; gap: .3rem; list-style: none; font: 700 .8rem/1 var(--titulos); text-transform: uppercase; }
.idiomas a { color: var(--suave); text-decoration: none; padding: .35rem .4rem; border-radius: 3px; }
.idiomas a[aria-current] { background: var(--tinta); color: var(--papel); }

@media (max-width: 1180px) {
	/* Con backdrop-filter el panel fijo se mediría contra el encabezado */
	.encabezado { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--papel); }
	.menu-boton {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 48px; height: 48px; margin-left: auto; padding: 0 12px;
		border: 2px solid var(--tinta); border-radius: 4px; background: var(--papel-claro); cursor: pointer;
	}
	.menu-boton span { display: block; height: 2px; border-radius: 2px; background: var(--tinta); transition: transform .25s, opacity .2s; }
	.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.menu {
		position: fixed; inset: calc(var(--alto-encabezado) + 6px) 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 1.5rem;
		padding: 1rem 1.25rem 2.5rem; margin: 0; overflow-y: auto;
		background: var(--papel);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.menu.abierto { opacity: 1; visibility: visible; transform: none; }
	.menu__lista { flex-direction: column; align-items: stretch; }
	.menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--linea); }
	.menu__item > a { flex: 1; padding: .95rem .2rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
	.menu__item > a[aria-current]::after, .menu__item > a.activo::after { display: none; }
	.menu__flecha { width: 44px; height: 44px; margin: 0; }
	.menu__flecha svg { width: 16px; height: 16px; }
	.submenu { position: static; flex-basis: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 .8rem .5rem; }
	.menu__item--hijos:hover .submenu, .menu__item--hijos:focus-within .submenu { display: none; }
	.menu__item--hijos.abierto .submenu { display: block; }
	.menu__item--hijos:hover .menu__flecha svg { transform: none; }
	.menu__item--hijos.abierto .menu__flecha svg { transform: rotate(180deg); }
	.menu__boton { align-self: flex-start; min-height: 50px; padding-inline: 2rem; font-size: 1.05rem; }
	body.menu-abierto { overflow: hidden; }
}
@media (max-width: 520px) {
	:root { --alto-encabezado: 68px; }
	.logo img { height: 42px; }
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.8rem, 2.8rem + 5vw, 7rem) 0; position: relative; }
.seccion--papel { background: var(--papel-claro); border-block: 1px solid var(--linea); }
.seccion--tinta { background: var(--tinta); color: rgb(246 239 226 / .85); }
.seccion--tinta h2 { color: var(--papel); }
.encabezado-seccion { max-width: 760px; margin: 0 0 clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.encabezado-seccion p { color: var(--suave); font-size: 1.12rem; }
.encabezado-seccion--fila { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.encabezado-seccion--fila h2 { margin-bottom: 0; }
.aliados .encabezado-seccion { margin-inline: auto; text-align: center; }

/* Portada */
.portada { position: relative; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.portada__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.portada h1 { margin-bottom: .4em; }
.portada__bajada { font-size: 1.22rem; color: var(--suave); max-width: 34rem; }
.portada__fotos { position: relative; justify-self: end; width: min(100%, 520px); padding: 0 0 18% 0; }
.portada__foto { margin: 0; overflow: hidden; border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 10px 10px 0 var(--anil); position: relative; z-index: 1; aspect-ratio: 4 / 3; background: var(--hueso); }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }
.portada__foto--chica { position: absolute; z-index: 2; left: -12%; bottom: 0; width: 50%; aspect-ratio: 1; box-shadow: 8px 8px 0 var(--rojo); }
.portada__rombo { position: absolute; z-index: 0; top: -9%; right: -7%; width: 38%; aspect-ratio: 1; transform: rotate(45deg); background: repeating-linear-gradient(90deg, var(--maiz) 0 10px, transparent 10px 20px); opacity: .5; }
@media (max-width: 900px) {
	.portada__grid { grid-template-columns: 1fr; }
	.portada__fotos { justify-self: center; width: min(92%, 480px); margin-top: 1rem; }
	.portada__foto--chica { left: -5%; }
}

/* Objetivo */
.objetivo { border-top: 1px solid var(--linea); }
.objetivo__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.objetivo h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.8rem); margin: 0; }
.objetivo__parrafo { font-size: 1.15rem; }
@media (max-width: 900px) { .objetivo__grid { grid-template-columns: 1fr; } }

/* Pilares: quiénes somos, misión, visión */
.pilares { background: var(--papel-claro); border-block: 1px solid var(--linea); }
.pilares__lista { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, .5rem + 2vw, 2rem); }
.pilar { --c: var(--rojo); position: relative; padding: 2rem 1.6rem 1.8rem; background: var(--papel); border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 6px 6px 0 var(--c); }
.pilar--maiz { --c: var(--maiz); }
.pilar--jade { --c: var(--jade); }
.pilar--anil { --c: var(--anil); }
.pilar__numero { display: block; font: 800 2.4rem/1 var(--titulos); color: var(--c); margin-bottom: .6rem; }
.pilar__titulo { font-size: 1.6rem; }
.pilar__texto { color: var(--suave); }

/* Recomendación General 39 */
.cedaw { position: relative; background: var(--tinta); color: rgb(246 239 226 / .86); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.cedaw__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.cedaw h2 { color: var(--papel); }
.cedaw h2 em { color: var(--maiz); background: none; }
.cedaw__bajada { font: 600 1.25rem/1.45 var(--titulos); color: var(--papel); }
.cedaw__parrafo { font-size: 1.06rem; }
.cedaw__foto { margin: 0; }
.cedaw__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio); box-shadow: 10px 10px 0 var(--rojo); }
.cedaw__foto figcaption { margin-top: 1rem; font-size: .9rem; color: rgb(246 239 226 / .6); }
.cedaw__temas-titulo { margin-bottom: 1.2rem; font: 700 .8rem/1.2 var(--titulos); letter-spacing: .16em; text-transform: uppercase; color: var(--maiz); }
@media (max-width: 900px) { .cedaw__grid { grid-template-columns: 1fr; } }

/* Temas de la Recomendación */
.temas { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.temas--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tema { --c: var(--rojo); }
.tema--maiz { --c: var(--maiz); }
.tema--jade { --c: var(--jade); }
.tema--anil { --c: var(--anil); }
.tema a { display: flex; flex-direction: column; height: 100%; padding: 1.3rem 1.2rem 1.2rem; color: var(--papel); text-decoration: none; background: var(--tinta-2); border-top: 6px solid var(--c); border-radius: 0 0 var(--radio) var(--radio); transition: transform .25s, background .25s; }
.tema a:hover { transform: translateY(-4px); background: #352d3e; color: var(--papel); }
.tema__numero { font: 800 1rem/1 var(--titulos); color: var(--c); margin-bottom: 1.4rem; }
.tema__titulo { color: var(--papel); font-size: 1.55rem; margin-bottom: .5rem; }
.tema__texto { flex: 1; font-size: .92rem; line-height: 1.5; color: rgb(246 239 226 / .72); }
.tema__mas { margin-top: 1rem; font: 700 .95rem/1 var(--titulos); color: var(--c); }
.tema__mas span { display: inline-block; transition: transform .2s; }
.tema a:hover .tema__mas span { transform: translateX(4px); }
@media (max-width: 1060px) { .temas, .temas--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .temas, .temas--4 { grid-template-columns: 1fr; } }

/* Notas (tarjetas del blog) */
.notas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 1rem + 1.5vw, 2.4rem) clamp(1rem, .6rem + 1.5vw, 2rem); }
@media (max-width: 960px) { .notas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .notas { grid-template-columns: 1fr; } }
.nota { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.nota__foto { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radio); background: var(--hueso); border: 1px solid var(--linea); }
.nota__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nota:hover .nota__foto img { transform: scale(1.04); }
.nota__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin: 0 0 .5rem; font: 600 .82rem/1.3 var(--titulos); color: var(--suave); letter-spacing: .02em; }
.nota__tema { --c: var(--rojo); display: inline-flex; align-items: center; gap: .4rem; color: var(--tinta); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; text-decoration: none; }
.nota__tema::before { content: ""; width: .6em; height: .6em; transform: rotate(45deg); background: var(--c); }
.nota__tema--maiz { --c: var(--maiz); }
.nota__tema--jade { --c: var(--jade); }
.nota__tema--anil { --c: var(--anil); }
.nota__titulo { font-size: 1.3rem; line-height: 1.15; margin-bottom: .45rem; }
.nota__titulo a { color: var(--tinta); text-decoration: none; background: linear-gradient(var(--rojo), var(--rojo)) 0 100% / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.nota__titulo a:hover { color: var(--rojo); background-size: 100% 2px; }
.nota__resumen { margin: 0; color: var(--suave); font-size: .98rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nota--grande { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.2rem, 1rem + 2vw, 2.6rem); align-items: center; }
.nota--grande .nota__foto { aspect-ratio: 4 / 3; border: 2px solid var(--tinta); box-shadow: 8px 8px 0 var(--maiz); }
.nota--grande .nota__titulo { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); }
.nota--grande .nota__resumen { font-size: 1.1rem; -webkit-line-clamp: 5; }
.nota--lista { flex-direction: row; align-items: center; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--linea); }
.nota--lista .nota__foto { flex: none; width: 104px; aspect-ratio: 1; }
.nota--lista .tejido span { font-size: 2.2rem; }
.nota--lista .nota__titulo { font-size: 1.08rem; margin: 0; }
.nota--lista .nota__meta { margin-bottom: .3rem; font-size: .76rem; }
@media (max-width: 760px) { .nota--grande { grid-template-columns: 1fr; } }

/* Lo más reciente (inicio) */
.noticias__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.noticias__grid > .nota--grande { grid-template-columns: 1fr; align-items: start; }
.noticias__lista .nota--lista:first-child { padding-top: 0; }
@media (max-width: 960px) { .noticias__grid { grid-template-columns: 1fr; } }

/* Podcast */
.podcast { background: var(--anil); color: rgb(246 239 226 / .9); padding: clamp(2.8rem, 2rem + 3vw, 4.5rem) 0; background-image: linear-gradient(45deg, rgb(255 255 255 / .05) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / .05) 75%); background-size: 40px 40px; }
.podcast__fila { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.podcast__icono { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--maiz); color: var(--tinta); box-shadow: 0 0 0 8px rgb(233 185 47 / .25); }
.podcast__icono svg { width: 40px; height: 40px; fill: currentColor; }
.podcast h2 { color: var(--papel); margin-bottom: .2em; font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.6rem); }
.podcast p { margin: 0; max-width: 42rem; }
.podcast .acciones { margin: 0; }
@media (max-width: 860px) { .podcast__fila { grid-template-columns: 1fr; } }

/* Aliados y apoyos */
.aliados__logos, .apoyos__logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.aliados__logos li { display: grid; place-items: center; width: 190px; height: 120px; padding: 1rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); transition: border-color .2s, transform .2s; }
.aliados__logos li:hover { border-color: var(--tinta); transform: translateY(-3px); }
.aliados__logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.aliados__logos img, .apoyos__logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Páginas ---------- */
.pagina__cabeza { position: relative; overflow: hidden; padding: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem) 0 0; }
.pagina__cabeza > .contenedor { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); position: relative; z-index: 1; }
.pagina__cabeza::before { content: ""; position: absolute; right: -60px; top: 30px; width: 300px; height: 300px; transform: rotate(45deg); border: 2px solid rgb(200 50 58 / .18); box-shadow: 0 0 0 26px var(--papel), 0 0 0 28px rgb(233 185 47 / .25), 0 0 0 54px var(--papel), 0 0 0 56px rgb(35 132 90 / .16); pointer-events: none; }
.pagina__cabeza h1 { max-width: 18ch; }
.pagina__intro { font-size: 1.22rem; color: var(--suave); max-width: 44rem; }
.migas { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; font: 500 .9rem/1.4 var(--titulos); color: var(--suave); }
.migas a { color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--rojo); text-decoration: underline; }
.pagina__cuerpo { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.pagina__cuerpo--con-foto { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.pagina__foto { margin: 0; position: sticky; top: calc(var(--alto-encabezado) + 1.5rem); }
.pagina__foto a { display: block; overflow: hidden; border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 8px 8px 0 var(--jade); }
.pagina__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pagina__foto figcaption { margin-top: .9rem; font-size: .9rem; color: var(--suave); }
@media (max-width: 900px) { .pagina__cuerpo--con-foto { grid-template-columns: 1fr; } .pagina__foto { position: static; max-width: 480px; } }

.prosa { max-width: 68ch; font-size: 1.12rem; line-height: 1.75; }
.prosa > :first-child { margin-top: 0; }
.prosa h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.prosa h3 { margin-top: 1.5em; font-size: 1.35rem; }
.prosa ul, .prosa ol { padding-left: 1.3rem; margin-bottom: 1.1em; }
.prosa li { margin-bottom: .4em; }
.prosa li::marker { color: var(--rojo); }
.prosa strong { color: var(--tinta); }
.prosa a { overflow-wrap: anywhere; }
.prosa .cita, .prosa blockquote { margin: 1.8em 0; padding: .3em 0 .3em 1.4em; border-left: 4px solid var(--maiz); font-style: italic; font-size: 1.22rem; color: var(--tinta-2); }
.prosa .cita p:last-child { margin-bottom: 0; }
.prosa .resumen { padding: 1.2rem 1.4rem; background: var(--papel-claro); border: 1px solid var(--linea); border-radius: var(--radio); }
.prosa .tabla { overflow-x: auto; margin-bottom: 1.2em; }
.prosa table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.prosa th, .prosa td { padding: .6rem .8rem; border-bottom: 1px solid var(--linea); text-align: left; }
.prosa th { font-family: var(--titulos); }
.prosa img { border-radius: var(--radio); margin: 1.5em 0; }

/* Galería */
.pagina__fotos { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.pagina__fotos-titulo { font-size: 1.6rem; }
.galeria { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.galeria--1 { grid-template-columns: 1fr; max-width: 900px; }
.galeria--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeria--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galeria li { min-width: 0; }
.galeria a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: var(--hueso); position: relative; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.galeria a:hover img { transform: scale(1.04); }
.galeria a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(28 23 34 / .08); pointer-events: none; }
@media (max-width: 760px) { .galeria, .galeria--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .galeria--1 { grid-template-columns: 1fr; } }

.pagina__preguntas { max-width: 820px; padding-bottom: 4rem; }
.pagina__preguntas details { border-bottom: 1px solid var(--linea); }
.pagina__preguntas summary { padding: 1.1rem 0; cursor: pointer; font: 700 1.2rem/1.3 var(--titulos); color: var(--tinta); }
.pagina__preguntas details p { color: var(--suave); }
.pagina--404 .pagina__cabeza > .contenedor { padding-bottom: clamp(4rem, 3rem + 5vw, 8rem); }

/* Franja de cierre */
.franja {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
	margin-block: clamp(3rem, 2rem + 3vw, 5rem); padding: clamp(1.8rem, 1rem + 3vw, 3rem) clamp(1.8rem, 1rem + 3vw, 3rem) clamp(1.8rem, 1rem + 3vw, 3rem) clamp(4rem, 3rem + 3vw, 5.5rem);
	background: var(--papel-claro); border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 8px 8px 0 var(--maiz); position: relative; overflow: hidden;
}
.franja__rombos { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(var(--rojo) 0 25%, var(--maiz) 0 50%, var(--jade) 0 75%, var(--anil) 0); }
.franja h2 { margin-bottom: .25em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.franja p { margin: 0; color: var(--suave); max-width: 40rem; }
.franja .acciones { margin: 0; }

/* Contacto */
.contacto { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; } }
.tarjeta-contacto { padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); background: var(--tinta); color: var(--papel); border-radius: var(--radio); box-shadow: 8px 8px 0 var(--rojo); position: relative; overflow: hidden; }
.tarjeta-contacto h2 { color: var(--papel); font-size: 1.9rem; }
.tarjeta-contacto p { color: rgb(246 239 226 / .8); }
.tarjeta-contacto .antetitulo { color: var(--maiz); }
.contactos { margin: 0; display: grid; gap: 1.2rem; position: relative; z-index: 1; }
.contactos__item { display: grid; gap: .15rem; }
.contactos dt { font: 700 .76rem/1.3 var(--titulos); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.contactos dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.tarjeta-contacto a, .pie a { color: inherit; }
.tarjeta-contacto a:hover { color: var(--maiz); }
.contactos__item--wa dd a { font: 700 1.6rem/1.2 var(--titulos); text-decoration: none; }
.donar { padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
.donar .tarjeta-contacto { max-width: 720px; }

.formulario { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--papel-claro); border: 2px solid var(--tinta); border-radius: var(--radio); scroll-margin-top: calc(var(--alto-encabezado) + 20px); }
.formulario h2 { font-size: 2rem; margin-bottom: 0; }
.formulario__bajada { color: var(--suave); margin: -.4rem 0 0; }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .formulario__fila { grid-template-columns: 1fr; } }
.formulario label { display: grid; gap: .35rem; font: 600 .95rem/1.3 var(--titulos); color: var(--tinta); }
.formulario input, .formulario select, .formulario textarea {
	width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--linea-osc); border-radius: 4px;
	background: #fff; color: var(--texto); font: 400 1rem/1.4 var(--lectura);
	transition: border-color .2s, box-shadow .2s;
}
.formulario textarea { resize: vertical; min-height: 140px; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: none; border-color: var(--anil); box-shadow: 0 0 0 4px rgb(42 86 165 / .16); }
.formulario [aria-invalid="true"] { border-color: #b3261e; background: #fff7f6; }
.campo-error { color: #b3261e; font: 500 .86rem/1.3 var(--titulos); }
.campo-error:empty { display: none; }
.formulario .boton { justify-self: start; min-width: 200px; }
.formulario__legal { font-size: .8rem; color: var(--suave); margin: 0; }
.aviso { margin: 0; padding: .9rem 1.1rem; border-radius: 4px; font: 600 1rem/1.4 var(--titulos); }
.aviso--ok { background: #e3f1e9; color: #165a3c; border: 1px solid #b4d9c4; }
.aviso--error { background: #fbe9e7; color: #8a2119; border: 1px solid #f0c3bd; }

/* ---------- Blog ---------- */
.filtros { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.filtro { --c: var(--rojo); display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1.5px solid var(--tinta); border-radius: 999px; color: var(--tinta); font: 600 .92rem/1 var(--titulos); text-decoration: none; transition: background .2s, color .2s; }
.filtro::before { content: ""; width: .55em; height: .55em; transform: rotate(45deg); background: var(--c); }
.filtro:hover { background: var(--tinta); color: var(--papel); }
.filtro--maiz { --c: var(--maiz); }
.filtro--jade { --c: var(--jade); }
.filtro--anil { --c: var(--anil); }
.blog__principal { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--linea); }
.archivo__anio { display: grid; grid-template-columns: 160px 1fr; gap: 1rem 2rem; padding-block: 1.6rem; border-top: 2px solid var(--tinta); }
.archivo__titulo { font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); line-height: 1; }
.archivo__titulo span { display: block; margin-top: .5rem; font: 600 .85rem/1 var(--titulos); color: var(--suave); letter-spacing: .02em; }
.archivo__titulo span::after { content: " publicaciones"; }
.archivo__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.archivo__lista .nota--lista:nth-child(-n+2) { padding-top: 0; }
@media (max-width: 860px) { .archivo__anio, .archivo__lista { grid-template-columns: 1fr; } .archivo__lista .nota--lista:nth-child(2) { padding-top: 1rem; } }

.articulo__cabeza h1 { max-width: none; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.8rem); }
.articulo__cabeza::before { display: none; }
.articulo__meta { margin-bottom: 1.2rem; font-size: .9rem; }
.articulo__meta > span::before, .articulo__meta time + span::before { content: "·"; margin-right: .8rem; color: var(--linea-osc); }
.articulo__meta > a + time::before { content: ""; }
.articulo__portada { margin-block: clamp(1.8rem, 1.2rem + 2vw, 3rem) 0; max-width: 1040px; }
.articulo__portada a { display: block; overflow: hidden; border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 10px 10px 0 var(--maiz); background: var(--hueso); }
.articulo__portada img { width: 100%; max-height: 640px; object-fit: cover; }
.articulo__cuerpo { padding-block: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); }
.articulo__cuerpo .prosa { max-width: none; }
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.compartir__titulo { margin: 0; font: 700 .8rem/1 var(--titulos); letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.compartir ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.compartir__boton { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border: 1.5px solid var(--tinta); border-radius: 4px; background: transparent; color: var(--tinta); font: 600 .9rem/1 var(--titulos); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.compartir__boton:hover { background: var(--tinta); color: var(--papel); }

/* ---------- Pie ---------- */
.pie { margin-top: clamp(3rem, 2rem + 4vw, 6rem); background: var(--tinta); color: rgb(246 239 226 / .8); }
.pie > .faja { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.pie__fila { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(246 239 226 / .14); }
@media (max-width: 860px) { .pie__fila { grid-template-columns: 1fr 1fr; } .pie__marca { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pie__fila { grid-template-columns: 1fr; } }
.logo--claro { color: var(--papel); }
.logo--claro img { height: 64px; }
.pie__marca > p { margin: 1.1rem 0 0; max-width: 24rem; font-style: italic; color: rgb(246 239 226 / .75); }
.pie__titulo { margin-bottom: 1rem; font: 700 .78rem/1.3 var(--titulos); letter-spacing: .16em; text-transform: uppercase; color: var(--maiz); }
.pie__nav ul { list-style: none; display: grid; gap: .45rem; font-family: var(--titulos); }
.pie__nav a { text-decoration: none; }
.pie a:hover { color: var(--maiz); }
.pie .contactos dd { font-size: .98rem; }
.pie .contactos__item--wa dd a { font-size: 1.35rem; }
.redes { display: flex; gap: .6rem; list-style: none; margin-top: 1.4rem; }
.redes a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; border: 1.5px solid rgb(246 239 226 / .3); transition: background .2s, border-color .2s, color .2s; }
.redes a:hover { background: var(--maiz); border-color: var(--maiz); color: var(--tinta); }
.redes svg { width: 18px; height: 18px; }
.apoyos { padding-block: 2rem; border-bottom: 1px solid rgb(246 239 226 / .14); text-align: center; }
.apoyos__texto { font-size: .92rem; }
.apoyos__logos li { display: grid; place-items: center; width: 150px; height: 80px; padding: .7rem; background: #fff; border-radius: 4px; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; font-size: .88rem; color: rgb(246 239 226 / .6); }
.pie__legal p { margin: 0; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.06); color: #fff; }
.wa-flotante svg { width: 30px; height: 30px; fill: currentColor; }

/* Visor de fotos */
.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--papel); overflow: hidden; }
.visor::backdrop { background: rgb(17 13 21 / .94); }
.visor[open] { display: grid; place-items: center; }
.visor__figura { margin: 0; display: grid; gap: .8rem; justify-items: center; max-width: 92vw; }
.visor__figura img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 4px; object-fit: contain; }
.visor__figura figcaption { font-size: .95rem; color: rgb(246 239 226 / .8); text-align: center; }
.visor button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgb(246 239 226 / .35); border-radius: 4px; background: rgb(28 23 34 / .6); color: var(--papel); font: 400 2rem/1 var(--titulos); cursor: pointer; transition: background .2s; }
.visor button:hover { background: var(--rojo); }
.visor__cerrar { top: 1rem; right: 1rem; }
.visor__anterior { left: 1rem; top: 50%; translate: 0 -50%; }
.visor__siguiente { right: 1rem; top: 50%; translate: 0 -50%; }
.visor--una .visor__anterior, .visor--una .visor__siguiente { display: none; }

/* Aparecer al hacer scroll */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .revelar { opacity: 1; transform: none; }
}

@media print {
	.encabezado, .pie, .wa-flotante, .franja, .visor, .compartir { display: none !important; }
	body { background: #fff; }
}
