/*
Theme Name: Memoria Pichilemina 2
Theme URI: https://memoriapichilemina.cl
Author: Memoria Pichilemina
Description: Tema a medida para un archivo histórico y educativo sobre Pichilemu y la provincia de Cardenal Caro. Sin constructores de páginas: HTML5 semántico, CSS moderno y WP_Query nativo. Incluye almanaque de efemérides (con enlace a la Enciclopedia Colchagüina), descubrimiento al azar, colecciones temáticas y una portada totalmente configurable desde el Personalizador.
Version: 2.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memoria-pichilemina
*/

/* ==========================================================================
   1. Variables y base
   ========================================================================== */
:root {
	--paper: #fdfdfc;
	--ink: #222222;
	--ink-soft: #5a5f63;
	--sand: #f3efe6;
	--line: #e3ded2;
	--deep: #0e2b36;      /* sobrescrito desde el Personalizador */
	--accent: #1d6b73;    /* sobrescrito desde el Personalizador */
	--brass: #8a5f1a;     /* sobrescrito desde el Personalizador */
	--serif: 'Lora', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 70rem;
	--read: 41rem;
	--gap: clamp(1rem, 2.5vw, 1.75rem);
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='36' viewBox='0 0 160 36'%3E%3Cpath d='M0 18Q20 6 40 18T80 18T120 18T160 18' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.75 var(--serif);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--read { width: min(100% - 2rem, var(--read)); }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* La barra lateral «Archivos por mes» no aporta al descubrimiento temático. */
.widget_archive, #archives, .sidebar, #secondary { display: none !important; }

.btn {
	display: inline-flex; align-items: center; gap: .45rem;
	font: 600 .95rem/1 var(--sans);
	padding: .85rem 1.3rem; border: 2px solid var(--accent); border-radius: 2px;
	background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--deep); }
