/* Listado de landings de OCRE: misma identidad que las landings (oscuro, tipografía de palo + serif de catálogo). */
:root {
  --bg: #0e0d0c; --bg-alt: #171513; --fg: #f0eae0; --muted: #a8a095;
  --line: rgba(240, 234, 224, .16); --gold: #d9b45a;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Arial Condensed", "Arial Narrow", "Liberation Sans Narrow", "Archivo Narrow", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f2f1ee; --bg-alt: #e7e5e0; --fg: #1b1917; --muted: #5f5a53; --line: rgba(27,25,23,.18); --gold: #8a6510; color-scheme: light; }
}
:root[data-theme="light"] { --bg: #f2f1ee; --bg-alt: #e7e5e0; --fg: #1b1917; --muted: #5f5a53; --line: rgba(27,25,23,.18); --gold: #8a6510; color-scheme: light; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; font-weight: 300; line-height: 1.7;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: normal; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.label { font-family: var(--font-label); font-weight: 500; font-size: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.label.gold { color: var(--gold); font-weight: 700;}

/* Cabecera fija: ocupa todo el ancho, se queda arriba al hacer scroll y se reduce un poco.
   --shrink es lo que se encoge la cabecera; se devuelve como margen para que la página no salte. */
.site-header { --shrink: 52px; position: sticky; top: 0; z-index: 100; background: var(--bg);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; transition: padding .25s ease; }
.brand { display: block; line-height: 0; }
.brand img { height: 80px; width: auto; transition: height .25s ease; }
.site-header { transition: margin-bottom .25s ease; }
.site-header.is-stuck { margin-bottom: var(--shrink); }
.site-header.is-stuck .top { padding-block: 10px; }
.site-header.is-stuck .brand img { height: 52px; }
.nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.nav a { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Botón del menú móvil (solo se muestra con JavaScript y en pantallas estrechas) */
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); color: var(--fg); cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease, background-color .25s ease; }
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .site-header { --shrink: 24px; }
  .top { padding-block: 14px; }
  .brand img { height: 56px; }
  .site-header.is-stuck .top { padding-block: 8px; }
  .site-header.is-stuck .brand img { height: 44px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 18px 30px rgba(0, 0, 0, .25); }
  .js .nav.is-open { display: flex; }
  .js .nav a { font-size: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .js .nav a:last-child { border-bottom: 0; }
  .js .nav a[aria-current="page"] { color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .top, .brand img, .site-header, .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { transition: none; }
}
html { scroll-padding-top: 120px; }

.intro { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 64px); display: grid; gap: 18px; }
.intro h1 { font-family: var(--font-body); font-weight: 500; font-size: clamp(40px, 6.2vw, 88px); line-height: 1.06; letter-spacing: -.025em; }
.intro p.lead { color: var(--muted); max-width: 36em; font-size: 18px; }

/* Entrada destacada (la más reciente) */
.featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 32px; border-top: 1px solid var(--line); }
.featured .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.entry h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; text-wrap: balance; margin-bottom: 16px; }
.entry h2 a { text-decoration: none; }
.entry p.excerpt { color: var(--muted); max-width: 32em; }
.more { display: inline-block; margin-top: 22px; font-family: var(--font-label); font-weight: 500; font-size: 16px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.thumb a { display: block; }

/* Resto de entradas */
.older-title { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 32px); padding-bottom: 40px; }
.grid .entry { min-width: 0; }
.grid .thumb { margin-bottom: 16px; }
.grid .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.grid .entry h2 { font-size: 30px; }

.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 32px; padding-block: 40px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.6; }
.foot h2 { font-family: var(--font-label); font-weight: 500; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); margin-bottom: 8px; }
.foot address { font-style: normal; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Añadidos para WordPress */
.thumb.empty { aspect-ratio: 4 / 3; background: var(--bg-alt); }
p.lead.empty { color: var(--muted); padding-block: 32px; }
.pagination { padding-block: 8px 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-family: var(--font-label); font-weight: 500; font-size: 16px; letter-spacing: .22em; text-transform: uppercase; }
.pagination a { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.pagination .current { color: var(--gold); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
