/* =========================================================
   Tecnochisme · diseño «Revista ilustrada»
   ========================================================= */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --ink: #0B0B12;
  --ink-2: #44403C;
  --muted: #57534E;
  --bg: #F6F5F2;
  --paper: #FFFFFF;
  --line: #E7E5E0;
  --line-strong: #0B0B12;
  --night: #0B0B12;
  --accent-text: #BE185D;           /* rosa legible sobre blanco */
  --display: "Space Grotesk", "Arial Rounded MT Bold", Arial, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-lg: 28px; --r-md: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(11,11,18,.05), 0 14px 34px -20px rgba(11,11,18,.28);
  --c: #475569; --c-ink: #334155; --c-tint: #F1F5F9; --c-dark: #0F172A; --c-soft: #94A3B8;
}
[data-theme="dark"] {
  --ink: #F4F4F5; --ink-2: #D4D4D8; --muted: #A1A1AA; --bg: #0E0E14; --paper: #17171F;
  --line: #2A2A35; --line-strong: #F4F4F5; --accent-text: #F9A8D4;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Piezas comunes ---------- */
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 700 13px/1.2 var(--sans); }
.pill-accent { background: var(--accent); color: #0B0B12; }
.pill-glass { background: rgba(255,255,255,.14); color: #fff; }
.pill-dark { background: var(--night); color: #fff; }
[data-theme="dark"] .pill-dark { background: #F4F4F5; color: #0B0B12; }
.pill-cat { background: var(--c-tint); color: var(--c-ink); }
[data-theme="dark"] .pill-cat { background: var(--c); color: #fff; }
.kicker { font: 700 13px/1.2 var(--sans); color: var(--c-ink); }
[data-theme="dark"] .kicker { color: var(--c-soft); }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: 700 15px/1 var(--sans); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { color: #fff; background: #27272A; }
.btn-accent { background: var(--accent); color: #0B0B12; min-height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.btn-accent:hover { color: #0B0B12; transform: translateY(-1px); }
.btn-ghost { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .15s ease; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #0B0B12; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--sans); }
.avatar-lg { width: 44px; height: 44px; font-size: 14px; }
.illus { width: 100%; height: 100%; }

/* ---------- Franja de tendencias ---------- */
.ticker { background: var(--night); color: #F6F5F2; font-size: 14px; }
[data-theme="dark"] .ticker { background: #000; }
.ticker-inner { display: flex; align-items: center; gap: 8px 22px; min-height: 46px; flex-wrap: wrap; padding-block: 6px; }
.ticker-label { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.ticker-list { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.ticker-list a, .ticker-list span { display: inline-flex; align-items: center; gap: 6px; color: #F6F5F2; min-height: 32px; }
.ticker-list a:hover { color: var(--accent); }
.ticker-list svg { fill: none; stroke: #F9A8D4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ticker-date { margin-left: auto; color: #A1A1AA; }

/* ---------- Cabecera ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 32px/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-mark path { fill: var(--accent); }
.brand-mark circle { fill: #0B0B12; }
.catnav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; font-weight: 500; font-size: 15px; }
.catnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.catnav a:hover { background: var(--bg); color: var(--ink); }
.catnav a.is-active { font-weight: 700; box-shadow: inset 0 -3px 0 var(--c); border-radius: 0; }
.catnav .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.masthead-actions { display: flex; gap: 8px; align-items: center; }

main.wrap { padding-block: 32px 8px; display: flex; flex-direction: column; gap: 52px; }

/* ---------- Portada: noticia principal ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 20px; }
.lead { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: #fff; display: flex; flex-direction: column; }
.lead-art { display: block; height: 380px; padding: 22px 40px 6px;
  background: linear-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
              linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
              var(--c-dark); }
.lead-tags { position: absolute; left: 24px; top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.lead-tags .pill-glass:hover { color: #fff; background: rgba(255,255,255,.24); }
.lead-body { padding: 28px 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.lead-title { margin: 0; font: 700 clamp(30px, 3.6vw, 46px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; max-width: 24ch; }
.lead-title a:hover { color: #FBCFE8; }
.lead-desc { margin: 0; font-size: 19px; line-height: 1.55; color: #D4D4D8; max-width: 62ch; }
.byline { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: #A1A1AA; }
.byline .sep { opacity: .6; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Tarjetas ---------- */
.card { background: var(--paper); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card-art { display: block; height: 170px; padding: 10px 24px; background: radial-gradient(color-mix(in srgb, var(--c) 30%, transparent) 1.5px, transparent 1.5px) 0 0 / 16px 16px, var(--c-tint); }
[data-theme="dark"] .card-art { background: radial-gradient(color-mix(in srgb, var(--c) 40%, transparent) 1.5px, transparent 1.5px) 0 0 / 16px 16px, var(--c-dark); }
.card-lg .card-art { height: 220px; }
.card-sm .card-art { height: 150px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font: 700 21px/1.18 var(--display); letter-spacing: -.015em; text-wrap: pretty; }
.card-lg .card-title { font-size: 25px; }
.card-sm .card-title { font-size: 19px; }
.card-desc { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card .meta { margin-top: auto; padding-top: 4px; }

.row { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.row-art { flex: none; width: 108px; height: 92px; border-radius: var(--r-sm); background: var(--c-tint); padding: 6px; }
[data-theme="dark"] .row-art { background: var(--c-dark); }
.row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row-title { margin: 0; font: 700 18px/1.22 var(--display); letter-spacing: -.01em; }
.row-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Bloques de portada ---------- */
.block { display: flex; flex-direction: column; gap: 18px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line-strong); }
.block-head h1, .block-head h2 { margin: 0; font: 700 28px/1.1 var(--display); letter-spacing: -.03em; }
.block-head a { font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.block-head-color { border-color: var(--c); }
.block-head-color h2, .block-head-color a { color: var(--c-ink); }
[data-theme="dark"] .block-head-color h2, [data-theme="dark"] .block-head-color a { color: var(--c-soft); }
.block-body { display: grid; gap: 28px; }
.block-body.with-aside { grid-template-columns: minmax(0, 1fr) 300px; }
.block-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; align-items: start; }
.block-aside .ad { margin: 0; position: sticky; top: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }

.ranking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.ranking li { background: var(--paper); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.rank-num { font: 700 56px/.8 var(--display); letter-spacing: -.05em; color: var(--ink); }
.ranking li:first-child .rank-num { color: var(--accent); }
.ranking a { font: 700 18px/1.25 var(--display); }
.rank-cat { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rank-cat::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }

/* ---------- Anuncios y patrocinio ---------- */
.ad { margin: 0 auto; width: min(1240px, 100% - 48px); text-align: center; }
main .ad, .article-aside .ad, .block-aside .ad { width: 100%; }
.ad-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-placeholder { display: grid; place-items: center; min-height: 110px; border: 1px dashed #A8A29E; border-radius: 18px; color: var(--muted); font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ad-sidebar.ad-placeholder { min-height: 600px; }
.ad-in_article.ad-placeholder { min-height: 250px; margin: 32px 0; }
.ad-footer { margin-top: 48px; }
.sponsor { border-radius: var(--r-md); background: var(--night); color: #F6F5F2; overflow: hidden; }
[data-theme="dark"] .sponsor { background: #000; }
.sponsor-label { display: block; padding: 14px 20px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #A1A1AA; }
.sponsor a { display: grid; gap: 4px; padding: 6px 20px 18px; color: #F6F5F2; }
.sponsor strong { font: 700 20px/1.2 var(--display); color: var(--accent); }

/* ---------- Boletín ---------- */
.newsletter { margin-top: 52px; border-radius: 32px; background: var(--night); color: #fff; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
[data-theme="dark"] .newsletter { background: #000; border: 1px solid var(--line); }
.newsletter-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.newsletter h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: -.035em; max-width: 20ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; width: 100%; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.field label { font-size: 14px; color: #D4D4D8; }
.field input { height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid #3F3F46; background: #18181B; color: #fff; font: 400 16px var(--sans); }
.newsletter-art { width: 300px; max-width: 100%; height: auto; flex: none; }

/* ---------- Artículo ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-header { max-width: 900px; display: flex; flex-direction: column; gap: 18px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-header h1 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.article-dek { margin: 0; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.article-meta .byline { color: var(--muted); font-size: 15px; line-height: 1.4; gap: 12px; }
.article-meta .byline strong { color: var(--ink); }
.share { display: flex; gap: 8px; }
.article-art { margin: 28px 0 0; height: 400px; border-radius: var(--r-lg); overflow: hidden; padding: 24px 40px;
  background: linear-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
              linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
              var(--c-dark); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; padding-top: 40px; }
.article-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.article-aside { display: flex; flex-direction: column; gap: 20px; }
.article-aside > * { position: sticky; top: 20px; }

.summary { background: var(--paper); border-radius: var(--r-md); padding: 24px 28px; box-shadow: var(--shadow); }
.summary h2 { margin: 0 0 12px; font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; }
.summary li { display: flex; gap: 12px; }
.summary li::before { content: ""; flex: none; margin-top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.prose { font-size: 19px; line-height: 1.72; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose > p:first-child { font-size: 21px; line-height: 1.6; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .55em; font: 700 clamp(26px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.025em; scroll-margin-top: 20px; }
.prose h3 { margin: 1.5em 0 .4em; font: 700 22px/1.25 var(--display); letter-spacing: -.01em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--c); }
.prose ol { list-style: none; padding: 0; counter-reset: paso; }
.prose ol > li { counter-increment: paso; position: relative; padding-left: 54px; min-height: 36px; margin-bottom: 14px; }
.prose ol > li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--night); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--display); }
[data-theme="dark"] .prose ol > li::before { background: #F4F4F5; color: #0B0B12; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 24px; border-left: 4px solid var(--accent); font: 600 clamp(22px, 2.6vw, 27px)/1.3 var(--display); letter-spacing: -.02em; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-family: var(--display); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.faq { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1em; }
.faq-item { background: var(--paper); border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font: 700 18px/1.35 var(--sans); padding: 14px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 700 22px/1 var(--display); color: var(--accent-text); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { font-size: 17px; line-height: 1.6; color: var(--ink-2); padding-bottom: 16px; }
.faq-answer p { margin: 0 0 .6em; }

.sources { border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; font-size: 15px; }
.sources h2 { margin: 0 0 10px; font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sources ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.disclosure { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.toc { background: var(--paper); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; box-shadow: var(--shadow); }
.toc h2 { margin: 0 0 6px; font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 7px 0; line-height: 1.35; border-top: 1px solid var(--line); }
.toc a:first-of-type { border-top: 0; }

/* ---------- Sección, archivo, páginas, búsqueda ---------- */
.cat-hero { border-radius: var(--r-lg); overflow: hidden; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); align-items: center;
  background: linear-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
              linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent) 1px, transparent 1px) 0 0 / 36px 36px, var(--c-dark); }
.cat-hero-copy { padding: 24px 32px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cat-hero h1 { margin: 0; font: 700 clamp(28px, 3.6vw, 42px)/1.05 var(--display); letter-spacing: -.03em; }
.cat-hero p { margin: 0; color: #D4D4D8; font-size: 16px; }
.cat-hero-art { height: 160px; padding: 12px; }
.page-head { margin-bottom: -20px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.page { max-width: 760px; }
.page .article-header { margin-bottom: 24px; }
.page .prose > p:first-child { font-size: 19px; }
.page .prose ol { list-style: decimal; padding-left: 1.2em; }
.page .prose ol > li { padding-left: 0; }
.page .prose ol > li::before { display: none; }
.empty { text-align: center; padding: 80px 20px; color: var(--ink-2); }
.empty h1 { font: 700 40px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.search-page { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.search-page h1 { margin: 0; font: 700 clamp(32px, 4vw, 44px)/1.05 var(--display); letter-spacing: -.035em; }
.search-form { display: flex; flex-direction: column; gap: 8px; }
.search-form label { font-weight: 700; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row input { flex: 1 1 260px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid #A8A29E; background: var(--paper); color: var(--ink); font: 400 17px var(--sans); }
.search-row .btn { min-height: 52px; }
.search-status { margin: 0; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.search-results li { background: var(--paper); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
.search-results a { font: 700 20px/1.25 var(--display); }
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 56px; background: var(--night); color: #D4D4D8; }
[data-theme="dark"] .site-footer { background: #000; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-block: 48px 28px; }
.footer-about p { color: #A1A1AA; line-height: 1.55; margin: 12px 0 0; max-width: 36ch; }
.brand-footer { font-size: 26px; color: #fff; }
.brand-footer:hover { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer h2 { margin: 0 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #A1A1AA; }
.site-footer nav a { color: #D4D4D8; padding: 6px 0; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #27272A; padding-block: 18px 32px; font-size: 13px; color: #A1A1AA; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1080px) {
  .hero, .article-layout, .block-body.with-aside { grid-template-columns: 1fr; }
  .block-aside, .article-aside .ad { display: none; }
  .article-aside > * { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero-art { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  main.wrap { gap: 40px; padding-top: 16px; }
  .ticker-date { display: none; }
  .ticker-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .ticker-inner::-webkit-scrollbar { display: none; }
  .ticker-list { flex-wrap: nowrap; white-space: nowrap; }
  .masthead-inner { padding-block: 10px; gap: 8px; justify-content: space-between; }
  .brand { font-size: 25px; }
  .brand-mark { width: 32px; height: 32px; }
  .catnav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; }
  .catnav::-webkit-scrollbar { display: none; }
  .catnav a { white-space: nowrap; }
  .hide-sm { display: none; }
  .lead { border-radius: 24px; }
  .lead-art { height: 230px; padding: 46px 12px 4px; }
  .lead-body { padding: 18px 18px 22px; gap: 10px; }
  .lead-desc { font-size: 16px; }
  .row-art { width: 92px; height: 84px; }
  .row-title { font-size: 17px; }
  .block-head h1, .block-head h2 { font-size: 23px; }
  .ranking { grid-template-columns: 1fr; gap: 0; background: var(--paper); border-radius: 22px; padding: 6px 18px; box-shadow: var(--shadow); }
  .ranking li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .ranking li:first-child { border-top: 0; }
  .rank-num { font-size: 30px; width: 24px; }
  .ranking a { font-size: 16px; }
  .rank-cat { display: none; }
  .article-art { height: 230px; padding: 12px; border-radius: 22px; margin-top: 20px; }
  .article-layout { padding-top: 24px; gap: 28px; }
  .prose { font-size: 18px; }
  .prose > p:first-child { font-size: 19px; }
  .summary { padding: 20px; }
  .newsletter { padding: 26px 20px; border-radius: 24px; margin-top: 40px; }
  .newsletter-art { display: none; }
  .newsletter-form .btn { width: 100%; }
  .cat-hero-copy { padding: 18px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Fotos reales (Pexels) ---------- */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.has-photo { padding: 0 !important; background: var(--night) !important; position: relative; overflow: hidden; }
.card-art.has-photo, .row-art.has-photo { overflow: hidden; }
.card-art.has-photo .photo, .lead-art.has-photo .photo { transition: transform .4s ease; }
.card:hover .card-art.has-photo .photo, .lead:hover .lead-art.has-photo .photo { transform: scale(1.03); }
.lead-art.has-photo { height: 420px; }
.lead-art.has-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, var(--night) 100%); }
.article-art.has-photo { height: auto; aspect-ratio: 16 / 9; max-height: 560px; }
.photo-credit { position: absolute; right: 10px; bottom: 10px; margin: 0; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.4; color: #fff; background: rgba(0,0,0,.55); }
.photo-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.esquema { margin: 32px 0; }
.esquema img { display: block; width: 100%; height: auto; border-radius: var(--r-md, 18px); background: #fff; border: 1px solid var(--line); }
.esquema figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.esquema figcaption a { color: inherit; text-decoration: underline; }
.inline-photo { position: relative; margin: 32px 0; border-radius: var(--r-md, 18px); overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-tint); }
@media (max-width: 760px) {
  .lead-art.has-photo { height: 240px; }
  .article-art.has-photo { aspect-ratio: 4 / 3; }
  .inline-photo { margin: 24px 0; }
}
.preview-bar { position: sticky; top: 0; z-index: 100; padding: 8px 16px; text-align: center; font: 600 14px/1.4 var(--sans, sans-serif); color: #fff; background: #7C3AED; }

/* ---------- Botones de compartir con los logos oficiales ---------- */
.share { flex-wrap: wrap; }
.share-btn { border: 0; color: #fff; border-radius: 50%; transition: transform .15s ease, filter .15s ease; }
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.share-btn .brand-logo { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.share-whatsapp, .share-whatsapp:hover { background: #25D366; }
.share-x, .share-x:hover { background: #000; }
.share-facebook, .share-facebook:hover { background: #0866FF; }
.share-telegram, .share-telegram:hover { background: #26A5E4; }
[data-theme="dark"] .share-x, [data-theme="dark"] .share-x:hover { background: #fff; color: #000; }
.share .icon-btn { border-radius: 50%; }

/* ---------- Aviso de cookies ---------- */
.cookie-layer { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  padding: 24px; background: rgba(11, 11, 18, .35); animation: cookie-fade .25s ease both; }
.cookie-layer[hidden] { display: none; }
.cookie-banner { width: 100%; max-width: 520px; margin-bottom: 4vh; padding: 26px 26px 20px; border-radius: 24px;
  background: var(--paper); color: var(--ink); border-top: 6px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: cookie-up .35s cubic-bezier(.2,.8,.2,1) both; }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.cookie-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cookie-icon svg circle { fill: currentColor; stroke: none; }
.cookie-banner h2 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.cookie-banner p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions-3 { grid-template-columns: 1fr 1fr 1fr; }
.cookie-step[hidden] { display: none; }
.cookie-cats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.cookie-cats li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.cookie-cats p { margin: 6px 0 0; font-size: 14px; }
.cookie-cats small { color: var(--muted); font-weight: 400; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15.5px; }
.cookie-switch { position: relative; flex: none; width: 46px; height: 26px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 999px; background: #A8A29E; transition: background .2s ease; pointer-events: none; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-switch input:checked + span { background: var(--accent); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:disabled + span { opacity: .55; }
.cookie-switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cookie-btn { padding: 14px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--display); color: #fff; background: var(--ink); transition: transform .15s ease, filter .15s ease; }
.cookie-btn:hover { transform: translateY(-1px); filter: brightness(1.2); }
.cookie-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cookie-more { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); text-decoration: underline; }
[data-theme="dark"] .cookie-banner p { color: #D4D4D8; }
[data-theme="dark"] .cookie-btn { color: #0B0B12; background: #fff; }
@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .cookie-layer { padding: 12px; }
  .cookie-banner { margin-bottom: 0; padding: 22px 20px 16px; }
  .cookie-banner h2 { font-size: 20px; }
  .cookie-actions-3 { grid-template-columns: 1fr; }
  .cookie-banner { max-height: 92vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .cookie-layer, .cookie-banner { animation: none; } }


/* ---------- Vídeos de YouTube (carga al pulsar) ---------- */
.video-embed { margin: 32px 0; }
.video-embed iframe, .video-play { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); }
.video-play { position: relative; cursor: pointer; padding: 24px; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c, var(--accent)) 55%, transparent), transparent 60%), #0B0B12; }
.video-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #FF0033; transition: transform .2s ease; }
.video-icon svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.video-play:hover .video-icon { transform: scale(1.08); }
.video-title { font: 700 clamp(18px, 2.4vw, 24px)/1.25 var(--display); max-width: 30ch; }
.video-note { font-size: 13px; color: #D4D4D8; }
.video-embed figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.video-embed figcaption a { text-decoration: underline; }

.share { position: relative; }
.share-more, .share-more:hover { background: var(--ink); color: var(--paper); }
.share-more svg { width: 20px; height: 20px; }
.share-toast { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.share-toast[hidden] { display: none; }

/* Página privada de textos para WhatsApp */
.preview-bar a { color: inherit; text-decoration: underline; font-weight: 700; }
.wa-item { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.wa-group { margin: 40px 0 6px; font: 700 1.35rem/1.2 var(--display); }
.wa-item h2 { margin: 4px 0 10px; font-size: 1.1rem; }
.wa-meta { margin: 0; font-size: .8rem; color: var(--muted, #6B7280); text-transform: uppercase; letter-spacing: .04em; }
.wa-msg { white-space: pre-wrap; margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #E7F8EE; color: #0B3D22; font: inherit; font-size: .95rem; }
.wa-copy { padding: 8px 16px; border: 0; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; cursor: pointer; }

.wa-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 0 0 12px; }
.wa-slides img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wa-zip { padding: 8px 16px; border-radius: 999px; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); color: #fff; font-weight: 700; text-decoration: none; }
.wa-item h3 { margin: 18px 0 8px; font-size: .95rem; }

/* Síguenos: mismo botón para todas las redes */
.social-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; width: 100%; max-width: min(660px, 100%); min-width: 0; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none;
  font: 700 .95rem/1.1 var(--sans); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.social-btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(11,11,18,.45); }
.sb-whatsapp:hover { border-color: #25D366; }
.sb-instagram:hover { border-color: #DD2A7B; }
.sb-tiktok:hover { border-color: #000000; }
.sb-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.sb-ico .brand-logo { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.sb-whatsapp .sb-ico { background: #25D366; }
.sb-instagram .sb-ico { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.sb-tiktok .sb-ico { background: #000000; }
.sb-txt { display: flex; flex-direction: column; }
.sb-txt small { font: 500 .72rem/1.2 var(--sans); color: var(--muted); }
.social-btns-dark .social-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.social-btns-dark .social-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.social-btns-dark .sb-txt small { color: #A1A1AA; }
.footer-follows { margin-top: 20px; }
.footer-follows h2 { margin-bottom: 10px; }

.follow-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0; padding: 16px 18px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.follow-text { display: flex; flex-direction: column; gap: 2px; }
.follow-text strong { font: 700 1.05rem/1.25 var(--display); color: var(--ink); }
.follow-text span { font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) {
  .follow-card .social-btns { width: 100%; grid-template-columns: 1fr 1fr; }
}

.wa-howto { margin: 8px 0 24px; padding: 16px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; }
.wa-howto ol { margin: 8px 0 0; padding-left: 20px; }
.wa-howto li { margin: 4px 0; }
.wa-when { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; background: #FCE7F3; color: #9D174D; font-size: .88rem; }
[data-theme="dark"] .wa-when { background: #3B0A24; color: #F9A8D4; }

.health-note { margin: 28px 0 0; padding: 12px 16px; border-left: 4px solid #0D9488; border-radius: 8px; background: #F0FDFA; color: #134E4A; font-size: .9rem; }
[data-theme="dark"] .health-note { background: #042F2E; color: #CCFBF1; }

.wa-story { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; margin-bottom: 8px; }
.wa-story img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; display: block; }
.wa-story p { margin: 0 0 8px; font-size: .92rem; }
@media (max-width: 520px) { .wa-story { grid-template-columns: 110px 1fr; } }

.wa-story video { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; display: block; }
/* Página de enlaces (biografía de Instagram) */
.links-page { max-width: 560px; margin: 24px auto 48px; padding: 0 16px; }
.links-head h1 { margin: 0 0 6px; font: 700 1.8rem/1.15 var(--display); }
.links-head p { margin: 0 0 18px; color: var(--muted); }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.link-card img { width: 92px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.link-dot { width: 92px; height: 64px; border-radius: 10px; flex: none; opacity: .85; }
.link-text { display: flex; flex-direction: column; gap: 2px; font-weight: 700; line-height: 1.3; }
.link-text small { font: 700 .72rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.links-more { text-align: center; margin-top: 18px; }

.wa-plan{border:2px solid var(--accent,#EC4899);border-radius:18px;padding:20px 24px;margin:0 0 28px;background:color-mix(in srgb,var(--accent,#EC4899) 7%,transparent)}
.wa-plan h2{margin:0 0 6px;font-size:1.4rem}
.wa-plan h3{margin:16px 0 8px;font-size:1.05rem}
.wa-plan ol,.wa-plan ul{margin:0 0 6px 1.2em;padding:0}
.wa-plan li{margin:6px 0;line-height:1.45}
.dest-row{display:flex;gap:12px;overflow-x:auto;padding:8px 0;align-items:flex-start}
.dest-row>a{flex:none}.dest-cover{width:110px;height:110px;object-fit:cover;border-radius:50%;flex:none;border:3px solid #e4e4e7;display:block}
.dest-story{flex:none;width:150px;display:flex;flex-direction:column;gap:6px}
.dest-story video,.dest-story img{width:150px;aspect-ratio:9/16;object-fit:cover;border-radius:12px;background:#0B0B12}
.dest-story .wa-zip{font-size:.8rem;text-align:center}
.wa-plan summary{cursor:pointer;list-style:none}