.btn--light:hover { background: transparent; border-color: #fff; color: #fff; }
.ico { display: inline-block; flex: none; }

/* ==========================================================================
   2. Cabecera y menú
   ========================================================================== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand__name { font: 700 1.35rem/1 var(--serif); color: var(--deep); text-decoration: none; letter-spacing: -.01em; }
.custom-logo { max-height: 3rem; width: auto; }
.logo-invert img { filter: brightness(0) invert(1); }
.site-footer .custom-logo { max-height: 3.5rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav .menu, .footer-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav .menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav .menu a:hover, .nav .menu .current-menu-item > a { border-bottom-color: var(--brass); }
.nav .sub-menu { list-style: none; margin: 0; padding: 0; display: none; }

.buscador-mini { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding-left: .9rem; }
.buscador-mini input { border: 0; background: transparent; font: 400 .9rem var(--sans); padding: .5rem .3rem; width: 10rem; color: var(--ink); }
.buscador-mini input:focus { outline: none; }
.buscador-mini:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.buscador-mini button { border: 0; background: transparent; color: var(--ink-soft); padding: .5rem .7rem; cursor: pointer; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: .7rem; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 1.3rem; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

/* En la portada la cabecera se integra con el bloque oscuro. */
.mp-home .site-header { background: var(--deep); border-bottom-color: rgba(255,255,255,.12); }
.mp-home .brand__name, .mp-home .nav .menu a { color: #f4f1ea; }
.mp-home .nav .menu a:hover { border-bottom-color: #e2c690; }
.mp-home .buscador-mini { display: none; }
.mp-home .menu-toggle { border-color: rgba(255,255,255,.35); }
.mp-home .menu-toggle__bars, .mp-home .menu-toggle__bars::before, .mp-home .menu-toggle__bars::after { background: #f4f1ea; }

@media (max-width: 52rem) {
	.menu-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 4.25rem; z-index: 50; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem; }
	.nav.is-open { display: flex; }
	.nav .menu { flex-direction: column; gap: .2rem; }
	.nav .menu a { display: block; padding: .6rem 0; }
	.site-header { position: relative; }
	.buscador-mini input { width: 100%; }
	.mp-home .nav { background: var(--deep); }
	.mp-home .buscador-mini { display: flex; }
}

/* ==========================================================================
   3. Hero con buscador
   ========================================================================== */
.hero { position: relative; background-color: var(--deep); color: #f4f1ea; padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--wave) repeat; pointer-events: none; }
.hero--img {
	background-image: linear-gradient(rgba(14,43,54,var(--o,.85)), rgba(14,43,54,var(--o,.85))), var(--img);
	background-size: cover; background-position: center;
}
.hero__in { position: relative; text-align: center; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; margin-bottom: .35em; }
.hero__text { max-width: 36rem; margin-inline: auto; font-size: 1.15rem; color: #d7e1e4; margin-bottom: 2rem; }

.buscador { display: flex; max-width: 44rem; margin-inline: auto; background: #fff; border-radius: 999px; padding: .35rem; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.buscador input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.05rem var(--sans); color: var(--ink); padding: .9rem 1.3rem; }
.buscador input:focus { outline: none; }
.buscador:focus-within { outline: 3px solid #e2c690; outline-offset: 3px; }
.buscador button { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; background: var(--brass); color: #fff; font: 600 .95rem var(--sans); padding: 0 1.5rem; cursor: pointer; }
.buscador button:hover { background: var(--accent); }
.buscador--page { margin: 1.5rem 0 0; box-shadow: 0 0 0 1px var(--line); }
.hero__sugs { font: 400 .92rem var(--sans); margin: 1.3rem 0 0; color: #b9c8cd; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.hero__sugs a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }

@media (max-width: 40rem) {
	.buscador { border-radius: 1rem; flex-wrap: wrap; }
	.buscador input { flex-basis: 100%; }
	.buscador button { flex: 1; padding: .9rem; justify-content: center; margin-top: .3rem; border-radius: .7rem; }
}

/* ==========================================================================
   4. Bandas de la portada
   ========================================================================== */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--sand { background: var(--sand); }
.band__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 40rem; }
.band__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: .25em; }
.band__head p { color: var(--ink-soft); margin: 0; }
.empty { padding: 1.25rem; background: var(--sand); border-left: 3px solid var(--brass); font-family: var(--sans); font-size: .95rem; }

/* ---- Almanaque ---- */
.almanaque { display: grid; grid-template-columns: minmax(13rem, 16rem) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.almanaque__leaf { position: sticky; top: 1.5rem; }
.hoja { position: relative; display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--line); padding: 3.3rem 1rem 1.4rem; text-align: center; }
.hoja::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 2.3rem;
	background: radial-gradient(circle at 22% 50%, var(--paper) .35rem, transparent .38rem), radial-gradient(circle at 78% 50%, var(--paper) .35rem, transparent .38rem), var(--deep);
}
.hoja__mes { font: 600 1.05rem var(--sans); color: var(--brass); letter-spacing: .03em; }
.hoja__dia { font: 700 clamp(4.5rem, 9vw, 6.5rem)/1 var(--serif); color: var(--ink); margin-block: .1em; }
.hoja__sem { font: 400 .95rem var(--sans); color: var(--ink-soft); }

.otro-dia { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-family: var(--sans); font-size: .88rem; }
.otro-dia__label { flex-basis: 100%; color: var(--ink-soft); }
.otro-dia select { font: 400 .9rem var(--sans); padding: .45rem .5rem; border: 1px solid var(--line); background: #fff; border-radius: 2px; color: var(--ink); }
.otro-dia .btn { padding: .55rem .9rem; font-size: .88rem; }

.almanaque__list .efem:first-child { border-top: 0; padding-top: 0; }
.efem { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1.25rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.efem__year { display: block; font: 700 1.7rem/1.1 var(--serif); color: var(--brass); }
.efem__ago { display: block; font: 400 .8rem var(--sans); color: var(--ink-soft); margin-top: .2rem; }
.efem__type { font: 500 .85rem var(--sans); color: var(--accent); margin: 0 0 .2rem; }
.efem__title { font-size: 1.3rem; margin-bottom: .3em; }
.efem__title a { color: var(--ink); text-decoration: none; }
.efem__title a:hover { color: var(--accent); text-decoration: underline; }
.efem__text { color: var(--ink-soft); margin-bottom: .6rem; font-size: 1rem; }
.efem__dest { margin: 0; }
.efem__thumb { width: 6.5rem; align-self: start; }
.efem__thumb img { width: 6.5rem; height: 6.5rem; object-fit: cover; }
.enc-badge { display: inline-flex; align-items: center; gap: .35rem; font: 500 .8rem var(--sans); color: var(--accent); border: 1px solid currentColor; padding: .2rem .55rem; border-radius: 2px; }
.almanaque__more { margin: .5rem 0 0; }
.almanaque__list--full .efem:first-child { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.dia-cab { font: 600 1.05rem var(--sans); color: var(--brass); margin: 2rem 0 0; }
.almanaque-titulo { font-size: 1.8rem; }
.meses { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; font-family: var(--sans); }
.meses a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; text-transform: capitalize; }
.meses a:hover { border-color: var(--accent); }
.meses a[aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }

@media (max-width: 52rem) {
	.almanaque { grid-template-columns: 1fr; }
	.almanaque__leaf { position: static; display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: center; }
	.hoja { padding-top: 3rem; }
	.hoja__dia { font-size: 4rem; }
	.otro-dia { margin: 0; }
}
@media (max-width: 36rem) {
	.almanaque__leaf { grid-template-columns: 1fr; }
	.efem { grid-template-columns: 1fr; gap: .4rem; }
	.efem__when { display: flex; align-items: baseline; gap: .6rem; }
	.efem__thumb, .efem__thumb img { width: 100%; height: auto; aspect-ratio: 3/2; }
}

/* ---- Tarjetas ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.card__media { display: block; aspect-ratio: 3/2; background: var(--sand); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: block; width: 100%; height: 100%; background: var(--deep) var(--wave) repeat; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { font: 500 .85rem var(--sans); color: var(--accent); text-decoration: none; margin-bottom: .35rem; align-self: flex-start; }
.card__cat:hover { text-decoration: underline; }
.card__title { font-size: 1.2rem; margin-bottom: .45em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); text-decoration: underline; }
.card__text { font-size: .98rem; color: var(--ink-soft); line-height: 1.6; }
.card__meta { margin: auto 0 0; font: 400 .82rem var(--sans); color: var(--ink-soft); }

/* ---- Colecciones ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(11.5rem, auto); gap: var(--gap); }
.tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; color: #fff; text-decoration: none; background: var(--deep) var(--wave) repeat; border-radius: 2px; min-height: 11.5rem; }
.tile:nth-child(2) { background-color: var(--accent); }
.tile:nth-child(3) { background-color: #5b4216; }
.tile:nth-child(4) { background-color: #2b4a3f; }
.tile:nth-child(5) { background-color: #3d3a5c; }
.tile:nth-child(6) { background-color: #123d49; }
.tile--img { background-image: var(--img); background-size: cover; background-position: center; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,28,.88), rgba(8,22,28,.1) 75%); transition: background .2s; }
.tile:hover::after { background: linear-gradient(to top, rgba(8,22,28,.95), rgba(8,22,28,.35) 80%); }
.tile__body { position: relative; z-index: 1; padding: 1.2rem 1.3rem; display: block; }
.tile__title { display: block; font: 700 1.35rem/1.2 var(--serif); }
.tile__text { display: block; font: 400 .92rem/1.45 var(--sans); margin-top: .35rem; color: #e6ecee; max-width: 30rem; }
.tile__count { display: block; font: 500 .8rem var(--sans); margin-top: .6rem; color: #e2c690; }
.tiles .tile:first-child { grid-column: span 2; grid-row: span 2; }
.tiles .tile:first-child .tile__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 52rem) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles .tile:first-child { grid-row: span 1; } }
@media (max-width: 34rem) { .tiles { grid-template-columns: 1fr; } .tiles .tile:first-child { grid-column: auto; } }

/* ---- Presentación ---- */
.about__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about--foto .about__grid { grid-template-columns: minmax(14rem, 22rem) 1fr; }
.about__fig { margin: 0; }
.about__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about__fig figcaption { font: 400 .85rem var(--sans); color: var(--ink-soft); margin-top: .6rem; }
.about__body { max-width: 40rem; }
.about__body h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.about__who { font-family: var(--sans); margin-bottom: 1rem; }
.about__who span { display: block; color: var(--ink-soft); font-size: .92rem; }
.about__facts { list-style: none; margin: 1.4rem 0; padding: 0; font-family: var(--sans); font-size: .95rem; }
.about__facts li { padding: .65rem 0 .65rem 1rem; border-left: 3px solid var(--brass); margin-bottom: .5rem; background: var(--sand); }
@media (max-width: 52rem) { .about--foto .about__grid { grid-template-columns: 1fr; } .about__fig { max-width: 20rem; } }

/* ---- Enciclopedia hermana ---- */
.enc { background: var(--accent); color: #fff; padding-block: clamp(2rem, 5vw, 3.25rem); }
.enc__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.enc__logo img { max-height: 4.5rem; width: auto; }
.enc__text { flex: 1; min-width: 16rem; max-width: 40rem; }
.enc h2 { color: #fff; font-size: 1.7rem; }
.enc p { margin: 0; }
.enc a:focus-visible { outline-color: #fff; }

/* ---- Recién publicado ---- */
.latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 var(--gap); }
.latest li { display: grid; gap: .15rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.latest time, .latest__cat { font: 400 .82rem var(--sans); color: var(--ink-soft); }
.latest a { font: 700 1.1rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.latest a:hover { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   5. Páginas interiores
   ========================================================================== */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: .3em; }
.page-head__desc { color: var(--ink-soft); max-width: 42rem; margin-bottom: 0; }
.page-head__desc p:last-child { margin-bottom: 0; }
.page-head__count { font: 400 .9rem var(--sans); color: var(--ink-soft); margin: .8rem 0 0; }

.crumbs { font: 400 .85rem var(--sans); margin-bottom: 1rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }

.entrada__head { padding-top: clamp(1.75rem, 4vw, 3rem); }
.entrada__title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
.entrada__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .9rem var(--sans); color: var(--ink-soft); margin: 0 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; font-family: var(--sans); }
.chips a, .chips span { font-size: .85rem; font-weight: 500; color: var(--accent); border: 1px solid currentColor; padding: .15rem .6rem; border-radius: 2px; text-decoration: none; }
.chips a:hover { background: var(--accent); color: #fff; }
.entrada__fig { margin: 0 auto 2rem; }
.entrada__fig img { width: 100%; max-height: 32rem; object-fit: cover; }
.entrada__fig figcaption, .prose figcaption, .wp-caption-text { font: 400 .85rem var(--sans); color: var(--ink-soft); margin-top: .5rem; }

.prose { font-size: 1.125rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.prose img { height: auto; }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.3rem; border-left: 3px solid var(--brass); font-style: italic; color: #3a3d40; }
.prose figure { margin-inline: 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 .95rem var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.alignleft { float: left; margin: .3rem 1.2rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: .3rem 0 1rem 1.2rem; max-width: 50%; }
.aligncenter { margin-inline: auto; }

.etiquetas { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.etiquetas h2, .cita h2 { font: 600 1rem var(--sans); margin-bottom: .6rem; letter-spacing: 0; }
.etiquetas p { display: flex; flex-wrap: wrap; gap: .4rem; }
.etiquetas a { font: 400 .88rem var(--sans); padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); text-decoration: none; background: #fff; }
.etiquetas a:hover { border-color: var(--accent); color: var(--accent); }

.cita { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--sand); border-left: 3px solid var(--accent); }
.cita p { font: 400 .92rem/1.6 var(--sans); }
.cita .btn { padding: .6rem 1rem; font-size: .88rem; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; font-family: var(--serif); }
.pn a { display: block; padding: 1rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; }
.pn a:hover { border-color: var(--accent); }
.pn span { display: block; font: 400 .8rem var(--sans); color: var(--ink-soft); margin-bottom: .2rem; }
.pn__next { text-align: right; grid-column: 2; }
.pn-solo { font-family: var(--sans); margin-top: 2rem; }

.navigation.pagination { margin-top: 2.5rem; font-family: var(--sans); }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.page-numbers { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); text-decoration: none; background: #fff; }
.page-numbers.current { background: var(--deep); border-color: var(--deep); color: #fff; }
a.page-numbers:hover { border-color: var(--accent); }

.comentarios { font-family: var(--sans); font-size: .95rem; }
.comentarios h2 { font: 700 1.3rem var(--serif); }
.comentarios__lista { list-style: none; padding: 0; }
.comentarios .comment-body { border-top: 1px solid var(--line); padding: 1rem 0; }
.comentarios input[type=text], .comentarios input[type=email], .comentarios input[type=url], .comentarios textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 2px; font: inherit; }
.comentarios .submit { font: 600 .95rem var(--sans); padding: .8rem 1.3rem; background: var(--accent); color: #fff; border: 0; border-radius: 2px; cursor: pointer; }

/* ==========================================================================
   6. Pie de página
   ========================================================================== */
.site-footer { background: var(--deep); color: #cdd9dc; font: 400 .95rem/1.6 var(--sans); margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.footer-brand { margin-bottom: .8rem; }
.footer-brand .brand__name { font: 700 1.3rem var(--serif); color: #fff; text-decoration: none; }
.footer-h { font-weight: 600; color: #fff; margin-bottom: .7rem; }
.footer-list { flex-direction: column; gap: .4rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.2rem; font-size: .85rem; color: #9fb2b8; }
.footer-base p { margin: 0; }
@media (max-width: 46rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } .pn { grid-template-columns: 1fr; } .pn__next { grid-column: auto; } }

/* ==========================================================================
   7. Accesibilidad e impresión
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .site-footer, .buscador, .otro-dia, .cita .btn, .band--sand, .pn, .enc { display: none !important; }
	body { font-size: 11pt; background: #fff; }
	a { color: inherit; text-decoration: none; }
	.prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ========================================================================== 
   8. Portada editorial 2026
   ========================================================================== */
.mp-home { --paper:#faf9f6; --sand:#f1eee7; --line:#e4dfd6; --ink:#1e2d30; --ink-soft:#526163; --wrap:76rem; }
.mp-home .site-header { background:#112b32; position:relative; z-index:10; }
.mp-home .site-header__in { min-height:5rem; }
.mp-home .custom-logo { max-height:3.5rem; }
.mp-home .nav .menu a { font-size:.86rem; letter-spacing:.01em; }
.mp-home .hero--editorial { min-height:clamp(36rem,62vw,46rem); padding:0; display:flex; flex-direction:column; justify-content:space-between; isolation:isolate; background-color:#153740; }
.mp-home .hero--editorial::before { background:linear-gradient(90deg,rgba(10,31,39,.96) 0%,rgba(10,31,39,.86) 41%,rgba(10,31,39,.29) 100%); z-index:-1; }
.mp-home .hero--editorial.hero--img { background-image:var(--img); background-size:cover; background-position:center 43%; }
.mp-home .hero--editorial.hero--img::before { background:linear-gradient(90deg,rgba(10,31,39,var(--o,.85)),rgba(10,31,39,.77) 42%,rgba(10,31,39,.22)); }
.mp-home .hero__layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(16rem,22rem); gap:clamp(2rem,5vw,5rem); align-items:end; padding-block:clamp(4.5rem,9vw,8rem) 4rem; flex:1; }
.mp-home .hero__in { text-align:left; max-width:43rem; }
.eyebrow { margin:0 0 .85rem; font:700 .75rem/1.4 var(--sans); letter-spacing:.18em; text-transform:uppercase; color:var(--brass); }
.eyebrow--light { color:#efc684; }
.mp-home .hero__title { max-width:12ch; font-size:clamp(3.15rem,6vw,6.2rem); line-height:1.04; letter-spacing:-.045em; margin-bottom:.28em; text-wrap:balance; }
.mp-home .hero__text { max-width:36rem; margin:0 0 2rem; font:400 clamp(1rem,1.6vw,1.25rem)/1.65 var(--sans); color:#e2e9e8; }
.mp-home .buscador { margin:0; max-width:40rem; border-radius:.45rem; padding:.28rem; box-shadow:0 16px 40px rgba(0,0,0,.16); }
.mp-home .buscador input { padding:.9rem 1rem; font-size:.91rem; }
.mp-home .buscador button { border-radius:.3rem; background:#a87533; padding:0 1.2rem; }
.mp-home .buscador button:hover { background:var(--accent); }
.mp-home .hero__sugs { justify-content:flex-start; margin:1.05rem 0 0; font-size:.78rem; gap:.5rem .65rem; align-items:center; }
.mp-home .hero__sugs span { color:#c9d4d1; }
.mp-home .hero__sugs a { display:inline-block; padding:.24rem .65rem; border:1px solid rgba(255,255,255,.4); border-radius:2rem; text-decoration:none; color:#f9f7f0; }
.mp-home .hero__sugs a:hover { background:#fff; color:var(--deep); }
.hero-feature { display:block; align-self:end; padding:1.55rem 1.6rem; background:rgba(249,247,241,.97); color:var(--ink); text-decoration:none; border-top:4px solid #ad7c3a; box-shadow:0 20px 60px rgba(0,0,0,.18); transition:transform .2s,box-shadow .2s; }
.hero-feature:hover { color:var(--ink); transform:translateY(-5px); box-shadow:0 25px 60px rgba(0,0,0,.25); }
.hero-feature__label { display:flex; justify-content:space-between; text-transform:uppercase; letter-spacing:.15em; font:700 .7rem var(--sans); color:var(--brass); margin-bottom:1.25rem; }
.hero-feature strong { display:block; font:700 clamp(1.35rem,2.2vw,1.9rem)/1.18 var(--serif); letter-spacing:-.02em; }
.hero-feature__meta { display:block; font:400 .87rem/1.5 var(--sans); color:var(--ink-soft); margin-top:.75rem; }
.hero__bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 0 1.4rem; border-top:1px solid rgba(255,255,255,.35); font:500 .75rem var(--sans); text-transform:uppercase; letter-spacing:.13em; }
.hero__bottom a { color:#fff; text-decoration:none; }
.hero__bottom a:hover { text-decoration:underline; }
.mp-home .band { padding-block:clamp(3.5rem,7vw,6rem); }
.mp-home .band__head { max-width:none; }
.mp-home .band__head--split { display:flex; justify-content:space-between; align-items:end; gap:2rem; }
.mp-home .band__head h2 { font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.035em; margin-bottom:.2em; }
.mp-home .band__head p:not(.eyebrow) { font:400 1rem/1.6 var(--sans); }
.text-link { display:inline-flex; align-items:center; gap:1rem; flex:none; font:600 .85rem var(--sans); color:var(--accent); text-decoration:none; border-bottom:1px solid currentColor; padding-bottom:.28rem; }
.text-link:hover { color:var(--deep); gap:1.3rem; }
.home-collections { background:var(--paper); }
.mp-home .tiles { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:clamp(13rem,20vw,17rem); gap:1rem; }
.mp-home .tile { min-height:0; border-radius:.3rem; background-position:center; transition:transform .25s,box-shadow .25s; }
.mp-home .tile:hover { transform:translateY(-4px); box-shadow:0 16px 26px rgba(0,0,0,.15); }
.mp-home .tile:first-child { grid-column:span 2; grid-row:span 2; }
.mp-home .tile::after { background:linear-gradient(to top,rgba(8,27,32,.93),rgba(8,27,32,.06) 80%); }
.mp-home .tile__body { padding:clamp(1rem,2vw,1.75rem); }
.mp-home .tile__title { font-size:clamp(1.3rem,2vw,1.9rem); }
.mp-home .tiles .tile:first-child .tile__title { font-size:clamp(2.3rem,4.5vw,4rem); }
.mp-home .tile__count { color:#f3d7a8; }
.mp-home .band--efem { background:#e9e5da; }
.mp-home .almanaque { grid-template-columns:minmax(13rem,17rem) minmax(0,1fr); gap:clamp(2rem,6vw,6rem); }
.mp-home .hoja { border:0; box-shadow:0 12px 26px rgba(32,42,41,.08); }
.mp-home .efem { grid-template-columns:5.5rem minmax(0,1fr) auto; border-top-color:#d5d0c4; }
.mp-home .efem__title { font-size:clamp(1.2rem,2vw,1.55rem); }
.mp-home .efem__thumb,.mp-home .efem__thumb img { width:7.5rem; height:7.5rem; object-fit:cover; border-radius:.2rem; }
.home-discover { background:#153740; color:#fff; }
.home-discover .band__head h2 { color:#fff; }
.home-discover .band__head p:not(.eyebrow) { color:#c9d8d8; }
.home-discover .eyebrow { color:#edc98b; }
.carousel-controls { display:flex; gap:.55rem; }
.carousel-controls button { width:3rem; height:3rem; border:1px solid rgba(255,255,255,.65); background:transparent; color:#fff; border-radius:50%; cursor:pointer; font:400 1.25rem var(--sans); }
.carousel-controls button:hover:not(:disabled) { background:#fff; color:#153740; }
.carousel-controls button:disabled { opacity:.36; cursor:not-allowed; }
.discover-track { display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#b7c7c4 transparent; padding-bottom:1rem; }
.discover-track .card { flex:0 0 calc((100% - 2rem)/3); min-width:0; scroll-snap-align:start; border:0; border-radius:.3rem; }
.discover-track .card__media { aspect-ratio:4/3; }
.discover-track .card__title { font-size:1.25rem; }
.mp-home .about { background:var(--sand); }
.mp-home .about__grid { gap:clamp(2rem,6vw,6rem); }
.mp-home .about--foto .about__grid { grid-template-columns:minmax(16rem,28rem) minmax(0,1fr); }
.mp-home .about__fig img { border-radius:.3rem; aspect-ratio:4/5; }
.mp-home .about__body { max-width:38rem; }
.mp-home .about__body h2 { font-size:clamp(2rem,4vw,3.25rem); letter-spacing:-.03em; }
.mp-home .about__body > p:not(.eyebrow) { color:var(--ink-soft); }
.mp-home .about__facts { display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:1.4rem 0; }
.mp-home .about__facts li { margin:0; background:#fff; padding:.55rem .8rem; font-size:.82rem; border-left:2px solid var(--brass); }
.mp-home .about__who { margin:1.1rem 0; }
.mp-home .enc { background:#1e6069; padding-block:3rem; }
.mp-home .enc .eyebrow { margin-bottom:.5rem; }
.mp-home .enc h2 { font-size:clamp(1.6rem,3vw,2.35rem); }
.mp-home .home-latest { background:var(--paper); }
.mp-home .latest { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(1rem,5vw,5rem); }
.mp-home .latest li { padding:1.3rem 0; }
.mp-home .latest a { font-size:clamp(1.1rem,1.7vw,1.4rem); }
.mp-home .latest a span { font:400 .95rem var(--sans); color:var(--accent); }
@media(max-width:58rem) {
    .mp-home .hero__layout { grid-template-columns:1fr; padding-top:4rem; }
    .mp-home .hero__title { max-width:14ch; }
    .hero-feature { max-width:30rem; }
    .mp-home .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mp-home .tile:first-child { grid-row:span 1; }
    .discover-track .card { flex-basis:calc((100% - 1rem)/2); }
    .mp-home .about--foto .about__grid { grid-template-columns:minmax(12rem,20rem) minmax(0,1fr); }
}
@media(max-width:38rem) {
    .mp-home .hero--editorial { min-height:auto; }
    .mp-home .hero__layout { padding-top:3.5rem; padding-bottom:2.5rem; gap:2.5rem; }
    .mp-home .hero__title { font-size:clamp(2.8rem,13vw,4.3rem); }
    .mp-home .buscador { flex-wrap:wrap; border-radius:.5rem; }
    .mp-home .buscador input { flex-basis:100%; }
    .mp-home .buscador button { margin-top:.2rem; padding:.75rem; justify-content:center; }
    .mp-home .band__head--split { align-items:start; flex-direction:column; gap:1rem; }
    .mp-home .tiles { grid-template-columns:1fr; grid-auto-rows:14rem; }
    .mp-home .tile:first-child { grid-column:auto; grid-row:auto; }
    .mp-home .almanaque { grid-template-columns:1fr; }
    .mp-home .almanaque__leaf { grid-template-columns:minmax(9rem,12rem) 1fr; }
    .mp-home .efem { grid-template-columns:1fr auto; gap:.7rem; }
    .mp-home .efem__when { grid-column:1/-1; }
    .mp-home .efem__thumb,.mp-home .efem__thumb img { width:5.5rem; height:5.5rem; }
    .discover-track .card { flex-basis:min(84%,21rem); }
    .mp-home .about--foto .about__grid { grid-template-columns:1fr; }
    .mp-home .about__fig { max-width:22rem; }
    .mp-home .latest { grid-template-columns:1fr; }
    .hero__bottom span:first-child { display:none; }
}
@media print { .mp-home .hero--editorial,.home-discover,.carousel-controls { display:none !important; } }
.mp-home .about__socials { display:flex; flex-wrap:wrap; gap:.55rem 1.15rem; margin:0 0 1.5rem; font:600 .82rem var(--sans); }
.mp-home .about__socials a { text-decoration:none; border-bottom:1px solid currentColor; }
.mp-home .about__socials a:hover { color:var(--deep); }
/* Línea de tiempo: tarjetas enlazadas y desplazamiento horizontal accesible. */
.home-timeline { background:#f4f0e8; }
.timeline-controls { display:flex; justify-content:flex-end; gap:.55rem; margin:-.3rem 0 1rem; }
.timeline-controls button { width:2.9rem; height:2.9rem; border:1px solid var(--deep); background:transparent; color:var(--deep); border-radius:50%; font:400 1.25rem var(--sans); cursor:pointer; }
.timeline-controls button:hover:not(:disabled) { background:var(--deep); color:#fff; }
.timeline-controls button:disabled { opacity:.35; cursor:not-allowed; }
.timeline-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; gap:0; padding:0 0 1.5rem; background:linear-gradient(var(--brass),var(--brass)) 0 2.12rem / 100% 2px no-repeat; }
.timeline-card { position:relative; flex:0 0 clamp(17rem,27vw,21rem); min-width:0; padding:0 1.1rem 0 0; scroll-snap-align:start; }
.timeline-card__marker { position:absolute; top:1.77rem; left:.3rem; width:.85rem; height:.85rem; border:3px solid var(--brass); background:#f4f0e8; border-radius:50%; z-index:1; }
.timeline-card__year { margin:0 0 1.1rem; font:700 2rem/1.2 var(--serif); letter-spacing:-.04em; color:var(--deep); }
.timeline-card__image { display:block; aspect-ratio:16/9; overflow:hidden; background:var(--sand); }
.timeline-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.timeline-card:hover .timeline-card__image img { transform:scale(1.04); }
.timeline-card__body { background:#fff; min-height:14rem; padding:1.2rem; border:1px solid var(--line); }
.timeline-card__image + .timeline-card__body { border-top:0; }
.timeline-card__detail { font:700 .72rem/1.5 var(--sans); color:var(--brass); text-transform:uppercase; letter-spacing:.07em; margin:0 0 .6rem; }
.timeline-card h3 { font-size:1.2rem; line-height:1.25; }
.timeline-card h3 a { color:var(--ink); text-decoration:none; }
.timeline-card h3 a:hover { color:var(--accent); text-decoration:underline; }
.timeline-card__body > p:not(.timeline-card__detail) { font:400 .86rem/1.55 var(--sans); color:var(--ink-soft); }
.timeline-card__link { font:700 .77rem var(--sans); text-decoration:none; }
.timeline-card__link:hover { text-decoration:underline; }
.timeline-archive { background:#f4f0e8; }
.timeline-track--archive { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr)); gap:1.5rem; overflow:visible; background:none; }
.timeline-track--archive .timeline-card { padding:0; }
.timeline-track--archive .timeline-card__marker { display:none; }
.timeline-track--archive .timeline-card__body { min-height:12rem; }
.timeline-single .eyebrow { margin-bottom:.7rem; }
@media(max-width:38rem) { .timeline-card { flex-basis:min(82vw,19rem); } .timeline-track--archive .timeline-card { flex-basis:auto; } }

/* Segunda piel: portada narrativa predeterminada y alternativa de archivo claro. */
.mp-home--narrative .about { background:#ede8dc; border-bottom:1px solid #dfd6c7; }
.mp-home--narrative .about__body { max-width:48rem; }
.mp-home--narrative .about__body > p:not(.eyebrow) { font-size:1.12rem; line-height:1.75; }
.mp-home--narrative .about__body h2 { font-size:clamp(2.2rem,4.5vw,3.8rem); }
.mp-home--narrative .about:not(.about--foto) .about__grid { grid-template-columns:minmax(0,1fr); }
.mp-home--narrative .about:not(.about--foto) .about__body { max-width:52rem; padding-left:clamp(1rem,3vw,2.5rem); border-left:4px solid var(--brass); }
.mp-home--magazine .hero--editorial { background:#f3f0e8 !important; color:#192c31; }
.mp-home--magazine .hero--editorial.hero--img { background-image:none !important; }
.mp-home--magazine .hero--editorial::after { content:""; position:absolute; inset:0 0 0 50%; background:#183640 var(--img,none) center/cover no-repeat; z-index:-2; }
.mp-home--magazine .hero--editorial::before,.mp-home--magazine .hero--editorial.hero--img::before { background:linear-gradient(90deg,#f3f0e8 0%,#f3f0e8 48%,rgba(21,48,53,.22) 72%,rgba(10,30,36,.45) 100%); }
.mp-home--magazine .hero__in { max-width:35rem; }
.mp-home--magazine .hero__title { color:#182c32; }
.mp-home--magazine .hero__text { color:#405257; }
.mp-home--magazine .hero__in .eyebrow { color:#85601f; }
.mp-home--magazine .hero__sugs span { color:#405257; }
.mp-home--magazine .hero__sugs a { color:#29454a; border-color:#8c9999; }
.mp-home--magazine .hero__sugs a:hover { background:#204b53; color:#fff; }
.mp-home--magazine .hero__bottom { border-top-color:rgba(36,52,55,.35); color:#24383d; }
.mp-home--magazine .hero__bottom a { color:#fff; text-shadow:0 1px 3px #111; }
.mp-home--magazine .about { background:#fff; }
.mp-home--magazine .about__fig img { aspect-ratio:3/4; }
.mp-home--magazine .about__body h2 { font-size:clamp(2rem,3.5vw,3rem); }
.mp-home--magazine .home-discover { background:#234f57; }
.mp-home--magazine .home-latest .latest { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:58rem) { .mp-home--magazine .home-latest .latest { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:38rem) {
  .mp-home--magazine .hero--editorial::after { inset:0; opacity:.15; }
  .mp-home--magazine .hero--editorial::before,.mp-home--magazine .hero--editorial.hero--img::before { background:rgba(243,240,232,.86); }
  .mp-home--magazine .hero__bottom a { color:#24383d; text-shadow:none; }
  .mp-home--magazine .home-latest .latest { grid-template-columns:1fr; }
}

/* Cronología breve: toda la secuencia cabe en un carril desplazable. */
.home-timeline .timeline-track { background-position:0 1.65rem; }
.home-timeline .timeline-card { flex-basis:clamp(12.75rem,18vw,15rem); padding-right:.7rem; }
.home-timeline .timeline-card__marker { top:1.3rem; width:.7rem; height:.7rem; }
.home-timeline .timeline-card__year { font-size:1.5rem; margin-bottom:.85rem; }
.home-timeline .timeline-card__body { min-height:0; padding:.8rem .9rem; border-radius:.25rem; }
.home-timeline .timeline-card__detail { font-size:.66rem; margin-bottom:.35rem; }
.home-timeline .timeline-card h3 { font-size:1rem; line-height:1.3; margin-bottom:.4rem; }
.home-timeline .timeline-card__body > p:not(.timeline-card__detail) { font-size:.77rem; line-height:1.4; margin-bottom:.6rem; }
.home-timeline .timeline-card__link { font-size:.73rem; }
.mp-home .about__history { margin-top:.35rem; }
@media(max-width:38rem) { .home-timeline .timeline-card { flex-basis:72vw; } }

/* Enlaces independientes de la presentación del fundador. */
.mp-home .about__buttons { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin-top:1.5rem; }
.mp-home .about__buttons .btn { border-radius:.25rem; white-space:nowrap; font-size:.82rem; padding:.75rem .95rem; }
.mp-home .about__buttons .btn--ghost { background:transparent; color:var(--deep); border-color:var(--deep); }
.mp-home .about__buttons .btn--ghost:hover { background:var(--deep); color:#fff; }

/* Las fotos opcionales enriquecen los hitos sin ensanchar el carril. */
.home-timeline .timeline-card__image { height:7rem; aspect-ratio:auto; }
.home-timeline .timeline-card__image img { width:100%; height:100%; object-fit:cover; }
.home-timeline .timeline-card__image + .timeline-card__body { border-top:0; }

/* Páginas y artículos: lectura amplia con navegación contextual. */
.page-head--editorial { background:#f2efe8; padding-block:clamp(2rem,4.5vw,4rem); }
.page-head--editorial .wrap,.page-layout,.page-layout__head { --wrap:76rem; }
.page-head--editorial .eyebrow { margin-bottom:.5rem; }
.page-head--editorial h1 { font-size:clamp(2.35rem,5vw,4rem); margin:0; letter-spacing:-.035em; }
.page-head--editorial .crumbs { margin-bottom:1.6rem; }
.page-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(14rem,17rem); gap:clamp(2rem,5vw,5rem); align-items:start; padding-block:clamp(2rem,4vw,4rem) clamp(4rem,7vw,7rem); }
.page-layout__main { min-width:0; max-width:48rem; }
.page-layout__head > * { max-width:48rem; }
.page-layout__hero { margin:0 0 2rem; }
.page-layout__hero img { width:100%; max-height:34rem; object-fit:cover; }
.page-layout__hero figcaption { font:400 .8rem/1.5 var(--sans); color:var(--ink-soft); padding-top:.55rem; }
.page-layout .prose { font-size:1.09rem; line-height:1.82; }
.page-layout .prose :is(h2,h3) { scroll-margin-top:2rem; }
.page-layout .prose > :is(figure,p):first-child img { max-height:36rem; object-fit:cover; }
.page-layout .prose > figure:first-child { margin-top:0; }
.page-layout .prose > p:first-child > img:only-child { width:100%; }
.page-layout--post { padding-top:1rem; }
.page-layout--post .prose { max-width:46rem; }
.content-sidebar { position:sticky; top:1.5rem; border-top:3px solid var(--brass); background:#f6f3ec; padding:1.3rem; font-family:var(--sans); font-size:.88rem; }
.content-sidebar__section { padding-bottom:1.25rem; margin-bottom:1.25rem; border-bottom:1px solid var(--line); }
.content-sidebar__section h2 { font:700 .78rem/1.4 var(--sans); text-transform:uppercase; letter-spacing:.11em; margin:0 0 .8rem; color:var(--brass); }
.content-sidebar__section :is(ol,ul) { list-style:none; margin:0; padding:0; }
.content-sidebar__section li + li { border-top:1px solid var(--line); }
.content-sidebar__section li a { display:block; padding:.55rem 0; line-height:1.4; text-decoration:none; color:var(--ink); }
.content-sidebar__section li a:hover { color:var(--accent); text-decoration:underline; }
.content-sidebar__level-3 a { padding-left:.8rem !important; font-size:.82rem; }
.content-sidebar__section li a span { color:var(--accent); }
.content-sidebar__search p { margin:0 0 .6rem; font-weight:600; font-size:.82rem; }
.content-sidebar__search .buscador-mini { width:100%; padding-left:.4rem; }
.content-sidebar__search .buscador-mini input { width:100%; min-width:0; font-size:.78rem; }
.content-sidebar__search .buscador-mini button { padding:.45rem; }
@media(max-width:54rem) {
  .page-layout { grid-template-columns:1fr; gap:2.25rem; }
  .page-layout__main { max-width:46rem; }
  .content-sidebar { position:static; max-width:46rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
  .content-sidebar__section { margin:0; }
  .content-sidebar__search { grid-column:1/-1; }
}
@media(max-width:38rem) {
  .content-sidebar { display:block; }
  .content-sidebar__section { margin-bottom:1rem; }
  .mp-home .about__buttons .btn { flex:1 1 auto; justify-content:center; }
}
@media print { .content-sidebar { display:none !important; } .page-layout { display:block; } }
.page-layout--solo { grid-template-columns:minmax(0,48rem); justify-content:center; }
.page-layout--solo .page-layout__main { max-width:48rem; }
