/* ============================================================
   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 { align-self: start; display: flex; flex-direction: column; gap: 16px; }
.sb-sticky { position: sticky; top: 68px; }

/* ══ 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; }

.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; }
.f-social { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-family: var(--fc); font-size: 14px; font-weight: 700; transition: all .15s; }
.f-social:hover { background: var(--red); color: #fff; }

/* 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); }