/* ==========================================================================
   NEWPROTECT — Journal · artículos · proyectos · legal        (prefijo .jr-)
   Solo líneas finas, sin sombras, sin radios, sin degradados.

   1  ESQUELETO DE ARTÍCULO   .jr-article … .jr-figure .jr-note .jr-related .jr-cta .prose-editorial
   2  JOURNAL (portada)       .jr-mast .jr-index .jr-feature .jr-grid/.jr-item .jr-row .jr-cats .jr-colophon
   3  CATEGORÍAS              .jr-cat-head .jr-empty
   4  PROYECTOS               .jr-filter .jr-pj-*
   5  LEGAL                   .jr-lg .jr-table .jr-dl .jr-field

   GUÍA RÁPIDA PARA REDACTORES DE ARTÍCULOS (marcado interno admitido)
   ------------------------------------------------------------------
   Cuerpo (.jr-article__body.prose-editorial): p, h2, h3, ul, ol, blockquote(+cite), hr,
     <figure class="jr-figure"> … </figure>            ancho "wide" (algo mayor que el texto)
     <figure class="jr-figure jr-figure--col"> …       ancho de columna de texto
     <figure class="jr-figure jr-figure--bleed"> …     a sangre (ancho completo del contenedor)
     <aside class="jr-note"><p>…</p></aside>           nota: en el margen derecho (≥1320 px) o en línea
     Dentro de figure:  <div class="ph r-169|r-43|r-54|r-45"><img … loading="lazy"></div><figcaption class="caption">…</figcaption>
   Relacionados (.jr-related):
     <h2>Relacionado</h2>
     <ul><li><a href="…"><span>Título del enlace</span></a></li> … </ul>
     (también valen enlaces <a> sueltos; un <span class="label"> dentro del enlace actúa como antetítulo)
   CTA (.jr-cta):
     <h2>Titular breve</h2><p>Texto.</p><a class="link" href="/presupuesto">Solicitar una valoración</a>
   ========================================================================== */

:root {
  --jr-col: 38.5rem;          /* medida del texto ≈ 65 caracteres */
  --jr-flag: #F0E2AE;         /* resalte de campos pendientes (legal) */
  --jr-flag-strong: #D9B94C;
}

/* utilidades de etiqueta */
.jr-label { font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; line-height: 1.4; }

/* ==========================================================================
   1 · ESQUELETO DE ARTÍCULO
   ========================================================================== */
.jr-article { padding-bottom: clamp(72px, 9vw, 136px); }

/* cabecera y cuerpo comparten retícula: [full][wide][texto][wide][full] */
.jr-article__head,
.jr-article__body {
  --jr-side: 0px;
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [wide-start] var(--jr-side)
    [text-start] minmax(0, var(--jr-col))
    [text-end] var(--jr-side)
    [wide-end] minmax(0, 1fr)
    [full-end];
}
@media (min-width: 720px) { .jr-article__head, .jr-article__body { --jr-side: 2.5rem; } }
@media (min-width: 1100px) { .jr-article__head, .jr-article__body { --jr-side: 9rem; } }

