:root {
  --paper: #fbf9f4;
  --paper-2: #f3eee3;
  --ink: #24313c;
  --muted: #66717a;
  --line: rgba(36,49,60,.14);
  --brand: #176f86;
  --juicios: #a94f22;
  --homunculos: #2f6294;
  --toxicos: #64823d;
  --adiposo: #71488b;
  --shadow: 0 18px 45px rgba(29, 35, 40, .11);
  --radius: 22px;
  --content: 1180px;
  --narrow: 780px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; background: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.content-shell { width: min(calc(100% - 2.4rem), var(--content)); margin-inline: auto; }
.content-shell.narrow, .narrow { max-width: var(--narrow); }
.eyebrow { margin: 0 0 .55rem; color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: .79rem; font-weight: 800; }
h1,h2,h3 { line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: .1em 0 .45em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.48rem); line-height: 1.52; color: #42505b; }
.text-link { display: inline-block; margin-top: .7rem; color: var(--brand); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .7rem 1.05rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 750; }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid currentColor; }

/* Hero principal: se desplaza con la página. El oscurecimiento del extremo derecho reduce el exceso de brillo sin editar la imagen original. */
.home-hero { position: relative; width: 100%; overflow: hidden; background: #eaf4f5; }
.home-hero img { width: 100%; height: auto; min-height: 310px; object-fit: cover; object-position: center; }
.home-hero .hero-dim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 66%, rgba(35,15,48,.03) 77%, rgba(35,15,48,.14) 100%); }

