/*
Theme Name: Curiosnautas Expediente
Theme URI: https://curiosnautas.com/
Author: Ripsk
Description: Creado por Ripsk. Tema editorial para Curiosnautas: portada de investigación, expedientes con guía del caso y un archivo explorable de pruebas. Todo se edita desde el panel, sin código.
Version: 1.5.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curiosnautas
Tags: news, blog, custom-menu, featured-images, translation-ready
*/
/* Tipografías: Inter y Bebas Neue (SIL Open Font License), Space Mono (SIL OFL), Newsreader (Google Fonts, SIL OFL). */

/* ==========================================================================
   CURIOSNAUTAS v7 — Sistema editorial (estructura e interacciones al estilo
   de The Examination) + Archivo explorable (al estilo de The DJ & the War Crimes).
   ========================================================================== */
@font-face { font-family: 'Curiosnautas'; src: url('assets/fonts/Curiosnautas-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('assets/fonts/BebasNeue-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/fonts/InterDisplay-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/fonts/InterDisplay-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/fonts/InterDisplay-Black.woff') format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('assets/fonts/SpaceMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('assets/fonts/SpaceMono-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FCFBF8;
  --ink: #0B0B0A;
  --ink-2: #3B3B37;
  --muted: #74736C;
  --line: rgba(11, 11, 10, 0.14);
  --olive: #7A8A5B;
  --olive-d: #5F6D44;
  --ivory: #EAE3D3;
  /* Temas: un color por tema para resaltar titulares */
  --fen: #B5D33D;   /* Fenómenos */
  --mex: #FF8A3D;   /* México oculto */
  --con: #9D8CFF;   /* Conspiraciones */
  --his: #F2C744;   /* Historia */
  --cie: #3DD6C4;   /* Ciencia */
  --cas: #FF5A4E;   /* Casos sin resolver */
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --head: 'Inter Display', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Newsreader', Caladea, Georgia, serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --rail: 26px;
  --max: 1180px;
  --g: clamp(1rem, 3vw, 2.5rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }

/* ---------- Riel de menú (izquierda) ---------- */
.rail {
  position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: var(--rail);
  display: flex; justify-content: center; padding-top: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer;
}
.rail span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.rail:hover { background: var(--olive-d); }

/* La página vive en un "panel" que el menú empuja */
.page { position: relative; margin-left: var(--rail); background: var(--bg); min-height: 100vh; transition: transform 0.55s var(--ease-out), filter 0.55s var(--ease); }
body.menu-open .page { transform: translateX(min(600px, 86vw)); filter: brightness(0.55) grayscale(0.4); pointer-events: none; }

/* Menú de dos columnas */
.menu { position: fixed; z-index: 60; top: 0; bottom: 0; left: var(--rail); width: min(600px, 86vw); display: grid; grid-template-columns: 1fr 1.05fr; background: var(--ink); color: #fff; transform: translateX(-100%); transition: transform 0.55s var(--ease-out); overflow-y: auto; }
body.menu-open .menu { transform: none; }
.menu .col { padding: 1.2rem 1.4rem 2rem; }
.menu .col + .col { border-left: 1px solid rgba(255,255,255,0.18); padding: 1.2rem 0 2rem; }
.menu .brand { font-family: var(--display); font-size: 2.6rem; line-height: 0.9; letter-spacing: 0.01em; }
.menu ul { list-style: none; margin: 1.4rem 0; padding: 0; }
.menu .site a { display: block; padding: 0.2rem 0; font-family: var(--head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none; }
.menu .site a:hover { color: var(--olive); }
.menu .lbl { display: block; padding: 0 1rem 0.6rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: #8B8A84; border-bottom: 1px solid rgba(255,255,255,0.18); }
.menu .topics a { display: block; padding: 0.55rem 1rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.18); font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; text-decoration: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), padding 0.35s var(--ease-out); }
.menu .topics a:hover { background: var(--tc); color: var(--ink); padding-left: 1.4rem; }
.menu .news { margin-top: 1.4rem; }
.menu .news b { display: block; font-family: var(--head); font-weight: 800; font-size: 1.15rem; line-height: 1.15; margin-bottom: 0.7rem; }

/* ---------- Cabecera ---------- */
.top { position: fixed; z-index: 50; top: 0; left: var(--rail); right: 0; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 1rem; pointer-events: none; }
.top > * { pointer-events: auto; }
.badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--badge, var(--ink)); border: 1.5px solid var(--bg); transform: scale(0); transition: transform 0.45s var(--ease-out); }
.badge img { width: 26px; height: 26px; object-fit: contain; }
body.scrolled .badge { transform: scale(1); }
.top-links { display: flex; align-items: center; gap: 1.2rem; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; }
.top-links a { text-decoration: none; color: #fff; mix-blend-mode: difference; }
.top-links .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.top-links .txt { transition: opacity 0.3s; }
body.scrolled .top-links .txt, body.scrolled .top-links .search { opacity: 0; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 34px; padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--ink); color: #fff !important; mix-blend-mode: normal !important; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 1.5px solid #fff; transition: background 0.25s var(--ease), color 0.25s; }
.pill:hover { background: #fff; color: var(--ink) !important; }
.pill.olive { background: var(--olive); border-color: var(--olive); }
.pill.olive:hover { background: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 70px 0 3rem; text-align: center; overflow: hidden; }
.wordmark { display: block; margin: 0 auto; font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 15.5vw, 15rem); line-height: 0.82; letter-spacing: 0.005em; white-space: nowrap; transform-origin: 50% 0; transition: transform 0.1s linear, opacity 0.1s linear; }
.wordmark .o { display: inline-block; width: 0.78em; height: 0.78em; vertical-align: -0.03em; margin: 0 0.01em; }
.wordmark .o img { width: 100%; height: 100%; object-fit: contain; }
.hero h1 { margin: 1.4rem 0 0; font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.hero p { margin: 1.2rem auto 0; max-width: 34ch; font-style: italic; font-size: 1.15rem; line-height: 1.45; color: #E6E4DD; }
.hero p a { font-style: normal; font-weight: 700; font-family: var(--sans); font-size: 0.95em; text-decoration: underline; text-decoration-color: var(--tc); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Etiquetas ---------- */
.topic { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.topic::before { content: ""; width: 8px; height: 8px; background: var(--tc); transform: rotate(45deg); }
.topic .ser { color: var(--muted); }
.topic .ser::before { content: "·"; margin: 0 0.4rem 0 0.1rem; }
.date { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Titulares + resaltado ---------- */
.h { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.h a { text-decoration: none; }
/* barrido de color al pasar el cursor (la duración la calcula el JS según el largo) */
.sweep { background-image: linear-gradient(transparent 18%, var(--tc) 18%, var(--tc) 86%, transparent 86%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size var(--d, 0.7s) var(--ease); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
a:hover .sweep, a:focus-visible .sweep, .sweep.is-on { background-size: 100% 100%; }
/* frase resaltada por el editor: se "pinta" al entrar en pantalla */
.mark { background-image: linear-gradient(transparent 18%, var(--tc) 18%, var(--tc) 86%, transparent 86%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.9s var(--ease) 0.15s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.in .mark, .mark.in { background-size: 100% 100%; }

/* ---------- Bloques de portada ---------- */
.lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.lead .img { display: block; overflow: hidden; }
.lead .img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 1s var(--ease-out); }
.lead .img:hover img { transform: scale(1.03); }
.lead .h { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem); margin: 0.2rem 0 0.9rem; }
.lead p { margin: 0 0 0.7rem; max-width: 34ch; font-size: 1.12rem; color: var(--ink-2); }
.new { display: inline-block; margin-bottom: 0.7rem; padding: 0.1rem 0.45rem; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 2rem 0 4rem; text-align: center; align-items: start; }
.trio .card .img { display: block; margin: 0 auto 1rem; width: 92%; }
.trio .card .img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,0.12); transition: transform 0.6s var(--ease-out); }
.trio .card:nth-child(1) .img img { transform: rotate(-1.6deg) translateY(4px); }
.trio .card:nth-child(2) .img img { transform: rotate(1.2deg); }
.trio .card .img:hover img { transform: rotate(0) scale(1.03); }
.trio .h { font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem); margin: 0.6rem 0; }
.trio p { margin: 0 auto 0.7rem; max-width: 30ch; font-size: 1rem; color: var(--ink-2); }
.promo-nl { display: grid; justify-items: center; gap: 0.6rem; padding-top: 2rem; }
.promo-nl img { width: 120px; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.promo-nl h3 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.promo-nl p { margin: 0; font-size: 1rem; max-width: 26ch; }
.promo-nl p a { text-decoration-color: var(--olive); text-underline-offset: 3px; }
.field { display: flex; gap: 0.4rem; margin-top: 0.6rem; width: 100%; max-width: 280px; }
.field input { flex: 1; min-width: 0; height: 38px; padding: 0 0.9rem; border: 0; border-radius: 999px; background: #ECEAE4; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.field button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: transform 0.25s var(--ease); }
.field button:hover { transform: translateX(3px); background: var(--olive); }
.dark .field input { background: #26261F; color: #fff; }
.dark .field button { background: #fff; color: var(--ink); }

/* Secciones */
.sec-title { margin: 0 0 2rem; font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); letter-spacing: -0.035em; }
.sec-title a { text-decoration: none; }
.sec-title a::after { content: " →"; display: inline-block; transition: transform 0.3s var(--ease-out); }
.sec-title a:hover::after { transform: translateX(6px); }
.band { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1.5px solid var(--ink); }
.dark { background: var(--ink); color: #fff; border-top: 0; }
.dark .date, .dark .topic .ser { color: #9E9C94; }

/* Serie (bloque oscuro) */
.series { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.series .feat { text-align: center; }
.series .feat .img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.series .feat .topic { margin-top: 1rem; }
.series .feat .h { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); margin: 0.6rem auto; max-width: 22ch; }
.series .feat p { margin: 0 auto 0.6rem; max-width: 42ch; color: #D8D6CF; }
.series .list article { padding: 0 0 1.4rem; margin-bottom: 1.4rem; }
.series .list .h { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); margin: 0.5rem 0 0.4rem; }

/* Impacto */
.impact { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; text-align: center; }
.impact .statement { font-size: 1.25rem; line-height: 1.4; }
.impact .statement a { font-weight: 700; text-decoration: underline dashed; text-underline-offset: 4px; }

/* Marquesina */
.marquee { position: relative; overflow: hidden; border-block: 1.5px solid var(--ink); padding: 2rem 0; }
.marquee .track { display: flex; gap: 4rem; width: max-content; animation: scroll-x var(--mq, 38s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .track img { width: 150px; height: 150px; object-fit: contain; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; opacity: 0.85; }
.marquee.color .track img { filter: none; mix-blend-mode: normal; opacity: 1; }
.marquee .box { position: absolute; inset: 0; margin: auto; width: min(420px, 80%); height: fit-content; padding: 1.4rem 1.6rem; background: var(--bg); text-align: center; box-shadow: 0 0 0 40px var(--bg); }
.marquee .box h3 { margin: 0 0 0.3rem; font-family: var(--head); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.035em; }
.marquee .box p { margin: 0 0 0.9rem; font-size: 1rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Videos verticales */
.vids { position: relative; }
.vids .row { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 0.5rem; }
.vids .row::-webkit-scrollbar { display: none; }
.vid { position: relative; flex: 0 0 clamp(200px, 20vw, 250px); aspect-ratio: 9/16; overflow: hidden; scroll-snap-align: start; background: var(--ink); color: #fff; text-decoration: none; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.vid:hover img { transform: scale(1.06); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); transition: transform 0.3s var(--ease-out); }
.vid:hover .play { transform: scale(1.25); }
.vid .cap { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 1rem; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--ink); }
.vid .cap span { background: var(--tc); padding: 0.05em 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.arrows { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.arrows button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease); }
.arrows button:hover { background: var(--olive); transform: scale(1.08); }
.arrows button:disabled { background: #CFCDC6; cursor: default; transform: none; }

/* Destacados (oscuro) */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); text-align: center; align-items: start; }
.feat-grid .statement { align-self: center; font-size: 1.2rem; line-height: 1.45; }
.feat-grid .img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feat-grid .card:nth-child(3) .img img { transform: rotate(1.4deg); }
.feat-grid .h { font-size: clamp(1.4rem, 1rem + 1vw, 1.85rem); margin: 0.6rem 0; }
.feat-grid p { margin: 0 auto 0.6rem; max-width: 32ch; font-size: 1rem; color: #D8D6CF; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats a { padding: 1rem; text-decoration: none; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: 0.9; }
.stats span { font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.stats a:hover b { color: var(--olive); }

/* Pie */
.foot { background: var(--ink); color: #fff; padding: 3.5rem 0 0; overflow: hidden; }
.foot .cols { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 2rem; align-items: start; }
.foot .links a { display: block; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.25; text-decoration: none; }
.foot .links a:hover { color: var(--olive); }
.foot .lbl { display: block; margin: 1.6rem 0 0.6rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: #8B8A84; }
.foot .center { text-align: center; display: grid; justify-items: center; gap: 0.6rem; }
.foot .center h3 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.035em; line-height: 1.05; }
.foot .social { display: flex; gap: 0.9rem; margin-top: 1.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.foot .social a { text-decoration: none; color: #BDBAB1; }
.foot .social a:hover { color: #fff; }
.foot .legal { font-family: var(--sans); font-size: 0.8rem; color: #8B8A84; margin-top: 0.6rem; }
.foot .giant { margin-top: 2.5rem; font-family: var(--display); font-size: 19.5vw; line-height: 0.78; letter-spacing: 0; white-space: nowrap; text-align: center; transform: translateY(8%); }

/* ==========================================================================
   ARTÍCULO (expediente)
   ========================================================================== */
.art-head { padding: 80px 0 3rem; background: var(--tdark); color: var(--tc); text-align: center; }
.art-head figure { margin: 0 auto 1.6rem; max-width: 640px; }
.art-head figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.art-head figcaption { margin-top: 0.5rem; font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; text-align: left; opacity: 0.85; }
.art-head .topic { color: var(--tc); }
.art-head h1 { margin: 1rem auto 1.2rem; max-width: 18ch; font-family: var(--head); font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem); letter-spacing: -0.04em; line-height: 0.98; }
.art-head .deck { margin: 0 auto; max-width: 34ch; font-style: italic; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }
.art-head .by { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.8rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.art-head .by a { color: inherit; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.body { max-width: 640px; margin: 0 auto; padding: 3rem var(--g) 1rem; box-sizing: content-box; }
.body > p { margin: 0 0 1.3rem; font-size: 1.2rem; line-height: 1.62; }
.body h2 { margin: 2.6rem 0 1rem; font-family: var(--head); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.035em; line-height: 1.12; }
.body a { text-decoration-color: var(--olive); text-underline-offset: 3px; }
.quote { position: relative; margin: 2.8rem 0; padding-left: 0; }
.quote::before { content: "“"; position: absolute; left: -2.2rem; top: -0.4rem; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--tc); }
.quote p { margin: 0 0 0.8rem; font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.12; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.inline-rel { display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem; align-items: center; margin: 2.4rem 0; padding: 1.2rem 0; border-block: 1.5px solid var(--ink); text-decoration: none; }
.inline-rel img { width: 160px; aspect-ratio: 4/3; object-fit: cover; }
.inline-rel .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--muted); }
.inline-rel .h { font-size: 1.35rem; margin-top: 0.3rem; }
.inline-nl { margin: 2.4rem 0; padding: 1.6rem; background: #F1EFE9; text-align: center; display: grid; justify-items: center; }
.inline-nl h3 { margin: 0 0 0.2rem; font-family: var(--head); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.wide { max-width: 980px; margin: 2.6rem auto; padding-inline: var(--g); }
.wide img { width: 100%; }
.wide figcaption { margin-top: 0.5rem; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); max-width: 640px; }

/* Guía del caso (Tudum) */
.guide { margin: 3rem 0 0; }
.guide .gh { display: flex; justify-content: space-between; align-items: end; padding-bottom: 0.8rem; border-bottom: 3px solid var(--ink); }
.guide .gh h2 { margin: 0; }
.chap { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.chap .still { position: relative; overflow: hidden; }
.chap .still img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.chap:hover .still img { transform: scale(1.05); }
.chap .tc { position: absolute; left: 0.4rem; bottom: 0.4rem; padding: 0.1rem 0.4rem; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.66rem; }
.chap .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); }
.chap .h { font-size: 1.4rem; margin: 0.25rem 0 0.4rem; }
.chap p { margin: 0 0 0.4rem; font-size: 1rem; color: var(--ink-2); }
.chap .go { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }

/* Portal al archivo */
.portal { position: relative; display: block; margin: 3rem auto 0; max-width: 980px; height: 360px; overflow: hidden; background: #080807; color: #fff; text-decoration: none; }
.portal .tiles { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding: 18px; opacity: 0.55; transform: rotate(-4deg) scale(1.1); transition: transform 1.2s var(--ease-out), opacity 0.6s; }
.portal:hover .tiles { transform: rotate(-2deg) scale(1.18) translateX(-20px); opacity: 0.75; }
.portal .tiles img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.portal::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tc) 60%, transparent) 0%, rgba(8,8,7,0.92) 55%); }
.portal .in { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; gap: 0.4rem; }
.portal .k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.18em; }
.portal h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 0.88; }
.portal p { margin: 0.4rem 0 1rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.portal .pill { justify-self: center; background: #fff; color: var(--ink) !important; }

.sources { margin-top: 3rem; padding-top: 1rem; border-top: 3px solid var(--ink); font-family: var(--sans); font-size: 0.92rem; }
.sources b { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.sources ol { padding-left: 1.2rem; }
.more-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.more-row .img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.more-row .h { font-size: 1.35rem; margin: 0.6rem 0; }

/* ==========================================================================
   ARCHIVO EXPLORABLE (lienzo que se arrastra)
   ========================================================================== */
body.vault { background: #050505; overflow: hidden; height: 100vh; }
.vault-rail { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: 30px; background: var(--tc); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.vault-rail span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; }
.vault-rail:hover { filter: brightness(1.1); }
.stage { position: fixed; inset: 0 0 0 30px; overflow: hidden; cursor: grab; touch-action: none; }
.stage.drag { cursor: grabbing; }
.canvas { position: absolute; left: 0; top: 0; will-change: transform; display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); grid-auto-rows: var(--ch); --cw: 300px; --ch: 290px; }
.cell { position: relative; display: grid; place-items: center; border-right: 1px dashed rgba(255,255,255,0.07); border-bottom: 1px dashed rgba(255,255,255,0.07); }
.cell::after { content: ""; position: absolute; right: -11px; bottom: -11px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2.5px); }
.cell .ticks { position: absolute; left: 6px; top: 20%; bottom: 20%; width: 6px; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 6px); }
.tile { position: relative; max-width: 84%; max-height: 82%; border: 0; padding: 0; background: none; cursor: zoom-in; transition: transform 0.4s var(--ease-out), filter 0.4s; filter: brightness(0.62) grayscale(0.35); }
.tile img { max-width: 100%; max-height: 220px; object-fit: contain; box-shadow: 0 14px 34px rgba(0,0,0,0.6); }
.tile.doc img { background: #F4F1E8; padding: 10px; }
.tile:hover { transform: scale(1.04); filter: none; }
.tile .eye { position: absolute; right: -10px; bottom: -10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.3s var(--ease-out); }
.tile .eye img { width: 18px; max-height: none; box-shadow: none; padding: 0; background: none; }
.tile:hover .eye { opacity: 1; transform: none; }
.tile .code { position: absolute; left: 0; top: -18px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); white-space: nowrap; }
.center-panel { grid-column: span 3; grid-row: span 2; position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: center; padding: 2rem 2.4rem; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--tc) 45%, #050505) 0%, #0B0A08 65%); color: #F4F1E8; text-align: center; border-left: 1px solid rgba(255,255,255,0.15); border-right: 1px solid rgba(255,255,255,0.15); cursor: default; }
.center-panel .k { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.08em; }
.center-panel h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 4.6rem; line-height: 0.85; }
.center-panel p { margin: 1rem auto 0; max-width: 36ch; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.55; text-transform: uppercase; }
.center-panel .pill { margin-top: 1.4rem; background: #F4F1E8; color: var(--ink) !important; border-color: #F4F1E8; }
.yt { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .t { position: absolute; left: 0; right: 0; top: 0; padding: 0.7rem 0.8rem; background: linear-gradient(rgba(0,0,0,0.75), transparent); text-align: left; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; }
.yt .p { position: absolute; left: 50%; top: 50%; width: 66px; height: 46px; margin: -23px 0 0 -33px; border-radius: 12px; background: #FF0000; display: grid; place-items: center; color: #fff; font-size: 1.1rem; transition: transform 0.25s var(--ease-out); }
.yt:hover .p { transform: scale(1.1); }
.hint { position: fixed; z-index: 25; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: #F4F1E8; text-transform: uppercase; }
.hint .pill { background: #F4F1E8; color: var(--ink) !important; border-color: #F4F1E8; }
.vault-brand { position: fixed; z-index: 25; left: 46px; bottom: 1.2rem; max-width: 220px; font-style: italic; font-size: 0.8rem; color: #CFCBC0; line-height: 1.35; }
.vault-top { position: fixed; z-index: 25; top: 1rem; right: 1rem; display: flex; gap: 0.6rem; }

/* Ficha de la prueba */
.cert { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2.5rem 3rem 2.5rem 4rem; background: radial-gradient(circle at 20% 30%, #1A1916 0%, #050505 60%); color: #F4F1E8; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.cert.on { opacity: 1; pointer-events: auto; }
.cert .close { position: absolute; top: 1rem; left: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }
.cert .sheet { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; transform: translateY(14px); transition: transform 0.5s var(--ease-out); }
.cert.on .sheet { transform: none; }
.cert h2 { margin: 0 0 1rem; font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: 0.04em; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 0.5rem; }
.cert .row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed rgba(255,255,255,0.2); text-transform: uppercase; }
.cert .row .v { text-transform: none; font-family: var(--serif); font-size: 1rem; line-height: 1.45; }
.cert .chip { display: inline-block; padding: 0.15rem 0.4rem; background: #2A2925; letter-spacing: 0.06em; }
.cert .chain li { margin: 0.25rem 0; list-style: none; }
.cert .chain li::before { content: "↳ "; color: var(--tc); }
.cert .chain { padding: 0; margin: 0; }
.cert .pic { display: grid; place-items: center; transform: scale(0.96); transition: transform 0.6s var(--ease-out); }
.cert.on .pic { transform: none; }
.cert .pic img { max-height: 76vh; box-shadow: 0 30px 70px rgba(0,0,0,0.7); }
.cert .nav { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.cert .nav button { padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; cursor: pointer; }
.cert .nav button:hover { background: #fff; color: var(--ink); }

/* Animación de entrada al hacer scroll */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .lead, .series, .impact, .feat-grid, .foot .cols, .more-row { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 3rem; }
  .impact .statement, .feat-grid .statement { order: -1; }
  .chap { grid-template-columns: 1fr; }
  .center-panel { grid-template-columns: 1fr; padding: 1.4rem; }
  .center-panel h1 { font-size: 3.2rem; }
  .cert { grid-template-columns: 1fr; overflow-y: auto; padding: 4rem 1.2rem 2rem; align-content: start; }
  .cert .pic { order: -1; }
  .cert .pic img { max-height: 40vh; }
  .vault-brand { display: none; }
  .canvas { --cw: 220px; --ch: 230px; }
  .tile img { max-height: 160px; }
}
@media (max-width: 600px) {
  :root { --rail: 0px; }
  .rail { width: 44px; height: 44px; bottom: auto; top: 8px; left: 8px; border-radius: 50%; padding: 0; align-items: center; }
  .rail span { writing-mode: horizontal-tb; transform: none; font-size: 0; }
  .rail span::before { content: "≡"; font-size: 1.4rem; font-family: var(--sans); }
  .badge { display: none; }
  .top { justify-content: flex-end; }
  .top-links .txt, .top-links .search { display: none; }
  .menu { grid-template-columns: 1fr; left: 0; width: 100vw; }
  .menu .col + .col { border-left: 0; }
  body.menu-open .page { transform: translateX(100vw); }
  .quote::before { left: -0.4rem; top: -2.6rem; }
  .inline-rel { grid-template-columns: 100px 1fr; }
  .inline-rel img { width: 100px; }
  .stats { grid-template-columns: 1fr; }
  .center-panel { grid-column: span 2; grid-row: span 3; }
  .hint span.txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rise { opacity: 1; transform: none; }
  .mark { background-size: 100% 100%; }
}

/* ==========================================================================
   AJUSTES PARA WORDPRESS
   ========================================================================== */
.skip:focus { position: fixed; z-index: 200; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; padding: 0.6rem 1rem; background: #fff; color: var(--ink); }
.menu .site ul, .menu .cn-nav { list-style: none; margin: 1.4rem 0; padding: 0; }
.menu .site .brand { display: block; text-decoration: none; }
.menu .soc { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; }
.menu .soc a { text-decoration: none; color: #BDBAB1; }
.menu .soc a:hover { color: #fff; }
.mini-brand { margin-right: auto; margin-left: 0.8rem; font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.02em; text-decoration: none; color: #fff; mix-blend-mode: difference; transition: opacity 0.3s; }
body.scrolled .mini-brand { opacity: 0; pointer-events: none; }
.search-box { position: fixed; z-index: 55; top: 58px; right: 1rem; padding: 0.6rem; background: var(--ink); border-radius: 999px; }
.search-box form { display: flex; gap: 0.4rem; }
.search-box input { width: min(320px, 70vw); height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; font: inherit; font-size: 0.95rem; }
.search-box button, .list-search button { height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--olive); color: #fff; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; cursor: pointer; }
.foot .links li { list-style: none; }
.foot .links ul { margin: 0; padding: 0; }
.foot .nl-txt { margin: 0; color: #D8D6CF; font-size: 1rem; }
.foot .nl-ok { margin: 0.4rem 0 0; font-family: var(--mono); font-size: 0.78rem; color: var(--olive); }
.foot .legal a { color: inherit; }
.empty-home { padding: 4rem var(--g); font-size: 1.2rem; text-align: center; }
.impact .img.tilt img { transform: rotate(1.2deg); }
.impact .card .img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.impact .card .h { font-size: 1.6rem; margin: 0.6rem 0; }
.impact .card .topic { margin-top: 1rem; }
.lead .img img, .trio .card .img img, .feat-grid .img img, .more-row .img img, .series .feat .img img { height: auto; }
.trio .card .topic, .feat-grid .topic, .more-row .topic { margin-top: 0.3rem; }
.feat-grid .card .img { display: block; margin-bottom: 1rem; }
.more-row .img { display: block; margin-bottom: 0.8rem; }
.inline-rel .h { display: block; }
.inline-rel img { height: auto; }
.inline-nl p { margin: 0 0 0.4rem; font-size: 1rem; }

/* Listados */
.list-head { padding: 90px 0 2.5rem; background: var(--ink); color: #fff; text-align: center; }
.list-head .topic { color: var(--tc, var(--olive)); }
.list-head h1 { margin: 0.8rem auto 0; max-width: 20ch; font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); line-height: 0.88; letter-spacing: 0.005em; }
.list-head p { margin: 1rem auto 0; max-width: 46ch; font-style: italic; font-size: 1.15rem; color: #E6E4DD; }
.page-head h1 { font-family: var(--head); font-weight: 900; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; }
.list-search { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.4rem; }
.list-search input { width: min(420px, 70vw); height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; font: inherit; }
.more-row.list { row-gap: 3.5rem; }
.more-row p { margin: 0 auto 0.6rem; max-width: 32ch; font-size: 1rem; color: var(--ink-2); }
.pager { margin-top: 3rem; text-align: center; font-family: var(--mono); }
.pager .nav-links { display: flex; justify-content: center; gap: 0.4rem; }
.pager .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.6rem; border-radius: 999px; text-decoration: none; }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--ink); color: #fff; }
.empty { text-align: center; font-size: 1.2rem; }

/* Texto del artículo (lo que escribes en el editor) */
.entry > *:not(.alignwide):not(.alignfull) { max-width: 640px; }
.entry p, .entry li { font-size: 1.2rem; line-height: 1.62; }
.entry > p { margin: 0 0 1.3rem; }
.entry h2 { margin: 2.6rem 0 1rem; font-family: var(--head); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.035em; line-height: 1.12; }
.entry h3 { margin: 2rem 0 0.8rem; font-family: var(--head); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.entry a { text-decoration-color: var(--tc, var(--olive)); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry mark, .entry .has-inline-color { background: linear-gradient(transparent 18%, var(--tc, var(--olive)) 18%, var(--tc, var(--olive)) 86%, transparent 86%) !important; color: var(--ink) !important; padding: 0 0.1em; }
.entry blockquote, .entry .wp-block-quote, .entry .wp-block-pullquote { position: relative; margin: 2.8rem 0; padding: 0; border: 0; }
.entry blockquote::before, .entry .wp-block-pullquote::before { content: "“"; position: absolute; left: -2.2rem; top: -0.4rem; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--tc); }
.entry blockquote p, .entry .wp-block-pullquote p { margin: 0 0 0.8rem; font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.12; }
.entry blockquote cite, .entry .wp-block-pullquote cite { font-style: normal; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.entry figure { margin: 2rem 0; }
.entry figure img { height: auto; }
.entry figcaption, .entry .wp-element-caption { margin-top: 0.5rem; font-family: var(--mono); font-size: 0.7rem; line-height: 1.5; color: var(--muted); }
.entry .alignwide { max-width: 980px; margin-left: 50%; transform: translateX(-50%); width: min(980px, 100vw - 4rem); }
.entry .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry .wp-block-embed { margin: 2rem 0; }
.entry .wp-block-separator { border: 0; border-top: 1.5px solid var(--ink); margin: 2.5rem 0; }
.warn { padding: 0.9rem 1.1rem; background: #F1EFE9; border-left: 4px solid var(--tc); font-size: 1rem !important; }
.warn b { margin-right: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; }
.art-head figure img { height: auto; }
.art-head .by a { text-decoration: underline; text-underline-offset: 3px; }
.chap .still { display: block; background: #1a1a18; }
.chap .h { display: block; }

/* Formularios */
.case-form { display: grid; gap: 1rem; margin-top: 2rem; }
.case-form label { display: grid; gap: 0.35rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.case-form input, .case-form textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font-family: var(--serif); font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.case-form .pill { justify-self: start; min-height: 46px; padding: 0.6rem 1.4rem; border: 0; cursor: pointer; }
.notice-ok { padding: 1rem 1.2rem; background: #EEF2E3; border-left: 4px solid var(--olive); }

/* Archivo: columna de video y capítulos */
.video-col { display: grid; gap: 0.8rem; }
.yt { width: 100%; border: 0; padding: 0; cursor: pointer; color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 150px; overflow-y: auto; text-align: left; }
.yt-caps button { width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 0.6rem; padding: 0.45rem 0.6rem; border: 0; background: rgba(255,255,255,0.06); color: #F4F1E8; font-family: var(--sans); font-size: 0.85rem; text-align: left; cursor: pointer; }
.yt-caps button span { font-family: var(--mono); font-size: 0.72rem; color: var(--tc); }
.yt-caps button:hover { background: rgba(255,255,255,0.14); }
.tile .no-img, .cert .no-img { display: grid; place-items: center; width: 200px; height: 150px; padding: 1rem; background: #1F1E1A; color: #CFCBC0; font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; text-align: center; letter-spacing: 0.06em; }
.tile.t-documento img { background: #F4F1E8; padding: 10px; }
.cert .orig { display: inline-flex; align-items: center; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-decoration: none; }
.cert .orig:hover { background: #fff; color: var(--ink); }
.cert[hidden], .vault-list[hidden] { display: none; }
.vault-list { position: fixed; inset: 0; z-index: 85; overflow-y: auto; padding: 4rem 0 3rem 30px; background: #070706; color: #F4F1E8; }
.vault-list .close { position: fixed; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; color: #fff; cursor: pointer; }
.vault-list h2 { margin: 0 0 2rem; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 0.95; }
.vault-list h3 { margin: 2.5rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.2); font-family: var(--head); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.2rem; }
.list-item { display: grid; gap: 0.35rem; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.list-item .im { display: block; aspect-ratio: 4/5; background: #1F1E1A; overflow: hidden; }
.list-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); transition: filter 0.3s; }
.list-item:hover img { filter: none; }
.list-item .code { font-family: var(--mono); font-size: 0.68rem; color: var(--tc); letter-spacing: 0.06em; }
.list-item .t { font-family: var(--sans); font-size: 0.95rem; line-height: 1.3; }
.tile img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
body.admin-bar .top { top: 32px; }
body.admin-bar .rail, body.admin-bar .menu { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top, body.admin-bar .rail { top: 46px; } }
@media (max-width: 600px) {
  .vault-list { padding-left: 1rem; }
  .entry blockquote::before, .entry .wp-block-pullquote::before { left: -0.4rem; top: -2.6rem; }
  .mini-brand { display: none; }
}
.sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.entry { padding-bottom: 3rem; }

/* ==========================================================================
   v1.1 — Logo oficial, otras páginas, Nosotros y créditos
   ========================================================================== */
.menu .brand, .mini-brand { font-family: 'Curiosnautas', var(--display); letter-spacing: 0.14em; }
.menu .brand { font-size: 2.1rem; line-height: 1; }
.mini-brand { font-size: 1.25rem; }

/* Otras páginas: discretas, al pie */
.foot .also { margin: 1.4rem 0 0; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: #8B8A84; }
.foot .also span { opacity: 0.8; }
.foot .also a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.foot .also a:hover { color: var(--olive); border-color: currentColor; }

/* Créditos del expediente */
.credits { margin-top: 3rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.credits > b { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.credits dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.1rem 2rem; margin: 1rem 0 0; }
.credits dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0.3rem 0 0; font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.35; }
.credits dd a { text-decoration: none; background-image: linear-gradient(var(--tc, var(--olive)), var(--tc, var(--olive))); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease-out); }
.credits dd a:hover { background-size: 100% 100%; }
.credits + .sources { margin-top: 2.2rem; }

/* Nosotros */
.about-head { position: relative; overflow: hidden; }
.about-eye { display: block; width: 74px; margin: 0 auto 1.2rem; opacity: 0.9; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.4rem 1.6rem; }
.member { scroll-margin-top: 90px; }
.member .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #ECEAE4; display: grid; place-items: center; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s var(--ease), transform 0.8s var(--ease-out); }
.member:hover .ph img { filter: none; transform: scale(1.03); }
.member .ph .ph-eye { width: 46%; height: auto; object-fit: contain; opacity: 0.25; filter: none; }
.member:target .ph { outline: 3px solid var(--olive); outline-offset: 4px; }
.member .role { display: block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-d); }
.member h3 { margin: 0.3rem 0 0; font-family: var(--head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1; }
.member p { margin: 0.5rem 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.member .mlinks { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.7rem; }
.member .mlinks a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--ink); }
.cn-empty { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.about-cta { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--ink); color: #fff; text-align: center; }
.about-cta h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 0.9; }
.about-cta p { margin: 0.8rem auto 1.6rem; max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #E6E4DD; }

/* ==========================================================================
   v1.4 — Revista digital (oscura, estilo expediente impreso)
   ========================================================================== */
body.mag .page { background: #0D0D0C; color: #E9E5DA; }
body.mag .foot { border-top: 1px solid rgba(233, 229, 218, 0.14); }
.mag-wrap { background: #0D0D0C; --ac: var(--olive); --m-ink: #E9E5DA; --m-dim: #8C897F; --m-line: rgba(233, 229, 218, 0.14); position: relative; padding: 0 var(--g) 2rem; color: var(--m-ink); counter-reset: none; }
.mag-wrap .lbl { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--m-dim); }
.mag-secret { position: sticky; top: 0; z-index: 60; margin: 0 calc(var(--g) * -1); padding: 0.45rem var(--g); background: #B3261E; color: #fff; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-align: center; }

/* Barra de capítulos */
.mag-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1.6rem; margin: 0 calc(var(--g) * -1); padding: 64px var(--g) 0.9rem; background: linear-gradient(#0D0D0C 80%, rgba(13, 13, 12, 0)); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; border-bottom: 1px solid var(--m-line); }
.mag-nav a { color: var(--m-dim); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.mag-nav a:hover { color: var(--m-ink); }
.mn-brand { flex: none; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; }
.mn-caps { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.mn-caps::-webkit-scrollbar { display: none; }
.mn-caps a.on { color: var(--m-ink); }
.mn-caps a.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.55em; border-radius: 50%; background: var(--cc, var(--ac)); vertical-align: 1px; }
.mn-index { flex: none; padding: 0.35rem 0.8rem; border: 1px solid var(--m-line); border-radius: 99px; background: none; color: var(--m-ink); font: inherit; letter-spacing: inherit; cursor: pointer; }
.mn-index:hover { border-color: var(--ac); color: var(--ac); }

/* Bloques */
.mag-sec { max-width: 1120px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--m-line); }
.mag-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 6vw, 5rem); }
.mag-side { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; line-height: 1.7; text-transform: uppercase; color: var(--m-dim); }
.mag-side p { margin: 0 0 1rem; }
.mag-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.mag-meta span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--m-dim); }
.mag-meta b { display: block; margin-top: 0.5rem; font-family: var(--mono); font-weight: 400; font-size: 0.86rem; letter-spacing: 0.04em; }
.mag-title { margin-top: clamp(3rem, 8vw, 6rem); }
.mag-title h1, .mag-h1 { margin: 0.6rem 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 2rem + 10vw, 11rem); line-height: 0.86; letter-spacing: 0.005em; text-transform: uppercase; overflow-wrap: anywhere; }
.mag-lema { margin: 1.4rem 0 0; max-width: 26ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.2; }
.mag-cover-img { margin: clamp(2.5rem, 6vw, 4rem) 0 0; aspect-ratio: 16 / 8; overflow: hidden; }
.mag-cover-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.mag-body { max-width: 640px; }
.mag-intro { margin: 1.2rem 0 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; }
.mag-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.mag-text a { color: inherit; text-decoration-color: var(--ac); }
.mag-text h2, .mag-text h3 { font-family: var(--head); letter-spacing: -0.02em; }

/* Texto que se revela al leer (gris → claro) */
.mag-wrap .rv, .mag-wrap .rv-kids > * { color: #4A4843; transition: color 0.9s var(--ease); }
.mag-wrap .rv.in, .mag-wrap .rv-kids > .in { color: var(--m-ink); }
.mag-wrap .rv img { opacity: 0.35; transition: opacity 1s var(--ease), filter 1s var(--ease); }
.mag-wrap .rv.in img { opacity: 1; }

/* Subrayados de color en la revista: se pintan al entrar y el texto se oscurece para leerse */
.mag-wrap .sweep { transition: background-size var(--d, 0.8s) var(--ease), color 0.4s var(--ease) 0.2s; }
.mag-wrap .sweep.in, .mag-wrap a:hover .sweep { background-size: 100% 100%; color: #0B0B0A; }

/* Epígrafe con capitular */
.mag-epi blockquote { margin: 0; max-width: 760px; }
.mag-epi p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.3; }
.dropcap { float: left; margin: 0.06em 0.12em 0 0; font-family: var(--display); font-style: normal; font-size: 4.4em; line-height: 0.78; color: var(--ac); }
.mag-epi cite { display: block; clear: both; margin-top: 1.4rem; font-family: var(--mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--m-dim); }

/* Contadores */
.mag-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.mag-counts b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2rem + 5vw, 7rem); line-height: 0.9; color: var(--ac); font-variant-numeric: tabular-nums; }
.mag-counts span { display: block; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-dim); }

/* Índice */
.mag-toc .lbl { margin-bottom: 1.2rem; }
.toc-row { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) 90px; gap: 1.5rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--m-line); color: inherit; text-decoration: none; }
.toc-row:last-child { border-bottom: 1px solid var(--m-line); }
.toc-n { font-family: var(--display); font-size: 2.6rem; line-height: 0.9; color: var(--tc); }
.toc-t b { font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.toc-t em { display: block; margin-top: 0.4rem; font-family: var(--serif); font-size: 1rem; color: var(--m-dim); }
.toc-list { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--m-dim); }
.toc-list i { font-style: normal; }
.toc-p { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-align: right; color: var(--m-dim); transition: color 0.2s, transform 0.3s var(--ease-out); }
.toc-row:hover .toc-p { color: var(--tc); transform: translateX(4px); }

/* Acción */
.mag-big { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-top: 1.1rem; padding: 0 0 0.9rem; border: 0; border-bottom: 1px solid var(--m-line); background: none; color: var(--m-ink); font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); letter-spacing: -0.035em; text-align: left; text-decoration: none; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.mag-big span { color: var(--ac); transition: transform 0.3s var(--ease-out); }
.mag-big:hover { border-color: var(--ac); }
.mag-big:hover span { transform: translateX(6px); }
.mag-big[data-done]::after { content: attr(data-done); margin-left: 1rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; color: var(--ac); }
.mag-print { padding: 1.3rem; border: 1px solid var(--m-line); text-transform: none; letter-spacing: 0; }
.mag-print p { margin: 0.8rem 0 0.4rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; color: var(--m-ink); }
.mag-print .meta { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; }
.mag-link { display: inline-block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ac); text-decoration: none; border-bottom: 1px solid currentColor; }
.mag-note p { max-width: 640px; margin: 1rem 0 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }

/* Cierre de página */
.mag-colophon { max-width: 1120px; margin: 0 auto; padding: 3rem 0 4rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; line-height: 1.9; color: var(--m-dim); }
.mag-colophon a { color: inherit; }
.mag-next { display: block; margin-bottom: 2.4rem; padding: 1.4rem 0; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); color: var(--m-ink) !important; text-decoration: none; text-align: right; font-size: 0.78rem; transition: color 0.2s; }
.mag-next:hover { color: var(--ac) !important; }

/* Sello, número de página y progreso */
.mag-stamp { position: fixed; z-index: 30; left: calc(var(--rail) + 14px); bottom: 16px; padding: 0.5rem 1.1rem; border: 1px solid var(--m-ink); border-radius: 50%; font-family: var(--mono); font-size: 0.5rem; line-height: 1.4; letter-spacing: 0.14em; text-align: center; color: var(--m-ink); transform: rotate(-4deg); pointer-events: none; mix-blend-mode: difference; }
.mag-page { position: fixed; z-index: 30; right: 22px; bottom: 18px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--m-dim); pointer-events: none; }
.mag-progress { position: fixed; z-index: 30; top: 0; right: 10px; bottom: 0; width: 1px; background: var(--m-line); pointer-events: none; }
.mag-progress i { display: block; width: 100%; height: 0; background: var(--ac); transition: height 0.15s linear; }

/* Índice desplegable */
.mag-index { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.5rem; background: rgba(8, 8, 7, 0.94); }
.mag-index[hidden] { display: none; }
.mi-in { position: relative; width: min(560px, 100%); }
.mi-in a { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--m-line); color: var(--m-ink); font-family: var(--head); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; text-decoration: none; }
.mi-in a b { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; color: var(--cc, var(--ac)); padding-top: 0.5rem; }
.mi-in a:hover .u { text-decoration: underline; text-decoration-color: var(--cc, var(--ac)); text-underline-offset: 6px; }
.mi-x { position: absolute; right: 0; top: -0.4rem; border: 0; background: none; color: var(--m-ink); font-size: 1.3rem; cursor: pointer; }

/* Capítulo */
.mag-chap header { min-width: 0; }
.chap-n { margin-top: 1rem; font-family: var(--display); font-size: clamp(7rem, 4rem + 14vw, 16rem); line-height: 0.8; color: var(--ac); }
.chap-t { margin: 0.6rem 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 1.6rem + 6vw, 7rem); line-height: 0.9; text-transform: uppercase; }
.chap-sub { margin: 1rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--m-dim); }
.chap-epi p { margin: 1rem 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--m-ink); }
.mag-cont { margin: 3rem 0 2.5rem; padding-top: 1rem; border-top: 1px solid var(--m-line); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--m-dim); }
.mag-h2 { margin: 0.6rem 0 2.2rem; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 0.9; }
.mag-empty { font-family: var(--mono); font-size: 0.8rem; color: var(--m-dim); }
.dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem 2rem; }
.dossier { display: flex; flex-direction: column; }
.d-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1A1A18; }
.d-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); transition: filter 0.6s var(--ease), transform 0.9s var(--ease-out); }
.dossier:hover .d-img img { filter: grayscale(0); transform: scale(1.03); }
.d-file { margin-top: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--m-dim); }
.dossier h3 { margin: 0.5rem 0 0; font-family: var(--head); font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; }
.dossier h3 a { color: inherit; text-decoration: none; }
.mag-wrap .dossier .mark { color: inherit; }
.mag-wrap .dossier.in .mark { color: #0B0B0A; }
.d-status { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--tc); }
.dossier p { margin: 0.7rem 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.55; }
.d-meta { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--m-dim); }
.d-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1rem; }
.d-links a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--m-ink); text-decoration: none; transition: color 0.2s; }
.d-links a:hover { color: var(--tc); }

/* Lista de ediciones */
.mag-arch-head { padding-top: calc(58px + 4rem); }
.ed-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); color: inherit; text-decoration: none; }
.ed-img { aspect-ratio: 4 / 3; overflow: hidden; background: #1A1A18; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.6s var(--ease); }
.ed-card:hover .ed-img img { filter: none; }
.ed-txt h2 { margin: 0.8rem 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 0.9; text-transform: uppercase; }
.ed-txt p { margin: 1rem 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; }
.ed-closed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.ed-mini { position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-height: 220px; padding: 1.3rem; border: 1px solid var(--m-line); color: var(--m-dim); text-decoration: none; overflow: hidden; }
.ed-mini b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 0.95; color: var(--m-ink); text-transform: uppercase; }
.ed-mini i { display: block; height: 0.8rem; background: #2A2926; }
.ed-mini i + i { width: 60%; }
.stamp, .cl-stamp { display: inline-block; padding: 0.3rem 0.8rem; border: 2px solid #C43C33; color: #C43C33; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; transform: rotate(-8deg); }
.ed-mini .stamp { position: absolute; right: 1rem; bottom: 1.4rem; }

/* Ficha pública de edición clasificada */
.mag-classified .mag-sec { padding-top: calc(58px + 4rem); border: 0; }
.cl-stamp { margin: 2rem 0 0; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); padding: 0.4rem 1.2rem; }
.cl-title { margin: 1.5rem 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2rem + 7vw, 8rem); line-height: 0.88; text-transform: uppercase; text-decoration: line-through; text-decoration-color: #C43C33; text-decoration-thickness: 0.06em; }
.cl-text { max-width: 46ch; margin: 1.4rem 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.cl-list { list-style: none; margin: 2rem 0; padding: 0; max-width: 640px; }
.cl-list li { display: flex; gap: 1rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--m-line); font-family: var(--mono); font-size: 0.7rem; color: var(--m-dim); }
.cl-list i { display: block; height: 1rem; background: #000; box-shadow: inset 0 0 0 1px #2A2926; }
.cl-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--m-dim); }

@media (max-width: 860px) {
  .mag-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mag-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-row { grid-template-columns: 52px minmax(0, 1fr); }
  .toc-list, .toc-p { grid-column: 2; text-align: left; }
  .mn-caps { display: none; }
  .mn-brand { flex: 1; max-width: none; }
  .ed-card { grid-template-columns: 1fr; }
  .mag-stamp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mag-wrap .rv, .mag-wrap .rv-kids > * { color: var(--m-ink); }
}

/* ==========================================================================
   v1.5 — Biblioteca de videos (Rueda y Lista)
   ========================================================================== */
body.page-template-page-videos .page { background: #0B0B0A; }
.vlib { --v-ink: #EDE9DE; --v-dim: #5E5C56; position: relative; min-height: 100vh; padding: 0 var(--g) 4rem; background: #0B0B0A; color: var(--v-ink); overflow: clip; }
.vlib .lbl { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: #8C897F; }
.vlib .lbl sup { margin-left: 0.3em; font-size: 0.8em; color: var(--olive); }
.vl-bg { position: fixed; left: 50%; top: 55%; width: min(130vw, 1500px); transform: translate(-50%, -50%); opacity: 0.03; pointer-events: none; filter: grayscale(1) brightness(2); }
.vl-top { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; padding-top: calc(58px + 1.4rem); }
.vl-intro { max-width: 46ch; margin: 0.7rem 0 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: #B9B5AA; }
.vl-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem; }
.vl-views { font-family: var(--sans); font-size: 0.9rem; }
.vl-views button { padding: 0; border: 0; background: none; color: #8C897F; font: inherit; cursor: pointer; }
.vl-views button[aria-pressed="true"] { color: var(--v-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--olive); }
.vl-views span { color: #8C897F; margin-right: 0.35rem; }
.vl-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.vl-chips button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border: 1px solid rgba(237, 233, 222, 0.18); border-radius: 99px; background: none; color: #B9B5AA; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.vl-chips button i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.vl-chips button:hover { border-color: var(--tc, var(--v-ink)); color: var(--v-ink); }
.vl-chips button[aria-pressed="true"] { background: var(--tc, var(--v-ink)); border-color: var(--tc, var(--v-ink)); color: #0B0B0A; }
.vl-chips button[aria-pressed="true"] i { background: #0B0B0A; }
.vl-who select { padding: 0.42rem 2rem 0.42rem 0.8rem; border: 1px solid rgba(237, 233, 222, 0.18); border-radius: 99px; background: #0B0B0A; color: var(--v-ink); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.vl-empty { position: relative; z-index: 5; margin-top: 3rem; font-family: var(--mono); font-size: 0.8rem; color: #8C897F; }

/* Vistas: sin JavaScript solo existe la lista */
.vl-wheel { display: none; }
.vlib.js[data-view="wheel"] .vl-wheel { display: block; }
.vlib.js[data-view="wheel"] .vl-list { display: none; }

/* --- Rueda --- */
.vl-wheel { position: relative; margin: 0 calc(var(--g) * -1); }
.vl-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.vl-cards { position: absolute; inset: 0; }
.vl-card { position: absolute; left: 0; top: 0; width: clamp(150px, 17vw, 250px); text-decoration: none; will-change: transform; transition: filter 0.4s var(--ease); }
.pol { position: relative; display: block; padding: 7% 7% 22%; background: #F3EFE4; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.pol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.5s var(--ease); }
.vl-card .cap { position: absolute; left: 7%; bottom: 6%; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; color: #4A4843; }
.play { position: absolute; left: 50%; top: 40%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--tc); opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #0B0B0A; }
.vl-card:not(.on) { filter: brightness(0.55); }
.vl-card.on .pol img { filter: none; }
.vl-card.on .play { opacity: 1; transform: none; }
.vl-card.on .pol { outline: 3px solid var(--tc); outline-offset: -3px; }

.vl-now, .vl-next { position: absolute; left: var(--g); right: var(--g); display: grid; grid-template-columns: 80px minmax(0, 1fr) 120px; gap: 1rem; pointer-events: none; }
.vl-now { top: 17vh; z-index: 200; }
.vl-next { top: 68vh; opacity: 0.22; }
.vl-now .vl-n, .vl-now .vl-y, .vl-next .vl-n, .vl-next .vl-y, .vl-head .vl-n, .vl-head .vl-y { font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.vl-now .vl-y, .vl-next .vl-y, .vl-head .vl-y { text-align: right; }
.vl-now .vl-t, .vl-next .vl-t { max-width: 18ch; font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 1rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--v-ink); text-decoration: none; pointer-events: auto; }
.vl-now .sweep, .vl-head .sweep { transition: background-size var(--d, 0.7s) var(--ease), color 0.3s var(--ease) 0.15s; }
.vl-now .sweep.in, .vl-head .sweep.in { background-size: 100% 100%; color: #0B0B0A; }
.vl-m { grid-column: 2; display: block; margin-top: 0.8rem; line-height: 1.7; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #B9B5AA; }
.vl-m i { display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem; border-radius: 50%; vertical-align: 1px; }
.vl-m b { font-weight: 400; color: var(--tc); }
.vl-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; color: #8C897F; white-space: nowrap; }

/* --- Lista --- */
.vl-list { position: relative; z-index: 5; margin-top: 2.5rem; }
.vl-head { display: none; grid-template-columns: 80px minmax(0, 1fr) 120px; gap: 1rem; min-height: 11rem; margin-bottom: 1.5rem; }
.vlib.js .vl-head { display: grid; }
.vl-head .vl-t { font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 1rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.vl-rows { list-style: none; margin: 0; padding: 0; max-width: calc(100% - clamp(160px, 18vw, 240px)); }
.vl-rows a { display: grid; grid-template-columns: 50px minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr) 60px; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid rgba(237, 233, 222, 0.08); color: var(--v-dim); text-decoration: none; font-family: var(--sans); font-size: 0.95rem; transition: color 0.2s; }
.vl-rows a:hover, .vl-rows a:focus-visible { color: var(--v-ink); }
.vl-rows a:hover .sweep, .vl-rows a:focus-visible .sweep { background-size: 100% 100%; color: #0B0B0A; }
.r-t { font-weight: 600; }
.r-tema { display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.r-tema i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); flex: none; }
.r-who { font-size: 0.85rem; }
.r-y { text-align: right; }
.vl-peek { position: absolute; right: 0; top: 0; width: clamp(140px, 16vw, 220px); margin: 0; padding: 0.6rem 0.6rem 2.2rem; background: #F3EFE4; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(-50%) rotate(3deg) scale(0.92); transition: opacity 0.25s, transform 0.4s var(--ease-out), top 0.35s var(--ease-out); pointer-events: none; }
.vl-peek.on { opacity: 1; transform: translateY(-50%) rotate(3deg); }
.vl-peek img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; outline: 3px solid var(--tc); outline-offset: -3px; }

@media (max-width: 760px) {
  .vl-tools { align-items: flex-start; }
  .vl-filters, .vl-chips { justify-content: flex-start; }
  .vl-now, .vl-next, .vl-head { grid-template-columns: 40px minmax(0, 1fr); }
  .vl-now .vl-y, .vl-next .vl-y, .vl-head .vl-y { display: none; }
  .vl-now { top: 12vh; }
  .vl-next { top: 84vh; }
  .vl-hint { display: none; }
  .vl-card { width: 150px; }
  .vl-rows { max-width: none; }
  .vl-rows a { grid-template-columns: 34px minmax(0, 1fr) 46px; }
  .r-tema, .r-who { display: none; }
  .vl-peek { display: none; }
}