/* cabecera */
.jr-article__head { padding-top: calc(var(--header-h) + clamp(24px, 3vw, 40px)); }
.jr-article__head > * { grid-column: full-start / full-end; min-width: 0; }
.jr-article__head .crumbs { margin-bottom: clamp(32px, 4.5vw, 72px); }
.jr-article__cat { margin-bottom: clamp(18px, 2vw, 28px); }
.jr-article__cat a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.jr-article__cat a:hover { color: var(--ink); text-decoration-color: transparent; }
.jr-article__head .h1 {
  font-size: clamp(2rem, 1.25rem + 2.7vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.02em; max-width: 19em;
}
.jr-article__head .jr-article__intro,
.jr-article__head .jr-article__meta { grid-column: text-start / text-end; }
.jr-article__intro {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.6; font-weight: 300;
  max-width: none; color: var(--anthracite);
}
.jr-article__meta {
  margin-top: clamp(24px, 3vw, 36px); padding-top: 16px; border-top: 1px solid var(--line);
  font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.5;
}

/* portada: fotografía a sangre, leyenda alineada con el contenedor */
.jr-article__cover { margin: clamp(36px, 5vw, 72px) 0 clamp(44px, 6vw, 96px); }
.jr-article__cover .ph { aspect-ratio: 4 / 3; max-height: min(78vh, 880px); width: 100%; }
@media (min-width: 720px) { .jr-article__cover .ph { aspect-ratio: 16 / 9; } }
.jr-article__cover .caption,
.jr-figure--bleed .caption {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
}
.jr-article__cover .caption { margin-top: 14px; }

/* cuerpo */
.jr-article__body > * { grid-column: text-start / text-end; min-width: 0; }

/* tipografía editorial (también la usan los textos legales) */
.prose-editorial {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);   /* 17 → 19 px */
  line-height: 1.78; color: var(--anthracite);
  font-feature-settings: "kern", "liga";
  hyphens: manual; overflow-wrap: break-word;
}
.prose-editorial > * { margin-top: 0; margin-bottom: 0; }
.prose-editorial > * + * { margin-top: 1.3em; }
.prose-editorial p { color: var(--anthracite); max-width: none; }
.prose-editorial strong { font-weight: 600; color: var(--ink); }
.prose-editorial em { font-style: italic; }
.prose-editorial a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(5, 11, 24, .45); transition: text-decoration-color var(--t-fast) var(--ease); }
.prose-editorial a:hover { text-decoration-color: var(--ink); }

.prose-editorial h2 {
  margin-top: 2.6em; color: var(--ink);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 300; line-height: 1.2; letter-spacing: -.015em;
}
.prose-editorial h3 {
  margin-top: 2.1em; color: var(--ink);
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); font-weight: 500; line-height: 1.3; letter-spacing: -.005em;
}
.prose-editorial :is(h2, h3) + * { margin-top: .85em; }
.prose-editorial > :first-child { margin-top: 0; }

.prose-editorial ul, .prose-editorial ol { padding: 0; }
.prose-editorial li { position: relative; padding-left: 2em; }
.prose-editorial li + li { margin-top: .65em; }
.prose-editorial ul > li::before { content: ""; position: absolute; left: 0; top: .98em; width: 1.1em; height: 1px; background: currentColor; opacity: .55; }
.prose-editorial ol { counter-reset: jr-ol; }
.prose-editorial ol > li { counter-increment: jr-ol; }
.prose-editorial ol > li::before { content: counter(jr-ol, decimal-leading-zero); position: absolute; left: 0; top: .3em; font-size: .72em; letter-spacing: .14em; color: var(--muted); }
.prose-editorial hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.6em; }

/* cita editorial: Cormorant, con filete superior */
.prose-editorial blockquote {
  margin-block: 2.4em; padding-top: 1.15rem; border-top: 1px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem); line-height: 1.28; letter-spacing: -.005em; color: var(--ink);
}
.prose-editorial blockquote p { font: inherit; color: inherit; }
.prose-editorial blockquote p + p { margin-top: .8em; }
.prose-editorial blockquote cite, .prose-editorial blockquote footer {
  display: block; margin-top: 1.1rem; font-family: var(--sans); font-style: normal; font-size: var(--fs-label);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.5;
}
@media (min-width: 1100px) { .jr-article__body > blockquote { grid-column: wide-start / text-end; } }

