/* Entity pages: species, locations, photographers, photo, stories */

/* —— Photo experience (#/foto/:id) ——
   La publicación fotográfica (Dirección E), su contemplación D.1 y el
   cierre (umbral + umbrales anterior/siguiente) viven en css/photo.css. */

/* Tipo de puente compartido con los relatos. */

.rel-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* —— Entity hero shared —— */
.entity-hero {
  position: relative;
  min-height: min(78vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-deep);
}

.entity-hero-media {
  position: absolute;
  inset: 0;
}

.entity-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-fx, center) var(--hero-fy, center);
  opacity: 0.72;
}

.entity-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.35) 0%, rgba(6, 11, 10, 0.15) 35%, rgba(6, 11, 10, 0.92) 100%);
}

.entity-hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) clamp(16px, 4vw, 40px) clamp(36px, 6vh, 64px);
}

.entity-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.entity-hero-copy .scientific {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--gold);
}

.entity-hero-copy .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(242, 239, 230, 0.8);
}

/* —— Species: photographic hero —— */
.species-page { background: var(--bg); }

.species-hero {
  --hero-fx: 50%;
  --hero-fy: 40%;
  position: relative;
  min-height: min(94vh, 980px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-deep);
}

.species-hero-media {
  position: absolute;
  inset: 0;
}

.species-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-fx) var(--hero-fy);
}

.species-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.45) 0%, rgba(6, 11, 10, 0.05) 30%, rgba(6, 11, 10, 0.55) 62%, rgba(6, 11, 10, 0.97) 100%);
  pointer-events: none;
}

.species-hero[data-text='bottom-right']::after,
.species-hero[data-text='bottom-left']::after,
.species-hero[data-text='bottom']::after {
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.45) 0%, rgba(6, 11, 10, 0.05) 30%, rgba(6, 11, 10, 0.55) 62%, rgba(6, 11, 10, 0.97) 100%);
}

.species-hero[data-text='top-left']::after,
.species-hero[data-text='top-right']::after,
.species-hero[data-text='top']::after {
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.97) 0%, rgba(6, 11, 10, 0.55) 38%, rgba(6, 11, 10, 0.05) 70%, rgba(6, 11, 10, 0.35) 100%);
}

.species-hero[data-text='top-left'],
.species-hero[data-text='top-right'],
.species-hero[data-text='top'] {
  align-items: start;
}

.species-hero[data-text='top-left'] .species-hero-copy,
.species-hero[data-text='top-right'] .species-hero-copy,
.species-hero[data-text='top'] .species-hero-copy {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(40px, 7vh, 72px);
}

.species-hero[data-text='top-left'] .species-hero-credit,
.species-hero[data-text='top-right'] .species-hero-credit {
  bottom: clamp(24px, 5vh, 48px);
}

.species-hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(16px, 4vw, 40px) clamp(40px, 7vh, 72px);
}

.species-hero[data-text='bottom-right'] .species-hero-copy,
.species-hero[data-text='top-right'] .species-hero-copy,
.species-hero[data-text='right'] .species-hero-copy {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.species-hero[data-text='bottom-right'] .hero-taxo,
.species-hero[data-text='top-right'] .hero-taxo,
.species-hero[data-text='right'] .hero-taxo,
.species-hero[data-text='bottom-right'] .species-hero-copy .hero-meta,
.species-hero[data-text='top-right'] .species-hero-copy .hero-meta,
.species-hero[data-text='right'] .species-hero-copy .hero-meta {
  justify-content: flex-end;
}

.species-hero[data-text='bottom-right'] .species-hero-credit,
.species-hero[data-text='right'] .species-hero-credit {
  right: auto;
  left: clamp(16px, 4vw, 40px);
  border-left: 0;
  border-right: 1px solid var(--gold);
}

.species-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.species-hero-copy .scientific {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 30px);
  color: var(--gold);
}

.hero-taxo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 0;
}

.hero-taxo div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-taxo dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 239, 230, 0.55);
}

.hero-taxo dd {
  margin: 0;
  font-size: 13px;
  color: rgba(242, 239, 230, 0.88);
}

.species-hero-copy .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(242, 239, 230, 0.75);
}

.species-hero-credit {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(24px, 5vh, 48px);
  z-index: 2;
  max-width: min(340px, 44vw);
  margin: 0;
  padding: 12px 14px;
  border-left: 1px solid var(--gold);
  background: rgba(6, 11, 10, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.species-hero-credit strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}

.species-hero-credit span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

/* —— Species: paper journal —— */
.journal {
  background: var(--paper);
  color: var(--ink-dark);
  padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 9vw, 110px);
}

.journal-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.journal .eyebrow { color: var(--accent-paper); }

/* sticky chapter index */
.chapter-index {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  margin: 0 calc(-1 * clamp(16px, 4vw, 40px));
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(243, 239, 230, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.chapter-index ol {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-index ol::-webkit-scrollbar { display: none; }

.chapter-index a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 14px 12px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--muted-on-paper);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.chapter-index a span {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.chapter-index a:hover { color: var(--ink-dark); }

.chapter-index a.is-current {
  color: var(--ink-dark);
  border-bottom-color: var(--accent-paper);
}

/* stream: chapters + plates interleaved */
.journal-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 72px);
  padding-top: clamp(40px, 6vw, 72px);
}

.chapter {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.chapter .ch-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: rgba(138, 102, 54, 0.34);
  user-select: none;
  margin-bottom: 4px;
}

/* Hilo dorado junto al número de capítulo (mismo gesto que las capitales del índice de Especies y Home). */
.chapter .ch-num::after {
  content: '';
  display: inline-block;
  width: clamp(44px, 8vw, 96px);
  height: 1px;
  margin-left: 18px;
  vertical-align: middle;
  background: var(--accent-paper);
  opacity: 0.55;
}

.chapter h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}

.chapter h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 10px;
  font-size: 21px;
}

.chapter p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.8;
  color: #2a332d;
  max-width: 64ch;
}

.chapter .pending {
  color: var(--muted-on-paper);
  font-style: italic;
}

.chapter.is-quiet { max-width: 72ch; }

.chapter.is-wide { max-width: 78ch; }

.chapter.is-narrow {
  max-width: 58ch;
  margin-left: clamp(0px, 8vw, 120px);
}

.chapter.is-indent { margin-left: clamp(0px, 4vw, 56px); }

.chapter.is-split { max-width: none; }

.chapter.is-split h3 { max-width: 40ch; }

.split-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

.split-cols > div { padding-top: 14px; border-top: 1px solid var(--line-dark); }

/* chapter with vertical photo aside */
.chapter.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  max-width: none;
}

.ch-aside {
  display: block;
  position: sticky;
  top: calc(var(--header-h) + 72px);
}

.ch-aside .photo-frame { background: #ddd6c6; }

.ch-aside-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-dark);
}

.ch-aside-cap em {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  color: var(--muted-on-paper);
}

.scientific-inline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px !important;
  color: var(--accent-paper) !important;
  margin-bottom: 20px !important;
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
}

