/* ============================================================
   PRESSBULK STANDALONE THEME — theme.css
   /themes/standalone/assets/css/theme.css
   ============================================================
   Variables --red, --fh, --fs se sobrescriben dinámicamente
   desde partials/header.php según la config del admin.
   ============================================================ */

/* ══ RESET + VARIABLES ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a; --dark: #1a1a1a; --body: #2c2c2c;
  --muted: #5a6070; --faint: #8a909c;
  --border: #e4e5e9; --border-l: #eef0f3;
  --bg: #f2f3f5; --white: #fff;
  --red: #c0392b;        /* acento, sobrescribible */
  --accent: #1a3a5c;     /* secundario (no usado en v1, reservado) */
  --fh: 'Playfair Display', Georgia, serif;
  --fs: 'Source Serif 4', Georgia, serif;
  --fc: 'Barlow Condensed', system-ui, sans-serif;
  --card-shadow: 0 1px 2px rgba(15, 20, 30, 0.04), 0 2px 8px rgba(15, 20, 30, 0.03);
  --card-shadow-hover: 0 2px 4px rgba(15, 20, 30, 0.06), 0 8px 20px rgba(15, 20, 30, 0.05);
  --card-radius: 10px;
}

body { font-family: var(--fs); background: var(--bg); color: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ══ AD SLOT (placeholder visual cuando no hay banner) ══ */
.ad-slot { background: repeating-linear-gradient(45deg,#eef0f3,#eef0f3 4px,#f6f7f8 4px,#f6f7f8 12px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: var(--card-radius); }
.ad-label { font-family: var(--fc); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #aaa; }

/* ══ TOPBAR ══ */
.topbar { background: var(--black); color: rgba(255,255,255,.5); font-family: var(--fc); font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 6px 0; overflow: hidden; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.tb-date { color: rgba(255,255,255,.5); white-space: nowrap; flex-shrink: 0; }
.tb-sep { width: 1px; height: 10px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.tb-live-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.tb-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse-red 1.5s infinite; flex-shrink: 0; }
@keyframes pulse-red { 0%,100%{opacity:1}50%{opacity:.3} }
.tb-live-word { color: var(--red); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }
.tb-ticker { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.tb-ticker-track { display: flex; gap: 48px; animation: ticker 35s linear infinite; white-space: nowrap; }
.tb-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.tb-ticker-item { color: rgba(255,255,255,.6); cursor: pointer; transition: color .15s; flex-shrink: 0; }
.tb-ticker-item:hover { color: #fff; }
.tb-ticker-sep { color: rgba(255,255,255,.15); flex-shrink: 0; }

/* ══ HEADER (logo + buscador) ══ */
.header { background: var(--white); border-bottom: 1px solid var(--border); padding: 18px 0; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.site-brand { font-family: var(--fh); font-size: 34px; font-weight: 900; color: var(--black); letter-spacing: -1.2px; line-height: 1; flex-shrink: 0; }
.site-brand em { font-style: normal; color: var(--red); }
.search-wrap { flex: 1; max-width: 560px; position: relative; }
.search-wrap input { width: 100%; padding: 11px 18px 11px 44px; background: var(--bg); border: 1.5px solid transparent; border-radius: 40px; font-family: var(--fc); font-size: 14px; font-weight: 500; color: var(--black); outline: none; transition: all .15s; }
.search-wrap input::placeholder { color: var(--faint); }
.search-wrap input:focus { background: var(--white); border-color: var(--black); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }

/* ══ NAV (blanca con sticky) ══ */
.nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.nav-links { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { font-family: var(--fc); font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all .15s; }
.nav-link:hover { color: var(--black); }
.nav-link.on { color: var(--black); border-bottom-color: var(--red); }
.nav-more { margin-left: auto; font-family: var(--fc); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 13px 14px; display: flex; align-items: center; gap: 4px; cursor: pointer; flex-shrink: 0; }
.nav-more:hover { color: var(--black); }
.nav-more::after { content: "▾"; font-size: 10px; opacity: .6; }
.nav-toggle { display: none; background: none; border: none; color: var(--black); font-size: 22px; cursor: pointer; padding: 10px 0; line-height: 1; }

/* ══ PAGE CONTAINER ══ */
.page { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══ BILLBOARD TOP (B1) ══ */
.bb-wrap { padding: 24px 0 12px; display: flex; justify-content: center; }
.bb { width: 970px; max-width: 100%; min-height: 90px; border-radius: var(--card-radius); overflow: hidden; }
.bb img { width: 100%; height: auto; object-fit: contain; border-radius: var(--card-radius); }
.bb.ad-slot { min-height: 250px; }

/* ══ MAIN LAYOUT (2 columnas) ══ */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 8px 0 40px; }
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sb-sticky { position: sticky; top: 60px; }

/* ══ CATEGORY LABEL ══ */
.cat { font-family: var(--fc); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--red); display: inline-block; }

/* ══ CARD WRAPPER GENÉRICO ══ */
.card { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }

/* ══ HERO CARD (home) ══ */
.hero-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.hero-img-wrap { overflow: hidden; aspect-ratio: 16 / 11; background: #ddd; cursor: pointer; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-img-wrap:hover img { transform: scale(1.03); }
.hero-content { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 30px; }
.hero-content .cat { margin-bottom: 2px; }
.hero-title { font-family: var(--fh); font-size: 32px; font-weight: 900; line-height: 1.1; color: var(--black); letter-spacing: -.5px; transition: color .15s; cursor: pointer; }
.hero-title:hover { color: var(--red); }
.hero-lead { font-family: var(--fs); font-size: 15px; font-weight: 400; color: var(--body); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { font-family: var(--fc); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.hero-meta .dot { color: var(--border); }

/* ══ GRID 4 (home) ══ */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g4-art { cursor: pointer; display: flex; flex-direction: column; background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.g4-art:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.g4-art-img { width: 100%; aspect-ratio: 16 / 11; overflow: hidden; background: #ddd; }
.g4-art-img img { width: 100%; height: 100%; object-fit: cover; }
.g4-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g4-art .cat { font-size: 10px; }
.g4-title { font-family: var(--fs); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--black); transition: color .15s; }
.g4-art:hover .g4-title { color: var(--red); }
.g4-meta { font-family: var(--fc); font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .3px; margin-top: auto; }

/* ══ SECTION HEADER ══ */
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 4px 4px; }
.sec-title { font-family: var(--fc); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; background: var(--black); padding: 5px 14px 4px; display: inline-block; border-radius: 3px; }
.sec-link { font-family: var(--fc); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.sec-link:hover { color: var(--red); }

/* ══ STORY LIST (home + category) ══ */
.story-list { display: flex; flex-direction: column; gap: 12px; }
.story { display: grid; grid-template-columns: 200px 1fr; gap: 0; cursor: pointer; background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.story:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.story-img { width: 200px; align-self: stretch; min-height: 140px; overflow: hidden; background: #ddd; position: relative; }
.story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; }
.story-cat { font-family: var(--fc); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--red); }
.story-title { font-family: var(--fs); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--black); transition: color .15s; }
.story:hover .story-title { color: var(--red); }
.story-exc { font-family: var(--fs); font-size: 14px; font-weight: 300; color: var(--body); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { font-family: var(--fc); font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .3px; display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.story-meta .dot { color: var(--border); }

/* ══ IN-FEED AD (B2 dentro del stream) ══ */
.infeed-wrap { padding: 8px 0; display: flex; justify-content: center; }
.infeed { width: 728px; max-width: 100%; min-height: 90px; border-radius: var(--card-radius); overflow: hidden; }
.infeed img { width: 100%; height: auto; object-fit: contain; }
.infeed.ad-slot { min-height: 90px; padding: 20px; }

/* ══ LOAD MORE / PAGINATION ══ */
.load-more { text-align: center; padding: 20px 0 32px; }
.load-more-btn { display: inline-block; padding: 12px 36px; background: var(--white); border: 1.5px solid var(--black); border-radius: 40px; font-family: var(--fc); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--black); cursor: pointer; transition: all .15s; box-shadow: var(--card-shadow); }
.load-more-btn:hover { background: var(--black); color: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0 32px; }
.pag-link { display: inline-block; padding: 10px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--fc); font-size: 13px; font-weight: 700; color: var(--dark); transition: all .15s; min-width: 42px; text-align: center; }
.pag-link:hover { border-color: var(--black); }
.pag-link.on { background: var(--black); border-color: var(--black); color: #fff; }
.pag-link.disabled { opacity: .4; pointer-events: none; }

/* ══ SIDEBAR: AD WRAPPER ══ */
.sb-ad { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; padding: 12px; }
.sb-ad .ad-slot { width: 100%; min-height: 250px; }
.sb-ad img { width: 100%; height: auto; border-radius: 6px; }

/* ══ SIDEBAR: MÁS LEÍDAS ══ */
.most-read { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.mr-hd { padding: 14px 18px; border-bottom: 1px solid var(--border-l); display: flex; align-items: center; gap: 8px; }
.mr-hd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.mr-hd-label { font-family: var(--fc); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--black); }
.mr-list { padding: 4px 0; }
.mr-item { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-l); cursor: pointer; transition: background .15s; }
.mr-item:last-child { border-bottom: none; }
.mr-item:hover { background: #fafafb; }
.mr-num { font-family: var(--fh); font-size: 26px; font-weight: 900; color: var(--border); line-height: 1; min-width: 22px; flex-shrink: 0; transition: color .15s; }
.mr-item:hover .mr-num { color: var(--red); }
.mr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mr-cat { font-family: var(--fc); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.mr-title { font-family: var(--fs); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--black); transition: color .15s; }
.mr-item:hover .mr-title { color: var(--red); }

/* ══════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════ */
.article-card { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.breadcrumb { padding: 20px 40px 0; font-family: var(--fc); font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.bc-sep { color: var(--border); }
.bc-current { color: var(--dark); font-weight: 700; }
.article-header { padding: 20px 40px 28px; max-width: 820px; }
.article-cat { font-family: var(--fc); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: inline-block; }
.article-title { font-family: var(--fh); font-size: 42px; font-weight: 900; line-height: 1.08; color: var(--black); letter-spacing: -.8px; margin-bottom: 18px; }
.article-lead { font-family: var(--fs); font-size: 19px; font-weight: 400; font-style: italic; color: var(--muted); line-height: 1.55; padding-left: 18px; border-left: 3px solid var(--red); margin-bottom: 22px; }
.article-byline { font-family: var(--fc); font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--border-l); flex-wrap: wrap; letter-spacing: .3px; }
.article-byline strong { color: var(--dark); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 11px; }
.article-byline .dot { color: var(--border); }
.article-byline a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.article-byline a:hover { color: var(--red); text-decoration-color: var(--red); }

.share-row { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
.share-btn:hover { border-color: var(--black); color: var(--black); background: var(--bg); }

.article-feat { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.article-feat img { width: 100%; height: 100%; object-fit: cover; }
.article-feat-caption { font-family: var(--fc); font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .3px; padding: 10px 40px 0; font-style: italic; }

.article-body { padding: 32px 40px 36px; max-width: 780px; font-family: var(--fs); font-size: 18px; line-height: 1.85; color: var(--body); }
.article-body p { margin-bottom: 22px; }
.article-body p:first-of-type::first-letter { font-family: var(--fh); font-size: 4.5em; font-weight: 900; float: left; line-height: 0.82; margin: 8px 10px 0 0; color: var(--black); }
.article-body h2 { font-family: var(--fh); font-size: 28px; font-weight: 900; color: var(--black); margin: 36px 0 14px; letter-spacing: -.3px; line-height: 1.2; }
.article-body h3 { font-family: var(--fh); font-size: 22px; font-weight: 700; color: var(--black); margin: 28px 0 10px; }
.article-body a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(192,57,43,.3); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--red); }
.article-body blockquote { font-family: var(--fh); font-size: 24px; font-weight: 700; font-style: italic; color: var(--black); line-height: 1.35; padding: 20px 0 20px 24px; margin: 32px 0; border-left: 4px solid var(--red); }
.article-body blockquote cite { display: block; font-family: var(--fc); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--black); font-weight: 700; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 24px 0; }

.article-inline-ad { margin: 32px -40px; padding: 24px 40px; background: var(--bg); border-top: 1px solid var(--border-l); border-bottom: 1px solid var(--border-l); }
.article-inline-ad .ad-inner { max-width: 728px; min-height: 90px; margin: 0 auto; border-radius: var(--card-radius); overflow: hidden; }
.article-inline-ad .ad-slot { min-height: 90px; }

/* ══ MPU 300x250 in-article (centrado entre párrafos, pisa el 728x90 default) ══ */
.article-inline-ad .ad-inner.article-mpu-inline { max-width: 300px; min-height: 250px; }
.article-inline-ad .ad-inner.article-mpu-inline .ad-slot { min-height: 250px; }
.article-inline-ad .ad-inner.article-mpu-inline img { width: 100%; height: auto; border-radius: 6px; }

.author-box { margin: 8px 40px 32px; background: var(--black); border-left: 4px solid var(--red); padding: 20px 22px; display: flex; align-items: center; gap: 16px; border-radius: 4px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-avatar span { font-family: var(--fh); font-size: 20px; font-weight: 900; color: #fff; }
.author-info { display: flex; flex-direction: column; gap: 3px; }
.author-name { font-family: var(--fc); font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
.author-role { font-family: var(--fs); font-size: 13px; font-weight: 300; color: rgba(255,255,255,.55); font-style: italic; }

.article-tags { padding: 4px 40px 28px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-label { font-family: var(--fc); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.tag { font-family: var(--fc); font-size: 12px; font-weight: 600; color: var(--dark); background: var(--bg); padding: 5px 12px; border-radius: 100px; transition: all .15s; }
.tag:hover { background: var(--black); color: #fff; }

/* ══════════════════════════════════════════
   CATEGORY PAGE
   ══════════════════════════════════════════ */
.cat-header { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 26px 32px; margin-bottom: 4px; border-left: 5px solid var(--red); }
.cat-kicker { font-family: var(--fc); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cat-header h1 { font-family: var(--fh); font-size: 36px; font-weight: 900; color: var(--black); line-height: 1.1; letter-spacing: -.6px; }
.cat-desc { font-family: var(--fs); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.55; margin-top: 10px; font-style: italic; }

/* ══════════════════════════════════════════
   PAGE (páginas estáticas — about/contact/etc)
   ══════════════════════════════════════════ */
.static-page { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 40px 48px; max-width: 820px; margin: 16px auto; }
.static-page h1 { font-family: var(--fh); font-size: 40px; font-weight: 900; color: var(--black); line-height: 1.1; letter-spacing: -.6px; margin-bottom: 20px; }
.static-page h2 { font-family: var(--fh); font-size: 26px; font-weight: 700; color: var(--black); margin: 28px 0 12px; }
.static-page h3 { font-family: var(--fh); font-size: 20px; font-weight: 700; color: var(--black); margin: 22px 0 10px; }
.static-page p { font-family: var(--fs); font-size: 17px; line-height: 1.75; color: var(--body); margin-bottom: 18px; }
.static-page a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(192,57,43,.3); text-underline-offset: 3px; }
.static-page a:hover { text-decoration-color: var(--red); }
.static-page ul, .static-page ol { font-family: var(--fs); padding-left: 24px; margin-bottom: 18px; font-size: 17px; line-height: 1.75; }
.static-page li { margin-bottom: 8px; }

/* ══════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════ */
.e404-wrap { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 80px 32px; text-align: center; margin: 32px auto; max-width: 560px; }
.e404-num { font-family: var(--fh); font-size: 120px; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -4px; }
.e404-title { font-family: var(--fh); font-size: 32px; font-weight: 900; color: var(--black); margin: 12px 0 14px; letter-spacing: -.5px; }
.e404-desc { font-family: var(--fs); font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.e404-btn { display: inline-block; padding: 12px 30px; background: var(--black); color: #fff; border-radius: 40px; font-family: var(--fc); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; transition: background .15s; }
.e404-btn:hover { background: var(--red); }

/* ══════════════════════════════════════════
   FOOTER (idéntico al editorial, pediste mantener)
   ══════════════════════════════════════════ */
.footer { background: var(--black); margin-top: 24px; padding: 40px 0 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.f-logo { font-family: var(--fh); font-size: 36px; font-weight: 900; color: #fff; line-height: 1; text-align: center; letter-spacing: -1px; }
.f-logo em { font-style: normal; color: var(--red); }
.f-tagline { font-family: var(--fc); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.3); text-align: center; }
.f-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.f-nav-link { font-family: var(--fc); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.4); cursor: pointer; transition: color .15s; padding: 4px 8px; }
.f-nav-link:hover { color: #fff; }
.f-nav-sep { color: rgba(255,255,255,.12); font-size: 10px; }
.f-divider { width: 100%; height: 1px; background: rgba(255,255,255,.08); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--fc); font-size: 11px; font-weight: 600; letter-spacing: .5px; color: rgba(255,255,255,.2); flex-wrap: wrap; gap: 8px; }
.f-pb a { color: rgba(255,255,255,.4); }
.f-pb a:hover { color: #fff; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1023px) {
  .main-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .sidebar > * { flex: 1 1 280px; }
  .sb-sticky { position: static; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-img-wrap { aspect-ratio: 16 / 9; }
  .hero-title { font-size: 28px; }
  .article-title { font-size: 34px; }
  .article-body { padding: 28px 32px 32px; font-size: 17px; }
  .article-header, .breadcrumb, .article-feat-caption, .article-tags { padding-left: 32px; padding-right: 32px; }
  .author-box { margin-left: 32px; margin-right: 32px; }
  .article-inline-ad { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-inner { gap: 16px; padding: 0 16px; flex-wrap: wrap; }
  .site-brand { font-size: 28px; }
  .search-wrap { max-width: 100%; order: 3; flex-basis: 100%; }
  .topbar-inner { padding: 0 16px; gap: 10px; font-size: 10px; }
  .tb-date { display: none; }
  .page { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .nav-link { padding: 12px 12px; font-size: 12px; }
  .main-layout { padding: 6px 0 24px; }
  .grid4 { grid-template-columns: 1fr; gap: 12px; }
  .story { grid-template-columns: 110px 1fr; }
  .story-img { width: 110px; min-height: 100px; }
  .story-body { padding: 14px 16px; gap: 4px; }
  .story-title { font-size: 16px; }
  .story-exc { display: none; }
  .hero-content { padding: 20px 20px 24px; gap: 10px; }
  .hero-title { font-size: 24px; }
  .hero-lead { font-size: 14px; -webkit-line-clamp: 2; }
  .bb-wrap { padding: 16px 0 8px; }
  .bb.ad-slot { min-height: 100px; }
  .article-title { font-size: 26px; }
  .article-lead { font-size: 16px; padding-left: 14px; }
  .article-body { padding: 24px 20px 28px; font-size: 16px; line-height: 1.75; }
  .article-body p:first-of-type::first-letter { font-size: 3.5em; }
  .article-body h2 { font-size: 22px; }
  .article-body blockquote { font-size: 19px; padding-left: 16px; margin: 24px 0; }
  .article-header, .breadcrumb, .article-feat-caption, .article-tags { padding-left: 20px; padding-right: 20px; }
  .author-box { margin-left: 20px; margin-right: 20px; padding: 16px 18px; gap: 12px; }
  .author-avatar { width: 40px; height: 40px; }
  .article-inline-ad { margin-left: -20px; margin-right: -20px; padding: 20px; }
  .article-byline { font-size: 11px; gap: 6px; }
  .share-row { margin-left: 0; margin-top: 8px; flex-basis: 100%; }
  .static-page { padding: 28px 22px; }
  .static-page h1 { font-size: 28px; }
  .static-page p, .static-page ul, .static-page ol { font-size: 15px; }
  .cat-header { padding: 20px 22px; }
  .cat-header h1 { font-size: 26px; }
  .footer-bot { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════
   CATEGORY PAGE — minimal header
   ══════════════════════════════════════════ */
.cat-header-min { padding: 8px 4px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-title { font-family: var(--fh); font-size: 32px; font-weight: 900; color: var(--black); letter-spacing: -.6px; line-height: 1; }
.cat-meta { font-family: var(--fc); font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--faint); text-transform: uppercase; }
.cat-desc { font-family: var(--fs); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.55; margin-top: 10px; font-style: italic; flex-basis: 100%; }

/* ══ FOOTER: logo imagen, socials, cookie banner ══ */
.f-logo-img { max-height: 44px; width: auto; display: block; }
.f-socials { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.f-social { width: 28px; height: 28px; border-radius: 20%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .15s; }
.f-social:hover { background: var(--red); color: #fff; }
.f-social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 620px; margin: 0 auto; background: var(--black); color: rgba(255,255,255,.85); border-radius: var(--card-radius); padding: 18px 22px; z-index: 1000; box-shadow: 0 10px 40px rgba(0,0,0,.3); font-family: var(--fs); font-size: 14px; line-height: 1.5; }
.cookie-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; margin: 0; min-width: 240px; }
.cookie-inner a { color: var(--red); text-decoration: underline; }
.cookie-btn { background: var(--red); color: #fff; border: none; padding: 10px 20px; border-radius: 40px; font-family: var(--fc); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.cookie-btn:hover { background: #fff; color: var(--red); }

/* ══ Load more · fade-in animation ══ */
.story.story-new { animation: story-fade-in .4s ease-out both; }
.g4-art.story-new { animation: story-fade-in .4s ease-out both; }
@keyframes story-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   BANNERS — sin border-radius (override)
   ══════════════════════════════════════════
   Los banners 970×250, 728×90, 300×250 y 300×600 deben verse planos,
   sin esquinas redondeadas. Las cards de notas siguen con radius.
*/
.bb,
.bb img,
.infeed,
.article-inline-ad .ad-inner,
.article-inline-ad .ad-inner img,
.sb-ad,
.sb-ad img { border-radius: 0 !important; }
.bb, .infeed, .sb-ad { overflow: hidden; }

/* ============================================================
   HEADER V2 — 2026-04-24 (corregido)
   · Topbar sin fecha · "En tendencia" en vez de "En vivo"
   · Redes sociales + fecha en el header
   · Nav sticky compactada (solo la nav queda pegada arriba)
   ============================================================ */

/* Ocultar la fecha vieja del topbar */
.topbar .tb-date,
.topbar .tb-sep { display: none !important; }

/* Forzar topbar y header no-sticky (solo la nav queda arriba) */
.topbar,
.header {
  position: static !important;
}

/* Header inner con bloque derecho (redes + fecha) */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Iconos de redes sociales */
.header-socials { display: flex; gap: 8px; }
.header-social {
  width: 32px; height: 32px;
  border: 1px solid #d0d1d5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
  transition: all .15s ease;
}
.header-social:hover {
  border-color: var(--red);
  color: var(--red);
}
.header-social svg {
  width: 14px; height: 14px;
  fill: currentColor;
  display: block;
}

/* Fecha en el header: kicker + día grande */
.header-date {
  border-left: 1px solid #e4e5e9;
  padding-left: 14px;
  line-height: 1;
}
.header-date-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.header-date-main {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Nav sticky (override del sticky original) */
.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #fff;
  transition: box-shadow .15s ease;
}

/* Cuando la nav está pegada arriba: sombra + links más compactos */
.nav.is-sticky {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav.is-sticky .nav-link {
  padding-top: 8px;
  padding-bottom: 8px;
  transition: padding .15s ease;
}

/* Responsive: en mobile ocultamos el bloque derecho del header */
@media (max-width: 768px) {
  .header-right { display: none; }
}

/* ============================================================
   PRESSBULK THEME — Páginas estáticas (about, contact, terms, etc.)
   Pegá este bloque al final de /themes/standalone/assets/theme.css
   ============================================================ */

/* --- Wrapper centrado, ancho razonable de lectura --- */
.static-page-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* --- Card blanco con sombra sutil (igual a las cards del frontend) --- */
.static-page-card {
    background: #fff;
    border: 1px solid var(--border, #e5e1d8);
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(15, 20, 30, .04),
        0 2px 8px rgba(15, 20, 30, .03);
    padding: 40px 48px;
}

@media (max-width: 720px) {
    .static-page-wrap {
        padding: 20px 12px 36px;
    }
    .static-page-card {
        padding: 28px 22px;
    }
}

/* --- Breadcrumb arriba del todo --- */
.static-breadcrumb {
    font-family: var(--fui, 'Inter', sans-serif);
    font-size: 12px;
    color: var(--muted, #6b6660);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}

.static-breadcrumb a {
    color: var(--muted, #6b6660);
    text-decoration: none;
    transition: color .15s ease;
}

.static-breadcrumb a:hover {
    color: var(--red, #c0392b);
}

.static-breadcrumb .bc-sep {
    margin: 0 6px;
    color: var(--border, #d8d4cc);
}

.static-breadcrumb .bc-current {
    color: var(--ink, #1a1a1a);
    font-weight: 600;
}

/* --- Header de la página --- */
.static-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-l, #eef0f3);
}

.static-title {
    font-family: var(--fh, 'Playfair Display', Georgia, serif);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink, #1a1a1a);
    margin: 0 0 12px 0;
}

@media (max-width: 720px) {
    .static-title {
        font-size: 30px;
    }
}

.static-meta {
    font-family: var(--fui, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--muted, #6b6660);
    margin: 0;
    font-weight: 500;
}

/* --- Body del contenido (HTML que viene del admin) --- */
.static-body {
    font-family: var(--fui, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink, #1a1a1a);
}

/* OJO: NO drop cap acá. Sobreescribe lo que pueda heredar. */
.static-body p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

.static-body p {
    margin: 0 0 16px 0;
}

.static-body p:last-child {
    margin-bottom: 0;
}

.static-body h2 {
    font-family: var(--fh, 'Playfair Display', Georgia, serif);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink, #1a1a1a);
    margin: 32px 0 14px 0;
}

.static-body h3 {
    font-family: var(--fui, 'Inter', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink, #1a1a1a);
    margin: 24px 0 10px 0;
}

.static-body strong {
    font-weight: 700;
    color: var(--ink, #1a1a1a);
}

.static-body em {
    font-style: italic;
}

.static-body a {
    color: var(--red, #c0392b);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .15s ease;
}

.static-body a:hover {
    color: var(--red-dark, #962d22);
}

.static-body ul,
.static-body ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.static-body ul li,
.static-body ol li {
    margin-bottom: 6px;
}

.static-body ul li:last-child,
.static-body ol li:last-child {
    margin-bottom: 0;
}

.static-body hr {
    border: none;
    border-top: 1px solid var(--border-l, #eef0f3);
    margin: 28px 0;
}

.static-body code {
    background: var(--bg, #f7f5f0);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--fmono, 'JetBrains Mono', monospace);
    font-size: 14px;
    color: var(--red, #c0392b);
}

.static-body blockquote {
    border-left: 3px solid var(--red, #c0392b);
    padding-left: 16px;
    margin: 20px 0;
    color: var(--muted, #6b6660);
    font-style: italic;
}

/* --- Empty state --- */
.static-body-empty {
    color: var(--muted, #6b6660);
    font-style: italic;
    text-align: center;
    padding: 32px 0;
}

/* ============================================================
   NEWSCURATO — MOBILE HAMBURGER MENU (v2)
   Botón en el header (a la izquierda del logo)
   Drawer slide-in desde la izquierda + overlay
   Activado a ≤768px
   ============================================================ */

/* --- Desktop: ocultar todo lo de mobile --- */
.nav-toggle,
.header-spacer,
.nav-drawer,
.nav-overlay { display: none; }

/* --- Botón hamburguesa: 3 barras animadas --- */
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.nav-toggle-bars span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.5,.1,.25,1.4), top .35s ease, opacity .2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }

body.nav-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }


/* --- MOBILE (≤768px): activar la hamburguesa, ocultar el .nav --- */
@media (max-width: 768px) {

  /* Header reorganizado: 3 zonas (botón | logo centrado | spacer) + buscador en fila 2 */
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 12px 14px;
    align-items: center;
    justify-content: space-between;
  }

  /* Botón hamburguesa visible a la izquierda */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: var(--black, #1a1a1a);
    cursor: pointer;
    border-radius: 8px;
    flex: 0 0 44px;
    order: 1;
    transition: background .15s;
  }
  .nav-toggle:hover { background: rgba(0,0,0,.04); }

  /* Logo centrado: ocupa el espacio del medio */
  .site-brand {
    flex: 1 1 0;
    text-align: center;
    order: 2;
    font-size: 26px;
    padding: 0 8px;
  }
  .site-brand img {
    margin: 0 auto;
  }

  /* Spacer invisible a la derecha (mismo ancho que el botón = balance perfecto) */
  .header-spacer {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    order: 3;
  }

  /* Buscador full-width en una segunda fila */
  .search-wrap {
    order: 4;
    flex: 1 0 100%;
    max-width: 100%;
    margin-top: 14px;
  }

  /* Header-right (socials + fecha) ya está oculto por la regla existente .header-right{display:none} */

  /* Ocultar todo el .nav (categorías ahora viven en el drawer) */
  .nav { display: none; }

  /* DRAWER lateral */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  body.nav-open .nav-drawer { transform: translateX(0); }

  /* Header oscuro del drawer */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 22px 18px;
    background: var(--black, #1a1a1a);
    color: #fff;
    flex-shrink: 0;
  }
  .drawer-title {
    font-family: var(--fh, 'Playfair Display', Georgia, serif);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
  }
  .drawer-close {
    background: rgba(255,255,255,.1);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    border-radius: 50%;
    transition: background .15s;
    line-height: 1;
    padding: 0;
  }
  .drawer-close:hover { background: rgba(255,255,255,.2); }

  /* Lista scrolleable de categorías */
  .drawer-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Estilo de los nav-link DENTRO del drawer (evitamos el original .nav-link de desktop) */
  .nav-drawer .nav-link {
    padding: 16px 22px;
    border-bottom: 1px solid #f5f3ee;
    margin-bottom: 0;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    transition: all .15s;
    color: var(--muted, #6b6660);
  }
  .nav-drawer .nav-link::after {
    content: "›";
    font-size: 16px;
    color: #d0cdc6;
    font-weight: 400;
    transition: transform .15s, color .15s;
  }
  .nav-drawer .nav-link:hover {
    background: #faf8f3;
    color: var(--black, #1a1a1a);
    padding-left: 26px;
  }
  .nav-drawer .nav-link:hover::after {
    transform: translateX(3px);
    color: var(--red, #c0392b);
  }
  .nav-drawer .nav-link.on {
    color: var(--black, #1a1a1a);
    background: #fdf2f0;
    border-left: 3px solid var(--red, #c0392b);
    border-bottom-color: #f5f3ee;
    padding-left: 19px;
  }
  .nav-drawer .nav-link.on:hover { padding-left: 23px; }

  /* Overlay oscuro */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Bloquear scroll del body cuando el menú está abierto */
  body.nav-open { overflow: hidden; }
}