/* fotografías intercaladas */
.jr-figure { margin-block: clamp(36px, 5vw, 64px); min-width: 0; }
.prose-editorial > .jr-figure { margin-top: clamp(36px, 5vw, 64px); }
.jr-figure img { width: 100%; }
.jr-figure .ph { width: 100%; }
.jr-figure .caption { font-size: .8125rem; line-height: 1.55; }
.jr-article__body > .jr-figure { grid-column: wide-start / wide-end; }
/* móvil: la imagen sale a sangre y la leyenda conserva el margen */
@media (max-width: 719px) {
  .jr-article__body > .jr-figure { grid-column: full-start / full-end; margin-inline: calc(var(--pad) * -1); }
  .jr-article__body > .jr-figure .caption { padding-inline: var(--pad); }
}
/* fotografías verticales: a la medida del texto y sin ocupar toda la altura de la pantalla */
.jr-article__body > .jr-figure:has(.r-45, .r-34) { grid-column: text-start / text-end; }
@media (min-width: 720px) { .jr-figure:has(.r-45, .r-34) .ph { max-width: 30rem; } }
.jr-article__body > .jr-figure--col { grid-column: text-start / text-end; }
@media (max-width: 719px) { .jr-article__body > .jr-figure--col { margin-inline: 0; } .jr-article__body > .jr-figure--col .caption { padding-inline: 0; } }
.jr-article__body > .jr-figure--bleed { grid-column: full-start / full-end; margin-inline: calc(var(--pad) * -1); }

/* notas: en línea con filete lateral; en el margen derecho en pantallas amplias */
.prose-editorial > .jr-note {
  margin-block: 2em; padding: .15em 0 .15em 1.25rem; border-left: 1px solid var(--ink);
  font-size: .9375rem; line-height: 1.65; color: var(--muted);
}
.jr-note p { color: inherit; font-size: inherit; max-width: none; }
.jr-note p + p { margin-top: .7em; }
.jr-note strong { color: var(--ink); }
@media (min-width: 1320px) {
  .jr-article__body > .jr-note {
    grid-column: text-end / full-end; align-self: start;
    max-width: 16rem; margin: .5rem 0 0 2rem; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--ink);
    font-size: .875rem; line-height: 1.6;
  }
}

/* pie: relacionados + CTA */
.jr-article__foot {
  margin-top: clamp(72px, 9vw, 136px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px) var(--gap);
  align-items: start;
}
.jr-article__foot::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--ink); }
@media (min-width: 900px) {
  .jr-article__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-related { grid-column: 1 / 8; }
  .jr-cta { grid-column: 9 / 13; }
}

.jr-related :is(h2, h3, h4, .label) {
  margin: 0 0 20px; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; line-height: 1.4; color: var(--muted);
}
.jr-related > p { color: var(--muted); font-size: .9375rem; margin-bottom: 14px; max-width: 34em; }
.jr-related ul, .jr-related ol { border-top: 1px solid var(--line); }
.jr-related li { border-bottom: 1px solid var(--line); }
.jr-related li a, .jr-related > a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  padding: 18px 0; min-height: 56px;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; color: var(--ink);
  transition: padding var(--t-fast) var(--ease);
}
.jr-related > a { border-bottom: 1px solid var(--line); }
.jr-related > a:first-of-type { border-top: 1px solid var(--line); }
.jr-related li a::after, .jr-related > a::after { content: ""; flex: none; width: 22px; height: 1px; background: currentColor; transition: width var(--t-fast) var(--ease); }
/* si el redactor añade .link al enlace, se neutraliza su subrayado y su flecha para usar la del bloque */
.jr-related li a.link, .jr-related > a.link { text-decoration: none; text-transform: none; }
.jr-related li a.link::after, .jr-related > a.link::after { -webkit-mask: none; mask: none; height: 1px; transform: none; }
.jr-related li a:hover, .jr-related > a:hover { padding-left: 10px; }
.jr-related li a:hover::after, .jr-related > a:hover::after { width: 38px; }
.jr-related li a .label, .jr-related li a small { display: block; margin-bottom: 4px; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.jr-related li p { margin: -8px 0 16px; color: var(--muted); font-size: .9375rem; max-width: 34em; }

.jr-cta { background: var(--warm); padding: clamp(24px, 3vw, 40px); }
.jr-cta :is(h2, h3, h4) { margin: 0 0 14px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.jr-cta .h2, .jr-cta .h3 { margin: 0 0 14px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); max-width: 20em; }
.jr-cta .label { margin: 0 0 14px; color: var(--muted); display: block; }
.jr-cta p { font-size: 1rem; line-height: 1.65; color: var(--anthracite); max-width: 30em; }
.jr-cta p + p { margin-top: .8em; }
.jr-cta .btn, .jr-cta .link { margin-top: 24px; }
.jr-cta p a:not(.btn):not(.link) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 559px) { .jr-cta .btn { width: 100%; } }