.fact-strip div { min-width: 140px; }

.fact-strip dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}

.fact-strip dd {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
}

.status-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-paper);
  background: rgba(138, 102, 54, 0.1);
  font-size: 14px;
  line-height: 1.6;
  max-width: 60ch;
}

.alias-note {
  font-size: 14px;
  color: var(--muted-on-paper);
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.sources-list a {
  display: block;
  font-size: 14px;
  color: #3d4f45;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px;
  max-width: 64ch;
}
.sources-list a:hover { color: var(--accent-paper); }
.sources-list a small { color: var(--muted-on-paper); }

/* —— Photographic plates inside the journal —— */
.plate {
  margin: clamp(4px, 1vw, 12px) 0;
}

.plate .photo-frame {
  display: block;
  background: #ddd6c6;
}

.plate .photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.plate figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  padding-top: 10px;
  font-size: 13px;
  color: var(--muted-on-paper);
}

.plate figcaption span {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-dark);
}

.plate figcaption em { font-style: normal; flex: 1; min-width: 140px; }

.plate figcaption a {
  color: var(--accent-paper);
  letter-spacing: 0.04em;
}
.plate figcaption a:hover { color: var(--ink-dark); }

.plate--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.plate--bleed figcaption {
  width: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
  margin: 10px auto 0;
  padding-left: 0;
  padding-right: 0;
}

.plate--vertical {
  width: min(420px, 78%);
}

.plate--vertical.is-left { margin-left: clamp(0px, 6vw, 80px); }
.plate--vertical:not(.is-left) { margin-left: auto; margin-right: clamp(0px, 3vw, 40px); }

.plate--wide { width: 100%; }

/* editorial fragment pulled from real text */
.ch-fragment {
  margin: clamp(8px, 2vw, 20px) 0;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  max-width: 34ch;
  margin-left: clamp(0px, 10vw, 160px);
  position: relative;
}

/* Remate dorado de 44 px sobre la cita. */
.ch-fragment::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--accent-paper);
}

.ch-fragment p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  font-style: italic;
  color: #3d4f45;
}

/* Entity body sections on dark */
.entity-body {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
}

.entity-body-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.entity-body h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 23, 0.55);
}

.panel h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}

.entity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entity-list a,
.entity-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease), color 0.25s ease;
}

.entity-list a:hover {
  padding-left: 8px;
  color: var(--gold);
}

.entity-list .count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.thumb-row .photo-frame { aspect-ratio: 4 / 3; }

/* Filmstrip */
.filmstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 28vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.filmstrip .photo-card { scroll-snap-align: start; }

/* —— Locations atlas —— */
.atlas {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
}

.atlas-inner { max-width: var(--max); margin: 0 auto; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.5; }

.place-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.place-title em {
  font-style: italic;
  color: var(--gold);
}

.atlas-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 48px;
}

.atlas-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 119, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(70, 97, 68, 0.2), transparent 45%),
    var(--bg-elevated);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atlas-map .coords {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.atlas-map .glyph {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.9;
  color: rgba(212, 175, 119, 0.28);
  user-select: none;
}

.atlas-side h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
}

/* —— Photographer —— */
.author-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(16px, 4vw, 40px) 40px;
}

.author-monogram {
  width: clamp(100px, 16vw, 160px);
  height: clamp(100px, 16vw, 160px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(212, 175, 119, 0.35), rgba(70, 97, 68, 0.4));
  border: 1px solid var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
}

.author-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1;
}

.author-hero .bio {
  margin: 18px 0 0;
  max-width: 58ch;
  color: rgba(242, 239, 230, 0.8);
  line-height: 1.7;
}

/* —— Stories —— */
.stories-page {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 80px;
}

.reader {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 100px;
}

.reader h1 {
  margin: 12px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.reader .byline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.reader .hero-img {
  width: 100%;
  margin: 28px 0;
}

.reader-copy p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.85;
  color: rgba(242, 239, 230, 0.9);
  margin: 0 0 1.2em;
}

/* —— Directory pages —— */
.directory {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.directory-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.directory h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
}

.directory .lede { margin: 0 0 48px; max-width: 48ch; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.45s var(--ease), border-color 0.35s ease;
}

.tile .tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(6, 11, 10, 0.92) 100%);
}

.tile > * { position: relative; z-index: 1; }

.tile:hover {
  border-color: var(--gold-soft);
}
.tile:hover .tile-bg { opacity: 0.55; }

.tile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.tile .sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(242, 239, 230, 0.75);
}

.tile .count {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Índice de especies: «Lámina de especies» (F1), papel crema como los capítulos de la ficha —— */
.species-index,
.people-index {
  background: var(--paper);
  color: var(--ink-dark);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) var(--gutter) clamp(56px, 8vw, 112px);
}
.species-index > *, .people-index > * { max-width: 1440px; margin-inline: auto; }
.species-index .eyebrow, .people-index .eyebrow { color: var(--accent-paper); }
.si-head h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  color: var(--ink-dark);
}
.si-head h1 em { color: var(--accent-paper); font-style: italic; }
.si-lede { max-width: 52ch; margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted-on-paper); }
.si-stats { margin: 16px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-paper); }

.si-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 14px 0;
  background: var(--paper);
  border-block: 1px solid var(--border-paper-subtle);
}
.si-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; flex: 1 1 320px; }
.si-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.si-search input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 4px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent-paper);
  border-radius: 0;
}
.si-search input::placeholder { color: var(--muted-on-paper); font-style: italic; }
.si-search input:focus-visible, .si-clear:focus-visible, .si-letters button:focus-visible, .si-card:focus-visible, .si-clear-inline:focus-visible {
  outline: 2px solid var(--accent-paper);
  outline-offset: 3px;
}
.si-clear, .si-clear-inline {
  min-height: 44px;
  padding: 0 4px;
  font: inherit;
  font-size: 13px;
  color: var(--accent-paper);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.si-letters { display: flex; flex-wrap: wrap; gap: 0; }
.si-letters button {
  min-width: 32px;
  min-height: 44px;
  padding: 0 6px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted-on-paper);
  background: none;
  border: 0;
  cursor: pointer;
}
.si-letters button:hover { color: var(--accent-paper); }
.si-count { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted-on-paper); }
.si-count:empty { display: none; }

.si-letter { scroll-margin-top: calc(var(--header-h) + 120px); margin-top: clamp(40px, 6vw, 80px); }
.si-cap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  color: var(--accent-paper);
}
.si-cap::after { content: ''; flex: 1; height: 1px; background: var(--accent-paper); opacity: 0.45; }

