/* GeekyOnAI — estilos de las páginas generadas por scripts/build-site.mjs
   Línea visual heredada del diseño original: esquinas rectas, monoespaciada
   para la "voz" del sitio (menús, categorías, secciones) y sans para leer. */

:root {
  color-scheme: dark;
  /* Grises neutros del diseño original (sin tinte azul) */
  --bg: #0e0e0e;
  --surface: #181818;
  --surface-2: #202020;
  --line: #2a2a2a;
  --line-2: #383838;
  --text: #e2e2e2;
  --text-2: #bdbdbd;
  --muted: #8e8e8e;
  --brand: #c9c2ff;
  --brand-grad: linear-gradient(90deg, #ff6a88, #f7b733, #43e97b, #4facfe, #a18cd1);
  /* Acentos algo menos saturados: se reservan para detalles e interacción */
  --gaming: #3fc1dc;
  --anime: #7b5ad6;   /* morado profundo */
  --cine: #e8913f;
  --lore: #43c793;
  --leaks: #f25959;   /* rojo casi puro, suavizado */
  --tech: #d6c14d;    /* amarillo apagado: el hueco libre entre cine (naranja) y lore (verde) */
  --c: var(--brand);
  --wrap: 1200px;
  --header-h: 60px;
  --font: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* Compatibilidad con contenido heredado (términos, contacto) */
  --text-dim: var(--muted);
  --font-mono: var(--mono);
  --accent-gaming: var(--gaming);
  --accent-anime: var(--anime);
  --accent-cine: var(--cine);
  --accent-lore_y_teorias: var(--lore);
  --accent-filtraciones: var(--leaks);
  --accent-tecnologia: var(--tech);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; border-radius: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.wrap-medium { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; padding: .6rem 1rem; background: var(--text); color: var(--bg); font: 600 .8rem var(--mono); }
.skip-link:focus { top: .75rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.c-gaming { --c: var(--gaming); }
.c-anime { --c: var(--anime); }
.c-cine { --c: var(--cine); }
.c-lore { --c: var(--lore); }
.c-leaks { --c: var(--leaks); }
.c-tech { --c: var(--tech); }

/* ───────────── Botones y formularios ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 42px; padding: 0 1rem;
  border: 1px solid var(--text); background: var(--text); color: var(--bg);
  font: 600 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn .icon { width: 1em; height: 1em; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: transparent; border-color: var(--text); }
.btn--small { height: 32px; padding: 0 .75rem; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; min-width: 0; height: 42px; padding: 0 .9rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: .95rem; }
.search-form input:focus { outline: none; border-color: var(--text-2); }
.search-form--page { max-width: 640px; margin-top: 1.25rem; }

/* ───────────── Cabecera ───────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { position: relative; display: flex; align-items: center; gap: 1.75rem; height: var(--header-h); }
.brand { flex: none; font-size: 1.15rem; font-weight: 900; letter-spacing: .2px; }
.brand__name span { color: var(--muted); font-weight: 300; }
.primary-nav { display: flex; gap: .15rem; margin-right: auto; }
.primary-nav a { padding: .45rem .55rem; color: var(--muted); font: 500 .76rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--c); }
.header-tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.menu-toggle { display: none; }
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .5rem; border: 1px solid transparent; color: var(--muted); font: 600 .74rem var(--mono); list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: var(--line-2); }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 180px; background: var(--surface); border: 1px solid var(--line-2); }
.lang-menu__list a { display: flex; gap: .6rem; padding: .6rem .8rem; color: var(--text-2); font-size: .9rem; border-bottom: 1px solid var(--line); }
.lang-menu__list a:last-child { border-bottom: 0; }
.lang-menu__list a b { width: 1.6rem; color: var(--muted); font: 600 .74rem/1.8 var(--mono); }
.lang-menu__list a:hover, .lang-menu__list a[aria-current] { background: var(--surface-2); color: var(--text); }
.search-panel { padding: .8rem 0; border-top: 1px solid var(--line); background: var(--surface); }
.read-progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.is-article .read-progress { display: block; }
.read-progress span { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }

.lang-suggest { border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: .8rem var(--mono); }
.lang-suggest__inner { display: flex; align-items: center; gap: .75rem; min-height: 46px; padding: .35rem 0; }
.lang-suggest__inner span { margin-right: auto; }

/* ───────────── Metadatos y miniaturas ───────────── */
.meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; color: var(--muted); font: 400 .72rem/1.4 var(--mono); }
.kicker { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5em; color: var(--text-2); font: 600 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kicker::before { content: ""; width: .6em; height: .6em; flex: none; background: var(--c); }
a.kicker:hover { color: var(--c); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
/* Línea del color de la categoría que crece bajo la imagen al pasar el ratón */
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.thumb__icon { position: absolute; inset: 0; width: 28%; max-width: 54px; height: auto; margin: auto; color: var(--c); opacity: .4; stroke-width: 1.3; }

/* Toda la tarjeta es clicable; la categoría sigue siendo un enlace propio */
.card, .row, .lead { position: relative; }
.card__title a::after, .row__title a::after, .lead__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Hover suave: la imagen se acerca un poco, aparece la línea de color y el título se aclara */
.card__title a, .row__title a, .lead__title a { transition: color .3s ease; }
.card:hover .thumb img, .row:hover .thumb img, .lead:hover .thumb img { transform: scale(1.025); filter: brightness(1.06); }
.card:hover .thumb::after, .row:hover .thumb::after, .lead:hover .thumb::after { transform: scaleX(1); }
.card:hover .card__title a, .row:hover .row__title a, .lead:hover .lead__title a { color: #fff; }

/* ───────────── Portada ───────────── */
.home-top { padding-top: 2rem; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.lead__body { padding-top: 1rem; }
.lead__title { margin-top: .5rem; font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
.lead__dek { max-width: 62ch; margin-top: .7rem; color: var(--text-2); font-size: 1.04rem; line-height: 1.55; }
.lead-side { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lead-side .row { padding: .95rem 0; }
.lead-side .row:first-child { border-top: 0; }

.trending { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trending__title { flex: none; color: var(--muted); font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chip-row { display: flex; gap: .45rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 .65rem; border: 1px solid var(--line-2); color: var(--text-2); font: 500 .74rem var(--mono); white-space: nowrap; }
a.chip:hover { border-color: var(--text); color: var(--text); }
.chip--static { color: var(--muted); border-style: dashed; }

.section { margin-top: 3.25rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.section-head h2 { font: 700 1rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.section-head .dot { display: inline-block; width: .55em; height: .55em; margin-right: .6em; background: var(--c); vertical-align: .08em; }
.section-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.section-more:hover { color: var(--text); }
.section-more .icon { width: 1em; height: 1em; }

.row-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.row-list > .row:first-child { border-top: 0; }
.row__title { margin-top: .4rem; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.row__dek { margin-top: .4rem; color: var(--muted); font-size: .93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row--compact { grid-template-columns: 112px minmax(0, 1fr); gap: .9rem; }
.row--compact .row__title { font-size: .98rem; line-height: 1.32; }
.row-list--wide .row { grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; }
.row-list--wide .row__title { font-size: 1.2rem; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.card { display: flex; flex-direction: column; gap: .8rem; }
.card__title { margin-top: .4rem; font-size: 1rem; font-weight: 700; line-height: 1.33; }

.how-box { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-left: 3px solid var(--line-2); background: var(--surface); }
.how-box > .icon { display: none; }
.how-box h2 { font: 700 .85rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.how-box p { max-width: 75ch; margin-top: .5rem; color: var(--text-2); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; color: var(--brand); font: 500 .76rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 1em; height: 1em; }

/* ───────────── Listados ───────────── */
.page-head { padding: 2.25rem 0 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; color: var(--muted); font: .74rem var(--mono); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--text); }
.page-head h1, .page-content h1 {
  padding-left: .8rem; border-left: 3px solid var(--line-2);
  font: 700 clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem)/1.15 var(--mono); letter-spacing: .02em; text-transform: uppercase;
}
.is-cat .page-head h1 { border-left-color: var(--c); }
.page-intro { max-width: 70ch; margin-top: .9rem; color: var(--text-2); font-size: 1.03rem; }
.page-num { margin-top: .6rem; color: var(--muted); font: .78rem var(--mono); }
.notice { display: flex; align-items: flex-start; gap: .6rem; max-width: 70ch; margin-top: 1.1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--c); background: var(--surface); color: var(--text-2); font-size: .92rem; }
.notice .icon { margin-top: .15rem; color: var(--c); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 2.5rem 0 1rem; }
.pagination > :last-child { justify-self: end; }
.pagination__nums { display: flex; gap: .25rem; }
.pagination__nums a, .pagination__nums span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .45rem; border: 1px solid var(--line); color: var(--text-2); font: 500 .8rem var(--mono); }
.pagination__nums a:hover { border-color: var(--text); color: var(--text); }
.pagination__nums [aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination__nums .ellipsis { min-width: auto; border: 0; color: var(--muted); }
.search-status { margin: 0 0 1rem; color: var(--muted); font: .82rem var(--mono); }

/* ───────────── Artículo ───────────── */
.article { padding-top: 2.25rem; }
.article-head h1 { margin-top: .8rem; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.dek { margin-top: 1rem; color: var(--text-2); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font: .74rem/1.5 var(--mono); }
.byline > span:first-child { color: var(--text-2); }
.byline .sep { color: var(--line-2); }
.byline a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.byline a:hover { color: var(--text); }
.article-hero { margin-top: 1.75rem; }
.article-hero figcaption { margin-top: .6rem; color: var(--muted); font-size: .82rem; font-style: italic; line-height: 1.5; }
.credit { font-style: normal; font-family: var(--mono); font-size: .74rem; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

.prose { color: var(--text-2); font-size: 1.1rem; line-height: 1.75; }
.article-body { margin-top: 1.75rem; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { color: var(--text); }
.prose h2 { margin-top: 2em; color: var(--text); font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.prose h3 { margin-top: 1.8em; color: var(--text); font-size: 1.15rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul { list-style: square; }
.prose li::marker { color: var(--muted); }
.article-body ul { padding: 1rem 1.2rem 1rem 2.2rem; border: 1px solid var(--line); border-left: 3px solid var(--line-2); background: var(--surface); }
.prose blockquote { margin: 1.8em 0; padding: 1rem 1.25rem; border-left: 3px solid var(--c); background: var(--surface); }
.prose blockquote p { color: var(--text); font-size: 1.08rem; font-style: italic; line-height: 1.6; }
.prose blockquote cite { display: block; margin-top: .6rem; color: var(--muted); font: .76rem/1.4 var(--mono); font-style: normal; }
.prose blockquote cite::before { content: "— "; }
.quote-toggle { margin-top: .7rem; padding: .3rem .6rem; border: 1px solid var(--line-2); background: none; color: var(--muted); font: .72rem var(--mono); cursor: pointer; }
.quote-toggle:hover { border-color: var(--text); color: var(--text); }

.sources { margin-top: 2.75rem; }
.sources h2, .reactions__title { padding-left: .6rem; border-left: 3px solid var(--line-2); font: 700 .85rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.sources p { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.sources ol { margin: .8rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources li a { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sources li strong { color: var(--text); font-weight: 650; white-space: nowrap; }
.sources li a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.source-host { min-width: 0; margin-right: auto; overflow: hidden; color: var(--muted); font: .74rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.sources li .icon { width: 14px; height: 14px; align-self: center; color: var(--muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.75rem; }
.tag-row .chip::before { content: "#"; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: 1.5rem; }
.share__label { margin-right: .4rem; color: var(--muted); font: 600 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.share__btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.share__btn:hover { border-color: var(--text); color: var(--text); }
.share__btn .icon { width: 16px; height: 16px; }
.share__btn.is-done { border-color: var(--lore); color: var(--lore); }
.share__btn[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: .25rem .5rem; background: var(--text); color: var(--bg); font: .7rem var(--mono); white-space: nowrap; }
.ai-note { display: flex; gap: .7rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-style: italic; line-height: 1.6; }
.ai-note > .icon { margin-top: .2rem; color: var(--brand); }
.ai-note strong { display: block; margin-bottom: .15rem; color: var(--text-2); font: 600 .74rem var(--mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.ai-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.reactions { margin-top: 2rem; }
.reactions__total { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.reactions__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.reaction { --rc: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .5rem .7rem; border: 1px solid var(--line); background: none; cursor: pointer; }
.reaction:hover { border-color: var(--line-2); background: var(--surface); }
.reaction .icon { width: 20px; height: 20px; color: var(--rc); }
.reaction--love { --rc: #ff4b72; }
.reaction--worried { --rc: #f59e0b; }
.reaction--meh { --rc: #9ca3af; }
.reaction--hate { --rc: #ef4444; }
.reaction__label { color: var(--text-2); font-size: .8rem; font-weight: 600; }
.reaction__pct { color: var(--muted); font: .72rem var(--mono); }
.reaction__bar { width: 100%; height: 3px; background: var(--line); }
.reaction__bar span { display: block; width: 0; height: 100%; background: var(--rc); transition: width .4s ease; }
.reaction.is-mine { border-color: var(--rc); }
.support-line { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font: .76rem var(--mono); }
.support-line a { text-decoration: underline; text-underline-offset: 3px; }
.support-line a:hover { color: var(--text); }
.related { margin-top: 3.5rem; }

/* ───────────── Publicidad ───────────── */
.ad-slot { margin-top: 2.5rem; padding-top: .75rem; border-top: 1px solid var(--line); text-align: center; }
.ad-slot__label { display: block; margin-bottom: .5rem; color: var(--muted); font: .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ───────────── Páginas de contenido ───────────── */
.page-content { padding: 2.5rem 0 1rem; }
.page-content h1 { margin-bottom: 1.2em; }
.page-content h2 { color: var(--text); }
.page-content .lead-p { color: var(--text); font-size: 1.15rem; line-height: 1.6; }
.page-content .updated { color: var(--muted); font: .76rem var(--mono); }
.page-content ol { padding-left: 1.4em; }
.page-content ol li::marker { color: var(--brand); font-family: var(--mono); font-weight: 700; }

/* ───────────── Pie ───────────── */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 2rem; padding: 2.75rem 0 2rem; }
.footer-brand p { max-width: 44ch; margin-top: .8rem; line-height: 1.6; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-2); font: .76rem var(--mono); }
.footer-social .icon { width: 1em; height: 1em; }
.footer-social a:hover, .site-footer nav a:hover, .footer-langs a:hover { color: var(--text); }
.footer-title { margin-bottom: .85rem; color: var(--text); font: 700 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 2rem; border-top: 1px solid var(--line); font: .74rem var(--mono); }
.footer-langs { display: flex; gap: 1rem; }

[hidden] { display: none !important; }

/* ───────────── Portada editorial ───────────── */
.masthead { padding-top: 2.25rem; padding-bottom: 1.9rem; border-bottom: 1px solid var(--line); }
.masthead__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: var(--muted); font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.masthead__meta > span:first-child { color: var(--text-2); }
.masthead__title { margin-top: 1.2rem; }
/* Interlineado muy cerrado: el padding inferior reserva el sitio de la cola de la "y". */
.masthead__word {
  position: relative; display: inline-block; white-space: nowrap; padding-bottom: .2em;
  font-size: clamp(2.5rem, 10.1vw, 8.6rem); font-weight: 900; line-height: .82; letter-spacing: -.055em;
}
.mt-base span, .mt-color span { font-weight: 200; letter-spacing: -.04em; }
.mt-base span { color: var(--muted); }
/* La capa de color es algo mayor que las letras (inset negativo + padding igual): así el
   degradado y la máscara cubren también lo que sobresale de la caja y el efecto no se corta. */
.mt-color {
  --r: 0px; --ox: .12em; --oy: .14em;
  position: absolute; inset: calc(var(--oy) * -1) calc(var(--ox) * -1); padding: var(--oy) var(--ox);
  pointer-events: none; white-space: nowrap;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-mask-image: radial-gradient(circle var(--r) at calc(var(--mx, 50%) + var(--ox)) calc(var(--my, 50%) + var(--oy)), #000 0, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at calc(var(--mx, 50%) + var(--ox)) calc(var(--my, 50%) + var(--oy)), #000 0, transparent 72%);
  transition: --r .55s ease;
}
.masthead__word:hover .mt-color { --r: 1.45em; }
.egg-rainbow .mt-color { --r: 1200px; }
.masthead__sub { display: block; margin-top: .8rem; color: var(--text-2); font: 500 clamp(.74rem, .68rem + .35vw, .95rem) var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.masthead__line { margin-top: .45rem; font: .78rem var(--mono); }

.ticker { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 1.25rem; height: 46px; }
.ticker__title { flex: none; color: var(--muted); font: 600 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: .9rem; padding-right: .9rem; white-space: nowrap; }
.ticker__group a { color: var(--text-2); font: 500 .76rem var(--mono); letter-spacing: .05em; text-transform: uppercase; transition: color .25s ease; }
.ticker__group a:hover { color: var(--text); }
.ticker__group i { color: var(--line-2); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Índice editorial: 01–04 junto a la principal y 05–14 en "últimas" */
.lead-side { counter-reset: idx; }
.row-list--index { counter-reset: idx 4; }
.lead-side .row, .row-list--index .row { counter-increment: idx; }
.lead-side .row__body::before, .row-list--index .row__body::before {
  content: counter(idx, decimal-leading-zero); display: block; margin-bottom: .3rem;
  color: #4d4d4d; font: 700 1.25rem/1 var(--mono); letter-spacing: -.02em;
}
.is-home main { counter-reset: sec; }
.is-home .section-head h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero) " / "; color: var(--muted); font-weight: 400; }

.rel-strip__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rel-strip__list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rel-strip__list a { display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1rem; transition: background .3s ease; }
.rel-strip__list a:hover { background: var(--surface); }
.rel-strip__list time { display: flex; align-items: baseline; gap: .45rem; }
.rel-strip__list time b { font: 700 2.3rem/1 var(--mono); letter-spacing: -.05em; }
.rel-strip__list time span { color: var(--muted); font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-strip__name { font-weight: 700; line-height: 1.3; }
.rel-strip__plat { margin-top: auto; color: var(--muted); font: .68rem var(--mono); }

/* ───────────── Calendario de lanzamientos ───────────── */
.rel-months, .rel-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.rel-months a, .rel-months span, .rel-filter button {
  padding: .4rem .7rem; border: 1px solid var(--line-2); background: none; color: var(--text-2);
  font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.rel-filter button { cursor: pointer; color: var(--muted); }
.rel-months a:hover, .rel-filter button:hover { border-color: var(--text-2); color: var(--text); }
.rel-months [aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.rel-filter button[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.releases { margin-top: .5rem; }
.rel-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.rel-day__date { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.rel-day__date time { display: flex; flex-direction: column; }
.rel-day__date b { font: 700 3.5rem/.9 var(--mono); letter-spacing: -.06em; }
.rel-day__date span { margin-top: .45rem; color: var(--muted); font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-day__games { display: grid; gap: 1.75rem; }
.rel-game { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.4rem; align-items: start; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.rel-game + .rel-game { padding-top: 1.75rem; border-top: 1px dashed var(--line); }
.rel-game:target .rel-game__title { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 5px; }
.rel-game__title { font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; }
.rel-game__platforms { margin-top: .35rem; color: var(--text-2); font: 500 .74rem var(--mono); letter-spacing: .04em; }
.rel-game__blurb { max-width: 64ch; margin-top: .6rem; color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.rel-game__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: .9rem 0 0; }
.rel-game__facts dt { color: var(--muted); font: .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-game__facts dd { margin: .12rem 0 0; font-size: .9rem; }
.rel-game__specs { margin-top: .9rem; border: 1px solid var(--line); }
.rel-game__specs summary { padding: .55rem .8rem; color: var(--text-2); font: 600 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; list-style: none; cursor: pointer; }
.rel-game__specs summary::-webkit-details-marker { display: none; }
.rel-game__specs summary::before { content: "+"; display: inline-block; width: 1.1em; color: var(--muted); }
.rel-game__specs[open] summary::before { content: "−"; }
.table-scroll { overflow-x: auto; }
.rel-game__specs table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.rel-game__specs th, .rel-game__specs td { padding: .5rem .8rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rel-game__specs thead th { color: var(--muted); font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-game__specs tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.rel-game__links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: .9rem; font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.rel-game__links a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.rel-game__links a:hover { color: var(--text); text-decoration-color: var(--text); }
.rel-credits { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.rel-credits a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.rel-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rel-month-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s ease; }
.rel-month-card:hover { background: var(--surface); }
.rel-month-card__name { font: 700 1.25rem var(--mono); letter-spacing: -.01em; text-transform: uppercase; }
.rel-month-card__count { color: var(--muted); font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-month-card__games { color: var(--text-2); font-size: .9rem; line-height: 1.5; }

/* ───────────── Final de lectura ───────────── */
.read-done {
  position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 120;
  display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.read-done.is-visible { opacity: 1; transform: none; }
.read-done .icon { width: 16px; height: 16px; color: var(--lore); }
/* Partículas discretas: pocas, pequeñas y del color de la categoría, salen del icono */
.read-done__p { position: absolute; left: 1.25rem; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: var(--c, var(--lore)); opacity: .85; animation: read-burst .7s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes read-burst { to { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; } }

/* ───────────── Responsive ───────────── */
@media (min-width: 1041px) {
  .is-home .row-list--index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .is-home .row-list--index > .row:nth-child(2) { border-top: 0; padding-top: .25rem; }
}
@media (max-width: 1040px) {
  .rel-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rel-day { grid-template-columns: 1fr; gap: 1rem; }
  .rel-day__date { position: static; }
  .rel-day__date time { flex-direction: row; align-items: baseline; gap: .7rem; }
  .rel-day__date b { font-size: 2.3rem; }
  .rel-month-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .masthead { padding-top: 1.5rem; }
  .rel-game { grid-template-columns: 1fr; }
  .rel-month-grid { grid-template-columns: 1fr; }
  .rel-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker__title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__viewport { overflow-x: auto; }
  .ticker__group[aria-hidden] { display: none; }
}
@media (max-width: 1040px) {
  .lead-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .primary-nav { display: none; position: absolute; top: 100%; left: -1rem; right: -1rem; flex-direction: column; gap: 0; padding: 0 1rem .75rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c); padding-left: .75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .header-bar { gap: .75rem; }
  .brand { font-size: 1.05rem; }
  .row, .row-list--wide .row { grid-template-columns: 108px minmax(0, 1fr); gap: .9rem; }
  .row__title, .row-list--wide .row__title { font-size: 1rem; line-height: 1.32; }
  .row__dek { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
  .card__title { font-size: .95rem; }
  .section { margin-top: 2.5rem; }
  .trending { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .chip-row { width: 100%; }
  .article-hero { width: 100%; }
  .article-hero figcaption { padding-inline: 1rem; }
  .byline { gap: .25rem .9rem; }
  .byline .sep { display: none; }
  .prose { font-size: 1.05rem; }
  .article-body ul { padding: .9rem 1rem .9rem 2rem; }
  .reactions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-host { display: none; }
  .sources li strong { margin-right: auto; white-space: normal; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination__nums { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* ───────────── Detalles interactivos y easter eggs ───────────── */
.primary-nav a[class*="c-"]:hover { color: var(--c); }

/* Logo: el arcoíris aparece donde está el ratón (como el logo gigante original) */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.brand { position: relative; }
.brand__color {
  --r: 0px;
  position: absolute; inset: 0; pointer-events: none; white-space: nowrap;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx, 0) var(--my, 0), #000 0, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at var(--mx, 0) var(--my, 0), #000 0, transparent 72%);
  transition: --r .35s ease;
}
.brand__color span { font-weight: 300; }
.brand:hover .brand__color { --r: 46px; }

/* Cursor acompañante: no sustituye al del sistema, solo lo sigue */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; width: 18px; height: 18px;
  border: 1px solid var(--muted); pointer-events: none; opacity: 0;
  transition: width .2s ease, height .2s ease, background-color .2s ease, border-color .2s ease, opacity .3s ease;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover { width: 40px; height: 40px; border-color: var(--cc, var(--text)); background: rgba(255, 255, 255, .06); }
.cursor-dot.is-down { width: 10px; height: 10px; background: var(--cc, var(--text)); }
/* Cursor con contexto: sobre una noticia se convierte en la etiqueta "LEER →" */
.cursor-dot::after { content: attr(data-label); white-space: nowrap; }
.cursor-dot.is-label, .cursor-dot.is-label.is-down { width: auto; height: auto; padding: .36rem .55rem; border-color: var(--text); background: var(--text); }
.cursor-dot.is-label.is-down { border-color: var(--cc, var(--text)); background: var(--cc, var(--text)); }
.cursor-dot.is-label::after { display: block; color: var(--bg); font: 600 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* Portada: imágenes algo desaturadas que recuperan su color al pasar el ratón (solo con ratón) */
@media (hover: hover) {
  .is-home .thumb img { filter: saturate(.6) brightness(.96); }
  .is-home .card:hover .thumb img, .is-home .row:hover .thumb img, .is-home .lead:hover .thumb img { filter: none; }
}
.egg-rainbow .is-home .thumb img { filter: none; }   /* el código Konami devuelve el color */

/* Titulares que aparecen línea a línea al entrar en pantalla */
.rv-w { display: inline-block; }
.rv .rv-w { opacity: 0; transform: translateY(.55em); transition: opacity .5s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.rv.is-in .rv-w { opacity: 1; transform: none; }
@media print { .rv .rv-w { opacity: 1; transform: none; transition: none; } }

/* Frase de la consola en el pie */
.tagline { color: var(--muted); }
.tagline__prompt { color: var(--lore); }
.tagline__caret { display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--muted); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Avisos de los easter eggs */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; max-width: calc(100% - 2rem); padding: .75rem 1.1rem;
  border-left: 4px solid var(--lore); background: var(--text); color: var(--bg);
  font: 600 .82rem/1.4 var(--mono); transform: translateX(-50%); animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.egg-rainbow .site-header::before, .egg-sun .site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.egg-rainbow .site-header::before { background: var(--brand-grad); background-size: 200% 100%; animation: egg-slide 1.2s linear infinite; }
.egg-rainbow .brand__color { --r: 260px; }
.egg-rainbow .thumb, .egg-rainbow .kicker::before, .egg-rainbow .section-head h2 { animation: egg-hue 2.4s linear infinite; }
@keyframes egg-slide { to { background-position: 200% 0; } }
@keyframes egg-hue { to { filter: hue-rotate(360deg); } }
.egg-sun .site-header::before { background: #f7b733; }
.egg-sun .brand__name { text-shadow: 0 0 18px rgba(247, 183, 51, .75); }

/* Transiciones suaves entre páginas (Chrome/Edge); la cabecera se queda quieta */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(*) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (pointer: coarse) {
  .cursor-dot { display: none; }
}
@media (hover: none) {
  .card:hover .thumb img, .row:hover .thumb img, .lead:hover .thumb img { transform: none; filter: none; }
  .card:hover .thumb::after, .row:hover .thumb::after, .lead:hover .thumb::after { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
  .cursor-dot { display: none; }
}