/* ==========================================================================
   2 · JOURNAL (portada)
   ========================================================================== */
.jr-mast { padding-top: calc(var(--header-h) + clamp(24px, 3vw, 40px)); }
.jr-mast .crumbs { margin-bottom: clamp(32px, 5vw, 72px); }
.jr-mast__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px var(--gap); align-items: end; padding-bottom: clamp(32px, 4.5vw, 64px); }
.jr-mast__kicker { margin-bottom: clamp(14px, 2vw, 24px); color: var(--muted); }
.jr-mast__title { font-size: clamp(3.5rem, 1rem + 9vw, 10rem); font-weight: 300; line-height: .88; letter-spacing: -.04em; color: var(--ink); text-wrap: nowrap; margin-left: -.04em; }
.jr-mast__side { display: grid; gap: 18px; padding-bottom: 6px; }
.jr-mast__stand { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.35; font-weight: 300; letter-spacing: -.01em; color: var(--ink); max-width: 20em; }
.jr-mast__txt { font-size: .9688rem; color: var(--muted); max-width: 30em; }
@media (min-width: 1024px) {
  .jr-mast__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-mast__grid > :first-child { grid-column: 1 / 9; }
  .jr-mast__side { grid-column: 9 / 13; }
}

/* índice de categorías (filtro por enlaces) */
.jr-index { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.jr-index__list { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 2.8vw, 44px); }
.jr-index__list li { flex: none; }
.jr-index a {
  display: inline-flex; align-items: baseline; gap: 10px; min-height: 52px; align-content: center; padding-block: 14px;
  font-size: var(--fs-nav); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); position: relative;
  transition: color var(--t-fast) var(--ease);
}
.jr-index a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.jr-index a:hover, .jr-index a[aria-current] { color: var(--ink); }
.jr-index a:hover::after, .jr-index a[aria-current]::after { transform: scaleX(1); }
.jr-index__n { font-size: .6875rem; letter-spacing: .08em; opacity: .7; }
.jr-index__todo { margin-right: clamp(4px, 1vw, 16px); }
@media (max-width: 719px) {
  .jr-index__list { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1px; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .jr-index__list::-webkit-scrollbar { display: none; }
}

/* artículo destacado */
.jr-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); margin-top: clamp(40px, 6vw, 96px); align-items: end; }
.jr-feature__media { display: block; }
.jr-feature__media .ph { aspect-ratio: 5 / 4; }
.jr-feature__flag { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: clamp(16px, 2vw, 28px); }
.jr-feature__flag a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.jr-feature__flag a:hover { color: var(--ink); text-decoration-color: transparent; }
.jr-feature__title { font-size: clamp(2rem, 1.15rem + 2.9vw, 3.75rem); line-height: 1.05; letter-spacing: -.022em; font-weight: 300; margin-bottom: clamp(16px, 2vw, 28px); }
.jr-feature__title a { text-decoration: none; }
.jr-feature__txt { font-size: var(--fs-lead); line-height: 1.65; color: var(--anthracite); max-width: 28em; margin-bottom: clamp(20px, 2.4vw, 32px); }
@media (min-width: 900px) {
  .jr-feature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-feature__media { grid-column: 1 / 8; }
  .jr-feature__text { grid-column: 9 / 13; padding-bottom: 8px; }
}
.jr-feature:hover .link, .jr-item:hover .link, .jr-row:hover .link { text-decoration-color: transparent; }
.jr-feature:hover .link::after, .jr-item:hover .link::after, .jr-row:hover .link::after { transform: translateX(6px); }

/* rejilla editorial asimétrica */
.jr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(48px, 7vw, 112px) var(--gap); align-items: start; }
.jr-item { display: block; min-width: 0; }
.jr-item__media { display: block; }
.jr-item__cat { display: block; margin: 20px 0 10px; color: var(--muted); }
.jr-item__cat a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.jr-item__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.18; letter-spacing: -.012em; margin-bottom: 12px; }
.jr-item__title a { text-decoration: none; }
.jr-item__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.jr-item__txt { color: var(--muted); font-size: .9688rem; max-width: 32em; margin-bottom: 14px; }