.si-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
@media (max-width: 760px) {
  /* En móvil la barra no se fija (ocuparía casi un cuarto de pantalla); las letras van en una fila desplazable. */
  .si-bar { position: static; }
  .si-letters { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .si-letters::-webkit-scrollbar { display: none; }
  .si-letters button { flex: 0 0 auto; }
  .si-letter { scroll-margin-top: calc(var(--header-h) + 16px); }
  .si-meta { font-size: 10.5px; letter-spacing: 0.06em; }
}
@media (max-width: 1100px) { .si-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .si-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }

.si-card { display: block; color: inherit; text-decoration: none; min-height: 44px; }
.si-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-soft); }
.si-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-fx, 50%) var(--hero-fy, 40%);
  transition: transform 0.9s var(--ease);
}
@media (max-width: 760px) { .si-photo img { object-position: var(--hero-fx-m, var(--hero-fx, 50%)) var(--hero-fy-m, var(--hero-fy, 40%)); } }
.si-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted-on-paper);
  border: 1px dashed var(--accent-paper);
}
.si-name { display: block; margin-top: 12px; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; color: var(--ink-dark); transition: color 0.25s ease; }
.si-sci { display: block; margin-top: 3px; font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--accent-paper); }
.si-meta { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-paper); }
.si-meta + .si-n { margin-top: 3px; }
.si-n { color: var(--accent-paper); }
.si-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-paper); border: 1px solid var(--border-paper-subtle); }
.si-card:hover .si-name { color: var(--accent-paper); }
.si-card:hover .si-photo img { transform: scale(1.03); }
html[data-motion='reduce'] .si-photo img { transition: none; }
html[data-motion='reduce'] .si-card:hover .si-photo img { transform: none; }
@media (prefers-reduced-motion: reduce) { .si-photo img { transition: none; } .si-card:hover .si-photo img { transform: none; } }
.si-none { padding: 64px 0; }
.si-none p { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; }

/* —— Species: relational chapters on dark —— */
.encounter {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.encounter:first-child { border-top: 0; padding-top: 0; }

.encounter.is-flip .encounter-copy { order: 2; }
.encounter.is-flip .encounter-media { order: 1; }

.encounter-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.encounter-media { display: block; }

.encounter-media .photo-frame {
  aspect-ratio: auto;
  max-height: 420px;
}

.encounter-media .photo-frame img { max-height: 420px; }

.encounter-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(242, 239, 230, 0.9);
}

.encounter-cap em {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.encounter-media:hover .encounter-cap { color: var(--gold); }

.co-frame {
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.co-frame .rel-rail { margin-top: 12px; }

.species-current { margin-bottom: 8px; }

/* —— Species: transition to other species/content —— */
.species-next {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px) clamp(64px, 9vw, 110px);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.next-card,
.next-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 23, 0.55);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
  min-height: 100%;
}

.next-card:hover,
.next-index:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

.next-thumb {
  aspect-ratio: 16 / 9;
  margin: -18px -18px 10px;
  width: calc(100% + 36px);
}

.next-thumb img { width: 100%; height: 100%; object-fit: cover; }

.next-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.next-card strong,
.next-index strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
}

.next-card em,
.next-index em {
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.next-index {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(212, 175, 119, 0.08), transparent 60%);
  border-color: var(--gold-soft);
}

.next-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.journey-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 48px;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(120deg, rgba(212, 175, 119, 0.08), transparent 60%);
}

.journey-callout h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
}

.journey-callout p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

/* —— Constellation atlas —— */
.atlas-feature {
  margin: 12px 0 56px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 119, 0.08), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(70, 97, 68, 0.16), transparent 50%),
    var(--bg-elevated);
}

.constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
}

.c-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.c-lines line {
  stroke: rgba(212, 175, 119, 0.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.constellation.is-probing .c-lines line { stroke: rgba(212, 175, 119, 0.1); }
.c-lines line.is-lit { stroke: var(--gold); stroke-width: 1.6; }

.c-nodes { position: absolute; inset: 0; }

.cnode {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: z-index 0s;
}

.cnode-dot {
  display: block;
  width: var(--dot, 10px);
  height: var(--dot, 10px);
  border-radius: 50%;
  background: rgba(242, 239, 230, 0.85);
  box-shadow: 0 0 0 3px rgba(10, 16, 14, 0.6);
  transition: transform 0.35s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
}

.cnode.depth-0 .cnode-dot,
.cnode.is-focus .cnode-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(10, 16, 14, 0.7), 0 0 18px rgba(212, 175, 119, 0.45);
}

.cnode-label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(242, 239, 230, 0.82);
  text-shadow: 0 1px 6px rgba(6, 11, 10, 0.9);
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}

.cnode-label em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
}

.cnode.depth-0 .cnode-label {
  font-family: var(--font-display);
  font-size: 15px;
}

.cnode:hover .cnode-label,
.cnode:focus-visible .cnode-label,
.cnode.is-neighbour .cnode-label {
  color: var(--gold);
}

.cnode:hover .cnode-dot,
.cnode:focus-visible .cnode-dot {
  transform: scale(1.35);
  background: var(--gold);
}

.constellation.is-probing .cnode:not(.is-neighbour):not([data-node]) { opacity: 1; }

.c-legend {
  position: absolute;
  left: 0;
  bottom: -6px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.c-legend span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 6px;
}

.constellation-tree { display: none; }

/* place page map hosts the constellation */
.atlas-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 119, 0.1), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(70, 97, 68, 0.18), transparent 45%),
    var(--bg-elevated);
  overflow: hidden;
  padding: 24px;
}

.atlas-map .constellation {
  min-height: 360px;
  aspect-ratio: auto;
  height: 380px;
}

.atlas-map .c-legend { bottom: 4px; }

.atlas-glyph-row {
  position: absolute;
  right: 18px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  pointer-events: none;
}

.atlas-map .glyph {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.9;
  color: rgba(212, 175, 119, 0.18);
  user-select: none;
}

.atlas-map .coords {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Discovery chain —— */
.discovery-chain {
  margin-top: clamp(56px, 8vw, 88px);
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chain-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 23, 0.55);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.chain-step:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

.chain-n {
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(212, 175, 119, 0.55);
}

.chain-kind {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.chain-step strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
}

.chain-note { font-size: 12px; color: var(--muted); }

/* —— Journeys (recorridos) —— */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.journey-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.45s var(--ease);
}

.journey-card:hover {
  border-color: var(--gold-soft);
}

.journey-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.journey-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.journey-body .eyebrow { margin: 0; }
.journey-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}
.journey-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.journey-go { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--gold); letter-spacing: 0.05em; }

.journey-hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-deep);
}

.journey-hero-media { position: absolute; inset: 0; }
.journey-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.journey-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 10, 0.4), rgba(6, 11, 10, 0.2) 40%, rgba(6, 11, 10, 0.95) 100%);
}

.journey-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(16px, 4vw, 40px) clamp(40px, 7vh, 72px);
}

.journey-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.journey-hero-copy .lede { margin-top: 18px; max-width: 52ch; }

.journey-layout {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
}

.journey-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.journey-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journey-rail button {
  display: flex;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 9px 0 9px 12px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.journey-rail button:hover,
.journey-rail button.is-current {
  color: var(--ink);
  border-left-color: var(--gold);
}

.journey-rail .rail-n { font-size: 10px; letter-spacing: 0.14em; color: var(--gold); }

.journey-steps { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); }

