/* =========================================================
   Lánet Post · sistema visual
   Papel frío + tinta azul noche, frambuesa como acento y un
   color propio por sección (como las pestañas de un periódico).
   ========================================================= */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #eaedf6; --ink: #0e1628; --ink-2: #3a4460; --muted: #69718c;
  --line: #dde1ec; --accent: #e6335f; --accent-2: #ff9f1c; --accent-ink: #fff; --gold: #ffc43d; --ok: #12a594;
  --night: #0e1628; --night-2: #1a2440;
  --shadow: 0 1px 2px rgba(14,22,40,.06), 0 10px 28px -14px rgba(14,22,40,.22);
  --shadow-lg: 0 28px 64px -24px rgba(14,22,40,.42);
  --r: 16px;
  --serif: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;   /* titulares */
  --read: 'Newsreader', Georgia, 'Times New Roman', serif;              /* lectura larga */
  --sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; /* interfaz */
  --ease: cubic-bezier(.2,.8,.2,1);
  /* Colores por sección */
  --c-nacional: #e6335f; --c-mundo: #3b6ff5; --c-economia: #0f9f8f; --c-tecnologia: #7a5af8; --c-deportes: #ff7a1a;
  --c-entretenimiento: #e04bb0; --c-ciencia: #0ea5e9; --c-salud: #22b573; --c-cultura: #d99a06;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d; --surface: #131a2d; --surface-2: #1b2340; --ink: #eef1fa; --ink-2: #c3c9dd; --muted: #8a92ae;
    --line: #262f4f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7); --shadow-lg: 0 28px 64px -24px rgba(0,0,0,.85);
    --night: #060a15; --night-2: #111831; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d; --surface: #131a2d; --surface-2: #1b2340; --ink: #eef1fa; --ink-2: #c3c9dd; --muted: #8a92ae;
  --line: #262f4f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7); --shadow-lg: 0 28px 64px -24px rgba(0,0,0,.85);
  --night: #060a15; --night-2: #111831; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
[hidden] { display: none !important; }

/* ---------- Barra de progreso ---------- */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 100; transition: transform .1s linear; }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; background: var(--ink); color: var(--bg); font-size: 13px; height: 34px; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .06em; font-size: 11px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 50s linear infinite; padding-left: 24px; }
.ticker-inner a:hover { color: var(--accent-2); }
.ticker-inner a::before { content: '●'; color: var(--accent); margin-right: 10px; font-size: 9px; vertical-align: 2px; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative; display: inline-block; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.topbar.scrolled { box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.cats { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.cats a:hover { background: var(--surface-2); }
.cats a.active { background: var(--ink); color: var(--bg); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.badge-count { position: absolute; top: 2px; right: 2px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.level-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s; }
.level-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.level-chip.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.flame { filter: grayscale(1); transition: filter .3s; }
.flame.on { filter: none; animation: flicker 2s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.12) rotate(-4deg); } }
.lvl-sep { width: 1px; height: 14px; background: var(--line); }
.lvl-bar { width: 44px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.lvl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent-2)); transition: width .8s var(--ease); }