/* móvil (4 col): anchos y desplazamientos distintos */
.jr-item--b { grid-column: 1 / 4; } .jr-item--b .ph { aspect-ratio: 4 / 5; }
.jr-item--c { grid-column: 2 / 5; } .jr-item--c .ph { aspect-ratio: 4 / 3; }
.jr-item--d { grid-column: 1 / -1; } .jr-item--d .ph { aspect-ratio: 16 / 9; }
.jr-item--e { grid-column: 1 / 4; } .jr-item--e .ph { aspect-ratio: 3 / 4; }
.jr-item--f { grid-column: 1 / -1; } .jr-item--f .ph { aspect-ratio: 16 / 9; }
.jr-item--f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 720px) {
  .jr-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .jr-item--b { grid-column: 1 / 5; }
  .jr-item--c { grid-column: 5 / 9; margin-top: 72px; }
  .jr-item--d { grid-column: 1 / 6; }
  .jr-item--e { grid-column: 6 / 9; margin-top: 56px; }
  .jr-item--f { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .jr-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-item--b { grid-column: 1 / 6; }
  .jr-item--c { grid-column: 7 / 13; margin-top: clamp(96px, 12vw, 208px); }
  .jr-item--d { grid-column: 2 / 8; }
  .jr-item--e { grid-column: 9 / 13; margin-top: clamp(48px, 6vw, 112px); }
  .jr-item--f { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: end; }
  .jr-item--f .jr-item__media { grid-column: 5 / 13; grid-row: 1; }
  .jr-item--f .jr-item__body { grid-column: 1 / 5; grid-row: 1; padding-bottom: 8px; }
  .jr-item--f .jr-item__cat { margin-top: 0; }
  .jr-item--f .jr-item__title { font-size: var(--fs-h2); line-height: 1.08; margin-bottom: 18px; }
}

/* lista con filetes (más lecturas y categorías con varios artículos) */
.jr-list { border-top: 1px solid var(--ink); }
.jr-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px var(--gap); padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); align-items: start; }
.jr-row__n { font-size: var(--fs-label); letter-spacing: .2em; color: var(--muted); padding-top: .55em; display: none; }
.jr-row__cat { color: var(--muted); }
.jr-row__cat a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.jr-row__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.18; letter-spacing: -.012em; margin: 10px 0 12px; }
.jr-row__title a { text-decoration: none; }
.jr-row__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.jr-row__txt { color: var(--muted); font-size: .9688rem; max-width: 34em; margin-bottom: 12px; }
.jr-row__media { display: block; max-width: 420px; }
.jr-row__media .ph { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .jr-row { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 240px); }
  .jr-row__n { display: block; }
  .jr-row__media { order: 3; max-width: none; }
}
@media (min-width: 1024px) {
  .jr-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-row__n { grid-column: 1 / 2; }
  .jr-row__body { grid-column: 2 / 9; }
  .jr-row__media { grid-column: 10 / 13; }
}
.jr-row__body { min-width: 0; }