.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.journey-step:nth-child(even) .step-media { order: 2; }
.journey-step:nth-child(even) .step-copy { order: 1; }

.step-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}

.step-meta {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.step-note {
  margin: 16px 0 22px;
  color: rgba(242, 239, 230, 0.78);
  line-height: 1.7;
  max-width: 46ch;
}

.step-media { min-height: 220px; }

.journey-end {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(212, 175, 119, 0.07), transparent 55%);
}

.journey-end h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
}

.journey-end .lede { margin: 12px 0 24px; }
.journey-end .hero-actions { margin-top: 8px; }

/* —— Photographer cover —— */
.author-hero {
  grid-template-columns: auto 1fr auto;
  align-items: end;
}

.author-hero-cover {
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.author-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Stories: depth & bridges —— */

.reader-hero {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 8px auto 40px;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  overflow: hidden;
  background: var(--bg-deep);
}

.reader-hero img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

.story-next {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.story-next a { color: var(--muted); max-width: 45%; }
.story-next a:hover { color: var(--gold); }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .journey-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .species-hero-copy { padding-right: min(300px, 34vw); }
}

@media (max-width: 980px) {
  .atlas-grid,
  .split-panels,
  .author-hero { grid-template-columns: auto 1fr; }
  .author-hero-cover { display: none; }
  .journey-layout { grid-template-columns: 1fr; }
  .journey-rail {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    background: rgba(6, 11, 10, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    margin: 0 -16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .journey-rail ol {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .journey-rail button {
    border-left: 0;
    border-bottom: 2px solid var(--line);
    padding: 8px 10px;
    white-space: nowrap;
  }
  .journey-rail .rail-label { display: none; }
  .journey-rail button.is-current { border-bottom-color: var(--gold); }
  .journey-step { grid-template-columns: 1fr; }
  .journey-step:nth-child(even) .step-media,
  .journey-step:nth-child(even) .step-copy { order: initial; }
  .journey-callout { flex-direction: column; align-items: flex-start; }

  .chapter.has-aside { grid-template-columns: 1fr; }
  .ch-aside { position: static; max-width: 420px; }
  .species-hero-copy { padding-right: clamp(16px, 4vw, 40px); }
  .encounter { grid-template-columns: 1fr; }
  .encounter.is-flip .encounter-copy,
  .encounter.is-flip .encounter-media { order: initial; }
  .encounter-media .photo-frame,
  .encounter-media .photo-frame img { max-height: 340px; }
  .next-grid { grid-template-columns: 1fr; }
  .next-card { flex-direction: row; align-items: center; gap: 16px; }
  .next-thumb { width: 120px; flex: none; margin: -18px -18px -18px 0; aspect-ratio: 4 / 3; }
  .next-card strong { font-size: 20px; }
  .next-index { min-height: 120px; }
}

@media (max-width: 980px) {
  /* constellation becomes a vertical hierarchy */
  .constellation { display: none; }
  .constellation-tree {
    display: block;
    margin-top: 4px;
  }
  .constellation-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .constellation-tree ul ul {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px dashed rgba(212, 175, 119, 0.35);
  }
  .constellation-tree a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .constellation-tree a:hover { color: var(--gold); }
  .ctree-dot {
    flex: none;
    width: var(--w, 8px);
    height: var(--w, 8px);
    min-width: 6px;
    min-height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.8;
  }
  .ctree-name { flex: 1; }
  .ctree-n { font-size: 11px; color: var(--muted); white-space: nowrap; }

  .atlas-map { min-height: 0; padding: 16px; }
  .atlas-map .constellation { display: none; }
  .atlas-map .constellation-tree { display: block; }
  .atlas-glyph-row { position: static; margin-top: 12px; }

  .reader-hero { width: 100%; aspect-ratio: 4 / 3; }
  .story-next { flex-direction: column; }
  .story-next a { max-width: none; }
  .chain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .species-hero { min-height: min(86vh, 760px); }
  .species-hero-credit { left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); max-width: none; bottom: 16px; }
  .species-hero-copy { padding-bottom: 96px; }

  /* mobile focal override + keep long titles readable at the bottom */
  .species-hero-media img,
  .entity-hero-media img {
    object-position: var(--hero-fx-m, var(--hero-fx)) var(--hero-fy-m, var(--hero-fy));
  }
  .species-hero[data-text='bottom-right'] .species-hero-copy,
  .species-hero[data-text='top-right'] .species-hero-copy,
  .species-hero[data-text='right'] .species-hero-copy,
  .species-hero[data-text='top-left'] .species-hero-copy,
  .species-hero[data-text='top'] .species-hero-copy {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  .species-hero[data-text='bottom-right'] .hero-taxo,
  .species-hero[data-text='top-right'] .hero-taxo,
  .species-hero[data-text='right'] .hero-taxo,
  .species-hero[data-text='bottom-right'] .species-hero-copy .hero-meta,
  .species-hero[data-text='top-right'] .species-hero-copy .hero-meta,
  .species-hero[data-text='right'] .species-hero-copy .hero-meta {
    justify-content: flex-start;
  }
  .species-hero[data-text='top-left'],
  .species-hero[data-text='top-right'],
  .species-hero[data-text='top'] {
    align-items: end;
  }
  .species-hero[data-text='top-left'] .species-hero-copy,
  .species-hero[data-text='top-right'] .species-hero-copy,
  .species-hero[data-text='top'] .species-hero-copy {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 96px;
  }
  .species-hero[data-text='top-left']::after,
  .species-hero[data-text='top-right']::after,
  .species-hero[data-text='top']::after {
    background:
      linear-gradient(180deg, rgba(6, 11, 10, 0.45) 0%, rgba(6, 11, 10, 0.05) 30%, rgba(6, 11, 10, 0.55) 62%, rgba(6, 11, 10, 0.97) 100%);
  }
  .species-hero[data-text='bottom-right'] .species-hero-credit,
  .species-hero[data-text='right'] .species-hero-credit {
    left: clamp(16px, 4vw, 40px);
    right: clamp(16px, 4vw, 40px);
    border-right: 0;
    border-left: 1px solid var(--gold);
  }
  .split-cols { grid-template-columns: 1fr; }
  .chapter.is-narrow,
  .chapter.is-indent { margin-left: 0; }
  .plate--vertical { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .ch-fragment { margin-left: 0; max-width: none; }
  .chapter-index { margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); }
  .chapter-index a { padding: 0 10px; min-height: 44px; align-items: center; font-size: 12px; }
  .next-card { flex-direction: column; align-items: stretch; }
  .next-thumb { width: calc(100% + 36px); margin: -18px -18px 10px; aspect-ratio: 16 / 9; }
}

/* —— Relatos relacionados: lenguaje de El Caminante de Home (IM Fell Double Pica, papel y burdeos) —— */
.species-stories { --caminante-ink: #7b2d34; --caminante-paper: #efe3d1; }
.species-stories .section-head .eyebrow {
  font-family: 'IM Fell Double Pica', var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #d8b9a6;
}
.species-stories .section-head h2 {
  font-family: 'IM Fell Double Pica', var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.species-stories .relations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.species-stories .relation-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  color: #3d1f1f;
  background: var(--caminante-paper) url('../assets/caminante-paper.svg') repeat;
  border-top: 3px solid var(--caminante-ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.species-stories .relation-panel h3 {
  margin: 0;
  font-family: 'IM Fell Double Pica', var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--caminante-ink);
}
.species-stories .relation-panel p { margin: 0; font-family: 'IM Fell Double Pica', var(--font-display); font-size: 17px; line-height: 1.55; color: #3d1f1f; }
.species-stories .relation-panel .chip { align-self: flex-start; margin-top: auto; color: var(--caminante-ink); background: none; border: 0; padding: 0; letter-spacing: 0.04em; font-size: 14px; }
.species-stories .relation-panel:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.species-stories .relation-panel:hover .chip { text-decoration: underline; text-underline-offset: 5px; }
.species-stories .relation-panel:focus-visible { outline: 2px solid var(--caminante-paper); outline-offset: 4px; }
html[data-motion='reduce'] .species-stories .relation-panel { transition: none; }
html[data-motion='reduce'] .species-stories .relation-panel:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .species-stories .relation-panel { transition: none; } .species-stories .relation-panel:hover { transform: none; } }

/* —— Tanda B: acabado de Home en la ficha (enlaces ↗, leyendas, aparición de fotos y de capítulos) —— */
/* Aparición de las placas: la misma máscara ligada al scroll que Home (ui.js › bindPhotoReveal). */
.plate .photo-frame.is-revealing {
  -webkit-mask-image: linear-gradient(to right, #000 var(--reveal-edge, 100%), transparent calc(var(--reveal-edge, 100%) + var(--reveal-soft, 28%)));
  mask-image: linear-gradient(to right, #000 var(--reveal-edge, 100%), transparent calc(var(--reveal-edge, 100%) + var(--reveal-soft, 28%)));
  transition: --reveal-edge var(--reveal-ms, 800ms) cubic-bezier(.22, .7, .2, 1);
}
.plate .photo-frame.is-revealing:focus-visible { -webkit-mask-image: none; mask-image: none; }
html[data-motion='reduce'] .plate .photo-frame.is-revealing { -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) { .plate .photo-frame.is-revealing { -webkit-mask-image: none; mask-image: none; } }

/* Enlace de Home (.field-link): texto que avanza y flecha ↗ que se adelanta; dorado sobre papel y sobre oscuro. */
.species-page .field-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.35s ease;
}
.journal .field-link { color: var(--accent-paper); }
.journal .field-link > span[aria-hidden] { color: var(--accent-paper); font-size: 18px; }
.journal .field-link:hover, .journal .field-link:focus-visible { color: var(--ink-dark); }
.species-page .field-link:focus-visible { outline: 2px solid var(--accent-paper); outline-offset: 4px; }
.species-next .field-link { color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0; }
.species-next .field-link:hover, .species-next .field-link:focus-visible { color: var(--gold); }
.species-next .next-doors { gap: 4px 36px; }

/* Fuentes: enlace de Home con filete. */
.sources-list .field-link--source {
  display: flex;
  width: 100%;
  max-width: 64ch;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-paper-subtle);
  color: #3d4f45;
  font-size: 14px;
  letter-spacing: 0;
}
.sources-list .field-link--source small { display: block; margin-top: 3px; color: var(--muted-on-paper); font-size: 12px; }

/* Leyenda de placa con el formato de Home: título, créditos y enlace. */
.plate figcaption { justify-content: space-between; gap: 3px 18px; font-size: 11px; line-height: 1.55; padding-top: 12px; }
.plate figcaption > span:first-child { width: 100%; font-size: clamp(15px, 1.3vw, 19px); }
.plate figcaption .field-link { flex: 0 0 auto; margin-left: auto; }
.plate figcaption .field-link span { width: auto; font-family: var(--font-ui); font-size: inherit; color: inherit; }
.plate figcaption .field-link > span[aria-hidden] { color: var(--accent-paper); font-size: 18px; }
.plate figcaption em { flex: 1 1 auto; min-width: 0; }

/* Capítulos: el hilo dorado se dibuja, el número sube y el titular entra (Home › bindChapters), sobre el `is-in` ya existente. */
.chapter[data-reveal] .ch-num { transition: opacity 0.7s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s; }
.chapter[data-reveal]:not(.is-in) .ch-num { opacity: 0; transform: translateY(12px); }
.chapter[data-reveal] .ch-num::after { transform-origin: left center; transition: transform 0.9s var(--ease) 0.25s; }
.chapter[data-reveal]:not(.is-in) .ch-num::after { transform: scaleX(0); }
.chapter[data-reveal] h3 { transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s; }
.chapter[data-reveal]:not(.is-in) h3 { opacity: 0; transform: translateY(14px); }
html[data-motion='reduce'] .chapter[data-reveal] :is(.ch-num, h3) { transition: none !important; opacity: 1 !important; transform: none !important; }
html[data-motion='reduce'] .chapter[data-reveal] .ch-num::after { transition: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .chapter[data-reveal] :is(.ch-num, h3) { transition: none !important; opacity: 1 !important; transform: none !important; } .chapter[data-reveal] .ch-num::after { transition: none !important; transform: none !important; } }

/* —— Tanda C1: coherencia de la zona final y enlace de la leyenda del hero —— */
.encounter.is-bare { grid-template-columns: minmax(0, 1fr); }
.species-hero-credit { display: block; color: inherit; text-decoration: none; transition: border-color 0.35s ease, background 0.35s ease; }
.species-hero-credit:hover, .species-hero-credit:focus-visible { background: rgba(6, 11, 10, 0.62); border-color: var(--accent-observatory); }
.species-hero-credit:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.species-hero-credit-go { display: flex !important; gap: 10px; align-items: center; margin-top: 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--gold); }
.species-hero-credit-go > span:last-child { font-size: 17px; transition: transform 0.35s var(--ease); }
.species-hero-credit:hover .species-hero-credit-go > span:last-child, .species-hero-credit:focus-visible .species-hero-credit-go > span:last-child { transform: translate(4px, -4px); }
html[data-motion='reduce'] .species-hero-credit-go > span:last-child { transition: none; transform: none !important; }
.species-next .next-doors { margin-top: 30px; }

/* Bloque único «Dónde y quién»: lugares y colaboradores en columnas dentro del mismo encuentro. */
.encounter-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.encounter-cols h3 { margin: 0 0 6px; font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* Aviso único de las fichas en revisión: rótulo + texto; los capítulos vacíos llevan solo «En revisión». */
.status-note strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--ink-dark); }
.chapter .pending { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; }

/* —— Tanda C3: recuentos enlazados a la Galería filtrada —— */
.entity-list .row { padding: 0; }
.entity-list .row > a { padding: 14px 0; border-bottom: 0; }
.entity-list .row-main { flex: 1 1 auto; min-width: 0; }
.entity-list .row-main:hover { padding-left: 8px; color: var(--gold); }
.entity-list .count-link { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; transition: color 0.25s ease; }
.entity-list .count-link:hover, .entity-list .count-link:focus-visible { padding-left: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.entity-list .row { border-bottom: 1px solid var(--line); }

/* —— Colaboradores T2: una sola salida a la Galería y relatos con el lenguaje de El Caminante —— */
.split-panels--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .split-panels--two { grid-template-columns: 1fr; } }
.author-page .more-wrap { justify-content: flex-start; }
.author-page .field-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 8px 0; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); border-bottom: 1px solid var(--line); transition: color 0.35s ease; }
.author-page .field-link:hover, .author-page .field-link:focus-visible { color: var(--gold); }
.author-page .field-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Colaboradores T3: índice con las láminas de Especies (papel crema, foto limpia, nombre debajo) y aparición con la máscara de Home. */
.people-grid { margin-top: clamp(32px, 5vw, 64px); }
.people-index .si-photo.is-revealing {
  -webkit-mask-image: linear-gradient(to right, #000 var(--reveal-edge, 100%), transparent calc(var(--reveal-edge, 100%) + var(--reveal-soft, 28%)));
  mask-image: linear-gradient(to right, #000 var(--reveal-edge, 100%), transparent calc(var(--reveal-edge, 100%) + var(--reveal-soft, 28%)));
  transition: --reveal-edge var(--reveal-ms, 800ms) cubic-bezier(.22, .7, .2, 1);
}
.people-index .si-card:focus-visible .si-photo.is-revealing { -webkit-mask-image: none; mask-image: none; }
html[data-motion='reduce'] .people-index .si-photo.is-revealing { -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) { .people-index .si-photo.is-revealing { -webkit-mask-image: none; mask-image: none; } }
.people-index .si-empty { font-size: 34px; letter-spacing: 0.06em; }

/* Colaboradores: invitación a registrarse, con el lenguaje de la invitación final de Home (hilo dorado, cursiva dorada) sobre papel. */
.people-index .si-invite { position: relative; margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--border-paper-subtle); }
.people-index .si-invite::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--accent-paper); }
.people-index .si-invite h2 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.1; color: var(--ink-dark); }
.people-index .si-invite h2 em { color: var(--accent-paper); font-style: italic; }
.people-index .si-invite > p:not(.eyebrow) { margin: 20px 0 0; max-width: 48ch; font-size: 18px; line-height: 1.6; color: var(--muted-on-paper); }
.people-index .si-invite .field-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 28px; padding: 8px 0; font-size: 14px; letter-spacing: 0.04em; color: var(--accent-paper); border-bottom: 1px solid var(--border-paper-strong); transition: color 0.35s ease; }
.people-index .si-invite .field-link > span[aria-hidden] { color: var(--accent-paper); font-size: 18px; }
.people-index .si-invite .field-link:hover, .people-index .si-invite .field-link:focus-visible { color: var(--ink-dark); }
.people-index .si-invite .field-link:focus-visible { outline: 2px solid var(--accent-paper); outline-offset: 4px; }

