/* =========================================================
   Sitio de noticias — estilos públicos
   --accent e --ink se configuran desde Panel → Ajustes
   ========================================================= */
:root {
  --accent: #B3261E;
  --ink: #121417;
  --text: #24272C;
  --muted: #6B7078;
  --line: #E5E1DA;
  --line-strong: #CFC9BF;
  --paper: #FFFFFF;
  --paper-2: #F7F5F1;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 12px; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--sans); padding: 13px 20px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--accent); }
.more { font: 600 13px var(--sans); color: var(--accent); white-space: nowrap; }
.more:hover { text-decoration: underline; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 6px; }
.icon-btn:hover { background: var(--paper-2); }

/* ---------- Barra demo y utilidades ---------- */
.demo-bar { background: #FFF6D6; color: #6B5300; font-size: 12.5px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F1DF9C; }
.utility { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.utility__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.utility__links { display: flex; gap: 18px; }
.utility__links a:hover { color: var(--accent); }
.utility__panel { color: var(--accent); font-weight: 600; }

/* ---------- Cabecera ---------- */
.masthead { padding: 18px 0 10px; text-align: center; }
.masthead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-open { justify-self: start; }
.brand { display: inline-block; }
.brand__name { font: 800 clamp(34px, 5.4vw, 58px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.brand__name--sm { font-size: 26px; }
.brand__name--light { color: #fff; font-size: 30px; }
/* Tamaño del logo: se configura en Panel → Ajustes (computadora y celular) */
.brand { max-width: 100%; }
.brand__logo { height: var(--logo-h, 72px); width: auto; max-width: min(640px, 50vw); object-fit: contain; }
.mini-brand img { height: 28px; width: auto; max-width: 180px; object-fit: contain; }
.drawer__logo { height: 34px; width: auto; max-width: 70%; object-fit: contain; }
.masthead__tagline { margin-top: 6px; font: italic 500 15px var(--serif); color: var(--muted); }
.masthead__search { justify-self: end; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 4px 0 14px; height: 40px; width: min(260px, 100%); background: #fff; }
.masthead__search input { border: 0; outline: 0; font: 14px var(--sans); flex: 1; min-width: 0; background: transparent; }
.masthead__search button { border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.masthead__search:focus-within { border-color: var(--ink); }

.sections-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.sections-nav__inner { display: flex; align-items: center; gap: 16px; }
.sections-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.sections-nav ul::-webkit-scrollbar { display: none; }
.sections-nav a { display: block; padding: 13px 12px 11px; font: 600 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--ink); }
.sections-nav a:hover { color: var(--sec, var(--accent)); }
.sections-nav a.is-active { border-bottom-color: var(--sec, var(--accent)); color: var(--sec, var(--accent)); }
.mini-brand { display: none !important; font: 800 20px var(--serif) !important; text-transform: none !important; letter-spacing: -.01em !important; padding: 8px 0 !important; border: 0 !important; }
.sections-nav.is-stuck .mini-brand { display: block !important; }
.sections-nav.is-stuck ul { justify-content: flex-start; }

@media (max-width: 900px) {
  .masthead { padding: 10px 0 6px; }
  .masthead__inner { grid-template-columns: auto 1fr; }
  .brand { justify-self: center; margin-right: 42px; min-width: 0; }
  .brand__logo { height: var(--logo-h-m, 44px); max-width: calc(100vw - 120px); }
  .masthead__search, .masthead__tagline, .utility__links { display: none; }
  .sections-nav ul { justify-content: flex-start; }
}
@media (min-width: 901px) { .nav-open { visibility: hidden; } }
@media (min-width: 901px) and (max-width: 1180px) { .brand__logo { height: calc((var(--logo-h, 72px) + var(--logo-h-m, 44px)) / 2); max-width: 46vw; } }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(330px, 86vw); background: #fff; z-index: 1; padding: 16px 20px; overflow-y: auto; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__search input { width: 100%; font: 15px var(--sans); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px; }
.drawer__list { list-style: none; padding: 0; margin: 14px 0 0; }
.drawer__list a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Última hora ---------- */
.ticker { background: var(--accent); color: #fff; }
.ticker__inner { display: flex; align-items: center; gap: 18px; height: 44px; overflow: hidden; }
.ticker__label { display: flex; align-items: center; gap: 8px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.2); padding: 6px 10px; border-radius: 3px; flex: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list a { white-space: nowrap; font-weight: 600; font-size: 14px; }
.ticker__list a:hover { text-decoration: underline; }
.ticker__list time { opacity: .8; margin-right: 8px; font-weight: 500; }
/* Desplazamiento continuo (lo activa site.js; se pausa al pasar el cursor o con el teclado) */
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-move var(--ticker-dur, 40s) linear infinite; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track .ticker__list { overflow: visible; gap: 18px; padding-right: 18px; flex: none; }
.ticker__track .ticker__list li { display: flex; align-items: center; gap: 18px; }
.ticker__track .ticker__list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); }
.ticker__track .ticker__list a { max-width: none; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.badge-live { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 2px; margin-bottom: 8px; }

/* ---------- Tarjetas ---------- */
.card { display: flex; flex-direction: column; gap: 12px; }
.card__media { display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; border-radius: 2px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__section { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sec, var(--accent)); align-self: flex-start; }
.card__section:hover { text-decoration: underline; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__title { font: 700 21px/1.18 var(--serif); letter-spacing: -.01em; }
.card__title a:hover { color: var(--accent); }
.card__summary { color: #464A51; font-size: 15px; line-height: 1.5; }
.card__meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card__author { font-weight: 600; color: var(--text); }
.card__author + time::before { content: "·"; margin-right: 8px; color: var(--line-strong); }

.card--lead .card__title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.card--lead .card__summary { font: 400 19px/1.45 var(--serif); color: #3C4047; }
.card--lead .card__section { font-size: 12.5px; }
.card--sm { flex-direction: row; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.card--sm .card__media { width: 116px; flex: none; aspect-ratio: 4 / 3; }
.card--sm .card__title { font-size: 17px; }
/* Títulos muy largos: en tarjetas chicas se cortan con “…” (en la nota se ven completos) */
.card--sm .card__title, .card--md .card__title, .card--mini .card__title, .timeline a, .ranked a, .columnists__title, .ticker__list a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.card--md .card__title { -webkit-line-clamp: 5; }
.ticker__list a { -webkit-line-clamp: 1; display: block; max-width: 70vw; text-overflow: ellipsis; white-space: nowrap; }
.card--row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.card--row .card__title { font-size: 26px; line-height: 1.15; }
.card--mini .card__title { font-size: 16px; }
.card--opinion .card__title { font-style: italic; font-weight: 600; }
.card__op-photo { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--paper-2), #ECE7DE); }
.card__op-photo img { width: 44%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
@media (max-width: 640px) { .card--row { grid-template-columns: 1fr; } .card--row .card__title { font-size: 23px; } }

/* ---------- Portada ---------- */
.top { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 36px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.top__latest { border-left: 1px solid var(--line); padding-left: 28px; }
.widget__title { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 13px 0 13px 18px; border-bottom: 1px solid var(--line); position: relative; display: grid; gap: 3px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline time { font: 600 11.5px var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.timeline a { font: 600 17px/1.25 var(--serif); color: var(--ink); }
.timeline a:hover { color: var(--accent); }
.timeline small { font-size: 11.5px; color: var(--sec, var(--muted)); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .top { grid-template-columns: 1fr; } .top__latest { border-left: 0; padding-left: 0; } .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .featured { grid-template-columns: 1fr; } }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 30px 0 56px; align-items: start; }
@media (max-width: 1000px) { .with-sidebar { grid-template-columns: 1fr; } }
.blocks { display: grid; gap: 40px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; border-top: 4px solid var(--sec, var(--ink)); padding-top: 10px; margin-bottom: 18px; }
.block__head h2 { font: 800 26px var(--serif); letter-spacing: -.01em; }
.block__head h2 a:hover { color: var(--sec); }
.block__grid { display: grid; gap: 6px; }
.block__rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-top: 12px; }
.block__rest .card--sm { flex-direction: column; gap: 10px; }
.block__rest .card--sm .card__media { width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .block__rest { grid-template-columns: 1fr; } .block__rest .card--sm { flex-direction: row; } .block__rest .card--sm .card__media { width: 116px; aspect-ratio: 4 / 3; } }

/* ---------- Barra lateral ---------- */
.sidebar { display: grid; gap: 34px; position: sticky; top: 70px; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ranked__n { font: 800 34px/1 var(--serif); color: var(--accent); min-width: 26px; }
.ranked a { font: 600 16.5px/1.25 var(--serif); color: var(--ink); display: block; }
.ranked a:hover { color: var(--accent); }
.ranked small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.columnists { list-style: none; margin: 0; padding: 0; }
.columnists li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.columnists img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.columnists__name { display: block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.columnists__title { display: block; font: italic 600 17px/1.25 var(--serif); color: var(--ink); margin-top: 2px; }
.columnists__title:hover { color: var(--accent); }
@media (max-width: 1000px) { .sidebar { position: static; } }

/* ---------- Nota ---------- */
.preview-bar { background: #1F2937; color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; }
.preview-bar a { color: #FDE68A; margin-left: 12px; font-weight: 600; }
.story { padding: 26px 0 10px; }
.story__head { max-width: 880px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.crumbs { display: flex; gap: 8px; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.story__kicker { font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.story__title { font: 800 clamp(32px, 4.6vw, 54px)/1.06 var(--serif); letter-spacing: -.02em; }
.story--opinion .story__title { font-style: italic; font-weight: 600; }
.story__dek { font: 400 clamp(19px, 2vw, 23px)/1.42 var(--serif); color: #43474E; margin-top: 16px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.byline__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.story--opinion .byline__photo { width: 64px; height: 64px; }
.byline__text { display: grid; font-size: 14px; flex: 1; min-width: 220px; }
.byline__text a { font-weight: 700; color: var(--ink); }
.byline__text a:hover { color: var(--accent); }
.byline__dates { color: var(--muted); font-size: 13px; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); background: #fff; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share .share__wa:hover { background: #25D366; border-color: #25D366; }
.share button.copied { background: #16A34A; color: #fff; border-color: #16A34A; }

.story__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; align-items: start; }
.story__main { max-width: 720px; }
@media (max-width: 1000px) { .story__layout { grid-template-columns: 1fr; } }
.story__cover { margin: 0 0 28px; }
.story__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.story__cover figcaption, .body-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.credit { font-style: italic; }

.prose { font: 400 20px/1.65 var(--serif); color: #1F2226; }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child::first-letter { font: 800 3.4em/0.82 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--accent); }
.story--opinion .prose > p:first-child::first-letter { font-style: normal; }
.prose h2 { font: 700 27px/1.2 var(--serif); margin-top: 1.6em; }
.prose h3 { font: 700 22px/1.25 var(--serif); margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font: italic 500 25px/1.35 var(--serif); color: var(--ink); }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::after { content: "• • •"; color: var(--line-strong); letter-spacing: .5em; }
.body-figure { margin: 1.6em 0; }
.body-figure img { width: 100%; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .prose { font-size: 18.5px; } .prose blockquote { font-size: 21px; } }

.tags { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.author-box { display: flex; gap: 18px; margin-top: 34px; padding: 22px; background: var(--paper-2); border-top: 3px solid var(--ink); }
.author-box img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box small { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.author-box__name { display: block; font: 700 21px var(--serif); color: var(--ink); margin: 2px 0 6px; }
.author-box p { color: #4B5058; font-size: 14.5px; }
.disclaimer { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 16px; }
.related { padding: 24px 0 56px; border-top: 1px solid var(--line); }
.related .featured { border: 0; padding-top: 16px; }

/* ---------- Listados ---------- */
.list-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); }
.list-head h1 { font: 800 clamp(34px, 5vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--sec, var(--ink)); }
.list-head p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.list-head__eyebrow { font: 700 12px var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 6px !important; }
.rss-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.list-lead { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.list-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0 10px; }
@media (max-width: 1000px) { .list-grid, .list-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .list-grid, .list-grid--4 { grid-template-columns: 1fr; } }
.results { display: grid; gap: 26px; }
.results .card--row { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.search-big { display: flex; gap: 10px; margin-top: 14px; max-width: 640px; }
.search-big input { flex: 1; font: 17px var(--sans); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 4px; min-width: 0; }
.search-big input:focus { outline: none; border-color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; }

/* Opinión */
.columnist-row { display: flex; gap: 14px; overflow-x: auto; padding: 22px 0; border-bottom: 1px solid var(--line); }
.columnist-chip { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; flex: none; max-width: 340px; }
.columnist-chip:hover { border-color: var(--ink); }
.columnist-chip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.columnist-chip strong { display: block; font-size: 14px; }
.columnist-chip small { display: block; font: italic 14px var(--serif); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.opinion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; padding: 10px 0; }
.op-card { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.op-card > img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.op-card__author { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.op-card__col { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.op-card h2 { font: italic 600 25px/1.18 var(--serif); margin: 8px 0; }
.op-card h2 a:hover { color: var(--accent); }
.op-card p { color: #4B5058; font-size: 15px; }
.op-card time { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 800px) { .opinion-grid { grid-template-columns: 1fr; } }

.author-head { display: flex; gap: 28px; align-items: center; padding: 36px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.author-head img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.author-head h1 { font: 800 clamp(32px, 4vw, 46px) var(--serif); }
.author-head p { color: #4B5058; max-width: 60ch; margin-top: 6px; }
@media (max-width: 600px) { .author-head { flex-direction: column; align-items: flex-start; } .author-head img { width: 96px; height: 96px; } }

.notfound { text-align: center; padding: 80px 20px; display: grid; justify-items: center; gap: 14px; }
.notfound__code { font: 800 96px/1 var(--serif); color: var(--accent); }
.notfound h1 { font: 800 34px var(--serif); }
.notfound p { color: var(--muted); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px 0 0; margin-top: 20px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr; gap: 44px; padding-bottom: 40px; }
.footer__about p { margin: 14px 0 18px; max-width: 42ch; line-height: 1.6; }
.footer__title { font: 700 12px var(--sans); color: #fff; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__list--cols { grid-template-columns: 1fr 1fr; }
.footer__list a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Revista en PDF ---------- */
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.mag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.edition__blank { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 14px; background: linear-gradient(160deg, var(--accent), var(--ink)); color: #fff; font: 700 17px/1.15 var(--serif); }

/* Portada: bloque de la revista del mes */
.mag-home { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 32px; align-items: center; background: var(--ink); color: #fff; padding: 30px; margin: 36px 0 8px; border-radius: 4px; }
.mag-home__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; box-shadow: 0 14px 30px rgba(0,0,0,.45); transform: rotate(-2deg); transition: transform .3s; }
.mag-home__cover:hover { transform: rotate(0) scale(1.02); }
.mag-home__cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-home__eyebrow { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 55%, #fff); }
.mag-home h2 { color: #fff; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.01em; margin-top: 8px; }
.mag-home h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mag-home__issue { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; }
.mag-home__desc { color: rgba(255,255,255,.88); font: 400 17px/1.5 var(--serif); margin-top: 12px; }
.mag-home__past { border-left: 1px solid rgba(255,255,255,.15); padding-left: 26px; align-self: stretch; display: flex; flex-direction: column; }
.mag-home__past h3 { color: rgba(255,255,255,.7); font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.mag-home__past ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mag-home__past li a { display: flex; gap: 12px; align-items: center; }
.mag-home__past li a:hover strong { text-decoration: underline; }
.mag-home__thumb { flex: none; width: 44px; aspect-ratio: 3 / 4; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.mag-home__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mag-home__past strong { display: block; font: 600 15px/1.25 var(--serif); }
.mag-home__past small { display: block; color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 2px; }
.mag-home__all { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.mag-home__all:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1000px) { .mag-home { grid-template-columns: 170px minmax(0, 1fr); } .mag-home__past { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; } .mag-home__past ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mag-home { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; margin-left: -20px; margin-right: -20px; border-radius: 0; } .mag-home__cover { width: 150px; margin: 0 auto; } .mag-home__past ul { grid-template-columns: 1fr; } .mag-actions .btn { flex: 1 1 auto; } }

/* Página /revista */
.mag-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; padding: 34px 0 28px; }
.mag-head__cover { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; box-shadow: 0 12px 28px rgba(18,20,23,.22); }
.mag-head__cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-head h1 { font: 800 clamp(30px, 4.4vw, 48px)/1.06 var(--serif); letter-spacing: -.02em; }
.mag-head__meta { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.mag-head__desc { font: 400 19px/1.5 var(--serif); color: #3C4047; margin-top: 14px; max-width: 760px; }
.mag-note { margin-top: 16px; font-size: 14.5px; background: var(--accent-soft); padding: 10px 14px; border-radius: 3px; }
.mag-note a { font-weight: 600; color: var(--accent); }
@media (max-width: 700px) { .mag-head { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } .mag-head__cover { width: 160px; } }

/* Visor */
.viewer { background: #2B2E33; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 70px; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #1C1E22; color: #fff; position: relative; z-index: 1; }
.viewer__group { display: flex; align-items: center; gap: 4px; }
.viewer__bar button, .viewer__dl { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; font: 600 13px var(--sans); }
.viewer__bar button:hover, .viewer__dl:hover { background: rgba(255,255,255,.12); }
.viewer__count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.8); }
.viewer__count input { width: 46px; height: 32px; text-align: center; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; font: 600 14px var(--sans); }
.viewer__zoom { min-width: 58px !important; }
.viewer__sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 4px; }
.viewer__pages { position: relative; height: min(84vh, 1100px); overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; -webkit-overflow-scrolling: touch; }
.viewer__pages > .viewer__page { flex: none; }
.viewer__page { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); max-width: none; }
.viewer__page canvas { display: block; width: 100%; height: 100%; }
.viewer__status { color: rgba(255,255,255,.85); margin: auto; padding: 40px 16px; text-align: center; }
.viewer__status a { color: #fff; text-decoration: underline; }
.viewer.is-full, .viewer:fullscreen { position: fixed; inset: 0; z-index: 300; border-radius: 0; }
.viewer.is-full .viewer__pages, .viewer:fullscreen .viewer__pages { height: auto; flex: 1; }
@media (max-width: 640px) { .viewer { margin: 0 -20px; border-radius: 0; } .viewer__bar { padding: 6px; gap: 2px; } .viewer__group { gap: 0; } .viewer__bar button, .viewer__dl { min-width: 34px; padding: 0 4px; } .viewer__zoom { min-width: 46px !important; } .viewer__count input { width: 40px; } .viewer__pages { height: 78vh; padding: 8px; gap: 8px; } .viewer__sep { display: none; } }
/* Si la página es más ancha que el visor (zoom), se alinea a la izquierda para poder desplazarse */
.viewer__pages.is-wide { align-items: flex-start; }

/* Visor: vista de libro (doble página) */
.viewer__mode.is-on { background: rgba(255,255,255,.18); }
.book { display: none; margin: auto; perspective: 2600px; flex: none; }
.viewer__pages.is-book { justify-content: center; }
.viewer__pages.is-book > .viewer__page { display: none; }
.viewer__pages.is-book > .book { display: block; }
.viewer__pages.is-book.is-wide { justify-content: flex-start; }
.book__spread { position: relative; display: flex; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.book__half { position: relative; width: var(--pw); height: var(--ph); background: #fff; cursor: pointer; overflow: hidden; }
.book__half.is-empty { background: transparent; cursor: default; }
.book__half canvas, .book__face canvas { display: block; width: 100%; height: 100%; }
/* Sombra del lomo, para que se vea como revista abierta */
.book__half:not(.is-empty)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; pointer-events: none; }
.book__half--left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.22), rgba(0,0,0,0)); }
.book__half--right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.22), rgba(0,0,0,0)); }
.book__leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .75s cubic-bezier(.35,.1,.25,1); z-index: 2; pointer-events: none; }
.book__leaf--right { left: var(--pw); transform-origin: left center; }
.book__leaf--left { left: 0; transform-origin: right center; }
.book__leaf--right.is-turning { transform: rotateY(-180deg); }
.book__leaf--left.is-turning { transform: rotateY(180deg); }
.book__face { position: absolute; inset: 0; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.book__face--back { transform: rotateY(180deg); }

/* Archivo de ediciones */
.mag-archive { margin: 44px 0 10px; }
.edition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.edition { display: flex; flex-direction: column; gap: 12px; }
.edition__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); border-radius: 2px; box-shadow: 0 6px 16px rgba(18,20,23,.14); }
.edition__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.edition:hover .edition__cover img { transform: scale(1.03); }
.edition__issue { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.edition__title { font: 700 19px/1.2 var(--serif); margin-top: 4px; }
.edition__title a:hover { color: var(--accent); }
.edition__summary { color: #464A51; font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.edition time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 1000px) { .edition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } .edition__title { font-size: 17px; } .edition__summary { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