/* índice completo por categorías */
.jr-cats { border-top: 1px solid var(--ink); }
.jr-cats a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line); transition: padding var(--t-fast) var(--ease); }
.jr-cats__name { font-size: var(--fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -.012em; }
.jr-cats__desc { grid-column: 1; color: var(--muted); font-size: .9375rem; max-width: 40em; }
.jr-cats__meta { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 20px; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jr-cats__meta::after { content: ""; width: 22px; height: 1px; background: var(--ink); transition: width var(--t-fast) var(--ease); }
.jr-cats a:hover { padding-left: 12px; }
.jr-cats a:hover .jr-cats__meta::after { width: 40px; }
@media (min-width: 900px) {
  .jr-cats a { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; }
  .jr-cats__desc { grid-column: 2; }
  .jr-cats__meta { grid-row: 1; grid-column: 3; min-width: 12rem; justify-content: flex-end; }
}
@media (max-width: 479px) { .jr-cats__meta span { display: none; } }

/* nota editorial de cierre */
.jr-colophon { display: grid; gap: 20px var(--gap); grid-template-columns: minmax(0, 1fr); }
.jr-colophon p { color: var(--anthracite); max-width: 36em; }
.jr-colophon p + p { margin-top: 1em; }
@media (min-width: 1024px) { .jr-colophon { grid-template-columns: repeat(12, minmax(0, 1fr)); } .jr-colophon > :first-child { grid-column: 1 / 5; } .jr-colophon > :last-child { grid-column: 6 / 12; } }

/* ==========================================================================
   3 · CATEGORÍAS
   ========================================================================== */
.jr-cat-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); align-items: end; padding-bottom: clamp(36px, 5vw, 72px); }
.jr-cat-head__title { font-size: clamp(2.75rem, 1.2rem + 7vw, 8rem); font-weight: 300; line-height: .95; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.jr-cat-head__side { display: grid; gap: 22px; }
.jr-cat-head__side .lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
@media (min-width: 1024px) {
  .jr-cat-head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-cat-head > :first-child { grid-column: 1 / 8; }
  .jr-cat-head__side { grid-column: 9 / 13; padding-bottom: 10px; }
}
.jr-cat-body > .jr-list { margin-top: clamp(56px, 7vw, 104px); }
.jr-cat-body__head { margin-top: clamp(56px, 7vw, 104px); margin-bottom: 20px; color: var(--muted); }

/* estado vacío */
.jr-empty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--gap); padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.jr-empty__word { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3.25rem, 1.4rem + 7.4vw, 8.5rem); line-height: .95; letter-spacing: -.025em; color: var(--ink); }
@media (max-width: 479px) {
  .jr-empty__word { font-size: clamp(2.15rem, 11vw, 3.25rem); }
}
.jr-empty__text { color: var(--anthracite); max-width: 32em; font-size: var(--fs-lead); line-height: 1.65; }
.jr-empty__text + .jr-empty__text { margin-top: 1em; font-size: .9688rem; color: var(--muted); }
.jr-empty__more { margin-top: 28px; }
.jr-empty__links { border-top: 1px solid var(--line); margin-top: 8px; }
.jr-empty__links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 300; letter-spacing: -.01em; transition: padding var(--t-fast) var(--ease); }
.jr-empty__links a::after { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; transition: width var(--t-fast) var(--ease); }
.jr-empty__links a:hover { padding-left: 10px; } .jr-empty__links a:hover::after { width: 38px; }
.jr-empty__links .jr-label { display: block; color: var(--muted); margin: 0 0 14px; }
@media (min-width: 1024px) {
  .jr-empty { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .jr-empty > :first-child { grid-column: 1 / 8; }
  .jr-empty > :last-child { grid-column: 9 / 13; padding-top: 18px; }
}

/* ==========================================================================
   4 · PROYECTOS (módulo preparado, sin proyectos)
   ========================================================================== */
.jr-filter { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 2.6vw, 40px); }
.jr-filter__label { font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-block: 16px; margin-right: clamp(4px, 2vw, 28px); }
.jr-filter ul { display: contents; }
.jr-filter button {
  min-height: 52px; padding-block: 14px; font-size: var(--fs-nav); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink); position: relative;
}
.jr-filter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.jr-filter button[aria-pressed="true"]::after { transform: scaleX(1); }
.jr-filter button:disabled { color: var(--stone); cursor: default; }
@media (max-width: 719px) {
  .jr-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .jr-filter::-webkit-scrollbar { display: none; }
  .jr-filter > *, .jr-filter li { flex: none; }
  .jr-filter ul { display: flex; gap: 0 22px; }
}
.jr-filter__note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