/* ---------- Botones ---------- */
.btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), box-shadow .2s, background .2s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Live pill ---------- */
.live-pill { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); animation: rise .6s var(--ease); }
.live-pill .pulse-dot { background: #2ee88f; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; margin: 28px 0 40px; }
.hero-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow-lg); }
.hero-main .thumb { position: absolute; inset: -40px 0; z-index: -2; will-change: transform; }
.hero-main::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.85)); }
.hero-body { padding: 32px; max-width: 720px; }
.hero-body h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -.02em; }
.hero-body p { opacity: .9; margin: 0 0 18px; font-size: 17px; }
.hero-main:hover .thumb { transform: scale(1.04); }
.hero-main .thumb { transition: transform 1.2s var(--ease); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.tag.alt { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.tag.sponsor { background: var(--gold); color: #1b1400; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.hero .meta { color: rgba(255,255,255,.8); }

.side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.side-panel h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trend-list li { counter-increment: t; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.trend-list li:first-child { border-top: 0; }
.trend-list li::before { content: counter(t); font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.trend-list a { font-weight: 600; line-height: 1.35; font-size: 15px; transition: color .2s; }
.trend-list a:hover { color: var(--accent); }
.trend-list .meta { margin-top: 4px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; margin: 0; }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16/10; transition: transform .8s var(--ease); }
.card .thumb-wrap { overflow: hidden; position: relative; }
.card:hover .thumb { transform: scale(1.06); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card.read { opacity: .72; }
.card.read::after { content: '✓ Leída'; position: absolute; top: 12px; right: 12px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.save-btn { position: absolute; bottom: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #16130f; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: all .25s var(--ease); }
.card:hover .save-btn, .save-btn.on { opacity: 1; transform: none; }
.save-btn.on { background: var(--accent); color: #fff; }
.save-btn.pop { animation: bump .5s var(--ease); }

/* Miniaturas generadas (sin imágenes externas) */
.thumb { background-size: cover; background-position: center; position: relative; }
.thumb.gen::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.25) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.18) 0 1.5px, transparent 2.5px); background-size: 38px 38px, 26px 26px; opacity: .6; }
.thumb.gen::after { content: attr(data-initial); position: absolute; right: 6%; bottom: -8%; font-family: var(--serif); font-weight: 800; font-size: clamp(90px, 16vw, 200px); color: rgba(255,255,255,.16); line-height: 1; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Anuncios ---------- */
.ad-slot { border: 1px dashed var(--line); border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 13px; min-height: 120px; position: relative; }
.ad-slot::before { content: 'PUBLICIDAD'; position: absolute; top: 8px; left: 12px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.ad-slot b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.ad-slot.tall { min-height: 600px; }
.ad-slot.feed { grid-column: 1 / -1; min-height: 110px; }
.ad-slot a { color: var(--accent); font-weight: 600; }

/* ---------- Sidebar widgets ---------- */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.widget h3 { font-family: var(--serif); margin: 0 0 12px; font-size: 19px; }
.poll-opt { position: relative; display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; overflow: hidden; font-weight: 500; transition: border-color .2s, transform .2s; }
.poll-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateX(3px); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 16%, transparent); transition: width 1s var(--ease); z-index: 0; }
.poll-opt span { position: relative; z-index: 1; display: flex; justify-content: space-between; }
.poll-opt.mine { border-color: var(--accent); }
.poll-opt:disabled { cursor: default; }

.streak-days { display: flex; gap: 6px; margin: 10px 0 12px; }
.streak-days i { flex: 1; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.streak-days i.on { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: #fff; }
.goal { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.goal span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #6fe3b1); width: 0; transition: width 1s var(--ease); }

.nl-box { background: linear-gradient(145deg, var(--ink), #3a2a22); color: #fff; border: 0; }
.nl-box h3 { color: #fff; }
.nl-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nl-form input { border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font: inherit; background: var(--surface); color: var(--ink); }
.nl-form.done { animation: bump .5s; }

/* ---------- Artículo ---------- */
.article-wrap { display: grid; grid-template-columns: 64px minmax(0, 720px) 1fr; gap: 32px; margin-top: 32px; }
.share-rail { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.share-rail button, .share-rail a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; transition: transform .2s var(--ease), background .2s, color .2s; }
.share-rail button:hover, .share-rail a:hover { transform: scale(1.1); background: var(--accent); color: #fff; border-color: var(--accent); }
.article-head h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.025em; margin: 12px 0 16px; }
.article-head .lead { font-size: 20px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }
.article-cover { border-radius: 18px; overflow: hidden; margin: 24px 0; }
.article-cover .thumb { aspect-ratio: 16/8; }
.article-body { font-size: 19px; line-height: 1.75; font-family: var(--serif); font-weight: 400; }
.article-body p { margin: 0 0 1.2em; }
.article-body > p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; font-weight: 800; color: var(--accent); }
.reading-now { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.reading-now .pulse-dot { background: var(--ok); }

.reactions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-items: center; }
.reactions p { margin: 0 12px 0 0; font-weight: 600; width: 100%; }
.react { position: relative; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: transform .2s var(--ease), border-color .2s; }
.react:hover { transform: translateY(-3px) scale(1.05); border-color: var(--accent); }
.react .emo { font-size: 20px; display: inline-block; transition: transform .3s var(--ease); }
.react:hover .emo { transform: scale(1.3) rotate(-8deg); }
.react.on { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-color: var(--accent); }
.burst { position: fixed; pointer-events: none; font-size: 22px; z-index: 200; animation: burst 1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.6) rotate(var(--rot)); opacity: 0; } }

.quiz-card { margin: 28px 0; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 20%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.quiz-card h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; }
.quiz-card .opts { display: grid; gap: 8px; }
.quiz-card button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; font-weight: 500; transition: transform .2s, background .3s, border-color .3s; }
.quiz-card button:hover:not(:disabled) { transform: translateX(4px); border-color: var(--ink); }
.quiz-card button.right { background: var(--ok); color: #fff; border-color: var(--ok); }
.quiz-card button.wrong { background: var(--accent); color: #fff; border-color: var(--accent); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.next-card { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: var(--ink); color: var(--bg); margin: 36px 0; box-shadow: var(--shadow-lg); }
.next-card .thumb { min-height: 180px; }
.next-card .nc-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.next-card h3 { font-family: var(--serif); font-size: 24px; margin: 0; line-height: 1.15; }
.next-card .row { display: flex; align-items: center; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.countdown { position: relative; width: 46px; height: 46px; flex: none; }
.countdown svg { transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 4; }
.countdown .bg { stroke: rgba(255,255,255,.15); }
.countdown .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 0; }
.countdown b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
.next-card .cancel { background: transparent; border: 0; color: rgba(255,255,255,.7); text-decoration: underline; font-size: 13px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related .card h3 { font-size: 17px; }
.related .card p { display: none; }

.reward { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 18px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; transition: transform .6s var(--ease); max-width: calc(100vw - 32px); }
.reward.show { transform: translate(-50%, 0); }
.reward .big { font-size: 30px; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,8,6,.55); backdrop-filter: blur(6px); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--surface); border-radius: 22px; padding: 28px; width: min(480px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
.modal-card.wide { width: min(860px, 100%); }
.modal-card h3 { font-size: 26px; margin: 0 0 14px; line-height: 1.15; }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; }
.exit-list { padding-left: 20px; margin: 0 0 16px; }
.exit-list li { margin-bottom: 8px; font-weight: 600; }
.exit-list a:hover { color: var(--accent); }
.search-card { align-self: start; margin-top: 10vh; width: min(640px, 100%); }
.search-card input { width: 100%; font: 600 20px var(--sans); border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--ink); padding: 8px 0 12px; outline: none; }
.search-card input:focus { border-color: var(--accent); }
.search-results a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results a:hover b { color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.hot { border: 2px solid var(--accent); transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h4 { margin: 0; font-size: 16px; }
.plan .price { font-family: var(--serif); font-size: 36px; font-weight: 800; }
.plan .price small { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; flex: 1; }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head h3 { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.ring-big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 800 26px var(--serif); flex: none; }
.section-mini { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.badge .ico { font-size: 28px; display: block; margin-bottom: 4px; }
.badge.locked { opacity: .4; filter: grayscale(1); }

/* ---------- Toasts / confeti ---------- */
.toasts { position: fixed; top: 80px; right: 16px; z-index: 180; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-size: 14px; animation: slideIn .5s var(--ease); max-width: 320px; }
.toast.out { animation: slideOut .4s var(--ease) forwards; }
.toast .ico { font-size: 22px; }
@keyframes slideIn { from { transform: translateX(120%); } }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 190; width: 100%; height: 100%; }

.load-more { display: flex; justify-content: center; margin: 32px 0; }
.sentinel { height: 1px; }
.empty { text-align: center; padding: 80px 20px; }
.empty h2 { font-family: var(--serif); font-size: 32px; margin: 0 0 8px; }

.footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 32px 0 80px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent); }

.page-fade { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ad-slot.tall { min-height: 250px; }
  .article-wrap { grid-template-columns: 1fr; }
  .share-rail { position: fixed; top: auto; bottom: 16px; right: 16px; left: auto; flex-direction: row; z-index: 40; background: var(--surface); padding: 6px; border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .share-rail button, .share-rail a { width: 38px; height: 38px; }
  .article-aside { display: none; }
}
@media (max-width: 720px) {
  .cats, #memberBtn, .lvl-bar, .lvl-sep, #lvlText { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-main { min-height: 400px; }
  .hero-body { padding: 22px; }
  .related, .plans { grid-template-columns: 1fr; }
  .plan.hot { transform: none; }
  .next-card { grid-template-columns: 1fr; }
  .next-card .thumb { min-height: 140px; }
  .article-body { font-size: 18px; }
  .live-pill { bottom: 72px; }
  .mobile-cats { display: flex; }
}
.mobile-cats { display: none; gap: 8px; overflow-x: auto; margin: 16px 0 0; scrollbar-width: none; }
.mobile-cats a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.mobile-cats a.active { background: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Notas importadas de otros medios ---------- */
.article-body.is-external > p:first-of-type::first-letter { all: unset; }
.src-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 22px 24px; font-family: var(--sans); }
.src-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.src-sum { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 0 0 18px; }
.src-go { text-align: center; }
.src-also { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }

/* =========================================================
   Refinamiento visual v2
   ========================================================= */
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, .serif { text-wrap: balance; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Ticker y cabecera */
.ticker { background: var(--night); color: #e7ebf7; }
.ticker-label { background: linear-gradient(90deg, var(--accent), #ff5a4e); }
.ticker-inner a:hover { color: var(--gold); }
.topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-nacional) 0 11.1%, var(--c-mundo) 0 22.2%, var(--c-economia) 0 33.3%, var(--c-tecnologia) 0 44.4%, var(--c-deportes) 0 55.5%, var(--c-entretenimiento) 0 66.6%, var(--c-ciencia) 0 77.7%, var(--c-salud) 0 88.8%, var(--c-cultura) 0); }
.logo { font-weight: 800; font-size: 27px; letter-spacing: -.035em; display: inline-flex; align-items: baseline; gap: 1px; }
.logo span { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cats a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.cats a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; transition: transform .2s var(--ease); }
.cats a:hover .dot { transform: scale(1.4); }
.cats a:hover { background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent); }
.cats a.active { background: color-mix(in srgb, var(--c, var(--ink)) 16%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--ink)) 55%, transparent); }
.cats a[href="/"].active { background: var(--ink); color: var(--surface); box-shadow: none; }
.mobile-cats a { border-color: color-mix(in srgb, var(--c, var(--line)) 45%, var(--line)); }
.mobile-cats a.active { background: var(--c, var(--ink)); color: #fff; border-color: transparent; }

/* Botones */
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff5a4e); box-shadow: 0 8px 22px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px var(--accent); }

/* Etiquetas y color por sección */
.tag { background: var(--c, var(--accent)); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--c, var(--accent)) 70%, transparent); }
.tag.alt { background: rgba(255,255,255,.18); box-shadow: none; }
.cat-label { color: color-mix(in srgb, var(--c, var(--accent)) 85%, var(--ink)); font-weight: 700; }
.eyebrow { color: var(--c, var(--accent)); }

/* Portada */
.hero-main { border-radius: 24px; }
.hero-main::after { background: linear-gradient(180deg, rgba(8,12,24,0) 18%, color-mix(in srgb, var(--c, var(--accent)) 30%, rgba(8,12,24,.72)) 62%, rgba(6,9,20,.95)); }
.hero-body h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(26px, 3.6vw, 44px); }
.side-panel { border-radius: 24px; }
.trend-list li::before { -webkit-text-stroke: 0; background: linear-gradient(160deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 50%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trend-list a:hover { color: color-mix(in srgb, var(--c, var(--accent)) 85%, var(--ink)); }
.section-head { border-bottom: 0; position: relative; padding-bottom: 12px; }
.section-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0 64px, var(--line) 64px); }
.section-head h2 { font-weight: 800; letter-spacing: -.02em; }

.card { border-radius: 20px; border: 1px solid var(--line); }
.card:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c, var(--accent)) 55%, rgba(14,22,40,.5)); }
.card h3 { font-weight: 700; letter-spacing: -.015em; transition: color .2s; }
.card:hover h3 { color: color-mix(in srgb, var(--c, var(--accent)) 75%, var(--ink)); }
.card .thumb-wrap::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--c, var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.card:hover .thumb-wrap::after { transform: scaleX(1); }
.card.read::after { background: var(--ok); }