/* Índice de especies: la letra por la que vas se destaca en la barra (dorada, más grande, con hilo). */
.si-letters button { transition: color 0.25s ease, transform 0.35s var(--ease); transform-origin: center 60%; }
.si-letters button.is-current { color: var(--accent-paper); font-weight: 600; transform: scale(1.6); box-shadow: inset 0 -2px 0 var(--accent-paper); }
html[data-motion='reduce'] .si-letters button { transition: none; }
@media (prefers-reduced-motion: reduce) { .si-letters button { transition: none; } }

/* Invitación de dos opciones (D-30): subir una foto primero, perfil después y más discreto. */
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px clamp(28px, 5vw, 64px); }
.invite-action { display: flex; flex-direction: column; align-items: flex-start; max-width: 34ch; }
.invite-note { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.people-index .si-invite .invite-note { color: var(--muted-on-paper); }
.invite-action:not(.is-primary) .field-link { opacity: 0.82; }
.people-index .si-invite .invite-actions { margin-top: 12px; }
.field-invitation .invite-actions { justify-content: center; margin-top: 25px; }
.field-invitation .invite-action { align-items: center; text-align: center; }
.field-invitation .invite-note { color: var(--field-muted); }
@media (max-width: 760px) { .invite-actions { flex-direction: column; gap: 4px; } .field-invitation .invite-actions { align-items: center; } }

/* Colaborador T4 (D-29): portada en su proporción real (sin recorte a 3:4), visible también en móvil;
   la biografía, si existe, es el único tramo sobre papel crema. */
.author-page .author-hero { grid-template-columns: auto minmax(0, 1fr) auto; }
.author-page .author-hero-cover { display: block; flex: none; border: 0; overflow: hidden; background: var(--bg-soft, #11191a); }
.author-page .author-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-page .author-hero-cover.is-portrait { width: clamp(180px, 22vw, 340px); }
.author-page .author-hero-cover.is-landscape { width: clamp(280px, 36vw, 560px); }
.author-bio { background: var(--paper); color: var(--ink-dark); }
.author-bio-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.author-bio-place { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-paper); }
.author-bio-text { margin: 0; max-width: 62ch; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; color: var(--ink-dark); }
@media (max-width: 980px) {
  .author-page .author-hero { grid-template-columns: auto minmax(0, 1fr); }
  .author-page .author-hero-cover { display: block; grid-column: 1 / -1; width: 100%; max-height: 70vh; }
  .author-page .author-hero-cover.is-portrait { width: min(100%, 360px); }
  .author-page .author-hero-cover.is-landscape { width: 100%; }
}

/* El Caminante como libro · tanda 1 (D-31): lectura en papel crema y tinta burdeos, lámina entera y sin parallax. */
.book-page { --caminante-ink: #7b2d34; background: var(--caminante-paper, #efe3d1); color: #2a1c1a; min-height: 100vh; padding-bottom: clamp(56px, 8vw, 112px); }
.book-page .reader { padding: calc(var(--header-h) + 40px) 0 0; }
.book-page .reader.reader-body { padding-top: clamp(32px, 5vw, 56px); }
.book-back { display: inline-block; min-height: 44px; padding: 10px 0; font-size: 13px; letter-spacing: 0.04em; color: var(--caminante-ink); }
.book-back:hover, .book-back:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.book-page .eyebrow { margin-top: 18px; color: var(--caminante-ink); }
.book-page .reader h1 { font-family: 'IM Fell Double Pica', var(--font-display); font-weight: 400; color: var(--caminante-ink); }
.book-page .reader .byline { color: #6b5547; margin-bottom: 0; }
.book-plate-wrap { width: min(760px, 92vw); margin: clamp(28px, 4vw, 48px) auto 0; }
.book-page .book-plate { position: relative; width: 100%; max-height: none; aspect-ratio: auto; margin: 0; background: none; }
.book-page .book-plate img { position: static; display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; margin-inline: auto; will-change: auto; }
.book-plate-caption { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; margin-top: 14px; font-size: 13px; line-height: 1.6; color: #6b5547; }
.book-plate-caption .plate-n { margin-right: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caminante-ink); }
.book-plate-caption a { color: var(--caminante-ink); text-underline-offset: 4px; }
.book-plate-caption a:hover, .book-plate-caption a:focus-visible { text-decoration: underline; }
.book-page .reader-copy p { color: #2a1c1a; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.8; }
.book-page .reader-copy p:first-child::first-letter { float: left; font-family: 'IM Fell Double Pica', var(--font-display); font-size: 4.6em; line-height: 0.8; margin: 0.08em 0.1em 0 0; color: var(--caminante-ink); }
.book-colophon { margin: 28px 0 0; font-size: 13px; letter-spacing: 0.04em; }
.book-colophon a { color: var(--caminante-ink); }
.book-colophon a:hover { text-decoration: underline; text-underline-offset: 5px; }
.book-page .story-next { border-top-color: rgba(123, 45, 52, 0.3); }
.book-page .story-next a { display: flex; flex-direction: column; gap: 4px; color: #2a1c1a; font-family: 'IM Fell Double Pica', var(--font-display); font-size: 19px; line-height: 1.3; min-height: 44px; }
.book-page .story-next a small { font-family: var(--font-body, system-ui); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caminante-ink); }
.book-page .story-next a:hover, .book-page .story-next a:focus-visible { color: var(--caminante-ink); }
.book-page .story-after { text-align: right; align-items: flex-end; margin-left: auto; }
.book-page a:focus-visible { outline: 2px solid var(--caminante-ink); outline-offset: 4px; }
@media (max-width: 760px) { .book-page .story-after { text-align: left; align-items: flex-start; margin-left: 0; } }

/* El Caminante como libro · tanda 2 (D-31): portadilla e índice por partes (años). */
.book-index { --caminante-ink: #7b2d34; background: #efe3d1; color: #2a1c1a; min-height: 100vh; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) var(--gutter, clamp(16px, 4vw, 40px)) clamp(56px, 8vw, 112px); }
.book-index-inner { max-width: 1240px; margin: 0 auto; }
.book-cover { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.book-index .eyebrow { color: var(--caminante-ink); }
.book-cover h1 { margin: 12px 0 0; font-family: 'IM Fell Double Pica', var(--font-display); font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: 0.98; color: var(--caminante-ink); }
.book-cover-meta { margin: 18px 0 0; font-size: 15px; letter-spacing: 0.04em; color: #6b5547; }
.book-epigraph { margin: 28px 0 0; font-family: 'IM Fell Double Pica', var(--font-display); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: #3d1f1f; }
.book-epigraph a { color: inherit; text-decoration: underline; text-decoration-color: rgba(123, 45, 52, 0.4); text-underline-offset: 6px; }
.book-epigraph a:hover, .book-epigraph a:focus-visible { color: var(--caminante-ink); }
.book-contents { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.book-part { margin-bottom: clamp(36px, 5vw, 64px); }
.book-part h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(123, 45, 52, 0.35); font-family: 'IM Fell Double Pica', var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); color: var(--caminante-ink); }
.book-part h2 small { margin-left: auto; font-family: var(--font-body, system-ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b5547; }
.book-part-n { font-size: 0.7em; opacity: 0.7; }
.book-part ol { list-style: none; margin: 0; padding: 0; }
.book-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px; gap: 14px 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid rgba(123, 45, 52, 0.16); color: inherit; min-height: 44px; }
.book-row-n { padding-top: 5px; font-size: 12px; letter-spacing: 0.14em; color: var(--caminante-ink); }
.book-row-main { display: flex; flex-direction: column; gap: 6px; }
.book-row-title { font-family: 'IM Fell Double Pica', var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: #2a1c1a; }
.book-row-lede { font-size: 15px; line-height: 1.55; color: #5a463c; max-width: 62ch; }
.book-row-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caminante-ink); }
.book-row-meta small { font-size: 0.82em; letter-spacing: 0.1em; opacity: 0.75; }
.book-row-thumb { display: block; width: 96px; height: 64px; overflow: hidden; background: rgba(123, 45, 52, 0.08); }
.book-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-row:hover .book-row-title, .book-row:focus-visible .book-row-title { color: var(--caminante-ink); text-decoration: underline; text-decoration-color: rgba(123, 45, 52, 0.4); text-underline-offset: 6px; }
.book-row:focus-visible, .book-epigraph a:focus-visible { outline: 2px solid var(--caminante-ink); outline-offset: 4px; }
.book-preview { display: none; }
.book-preview figure { margin: 0; }
@media (min-width: 1100px) {
  .book-contents { grid-template-columns: minmax(0, 1fr) 380px; }
  .book-row { grid-template-columns: 44px minmax(0, 1fr); }
  .book-row-thumb { display: none; }
  .book-preview { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .book-preview img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
  .book-preview figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-family: 'IM Fell Double Pica', var(--font-display); font-size: 18px; color: #2a1c1a; }
  .book-preview figcaption span:first-child { font-size: 12px; letter-spacing: 0.14em; color: var(--caminante-ink); }
}
@media (max-width: 520px) { .book-row { grid-template-columns: 32px minmax(0, 1fr) 64px; gap: 12px; } .book-row-thumb { width: 64px; height: 48px; } }

/* Último relato (opción 3) y lámina que sigue la lectura. */
.book-latest { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); padding: clamp(24px, 3vw, 40px) 0; border-block: 1px solid rgba(123, 45, 52, 0.3); }
.book-latest-plate { display: block; }
.book-latest-plate img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; }
.book-latest h2 { margin: 10px 0 0; font-family: 'IM Fell Double Pica', var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; color: var(--caminante-ink); }
.book-latest-lede { margin: 16px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: #3d2b25; }
.book-latest-meta { margin: 10px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b5547; }
.book-latest .field-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 18px; padding: 8px 0; font-size: 14px; letter-spacing: 0.04em; color: var(--caminante-ink); border-bottom: 1px solid rgba(123, 45, 52, 0.45); }
.book-latest .field-link:hover, .book-latest .field-link:focus-visible { color: #2a1c1a; }
.book-latest .field-link:focus-visible { outline: 2px solid var(--caminante-ink); outline-offset: 4px; }
@media (min-width: 900px) { .book-latest { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.book-row.is-current .book-row-n { font-weight: 600; }
.book-row.is-current .book-row-title { color: var(--caminante-ink); }
.book-preview img { transition: opacity 0.2s ease; }
html[data-motion='reduce'] .book-preview img { transition: none; }

/* El Caminante · tanda 4 (D-31): marcapáginas, «leídos» y pasar página. */
.book-resume { margin: 22px 0 0; font-size: 15px; }
.book-resume a { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; padding: 8px 0; color: var(--caminante-ink); border-bottom: 1px solid rgba(123, 45, 52, 0.45); }
.book-resume a span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.book-resume a:hover, .book-resume a:focus-visible { color: #2a1c1a; }
.book-resume a:focus-visible { outline: 2px solid var(--caminante-ink); outline-offset: 4px; }
.book-row-read { letter-spacing: 0.1em; opacity: 0.75; }
.book-row.is-read .book-row-title { color: #6b5547; }

/* El Caminante · parte A (D-33): botones de leído / marcador, filtro y aviso. */
.book-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; }
.book-tools button, .book-filter button, .book-row-actions button { font: inherit; cursor: pointer; border: 1px solid rgba(123, 45, 52, 0.4); background: transparent; color: var(--caminante-ink); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-size: 13px; letter-spacing: 0.03em; transition: background-color 0.2s ease, color 0.2s ease; }
.book-tools button:hover, .book-filter button:hover, .book-row-actions button:hover { background: rgba(123, 45, 52, 0.08); }
.book-tools button[aria-pressed='true'], .book-filter button[aria-pressed='true'], .book-row-actions button[aria-pressed='true'] { background: var(--caminante-ink); color: #efe3d1; border-color: var(--caminante-ink); }
.book-tools button:focus-visible, .book-filter button:focus-visible, .book-row-actions button:focus-visible { outline: 2px solid var(--caminante-ink); outline-offset: 3px; }
.book-tools-note { margin: 14px 0 0; max-width: 56ch; font-size: 13px; line-height: 1.55; color: #6b5547; }
.book-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(20px, 3vw, 32px); }
.book-empty { margin: 0 0 24px; font-size: 15px; color: #6b5547; }
.book-part ol li { position: relative; }
.book-row-actions { display: flex; gap: 8px; position: absolute; right: 0; bottom: 10px; }
.book-row-actions button { min-height: 32px; padding: 4px 12px; font-size: 12px; }
@media (hover: hover) { .book-row-actions { opacity: 0; transition: opacity 0.2s ease; } li:hover > .book-row-actions, li:focus-within > .book-row-actions { opacity: 1; } }
@media (max-width: 760px) { .book-row-actions { position: static; padding: 0 0 14px 46px; } .book-row-actions button { min-height: 44px; } }
html[data-motion='reduce'] .book-row-actions, html[data-motion='reduce'] .book-tools button { transition: none; }
.book-preview-status { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caminante-ink); }

/* «No encontrado» común (D-35). */
.not-found .not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.not-found .not-found-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 28px; font-size: 14px; }
.not-found .not-found-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }

/* «Copiar enlace» e «Imprimir» (D-35 E-4). */
.ar-copy, .hero-copy-link, .book-tools-quiet { font: inherit; cursor: pointer; background: none; border: 0; }
.ar-copy { padding: 0; color: inherit; }
.hero-copy-link { padding: 0 0 0 4px; min-height: 44px; font-size: 14px; letter-spacing: 0.04em; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }
.hero-copy-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.book-tools .book-tools-quiet { border: 0; border-radius: 0; padding: 8px 4px; font-size: 13px; color: #6b5547; text-decoration: underline; text-underline-offset: 5px; }
.book-tools .book-tools-quiet:hover { background: none; color: var(--caminante-ink); }
@media print {
  .site-header, #chrome-footer, .gallery-publication-bar, .home-return-bar, .book-tools, .story-next, .book-back,
  [data-copy-link], [data-print], #route-live, .skip, #boot, .sr-only { display: none !important; }
  html, body, .book-page { background: #fff !important; color: #000 !important; }
  .book-page { padding-bottom: 0 !important; min-height: 0 !important; }
  .book-page .reader { padding-top: 16px !important; }
  .book-page .reader h1, .book-page .book-plate-caption a, .book-colophon a { color: #000 !important; }
  .book-page .reader-copy p { color: #000 !important; font-size: 12pt; line-height: 1.55; orphans: 3; widows: 3; }
  .book-page .book-plate img { max-height: 11cm; }
  .book-colophon a::after { content: ' (' attr(href) ')'; }
}

/* B-T1: página pública del colaborador (D-40) */
.author-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.author-gear { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.author-gear li { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.author-links { margin-top: 16px; }
.author-links [hidden] { display: none; }
.author-page .author-hero.no-avatar { grid-template-columns: minmax(0, 1fr) auto; }
.author-bio-text + .author-bio-text { margin-top: 1em; }
.entity-more { margin-top: 6px; }
.entity-more summary { cursor: pointer; padding: 10px 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.entity-more summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 980px) { .author-page .author-hero.no-avatar { grid-template-columns: minmax(0, 1fr); } }

/* Filtros del administrador en los índices de Especies y Lugares (D-45 T7): solo se dibujan para quien edita */
.admin-filters--inline { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--gold, #d4af77); }
.admin-filters--inline .admin-toggle { display: inline-flex; width: auto; margin: 0; padding: 8px 16px; border: 1px solid var(--gold, #d4af77); border-radius: 999px; background: transparent; color: var(--gold, #d4af77); font-size: 12px; cursor: pointer; }
.admin-filters--inline .admin-filters-body { display: grid; gap: 8px; margin-top: 12px; }
.admin-filters--inline .admin-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.admin-filters--inline .admin-label { margin: 6px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold, #d4af77); }
.admin-filters--inline .mod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-filters--inline .chip { padding: 7px 13px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.admin-filters--inline .chip.is-active { border-color: var(--gold, #d4af77); color: var(--gold, #d4af77); }
.admin-filters--inline .admin-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
@media (pointer: coarse) { .admin-filters--inline .chip, .admin-filters--inline .admin-toggle, .admin-filters--inline .btn { min-height: 44px; } }

/* Revisión de Opus sobre T7 (D-45): contraste sobre papel claro y ancho completo */
.species-index .admin-filters--inline, .atlas-index .admin-filters--inline { --gold: var(--accent-paper); }
.species-index .admin-filters--inline .admin-note, .atlas-index .admin-filters--inline .admin-note { color: var(--text-muted-on-paper); }
.admin-filters--inline .admin-link { color: var(--accent-paper); text-decoration: underline; text-underline-offset: 3px; }
.atlas-index header > .admin-filters--inline { grid-column: 1 / -1; }
.admin-filters--inline .admin-status { margin: 0; font-size: 13px; color: var(--text-muted-on-paper); }
.admin-filters--inline .admin-status:empty { display: none; }
.species-index .admin-filters--inline .chip, .atlas-index .admin-filters--inline .chip { border-color: rgba(92, 102, 94, 0.5); }
.species-index .admin-filters--inline .chip.is-active, .atlas-index .admin-filters--inline .chip.is-active { border-color: var(--accent-paper); color: var(--accent-paper); font-weight: 600; }

/* Nexo calculado entre especies y lugares (D-50): datos del archivo, discretos */
.nexus-meta { margin-left: 10px; font-size: 12px; letter-spacing: 0.02em; opacity: 0.75; white-space: nowrap; }
.nexus-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; opacity: 0.8; }
.nexus-note strong { font-weight: 600; }

.ph-historic { margin: 10px 0 0; font-size: .95rem; opacity: .85; }
.ph-historic .chip { margin-right: 8px; }
.ph-historic a { text-decoration: underline; text-underline-offset: 3px; }

@media (pointer: coarse) { .si-letters button { min-width: 44px; } }