.jr-pj-statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); margin-top: clamp(48px, 7vw, 112px); }
.jr-pj-statement__text { font-size: var(--fs-h2); font-weight: 300; line-height: 1.18; letter-spacing: -.018em; color: var(--ink); max-width: 20em; text-wrap: balance; }
.jr-pj-statement__aside { color: var(--muted); max-width: 30em; font-size: .9688rem; display: grid; gap: 16px; align-content: end; }
@media (min-width: 1024px) {
  .jr-pj-statement { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .jr-pj-statement > :first-child { grid-column: 1 / 9; }
  .jr-pj-statement__aside { grid-column: 9 / 13; }
}

/* maqueta vacía del portafolio: solo marcos de línea fina, sin imágenes */
.jr-pj-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) var(--gap); align-items: start; margin-top: clamp(48px, 7vw, 112px); }
.jr-pj-frame { border: 1px solid var(--mineral); background: transparent; position: relative; }
.jr-pj-frame--a { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.jr-pj-frame--b { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.jr-pj-frame--c { grid-column: 2 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .jr-pj-board { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .jr-pj-frame--a { grid-column: 1 / 7; } .jr-pj-frame--b { grid-column: 7 / 9; margin-top: 64px; aspect-ratio: 3 / 5; }
  .jr-pj-frame--c { grid-column: 3 / 9; }
}
@media (min-width: 1024px) {
  .jr-pj-board { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-pj-frame--a { grid-column: 1 / 9; } .jr-pj-frame--b { grid-column: 10 / 13; margin-top: clamp(72px, 9vw, 160px); aspect-ratio: 3 / 4; }
  .jr-pj-frame--c { grid-column: 4 / 11; }
}

.jr-pj-principles { display: grid; gap: 32px var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .jr-pj-principles { grid-template-columns: repeat(12, minmax(0, 1fr)); } .jr-pj-principles > :first-child { grid-column: 1 / 5; } .jr-pj-principles > :last-child { grid-column: 6 / 13; } }

/* ficha de proyecto (para cuando existan proyectos reales y autorizados) */
.jr-pj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(48px, 7vw, 112px) var(--gap); align-items: start; }
.jr-pj-item { display: block; min-width: 0; grid-column: 1 / -1; }
.jr-pj-item .ph { aspect-ratio: 16 / 9; }
.jr-pj-item--tall .ph { aspect-ratio: 4 / 5; }
.jr-pj-item__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 10px; color: var(--muted); }
.jr-pj-item__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -.012em; margin-bottom: 10px; }
.jr-pj-item__txt { color: var(--muted); font-size: .9688rem; max-width: 34em; }
@media (min-width: 1024px) {
  .jr-pj-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-pj-item { grid-column: 1 / 9; } .jr-pj-item--tall { grid-column: 10 / 13; margin-top: clamp(72px, 9vw, 160px); }
  .jr-pj-item--full { grid-column: 1 / -1; }
}

/* ==========================================================================
   5 · LEGAL
   ========================================================================== */
.jr-lg-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px var(--gap); align-items: end; padding-bottom: clamp(28px, 4vw, 56px); }
.jr-lg-head .h1 { max-width: 14em; }
.jr-lg-head__side { display: grid; gap: 14px; }
.jr-lg-head__side p { color: var(--muted); font-size: .9688rem; max-width: 30em; }
@media (min-width: 1024px) {
  .jr-lg-head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .jr-lg-head > :first-child { grid-column: 1 / 9; }
  .jr-lg-head__side { grid-column: 9 / 13; padding-bottom: 8px; }
}

.jr-lg-warn { border: 1px solid var(--ink); border-left: 8px solid var(--jr-flag-strong); background: var(--white); padding: 18px 22px; margin-bottom: clamp(36px, 5vw, 72px); font-size: .9688rem; line-height: 1.6; color: var(--ink); }
.jr-lg-warn strong { font-weight: 600; display: block; margin-bottom: 4px; }
.jr-lg-warn span { color: var(--anthracite); }