.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(251,249,244,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(calc(100% - 2rem), 1280px); min-height: 64px; margin: auto; display: flex; align-items: center; gap: 1.3rem; }
.nav-brand { margin-right: auto; font-family: Georgia, serif; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { text-decoration: none; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: currentColor; margin: 5px 0; }

.manifesto { padding: clamp(4rem, 9vw, 8rem) 0; max-width: 880px; text-align: center; }
.manifesto p:last-child { max-width: 760px; margin-inline: auto; }
.section-heading { margin-bottom: 2rem; }
.world-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; padding-bottom: clamp(5rem, 9vw, 8rem); }
.world-card { position: relative; min-height: 490px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: white; box-shadow: var(--shadow); isolation: isolate; }
.world-card::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,11,13,.84), rgba(8,11,13,.05) 60%); }
.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.world-card:hover img { transform: scale(1.025); }
.world-card > div { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.5rem; }
.world-card span { font-size: .8rem; opacity: .85; font-weight: 800; letter-spacing: .12em; }
.world-card h3 { margin: .25rem 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.world-card p { margin: 0; max-width: 34rem; }
.latest-band { padding: clamp(4rem, 8vw, 7rem) 0; background: #eef3f3; border-block: 1px solid rgba(20,60,70,.08); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card, .empty-state { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.article-card h3 a { text-decoration: none; }
.article-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
.section-pill { font-weight: 800; }
.books-preview { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
/* Daniela en portada: presencia editorial, pero sin dominar la página. */
.daniela-feature { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); background: #f1e5df; border-radius: var(--radius); overflow: hidden; padding: clamp(.9rem, 2vw, 1.35rem); max-width: 920px; margin-inline: auto; }
.daniela-feature img { border-radius: 13px; box-shadow: var(--shadow); max-height: 300px; width: 100%; object-fit: cover; object-position: top; }
.daniela-feature h3 { margin-bottom: .35rem; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.daniela-feature .book-tagline { margin: .25rem 0 .65rem; font-size: 1.15rem; }
.daniela-feature .button { margin-top: .35rem; }
.book-status { color: #7c3f58; font-size: .82rem; text-transform: uppercase; font-weight: 850; letter-spacing: .08em; }
.book-tagline { font-family: Georgia, serif; font-style: italic; font-size: 1.35rem; color: #6a2f48; }
.manuscript-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.manuscript-card { padding: 1.7rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.author-band { padding: clamp(5rem, 10vw, 9rem) 0; background: #1f343a; color: #fff; }
.author-band .eyebrow { color: #8fd9df; }
.author-band .lead { color: #d6e3e5; }
.author-home { max-width: 790px; }

/* Section pages */
.section-hero { width: min(calc(100% - 2rem), 1400px); margin: 2rem auto 0; display: grid; grid-template-columns: 1.45fr .8fr; min-height: 560px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.section-hero-image { width: 100%; height: 100%; object-fit: cover; animation: heroReveal 850ms cubic-bezier(.2,.7,.2,1) both; }
.section-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.section-hero-copy h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.theme-juicios .section-hero-copy .eyebrow, .theme-juicios .section-pill { color: var(--juicios); }
.theme-homunculos .section-hero-copy .eyebrow, .theme-homunculos .section-pill { color: var(--homunculos); }
.theme-toxicos .section-hero-copy .eyebrow, .theme-toxicos .section-pill { color: var(--toxicos); }
.theme-adiposo .section-hero-copy .eyebrow, .theme-adiposo .section-pill { color: var(--adiposo); }
.section-listing { padding: clamp(4rem, 8vw, 7rem) 0; }

/* General pages */
.page-hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem); background: #ece7dd; }
.compact-hero h1 { max-width: 900px; }
.author-hero { background: linear-gradient(135deg, #e9efe8, #e9e1d8); }
.prose { max-width: 760px; margin-inline: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.78; }
.prose h2, .prose h3 { font-family: ui-sans-serif, system-ui, sans-serif; margin-top: 2.2em; }
.prose a { color: #146d83; }
.prose blockquote { margin: 2.2rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--brand); background: #eef4f2; font-size: 1.2rem; }
.author-prose { padding-block: clamp(4rem, 8vw, 7rem); }
.post-shell { width: min(calc(100% - 2rem), 900px); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.post-header { max-width: 790px; margin: auto; text-align: center; }
.post-subtitle { font-size: 1.3rem; color: var(--muted); }
.post-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.2rem; color: var(--muted); font-size: .88rem; }
.post-featured { width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; margin: 2.5rem auto 3.5rem; box-shadow: var(--shadow); }
.evidence-box { margin: 3rem auto 0; max-width: 760px; padding: 1.5rem; border-radius: 18px; background: #edf3f1; border: 1px solid rgba(23,111,134,.15); }
.evidence-box h2 { font-size: 1.4rem; }
.books-page { padding: clamp(4rem, 8vw, 7rem) 0; display: grid; gap: 2rem; }
.book-detail { display: grid; grid-template-columns: minmax(240px, 370px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.book-detail.text-only { grid-template-columns: 1fr; max-width: 900px; }
.book-detail img { border-radius: 16px; box-shadow: var(--shadow); }
.daniela-landing { padding: clamp(3rem, 6vw, 5rem) 0; background: #f3e9e2; min-height: 70vh; }
.daniela-layout { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.daniela-layout > img { border-radius: 16px; box-shadow: var(--shadow); }
.chapter-list { display: grid; gap: .8rem; margin-top: 2rem; }
.chapter-list > a { padding: 1rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.65); text-decoration: none; display: grid; gap: .15rem; }
.chapter-list span { font-size: .78rem; color: #7c3f58; text-transform: uppercase; letter-spacing: .08em; }
.prose-literary { font-size: 1.14rem; }
.chapter-nav { max-width: 760px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.site-footer { padding: 3rem max(1.2rem, calc((100vw - var(--content))/2)); background: #19272d; color: #dbe3e5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-footer a { color: inherit; }
.medical-note { max-width: 900px; font-size: .86rem; color: #afbcc0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; margin-top: 2rem; }
.copyright { color: #93a2a7; font-size: .8rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes heroReveal { from { opacity: .18; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .js .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 58px; flex-direction: column; align-items: stretch; padding: .8rem; background: #fff; box-shadow: var(--shadow); border-radius: 14px; }
  .js .nav-links.is-open { display: flex; }
  .nav-links a { padding: .6rem .7rem; }
  .world-grid, .article-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 420px; }
  .section-hero { grid-template-columns: 1fr; }
  .section-hero-image { height: min(64vw, 580px); }
  .section-hero-copy { min-height: 320px; }
  .daniela-feature, .book-detail, .daniela-layout { grid-template-columns: 1fr; }
  .daniela-feature img, .daniela-layout > img { width: min(100%, 440px); }
  .manuscript-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* Portada: conservar la imagen completa y su proporción natural. */
  .home-hero { height:auto; min-height:0; overflow:hidden; }
  .home-hero img { display:block; width:100%; height:auto; min-height:0; object-fit:initial; object-position:initial; }
  .home-hero .hero-dim { background: linear-gradient(180deg, transparent 0 78%, rgba(35,15,48,.10) 100%); }

  /* Navegación móvil: nombres visibles en dos columnas y sin desbordamientos. */
  .nav-inner { width:calc(100% - 1.2rem); margin:0 .6rem; min-height:0; flex-wrap:wrap; gap:.35rem .65rem; padding:.55rem 0 .7rem; }
  .js .nav-toggle { display:none; }
  .js .nav-links, .nav-links { position:static; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:.3rem .55rem; padding:.35rem 0 0; background:transparent; box-shadow:none; border-radius:0; }
  .nav-links a { display:block; min-width:0; width:100%; padding:.42rem .5rem; white-space:normal; overflow-wrap:break-word; line-height:1.22; font-size:.86rem; }
  .nav-brand { min-width:0; white-space:normal; font-size:.95rem; }

  .manifesto { text-align:left; }

  /* Universos y tarjetas: imagen completa, texto debajo. */
  .world-grid, .article-grid { grid-template-columns:minmax(0,1fr); }
  .world-card { min-height:0; height:auto; display:flex; flex-direction:column; background:#fff; color:var(--ink); }
  .world-card::after { display:none; }
  .world-card img { position:static; inset:auto; display:block; width:100%; height:auto; object-fit:initial; transform:none; z-index:auto; background:#eef2f4; }
  .world-card:hover img { transform:none; }
  .world-card > div { position:static; left:auto; right:auto; bottom:auto; padding:1rem 1.1rem 1.2rem; }
  .world-card span { color:var(--brand); opacity:1; }
  .world-card p { color:var(--muted); }

  .article-card-media { aspect-ratio:auto; height:auto; overflow:visible; background:#eef2f4; }
  .article-card-media img { display:block; width:100%; height:auto; object-fit:initial; object-position:initial; transform:none; }
  .article-card:hover .article-card-media img { transform:none; }

  /* Imágenes internas completas, incluida la jarra azul. */
  .section-hero { width:100%; margin-top:0; border-radius:0; box-shadow:none; }
  .section-hero-image, .post-featured, .post-content img, .ad-figure img, .book-detail img, .daniela-feature img, .daniela-layout > img { display:block; width:100%; height:auto; max-height:none; object-fit:initial; object-position:initial; }
  .section-hero-image { min-height:0; }
  .section-hero-copy { min-height:0; }
  .footer-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .section-hero-image { animation: none; }
  .world-card img { transition: none; }
}

/* ===== Robustez, accesibilidad y pulido editorial ===== */
:focus-visible { outline: 3px solid #168b96; outline-offset: 4px; }
::selection { background: #d8ecee; color: #15242d; }
a { text-underline-offset: .16em; text-decoration-thickness: .08em; }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]::after { content:""; display:block; height:2px; margin-top:.22rem; background:currentColor; opacity:.55; }
.breadcrumb { max-width: 790px; margin: 0 auto 1.35rem; display:flex; flex-wrap:wrap; gap:.45rem; color:var(--muted); font-size:.85rem; }
.breadcrumb a { color:var(--brand); font-weight:750; text-decoration:none; }
.post-byline a { font-weight:700; text-decoration-color:rgba(23,111,134,.35); }
.post-content { overflow-wrap:anywhere; }
.post-content img { border-radius:16px; }
.ad-figure { margin:2rem 0 3rem; padding:1rem; background:#efe5d3; border:1px solid #dfcfb5; border-radius:20px; box-shadow:0 12px 32px rgba(67,48,28,.08); }
.ad-figure img { width:100%; border-radius:12px; }
.ad-figure figcaption { margin:.8rem .3rem .15rem; text-align:center; color:#6c5c49; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.78rem; }

.post-content hr { border:0; border-top:1px solid var(--line); margin:3rem 0; }
.post-end-nav { max-width:760px; margin:3rem auto 0; padding-top:1.5rem; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:1rem; font-weight:750; }
.post-end-nav a { color:var(--brand); text-decoration:none; }
.delivery-count { margin:.4rem 0 0; color:#7c3f58; font-size:.78rem; text-transform:uppercase; font-weight:850; letter-spacing:.09em; }
.author-credit { margin:1.2rem auto 0; font-size:.9rem; color:#4e606d; }
.author-credit a { color:var(--brand); font-weight:800; }
.method-link { margin-top:1rem; display:inline-block; font-weight:750; color:var(--brand); }

/* Cards with editorial image previews. */
.article-card { padding:0; overflow:hidden; display:flex; flex-direction:column; min-width:0; }
.article-card-media { display:block; overflow:hidden; background:#e8eceb; aspect-ratio:16/9; }
.article-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.article-card:hover .article-card-media img { transform:scale(1.025); }
.article-card-body { padding:1.35rem 1.4rem 1.45rem; display:flex; flex-direction:column; flex:1; }
.article-card-body h3 { margin:.8rem 0 .55rem; line-height:1.22; font-family:Georgia,serif; font-size:1.35rem; }
.article-card-body p { color:var(--muted); margin:.2rem 0 1rem; }
.article-card-body .text-link { margin-top:auto; }
.article-meta { align-items:center; }
.article-meta time { white-space:nowrap; }

/* Home: make expertise visible without turning the opening into a CV. */
.manifesto .author-credit { max-width:760px; }

/* Scientific article common blocks. */
.article-body { max-width:760px; margin-inline:auto; }
.article-body p { margin:0 0 1.35em; }
.article-body h2 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.7rem,3vw,2.05rem); line-height:1.2; margin:3rem 0 1rem; }
.article-body ol, .article-body ul { padding-left:1.35rem; }
.article-body li { margin-bottom:.7rem; }
.article-body .signature, .toxicos-article .byline { text-align:right; font-family:Georgia,"Times New Roman",serif; font-style:italic; color:var(--muted); }

/* Doctor Homunculos */
.homu-article .lab { text-align:center; font-family:Georgia,"Times New Roman",serif; font-size:1.2rem; padding:18px 16px; margin:28px 0; border-block:1px solid var(--line); }
.homu-article .cadence { padding-left:20px; border-left:3px solid #d7cfc2; }
.homu-article .prescription { margin:30px 0; padding:26px 30px; background:#f4f1ea; border:1px solid #e8e0d4; border-radius:22px; font-family:Georgia,"Times New Roman",serif; font-size:1.15rem; line-height:1.65; }
.homu-article .bibliography { margin-top:4rem; padding-top:1.25rem; border-top:1px solid var(--line); }
.homu-article .bibliography li { color:#56646e; font-size:.94rem; }

/* Tejido adiposo */
.adipose-article .entry-toc { max-width:760px; margin:0 auto 3rem; padding:1.4rem 1.6rem; border-radius:20px; border:1px solid #dfe6d8; background:#edf1e9; font-family:ui-sans-serif,system-ui,sans-serif; }
.adipose-article .toc-title { font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; font-weight:850; color:#57763d; margin-bottom:.7rem; }
.adipose-article .entry-toc ol { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem 1.5rem; counter-reset:t; }
.adipose-article .entry-toc li { counter-increment:t; display:flex; gap:.5rem; font-size:.9rem; color:#4c5d49; }
.adipose-article .entry-toc li::before { content:counter(t,decimal-leading-zero); font-size:.68rem; font-weight:850; color:#78906a; padding-top:.19rem; }
.adipose-article .entry-toc a { text-decoration:none; }
.adipose-article .key-rule { background:#edf1e9; border-left:5px solid #57763d; border-radius:0 18px 18px 0; padding:20px 22px; margin:32px 0; }
.adipose-article .pullquote { font-family:Georgia,"Times New Roman",serif; font-size:1.4rem; line-height:1.42; text-align:center; padding:28px 18px; margin:42px 0; border-block:1px solid var(--line); color:#694286; }
.adipose-article .references { margin:3.5rem 0 0; background:#f4f1ea; border-radius:24px; padding:2rem; }
.adipose-article .references h2 { margin-top:0; }
.adipose-article .references ol { margin:0; padding:0; list-style:none; counter-reset:refs; }
.adipose-article .references li { counter-increment:refs; display:grid; grid-template-columns:38px minmax(0,1fr); gap:12px; border-top:1px solid var(--line); padding:15px 0; font-size:.92rem; line-height:1.62; color:#4f5e68; }
.adipose-article .references li:first-child { border-top:0; }
.adipose-article .references li::before { content:counter(refs,decimal-leading-zero); font-size:.7rem; font-weight:850; color:#57763d; padding-top:3px; }
.adipose-article .disclaimer { margin:34px 0 0; padding:15px 18px; border-radius:14px; background:#f8f6f1; color:var(--muted); font-size:.84rem; text-align:center; border:1px solid var(--line); }
.adipose-article .author-sign { font-family:Georgia,"Times New Roman",serif; font-style:italic; text-align:right; font-size:1.12rem; color:var(--muted); margin:28px 0 0; }

/* Toxicos */
.toxicos-article .postdata { background:#edf4f5; border:1px solid #dbe7e8; border-radius:18px; padding:22px 24px; margin:38px 0; color:#41535d; }
.toxicos-article .postdata strong { color:#1b6d75; }
.toxicos-article .final-line { text-align:center; font-family:Georgia,"Times New Roman",serif; font-size:1.45rem; font-weight:700; color:#57763d; margin:38px 0 25px; }
.toxicos-article .evidence { background:#f4f1ea; border-radius:24px; padding:28px; margin-top:52px; }
.toxicos-article .evidence h2 { margin-top:0; }
.toxicos-article .evidence li { color:#56646e; font-size:.94rem; }

/* Tribunal de Nutricion Basada en Evidencia */
.tribunal-post { --trib-papel:#fbf8f1; --trib-ficha:#f4eee0; --trib-tinta:#241c12; --trib-texto:#3f3529; --trib-tenue:#8a7c66; --trib-sello:#7b2e14; --trib-linea:#d6cbb4; --trib-oro:#a56a24; --trib-azul:#344c5c; max-width:720px; margin:0 auto; color:var(--trib-tinta); font-family:Georgia,"Times New Roman",serif; }
.tribunal-post p { font-size:1.08rem; line-height:1.7; color:var(--trib-texto); }
.tribunal-post .tnbe-cargos { margin:0 0 2rem; border-block:1px solid var(--trib-linea); padding:15px 0 17px; }
.tribunal-post .tnbe-rotulo { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.67rem; letter-spacing:.18em; text-transform:uppercase; color:var(--trib-tenue); text-align:center; margin-bottom:11px; font-weight:800; }
.tribunal-post ol.tnbe-imputa { margin:0; padding:0; list-style:none; counter-reset:c; column-count:2; column-gap:38px; column-rule:1px solid var(--trib-linea); }
.tribunal-post ol.tnbe-imputa li { counter-increment:c; padding:5px 0 5px 33px; position:relative; font-size:.98rem; line-height:1.4; break-inside:avoid; }
.tribunal-post ol.tnbe-imputa li::before { content:counter(c,upper-roman) '.'; position:absolute; left:0; top:8px; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.65rem; color:var(--trib-tenue); }
.tribunal-post ol.tnbe-imputa a { text-decoration:none; }
.tribunal-post .escena { font-style:italic; color:#6c604f; text-align:center; margin:25px auto; max-width:58ch; }
.tribunal-post .escena.llamada { font-family:ui-sans-serif,system-ui,sans-serif; font-style:normal; text-transform:uppercase; letter-spacing:.12em; font-size:.7rem; color:var(--trib-sello); margin-top:30px; }
.tribunal-post .cuestion { background:var(--trib-ficha); border-top:2px solid var(--trib-tinta); border-bottom:1px solid var(--trib-linea); padding:18px 22px 20px; margin:28px 0 34px; }
.tribunal-post .cuestion .tnbe-rotulo { text-align:left; }
.tribunal-post .cuestion-grid { display:grid; grid-template-columns:120px 1fr; gap:0 16px; margin:0; }
.tribunal-post .cuestion-grid dt, .tribunal-post .cuestion-grid dd { border-top:1px solid var(--trib-linea); padding-top:8px; margin-top:8px; }
.tribunal-post .cuestion-grid dt { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.63rem; letter-spacing:.12em; text-transform:uppercase; color:var(--trib-tenue); }
.tribunal-post .cuestion-grid dd { margin-left:0; font-size:.96rem; line-height:1.45; }
.tribunal-post .juicio-seccion { scroll-margin-top:90px; }
.tribunal-post .juicio-seccion h2 { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.82rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; color:var(--trib-sello); margin:3.2rem 0 1.1rem; }
.tribunal-post .dialogo { margin:0 0 17px; }
.tribunal-post .speaker { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.73em; letter-spacing:.07em; text-transform:uppercase; font-weight:850; color:var(--trib-tinta); }
.tribunal-post .dialogo.jueza .speaker { color:var(--trib-azul); }
.tribunal-post .dialogo.fiscal .speaker { color:var(--trib-sello); }
.tribunal-post .dialogo.curcuma .speaker { color:var(--trib-oro); }
.tribunal-post .tnbe-fallo { margin:3.6rem 0 0; background:var(--trib-ficha); border:1px solid var(--trib-linea); padding:31px 31px 26px; position:relative; }
.tribunal-post .tnbe-fallo::before { content:""; position:absolute; inset:7px; border:1px solid var(--trib-linea); pointer-events:none; }
.tribunal-post .tnbe-fallo > * { position:relative; }
.tribunal-post .tnbe-fallo h2 { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.75rem; letter-spacing:.28em; text-transform:uppercase; margin:0 0 10px; text-align:center; }
.tribunal-post .fallo-causa { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color:var(--trib-tenue); text-align:center; margin-bottom:20px; }
.tribunal-post .pron { font-size:.98rem; line-height:1.5; margin:0 0 18px; padding:16px 0; border-block:1px solid var(--trib-linea); }
.tribunal-post .pron b { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--trib-tenue); display:block; margin-bottom:7px; }
.tribunal-post .tnbe-res { display:grid; grid-template-columns:145px 1fr; gap:0 19px; align-items:baseline; }
.tribunal-post .tnbe-res > div { padding:12px 0; border-top:1px solid var(--trib-linea); }
.tribunal-post .tnbe-res > div:nth-child(-n+2) { border-top:0; }
.tribunal-post .tnbe-veredicto { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.64rem; letter-spacing:.105em; text-transform:uppercase; font-weight:850; color:var(--trib-sello); }
.tribunal-post .tnbe-veredicto.gris { color:var(--trib-tenue); }
.tribunal-post .tnbe-veredicto.oscuro { color:var(--trib-azul); }
.tribunal-post .tnbe-detalle { font-size:.96rem; line-height:1.48; }
.tribunal-post .tnbe-rec { margin-top:20px; border-top:1px solid var(--trib-linea); padding-top:16px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.tribunal-post .tnbe-receta { font-size:.96rem; font-style:italic; margin:0; max-width:70%; color:#5c5140; }
.tribunal-post .tnbe-sello { width:102px; height:auto; flex:none; }
.tribunal-post .tnbe-firma { text-align:right; font-style:italic; color:var(--trib-tenue); font-size:.83rem; margin:12px 0 0; }
.tribunal-post .cronista { margin:24px auto 0; text-align:center; font-style:italic; color:var(--trib-tenue); font-size:.88rem; }
.tribunal-post .expediente { margin-top:4.7rem; padding-top:3rem; border-top:2px solid var(--trib-tinta); }
.tribunal-post .exp-cab { text-align:center; }
.tribunal-post .exp-cab h2 { font-size:2.1rem; font-weight:400; margin:.5rem 0; }
.tribunal-post .exp-cab p { font-size:1rem; color:#5c5140; font-style:italic; margin:0 auto; max-width:56ch; }
.tribunal-post .exp-sumario { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.67rem; letter-spacing:.13em; text-transform:uppercase; color:var(--trib-sello); margin-top:18px; padding-top:14px; border-top:1px solid var(--trib-linea); }
.tribunal-post .exp-grupo { margin-top:36px; }
.tribunal-post .exp-grupo > h3, .tribunal-post .fuentes-inst h3 { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--trib-sello); margin:0 0 4px; }
.tribunal-post ol.exp-lista { list-style:none; margin:0; padding:0; }
.tribunal-post .exp-pieza { display:grid; grid-template-columns:62px 1fr; gap:0 18px; border-top:1px solid var(--trib-linea); padding:17px 0 16px; }
.tribunal-post .exp-num { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.58rem; text-transform:uppercase; color:var(--trib-tenue); text-align:right; padding-top:3px; line-height:1.5; }
.tribunal-post .exp-num b { display:block; font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; font-weight:400; color:var(--trib-tinta); line-height:1; }
.tribunal-post .exp-parte { font-family:ui-sans-serif,system-ui,sans-serif; font-size:.58rem; letter-spacing:.14em; text-transform:uppercase; color:var(--trib-tenue); margin-bottom:5px; }
.tribunal-post .exp-parte.acusacion { color:var(--trib-sello); font-weight:850; }
.tribunal-post .exp-parte.ambas { color:var(--trib-azul); font-weight:800; }
.tribunal-post .exp-ref { margin:0; font-size:.95rem; line-height:1.46; color:var(--trib-tinta); }
.tribunal-post .exp-glosa { margin:7px 0 0; font-size:.91rem; line-height:1.51; color:#5c5140; font-style:italic; }
.tribunal-post .exp-dato { display:inline-block; margin-top:10px; background:var(--trib-ficha); border:1px solid var(--trib-linea); padding:4px 10px; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.64rem; font-weight:800; color:var(--trib-sello); }
.tribunal-post .exp-volver { display:inline-block; margin:10px 0 0 10px; font-family:ui-sans-serif,system-ui,sans-serif; font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; color:var(--trib-tenue); text-decoration:none; border-bottom:1px solid var(--trib-linea); }
.tribunal-post .fuentes-inst { margin-top:38px; border-top:1px solid var(--trib-linea); padding-top:20px; }
.tribunal-post .fuentes-inst li { margin:10px 0; font-size:.9rem; line-height:1.5; }
.tribunal-post .exp-nota { margin-top:34px; border-top:1px solid var(--trib-linea); padding-top:14px; font-size:.82rem; line-height:1.5; color:var(--trib-tenue); }
.tribunal-post svg { max-width:100%; height:auto; }

/* Daniela */
.chapter-content { padding-top:2.5rem; }
.chapter-content .book-section h2 { text-align:center; font-size:2rem; margin-bottom:1.7rem; }
.chapter-content .book-section:first-child > p:first-of-type::first-letter { font-family:Georgia,"Times New Roman",serif; font-size:4rem; line-height:.78; float:left; padding:.55rem .5rem 0 0; color:#7c3f58; }
.chapter-divider { margin:4rem auto; width:5rem; border-top:2px solid #d8c7bf !important; }
.chapter-content .scene-break { text-align:center; letter-spacing:.45em; margin:2.2rem 0; color:#8b747e; }

@media (max-width: 900px) {
  .no-js .nav-inner { flex-wrap:wrap; padding-block:.65rem; }
  .no-js .nav-links { width:100%; display:flex; flex-wrap:wrap; gap:.35rem .9rem; }
  .post-end-nav { flex-direction:column; }
}
@media (max-width: 700px) {
  .article-card-body { padding:1.15rem; }
  .post-byline { font-size:.82rem; }
  .post-featured { border-radius:16px; margin-bottom:2.5rem; }
  .adipose-article .entry-toc ol { grid-template-columns:1fr; }
  .adipose-article .references { padding:1.35rem; }
  .tribunal-post ol.tnbe-imputa { column-count:1; }
  .tribunal-post .cuestion-grid { grid-template-columns:1fr; }
  .tribunal-post .cuestion-grid dd { border-top:0; margin-top:0; padding-top:2px; margin-bottom:7px; }
  .tribunal-post .tnbe-res { grid-template-columns:1fr; }
  .tribunal-post .tnbe-res > div:nth-child(even) { border-top:0; padding-top:0; }
  .tribunal-post .tnbe-rec { align-items:flex-end; }
  .tribunal-post .tnbe-receta { max-width:100%; }
  .tribunal-post .exp-pieza { grid-template-columns:1fr; gap:6px; }
  .tribunal-post .exp-num { text-align:left; }
  .tribunal-post .exp-num b { display:inline; font-size:1.35rem; margin-right:6px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card-media img { transition:none; }
}
.article-card-juicios .section-pill { color:var(--juicios); }
.article-card-homunculos .section-pill { color:var(--homunculos); }
.article-card-toxicos .section-pill { color:var(--toxicos); }
.article-card-adiposo .section-pill { color:var(--adiposo); }
.tribunal-post ol.tnbe-imputa a { color:inherit; }
.error-page { min-height:62vh; display:grid; place-items:center; text-align:center; padding:4rem 1rem; }
.error-page > div { max-width:650px; }
.error-page .error-code { font-family:Georgia,serif; font-size:clamp(4rem,12vw,8rem); line-height:1; margin:0; color:#b7c5c6; }

/* ===== Segunda pasada editorial: orientación, continuidad y SEO visual ===== */
.section-intro { max-width: 720px; margin: .5rem 0 0; color: var(--muted); font-size: 1.02rem; }
.section-listing-head { margin-bottom: 1.8rem; }
.section-listing-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
.section-hero-copy > p:last-child { font-size: 1.08rem; color: #56616a; max-width: 38rem; }
.article-date { white-space: nowrap; }

.related-reading { max-width: 900px; margin: 4.5rem auto 0; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.related-reading h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin-bottom: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.related-card { min-width: 0; display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,35,40,.08); border-color: rgba(23,111,134,.28); }
.related-card > span { color: var(--brand); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.related-card > strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.28; }
.related-card > small { color: var(--muted); line-height: 1.48; font-size: .82rem; }
.evidence-box .text-link { margin-top: .15rem; }

@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card { padding: 1rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .related-card { transition: none; }
}

/* Doctor Homúnculos · universo y Los cuadernos de Rolando */
.homunculos-universe { margin-bottom: 4rem; }
.homunculos-universe > h2 { margin-bottom: .55rem; font-size: clamp(2rem, 4vw, 3rem); }
.homunculos-branches { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:2rem; }
.homunculos-branch { padding:1.5rem; border:1px solid var(--line); border-radius:20px; background:#fff; }
.homunculos-branch > span { display:inline-block; font-weight:800; font-size:.78rem; letter-spacing:.12em; color:var(--homunculos); }
.homunculos-branch h3 { font-family:Georgia,"Times New Roman",serif; font-size:1.55rem; margin:.35rem 0 .65rem; }
.homunculos-branch p { color:#56616a; }
.homunculos-branch .branch-status { margin:.7rem 0 0; font-size:.76rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#7d8790; }
.homunculos-branch-active { box-shadow:0 15px 45px rgba(26,45,62,.07); border-color:rgba(47,98,148,.28); }
.rolando-feature { display:grid; grid-template-columns:1.15fr .85fr; border-radius:24px; overflow:hidden; border:1px solid var(--line); background:#fff; margin:0 0 4.5rem; box-shadow:0 18px 55px rgba(26,45,62,.08); }
.rolando-feature-media { min-height:390px; }
.rolando-feature-media img { width:100%; height:100%; object-fit:cover; }
.rolando-feature-copy { padding:clamp(2rem,5vw,3.5rem); display:flex; flex-direction:column; justify-content:center; }
.rolando-feature-copy h2 { font-size:clamp(2rem,4vw,3.2rem); margin:.25rem 0 .8rem; }
.rolando-feature-copy .button { align-self:flex-start; margin-top:.75rem; }
.story-intro { max-width:700px; margin:0 auto 3.2rem; padding:2rem clamp(1.25rem,4vw,2.5rem); background:#f6f3ed; border:1px solid #e8e0d4; border-radius:22px; }
.story-intro p { margin-bottom:.75em; }
.story-intro .story-series { color:var(--homunculos); text-transform:uppercase; font-weight:850; letter-spacing:.1em; font-size:.78rem; }
.story-intro .story-question { font-family:Georgia,"Times New Roman",serif; font-size:1.28rem; line-height:1.45; margin-top:1.4rem; color:#244f76; }
.rolando-article > hr { width:72px; margin:3.5rem auto; border-top:2px solid rgba(47,98,148,.32); }
.story-science-note { margin-top:4.5rem; padding:clamp(1.5rem,4vw,2.5rem); border:1px solid rgba(47,98,148,.22); border-radius:22px; background:#f7f9fb; }
.story-science-note h2 { margin-top:.2rem; }
.story-science-note h3 { font-family:Georgia,"Times New Roman",serif; font-size:1.35rem; margin:2rem 0 .65rem; }
.science-fiction-box { margin:2rem 0; padding:1.25rem 1.4rem; background:#fff; border-left:4px solid var(--homunculos); border-radius:0 14px 14px 0; }
.story-manifesto { margin:2rem 0 0 !important; font-family:Georgia,"Times New Roman",serif; font-size:1.12rem; font-style:italic; }
.post-rolando .post-featured { max-height:560px; }

@media (max-width: 860px) {
  .homunculos-branches { grid-template-columns:1fr; }
  .rolando-feature { grid-template-columns:1fr; }
  .rolando-feature-media { min-height:0; height:auto; aspect-ratio:auto; overflow:visible; }
  .rolando-feature-media img { display:block; width:100%; height:auto; object-fit:initial; object-position:initial; }
}

/* Portada · estreno de Doctor Homúnculos */
.homunculos-home-feature { display:grid; grid-template-columns:1.1fr .9fr; margin-block:clamp(4rem,8vw,7rem); border-radius:26px; overflow:hidden; background:#132333; color:#fff; box-shadow:var(--shadow); }
.homunculos-home-image { min-height:470px; }
.homunculos-home-image img { width:100%; height:100%; object-fit:cover; }
.homunculos-home-copy { padding:clamp(2rem,5vw,4rem); display:flex; flex-direction:column; justify-content:center; }
.homunculos-home-copy .eyebrow { color:#a9c6df; }
.homunculos-home-universe { margin:.15rem 0 .2rem; font-family:Georgia,"Times New Roman",serif; font-size:1.15rem; }
.homunculos-home-tagline { margin:0 0 1.6rem; color:#cfdae4; font-style:italic; }
.homunculos-home-copy h2 { color:#fff; font-size:clamp(2.4rem,5vw,4.2rem); margin:.15rem 0 .9rem; }
.homunculos-home-copy p { color:#e8eef3; }
.homunculos-home-copy .button { align-self:flex-start; margin-top:.7rem; background:#eaf1f6; color:#193650; }
@media (max-width:860px) {
  .homunculos-home-feature { grid-template-columns:1fr; }
  .homunculos-home-image { min-height:0; aspect-ratio:auto; }
  .homunculos-home-image img { height:auto; object-fit:initial; }
}

/* Historias visuales: quinta tarjeta, con el mismo tamaño que las demás y centrada en la última fila. */
.world-historias { --historia-accent: #c86a36; }
.world-grid > .world-historias:last-child { grid-column: 1 / -1; width: calc(50% - .7rem); justify-self: center; }
.theme-historias .section-hero-copy .eyebrow { color: #c86a36; }

/* Algunas portadas necesitan verse completas en la cuadrícula de publicaciones. */
.article-card-media-contain { background: #e9e4dc; }
.article-card-media-contain img { object-fit: contain; object-position: center; transform: none; }
.article-card:hover .article-card-media-contain img { transform: none; }

@media (max-width: 760px) {
  .world-grid > .world-historias:last-child { grid-column: auto; width: 100%; }
}
\n\n/* Historia visual · formato narrativo inmersivo */
.visual-story { --vs-ink:#17212a; --vs-paper:#f4efe5; --vs-cream:#fffaf0; --vs-rust:#a5442c; --vs-gold:#d39a58; --vs-night:#111a24; --vs-muted:#6d706f; background:var(--vs-paper); color:var(--vs-ink); margin-top:-1px; }
.visual-story-hero { position:relative; max-width:1120px; margin:0 auto; background:#111; overflow:hidden; }
.visual-story-hero img { width:100%; height:min(72vh,720px); object-fit:cover; display:block; filter:brightness(.68); }
.visual-story-hero-copy { position:absolute; left:7%; right:7%; bottom:8%; max-width:760px; color:white; text-shadow:0 3px 18px #000; }
.visual-story-kicker { font:700 12px ui-sans-serif,system-ui,sans-serif; letter-spacing:.22em; text-transform:uppercase; color:#ffd9a2; margin:0; }
.visual-story-hero-copy h1 { color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:clamp(42px,7vw,82px); line-height:.94; margin:.25em 0 .18em; }
.visual-story-hero-copy > p:last-child { color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:clamp(18px,2.2vw,27px); line-height:1.45; max-width:720px; margin:0; }
.visual-story-body { max-width:760px; margin:70px auto 0; padding:0 24px 70px; font-family:Georgia,"Times New Roman",serif; font-size:20px; line-height:1.72; }
.visual-story-body p { margin:0 0 1.45em; }
.visual-story-lead { font-size:27px; line-height:1.48; }
.visual-story-body h2 { font-family:Georgia,"Times New Roman",serif; font-size:38px; line-height:1.12; margin:2em 0 .65em; }
.visual-story-figure { width:min(1080px,calc(100vw - 36px)); margin:55px 50%; transform:translateX(-50%); background:#101923; padding:10px; border-radius:18px; box-shadow:0 18px 60px #0002; }
.visual-story-figure img { display:block; width:100%; border-radius:11px; }
.visual-story-figure figcaption { font:14px/1.45 ui-sans-serif,system-ui,sans-serif; color:#6c6b67; background:var(--vs-paper); padding:10px 2px 0; }
.visual-story-clue { border-left:4px solid var(--vs-rust); padding:8px 0 8px 25px; margin:45px 0; font-size:27px; line-height:1.42; }
.little-doctor { background:#17212a; color:#fff7e9; padding:28px 32px; border-radius:18px; margin:45px 0; font-size:24px; box-shadow:0 12px 35px #0002; }
.little-doctor span { font:700 11px ui-sans-serif,system-ui,sans-serif; letter-spacing:.2em; text-transform:uppercase; color:#e6a55f; display:block; margin-bottom:9px; }
.visual-story-reveal { font-size:35px; line-height:1.25; text-align:center; margin:60px -80px; padding:36px; border-top:1px solid #b8a78e; border-bottom:1px solid #b8a78e; }
.visual-story-reveal strong { color:var(--vs-rust); }
.visual-story-note { display:block; background:#fff8ea; border:1px solid #decdb1; border-radius:15px; padding:28px 30px; margin:50px 0; font-style:normal; }
.visual-story-ending { background:var(--vs-night); color:#fff8e9; margin:80px calc(50% - 50vw) 0; padding:80px max(24px,calc((100vw - 760px)/2)); text-align:center; width:100vw; }
.visual-story-ending p { max-width:760px; margin:0 auto 28px; font-size:26px; }
.visual-story-ending > div { font:700 26px ui-sans-serif,system-ui,sans-serif; letter-spacing:.02em; margin-top:55px; }
.visual-story-ending small { display:block; font-size:1rem; font-style:italic; color:#e4c9a5; }
.visual-story-refs { font:15px/1.65 ui-sans-serif,system-ui,sans-serif; color:#5f625f; border-top:1px solid #cfc4b2; padding-top:28px; margin-top:60px; }
.visual-story-refs p { margin:.7em 0; }
@media(max-width:700px){.visual-story-body{font-size:18px;margin-top:45px}.visual-story-lead{font-size:23px}.visual-story-body h2{font-size:31px}.visual-story-reveal{margin:50px 0;font-size:29px;padding:28px 12px}.visual-story-hero img{height:68vh}.visual-story-clue{font-size:23px}.little-doctor{font-size:21px;padding:24px}.visual-story-ending p{font-size:22px}}\n