.widget { border-radius: 20px; }
.streak-days i.on { background: linear-gradient(160deg, var(--gold), var(--accent)); }
.goal span { background: linear-gradient(90deg, var(--ok), #5fe0c9); }
.nl-box { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), linear-gradient(150deg, var(--night-2), var(--night)); color: #eef1fa; }
.nl-box .eyebrow { color: var(--gold) !important; }
.poll-opt .bar { background: color-mix(in srgb, var(--c-mundo) 18%, transparent); }
.poll-opt:hover:not(:disabled), .poll-opt.mine { border-color: var(--c-mundo); }
.live-pill { background: var(--night); color: #eef1fa; }

/* Noticia */
.article-head h1 { font-weight: 800; letter-spacing: -.03em; }
.article-head .lead { font-family: var(--read); font-size: 22px; }
.article-body { font-family: var(--read); font-size: 20px; line-height: 1.75; }
.article-body > p:first-of-type::first-letter { color: var(--c, var(--accent)); font-family: var(--serif); }
.src-box { border-left: 0; border-top: 4px solid var(--c, var(--accent)); border-radius: 18px; }
.src-sum { font-family: var(--read); }
.article-head + .article-cover, .article-cover { border-radius: 22px; }
.share-rail button:hover, .share-rail a:hover { background: var(--c, var(--accent)); border-color: transparent; }
.article-wrap:has(.article-head) .share-rail a:hover { background: var(--accent); }
.react.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.quiz-card { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), color-mix(in srgb, var(--c-mundo) 8%, var(--surface))); border-radius: 20px; }
.next-card { background: linear-gradient(120deg, var(--night), color-mix(in srgb, var(--c, var(--accent)) 35%, var(--night))); color: #eef1fa; border-radius: 24px; }
.next-card .eyebrow { color: var(--gold) !important; }
.countdown .fg { stroke: var(--gold); }

/* Pie */
.footer { background: var(--night); color: #c3c9dd; border-top: 0; padding: 40px 0 90px; }
.footer .logo { color: #fff; }
.footer .muted, .footer-links { color: #8a92ae; }
.footer-links a:hover { color: #fff; }

/* Publicidad y páginas institucionales */
.ad-unit { position: relative; padding-top: 18px; min-height: 100px; }
.ad-unit.feed { grid-column: 1 / -1; }
.ad-lbl { position: absolute; top: 0; left: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.promo { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 18%, var(--surface)), var(--surface)); }
.legal { max-width: 720px; margin: 40px auto; font-family: var(--read); font-size: 19px; line-height: 1.7; }
.legal h1 { font: 800 clamp(30px, 5vw, 44px)/1.1 var(--serif); letter-spacing: -.03em; margin: 0 0 20px; }
.legal h3 { font: 700 21px var(--serif); margin: 28px 0 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