.jr-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px var(--gap); padding-bottom: clamp(72px, 9vw, 136px); counter-reset: jr-sec; }
@media (min-width: 1024px) {
  .jr-lg { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .jr-lg__aside { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; align-self: start; }
  .jr-lg__body { grid-column: 5 / 12; }
}
.jr-lg__toc > summary { position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 52px; padding-block: 12px; padding-right: 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.jr-lg__toc > summary::-webkit-details-marker { display: none; }
.jr-lg__toc > summary::before, .jr-lg__toc > summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 1px; background: currentColor; transition: transform var(--t-fast) var(--ease); }
.jr-lg__toc > summary::after { transform: rotate(90deg); }
.jr-lg__toc[open] > summary::after { transform: rotate(0); }
@media (min-width: 1024px) { .jr-lg__toc > summary { pointer-events: none; padding-right: 0; } .jr-lg__toc > summary::before, .jr-lg__toc > summary::after { display: none; } }
.jr-lg__toc ol { counter-reset: jr-toc; }
.jr-lg__toc li { counter-increment: jr-toc; }
.jr-lg__toc a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .875rem; line-height: 1.4; color: var(--muted); min-height: 44px; transition: color var(--t-fast) var(--ease), padding var(--t-fast) var(--ease); }
.jr-lg__toc a::before { content: counter(jr-toc, decimal-leading-zero); font-size: .6875rem; letter-spacing: .12em; }
.jr-lg__toc a:hover, .jr-lg__toc a[aria-current] { color: var(--ink); }
.jr-lg__toc a[aria-current] { padding-left: 8px; border-bottom-color: var(--ink); }
.jr-lg__docs { margin-top: 28px; }
.jr-lg__docs .jr-label { color: var(--muted); display: block; margin-bottom: 8px; }
.jr-lg__docs a { display: block; padding: 8px 0; font-size: .875rem; color: var(--anthracite); }
.jr-lg__docs a:hover, .jr-lg__docs a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.jr-lg__docs a[aria-current] { text-decoration: none; font-weight: 600; }

/* cuerpo legal (usa .prose-editorial para la tipografía) */
.jr-lg__body { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.75; }
.jr-lg__meta { font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
.jr-lg__body section { counter-increment: jr-sec; padding-top: clamp(28px, 3.4vw, 44px); margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.jr-lg__body section:first-of-type { margin-top: 0; }
.jr-lg__body section > * + * { margin-top: 1em; }
.jr-lg__body h2 { margin: 0 0 .7em; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); line-height: 1.22; }
.jr-lg__body h2::before { content: counter(jr-sec, decimal-leading-zero); font-size: .6875rem; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.jr-lg__body section > h2 + * { margin-top: 0; }
.jr-lg__body h3 { margin: 1.6em 0 0; }
.jr-lg__body h3 + * { margin-top: .6em; }
@media (max-width: 559px) { .jr-lg__body h2 { grid-template-columns: 2.1rem minmax(0, 1fr); } }
.jr-lg__body p, .jr-lg__body li { color: var(--anthracite); }

/* campo pendiente de completar */
.jr-field { background: var(--jr-flag); color: var(--ink); font-weight: 500; padding: .08em .35em; border-bottom: 1px solid var(--jr-flag-strong); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* lista de datos (titular, responsable) */
.jr-dl { border-top: 1px solid var(--line); }
.jr-dl > div { display: grid; gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.jr-dl dt { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding-top: .35em; }
.jr-dl dd { color: var(--ink); }
@media (min-width: 640px) { .jr-dl > div { grid-template-columns: 12rem minmax(0, 1fr); } }

/* tablas (apilan en móvil) */
.jr-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.jr-table th { text-align: left; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.jr-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--anthracite); }
.jr-table td:first-child { color: var(--ink); font-weight: 500; }
.jr-table caption { text-align: left; font-size: .8125rem; color: var(--muted); padding-bottom: 12px; caption-side: top; }
@media (max-width: 899px), (min-width: 1024px) and (max-width: 1279px) {
  .jr-table, .jr-table tbody, .jr-table tr, .jr-table td { display: block; width: 100%; }
  .jr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jr-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .jr-table tr:first-child { border-top: 1px solid var(--ink); }
  .jr-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; padding: 5px 0; border: 0; }
  .jr-table td::before { content: attr(data-label); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: .3em; }
}
@media (max-width: 479px) { .jr-table td { grid-template-columns: minmax(0, 1fr); } }

.jr-lg__btn { margin-top: 1.2em; }
