/* ==========================================================
   Páginas públicas de publicaciones (catálogo y artículo).
   Se carga después de landing.css (botones, nav, tarjetas, pie).
   ========================================================== */
body.site-page { overflow-x: hidden; }
.site-page .nav { position: sticky; }
.site-page .nav-links a.current { color: var(--text); }

/* ---------- Cabecera del catálogo ---------- */
.site-hero { position: relative; padding: 9vh var(--pad) 6vh; background: radial-gradient(circle at 80% 0%, rgba(201, 162, 77, .12), transparent 45%), var(--black); border-bottom: 1px solid var(--line); overflow: hidden; }
.site-hero::after { content: ''; position: absolute; right: -6vw; top: -4vh; width: 34vw; aspect-ratio: 1; background: var(--logo) center / contain no-repeat; opacity: .04; pointer-events: none; }
.site-hero-in { position: relative; max-width: 900px; }
.site-hero h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 7vw, 110px); line-height: .92; letter-spacing: -1px; margin: 2vh 0; }
.site-hero p { color: #BDB9B0; font-size: 16px; max-width: 620px; }

.site-main { padding: 5vh var(--pad) 8vh; max-width: 1400px; margin: 0 auto; }
.site-notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid rgba(201, 162, 77, .4); background: rgba(201, 162, 77, .07); color: var(--gold-2); font-size: 14px; }
.site-notice i { margin-right: 8px; }

/* Filtros */
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chips a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); font-family: var(--display); font-size: 12.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.cat-chips a b { font-family: var(--sans); font-size: 11px; color: #6E6A62; letter-spacing: 0; }
.cat-chips a:hover { color: var(--text); border-color: #444; }
.cat-chips a.on { color: var(--black); background: var(--gold); border-color: var(--gold); }
.cat-chips a.on b { color: rgba(10, 10, 10, .6); }
.cat-search { position: relative; flex: 0 1 320px; }
.cat-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.cat-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; background: var(--black-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; outline: none; transition: border-color .2s; }
.cat-search input:focus { border-color: var(--gold); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--display); color: var(--muted); transition: all .2s; }
.pager a:hover { color: var(--text); border-color: #444; }
.pager a.on { background: var(--gold); border-color: var(--gold); color: var(--black); }

.site-empty { text-align: center; padding: 10vh 20px; color: var(--muted); }
.site-empty i { font-size: 38px; color: var(--gold); opacity: .7; }
.site-empty h3 { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin: 16px 0 8px; }
.site-empty p { margin-bottom: 22px; }

/* ---------- Artículo ---------- */
.preview-bar { position: sticky; top: var(--nav-h); z-index: 50; padding: 10px var(--pad); background: #1A1609; border-bottom: 1px solid rgba(201, 162, 77, .5); color: var(--gold-2); font-size: 13.5px; }
.preview-bar a { color: var(--text); text-decoration: underline; margin-left: 8px; }
.article-head { position: relative; padding: 9vh var(--pad) 6vh; border-bottom: 1px solid var(--line); overflow: hidden; }
.article-head.has-cover { min-height: 62vh; display: flex; align-items: flex-end; }
.article-cover { position: absolute; inset: 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 14s linear forwards; filter: saturate(.85); }
.article-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--black) 0%, rgba(10, 10, 10, .75) 45%, rgba(10, 10, 10, .35) 100%); }
.article-head-in { position: relative; max-width: 980px; }
.article-back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; transition: color .2s; }
.article-back:hover { color: var(--gold-2); }
.article-cat { display: table; padding: 6px 12px; border: 1px solid rgba(201, 162, 77, .55); font-family: var(--display); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-2); }
.article-head h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 76px); line-height: .98; letter-spacing: -.5px; margin: 2.4vh 0 2.4vh; }
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #BDB9B0; }
.article-meta i { color: var(--gold); margin-right: 8px; }

.article-layout { display: grid; grid-template-columns: 80px minmax(0, 760px); justify-content: center; gap: 40px; padding: 7vh var(--pad) 8vh; }
.article-share { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.article-share span { font-family: var(--display); font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; writing-mode: vertical-rl; transform: rotate(180deg); }
.article-share a, .article-share button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: #CFCBC2; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.article-share a:hover, .article-share button:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201, 162, 77, .08); }
.article-lead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.45; color: var(--gold-2); margin-bottom: 4vh; padding-left: 22px; border-left: 2px solid var(--gold); }

.prose { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.8; color: #E3DFD5; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text); line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 23px; } .prose h4 { font-size: 19px; }
.prose h2::before { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { position: relative; padding: 6px 0 6px 28px; border-left: 3px solid var(--gold); font-style: italic; color: var(--gold-2); font-size: 1.08em; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.2em 0; }
.prose > p:first-child::first-letter { float: left; font-family: var(--display); font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: var(--gold); }

/* Firma al final */
.article-sign { display: flex; gap: 22px; align-items: center; margin-top: 7vh; padding: 28px 30px; border: 1px solid rgba(201, 162, 77, .35); background: linear-gradient(120deg, rgba(201, 162, 77, .08), transparent 60%); position: relative; }
.article-sign::before { content: ''; position: absolute; top: -1px; left: -1px; width: 70px; height: 2px; background: var(--gold); }
.article-sign::after { content: ''; position: absolute; top: -1px; left: -1px; width: 2px; height: 70px; background: var(--gold); }
.sign-seal { width: 78px; height: 78px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(201, 162, 77, .45); }
.sign-seal .logo-shine { width: 62%; height: 62%; }
.article-sign small { display: block; font-family: var(--display); font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.article-sign b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--text); line-height: 1.2; margin-top: 4px; }
.sign-title { display: block; font-size: 14.5px; color: #CFCBC2; margin-top: 2px; }
.article-sign time { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-note { margin-top: 18px; font-size: 12.5px; color: #6E6A62; }

/* ---------- Relacionadas y llamada a la acción ---------- */
.site-related { padding: 8vh var(--pad); background: var(--black-2); border-top: 1px solid var(--line); }
.post-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-cta { padding: 9vh var(--pad); text-align: center; background: radial-gradient(circle at 50% 120%, rgba(201, 162, 77, .16), transparent 55%), var(--black); border-top: 1px solid var(--line); }
.site-cta-in { max-width: 760px; margin: 0 auto; }
.site-cta .eyebrow { justify-content: center; }
.site-cta h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 5vw, 70px); line-height: .95; margin: 2vh 0; }
.site-cta p { color: #BDB9B0; margin-bottom: 3vh; }
.site-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .article-share { position: static; flex-direction: row; justify-content: flex-start; margin-bottom: 24px; }
    .article-share span { writing-mode: initial; transform: none; margin: 0 8px 0 0; }
    .post-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .post-grid.three { grid-template-columns: 1fr; }
    .article-sign { flex-direction: column; align-items: flex-start; padding: 22px; }
    .cat-search { flex: 1 1 100%; }
    .prose > p:first-child::first-letter { font-size: 3.4em; }
}
