/* ═══════════════════════════════════════════════════════════════
   EL OJO DEL UNDERGROUND — sistema de diseño
   Oscuro · editorial · asimétrico · cinematográfico
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Tinta */
  --ink:      #0B0B0C;
  --ink-2:    #101013;
  --ink-3:    #17171B;
  --ink-4:    #202027;

  /* Papel — nunca blanco puro */
  --paper:    #EDEAE4;
  --paper-2:  #C6C2BA;
  --ash:      #8B867E;
  --ash-2:    #5C5852;

  /* Líneas */
  --line:     rgba(237, 234, 228, .12);
  --line-2:   rgba(237, 234, 228, .22);
  --line-3:   rgba(237, 234, 228, .38);

  /* Acento: terracota. Menos del 5% de la superficie. */
  --accent:       #C0553B;
  --accent-soft:  rgba(192, 85, 59, .14);
  --accent-line:  rgba(192, 85, 59, .42);

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Escala modular fluida */
  --t--2: clamp(.62rem, .60rem + .08vw, .68rem);
  --t--1: clamp(.73rem, .70rem + .12vw, .80rem);
  --t-0:  clamp(.94rem, .91rem + .14vw, 1.02rem);
  --t-1:  clamp(1.10rem, 1.03rem + .32vw, 1.28rem);
  --t-2:  clamp(1.34rem, 1.18rem + .70vw, 1.76rem);
  --t-3:  clamp(1.75rem, 1.36rem + 1.72vw, 2.72rem);
  --t-4:  clamp(2.30rem, 1.52rem + 3.30vw, 4.30rem);
  --t-5:  clamp(2.90rem, 1.35rem + 6.60vw, 7.60rem);

  /* Ritmo */
  --gutter:  clamp(1.15rem, 4.2vw, 3.25rem);
  --maxw:   1440px;
  --wide:   1720px;
  --measure: 64ch;
  --sec-y:  clamp(4.5rem, 11vw, 11rem);

  /* Movimiento */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .62s;
  --dur-fast:  .28s;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.62;
  font-weight: 350;
  letter-spacing: .004em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Grano de película: le da materia photographic al negro plano */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9998;
  background-image: var(--grain);
  opacity: .026;
  mix-blend-mode: overlay;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
input, textarea, select, button { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

hr { border: 0; height: 1px; background: var(--line); }

/* ── Tipografía ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  text-wrap: balance;
}

.serif { font-family: var(--serif); }

/* Etiqueta / metadato: sans, versalitas, tracking amplio */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1;
}
.eyebrow--accent { color: var(--accent); }

.lede {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--paper-2);
  max-width: 34ch;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.meta {
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}
.meta__dot { color: var(--accent); padding: 0 .45em; }

em, .it { font-style: italic; font-variation-settings: "SOFT" 0, "WONK" 1; }

/* ── Layout ──────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wide); }

.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: clamp(3rem, 7vw, 6rem); }
.sec--flush-top { padding-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 5vw, 4.2rem);
}
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 2rem;
  }
}
.sec-head__t {
  font-size: var(--t-4);
  font-weight: 340;
  line-height: .96;
}
.sec-head__t .it { color: var(--ash); }
.sec-head__d {
  color: var(--ash);
  font-size: var(--t-0);
  max-width: 46ch;
  line-height: 1.66;
}
.sec-head__d a { border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.sec-head__d a:hover { color: var(--paper); border-color: var(--accent); }

/* Regla con la marca del ojo */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ash-2);
  margin-block: clamp(2.5rem, 6vw, 5rem);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule .mark { color: var(--accent); flex: none; opacity: .85; }

/* ── La marca: círculo + punto ───────────────────────────────── */
.mark { display: block; overflow: visible; }
.mark--accent { color: var(--accent); }

.divider {
  display: flex;
  justify-content: center;
  padding-block: clamp(2.2rem, 5vw, 4rem);
  color: var(--ash-2);
}

/* ── Estados vacíos / placeholders ───────────────────────────── */
.placeholder {
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: .45rem;
  margin-block: 1.1rem;
  background: rgba(237, 234, 228, .014);
}
.placeholder__tag {
  font-size: var(--t--2);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.placeholder__text {
  font-size: var(--t--1);
  color: var(--ash);
  line-height: 1.5;
}

.void {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(180px, 34vw, 340px);
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background:
    repeating-linear-gradient(-45deg, rgba(237,234,228,.014) 0 1px, transparent 1px 9px),
    var(--ink-2);
  color: var(--ash-2);
  overflow: hidden;
}
.void__inner {
  display: grid;
  justify-items: center;
  gap: .85rem;
  padding: 2rem;
  text-align: center;
}
.void__label {
  font-size: var(--t--2);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash-2);
  max-width: 34ch;
  line-height: 1.7;
}
.void .mark { opacity: .5; }

.empty {
  padding: clamp(2rem, 5vw, 3.4rem) 0;
  color: var(--ash);
  font-family: var(--serif);
  font-size: var(--t-1);
  font-style: italic;
  font-weight: 300;
}

/* ── Loader: el iris se abre ─────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.loader__iris {
  width: clamp(74px, 15vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--paper);
}
.loader__iris svg { width: 100%; height: 100%; overflow: visible; }
.loader__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: .35;
  transform-origin: 50% 50%;
  animation: iris-spin 2.4s linear infinite;
}
.loader__dot {
  fill: var(--accent);
  transform-origin: 50% 50%;
  animation: iris-pulse 1.5s var(--ease) infinite;
}
.loader__wm {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  font-size: var(--t--2);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ash-2);
  opacity: 0;
  animation: fade-up .9s .35s var(--ease-out) forwards;
}
@keyframes iris-spin { to { transform: rotate(360deg); } }
@keyframes iris-pulse {
  0%, 100% { transform: scale(.55); opacity: .5; }
  50%      { transform: scale(1);   opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Revelado del contenido: el iris se abre */
.js [data-reveal-root] {
  clip-path: circle(0% at 50% 42%);
  transition: clip-path 1.05s var(--ease-out);
}
.js [data-reveal-root].is-open { clip-path: circle(150% at 50% 42%); }

/* ── Cabecera ────────────────────────────────────────────────── */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.85rem, 2.2vw, 1.35rem) var(--gutter);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.top.is-stuck {
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--serif);
  font-size: var(--t-1);
  font-weight: 400;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand__mark { color: var(--accent); align-self: center; }
.brand__sub {
  font-family: var(--sans);
  font-size: var(--t--2);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Punto de foco que recorre la navegación */
.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); }
}
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); margin: 0; padding: 0; list-style: none; }
.nav__a {
  position: relative;
  display: block;
  padding-block: .35rem;
  font-size: var(--t--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-2);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav__a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__a:hover { color: var(--paper); }
.nav__a:hover::after, .nav__a[aria-current="page"]::after { transform: scaleX(1); }
.nav__a[aria-current="page"] { color: var(--paper); }

/* Hamburguesa */
.burger {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  color: var(--paper);
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger__box { width: 22px; height: 12px; position: relative; }
.burger__box i {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger__box i:nth-child(1) { top: 0; }
.burger__box i:nth-child(2) { top: 50%; }
.burger__box i:nth-child(3) { bottom: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.msheet {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: grid;
  grid-template-rows: 1fr;
  background: var(--ink);
  padding: clamp(5rem, 16vh, 8rem) var(--gutter) clamp(2rem, 6vh, 3rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.msheet.is-open { opacity: 1; visibility: visible; transform: none; }
.msheet__list { list-style: none; margin: 0; padding: 0; }
.msheet__list li { border-bottom: 1px solid var(--line); }
.msheet__a {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: clamp(.7rem, 2.4vw, 1.05rem) 0;
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 340;
  letter-spacing: -.01em;
  color: var(--paper);
}
.msheet__a span {
  font-family: var(--sans);
  font-size: var(--t--2);
  letter-spacing: .2em;
  color: var(--ash-2);
  font-variant-numeric: tabular-nums;
}
.msheet__a[aria-current="page"] { color: var(--accent); }
.msheet__foot { margin-top: clamp(1.6rem, 5vh, 3rem); display: grid; gap: 1.1rem; }

@media (min-width: 1080px) { .msheet { display: none; } }

/* ── Botones de tinta ────────────────────────────────────────── */
.btn {
  --bg: transparent;
  --fg: var(--paper);
  --bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem 1.4rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--ink); border-color: var(--paper); }
.btn:hover::before { transform: none; }
.btn--solid { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--solid:hover { color: var(--paper); }
.btn--solid::before { background: var(--accent); }
.btn--accent { --bd: var(--accent-line); --fg: var(--accent); }
.btn--accent::before { background: var(--accent); }
.btn--accent:hover { color: #fff; border-color: var(--accent); }
.btn--ghost { --bd: var(--line); color: var(--ash); }
.btn--sm { padding: .55rem 1rem; letter-spacing: .16em; }

/* Enlace con subrayado que se dibuja */
.ulink {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--paper);
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.ulink:hover::after { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; }

/* ── Progreso de lectura ─────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 1px;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.progress.is-on { opacity: 1; }
.progress__line { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.progress__dot {
  position: absolute;
  top: 50%; left: 0;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 85, 59, .22);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: clamp(7rem, 18vh, 11rem) clamp(2rem, 6vh, 4rem);
  overflow: clip;
}
.hero__bg {
  position: absolute;
  inset: -8% -2% -8% -2%;
  z-index: 0;
  opacity: .5;
}
.hero__bg img, .hero__bg .void {
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 72% 22%, transparent 0%, rgba(11,11,12,.5) 55%, var(--ink) 100%),
    linear-gradient(to top, var(--ink) 4%, rgba(11,11,12,.35) 42%, rgba(11,11,12,.72) 100%);
}
.hero__in {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.hero__eyebrow .line { flex: 1; max-width: 130px; height: 1px; background: var(--line-2); }

.hero__title {
  font-size: var(--t-5);
  font-weight: 320;
  line-height: .92;
  letter-spacing: -.032em;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.hero__title .it { color: var(--paper-2); }
.hero__title .em { color: var(--accent); font-style: normal; }

/* Cada línea se revela desde abajo */
.line { display: block; overflow: hidden; }
.line__in {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.is-lit .line__in { transform: none; }
.is-lit .line:nth-child(2) .line__in { transition-delay: .09s; }
.is-lit .line:nth-child(3) .line__in { transition-delay: .18s; }
.is-lit .line:nth-child(4) .line__in { transition-delay: .27s; }

.hero__foot {
  display: grid;
  gap: 1.6rem;
  padding-top: clamp(1.4rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .hero__foot { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
}
.hero__desc {
  font-family: var(--serif);
  font-size: var(--t-1);
  font-style: italic;
  font-weight: 300;
  color: var(--paper-2);
  max-width: 40ch;
  line-height: 1.45;
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ash);
  font-size: var(--t--2);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__cue i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.35); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }

/* ── Grid editorial asimétrico ───────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.4vw, 3.2rem) clamp(1rem, 2.2vw, 2.2rem);
}
.g-4  { grid-column: span 12; }
.g-5  { grid-column: span 12; }
.g-6  { grid-column: span 12; }
.g-7  { grid-column: span 12; }
.g-8  { grid-column: span 12; }
@media (min-width: 700px) {
  .g-4 { grid-column: span 6; }
  .g-5 { grid-column: span 6; }
  .g-6 { grid-column: span 12; }
  .g-7 { grid-column: span 12; }
  .g-8 { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .g-4 { grid-column: span 4; }
  .g-5 { grid-column: span 5; }
  .g-6 { grid-column: span 6; }
  .g-7 { grid-column: span 7; }
  .g-8 { grid-column: span 8; }
}
.g-start-2 { grid-column-start: auto; }
@media (min-width: 1000px) {
  .g-start-2 { grid-column-start: 3; }
  .g-start-6 { grid-column-start: 6; }
  .g-end-9   { grid-column-end: 10; }
}

/* ── Obra: tarjeta editorial (sin "cards") ───────────────────── */
.work { position: relative; display: block; }
.work__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 2px;
}
.work__media img, .work__media .void {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .8s var(--ease);
}
.work:hover .work__media img { transform: scale(1.035); }
.work__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,.86) 0%, rgba(11,11,12,.15) 46%, transparent 72%);
  opacity: .82;
  transition: opacity .7s var(--ease);
}
.work:hover .work__veil { opacity: .95; }

.work__ratio { aspect-ratio: 4 / 5; }
.work__ratio--wide { aspect-ratio: 16 / 10; }
.work__ratio--tall { aspect-ratio: 3 / 4; }
.work__ratio--sq { aspect-ratio: 1; }

.work__over {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  display: grid;
  gap: .4rem;
}
.work__cat { font-size: var(--t--2); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-2); }
.work__cat b { color: var(--accent); font-weight: 500; }
.work__t {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 360;
  line-height: 1.06;
  letter-spacing: -.015em;
}
.work:hover .work__t { color: #fff; }
.work__sub {
  font-size: var(--t--1);
  color: var(--paper-2);
  max-width: 42ch;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.work:hover .work__sub, .work:focus-visible .work__sub { opacity: .82; transform: none; }

/* Punto que sigue al cursor (el ojo) */
.pupil {
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(237, 234, 228, .5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .18s var(--ease-out);
  z-index: 3;
}
.pupil::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent);
}
.js-pupil:hover .pupil { opacity: 1; }

/* Lista de enlaces editorial */
.olist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.olist__i {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.olist__a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
  padding: clamp(.9rem, 2.2vw, 1.35rem) 0;
  transition: padding-inline var(--dur-fast) var(--ease);
}
.olist__a:hover { padding-inline: .8rem; }
.olist__n {
  font-size: var(--t--2);
  letter-spacing: .14em;
  color: var(--ash-2);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}
.olist__t {
  font-family: var(--serif);
  font-size: var(--t-1);
  font-weight: 350;
  line-height: 1.16;
}
.olist__t em { color: var(--ash); }
.olist__a:hover .olist__t { color: #fff; }
.olist__d { font-size: var(--t--2); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
@media (max-width: 620px) {
  .olist__a { grid-template-columns: auto minmax(0,1fr); }
  .olist__d { grid-column: 2; }
}

/* Banda horizontal (poesía) */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 78vw);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 1100px) {
  .hscroll { grid-auto-columns: minmax(320px, 30vw); }
}
.hscroll::-webkit-scrollbar { height: 1px; }
.hscroll::-webkit-scrollbar-track { background: var(--line); }
.hscroll::-webkit-scrollbar-thumb { background: var(--accent); }

/* ── Figuras y galerías ──────────────────────────────────────── */
.figure { margin-block: clamp(1.8rem, 4vw, 3.2rem); }
.figure img { width: 100%; border-radius: 2px; background: var(--ink-2); }
.figure--column { max-width: 44rem; margin-inline: auto; }
.figure--wide { width: 100%; }
.figure--full { width: 100vw; margin-inline: calc(50% - 50vw); }
.figure--full img { border-radius: 0; }
.figure__video { width: 100%; background: #000; }
.figure__cap {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin-top: .8rem;
  font-size: var(--t--1);
  color: var(--ash);
  line-height: 1.5;
}
.figure__credit { color: var(--ash-2); font-size: var(--t--2); letter-spacing: .1em; text-transform: uppercase; }

.gal { display: grid; gap: clamp(.6rem, 1.4vw, 1rem); margin-block: clamp(1.8rem, 4vw, 3.2rem); }
.gal--duo { grid-template-columns: repeat(2, 1fr); }
.gal--trio { grid-template-columns: repeat(2, 1fr); }
.gal--mosaico { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) {
  .gal--duo { grid-template-columns: repeat(2, 1fr); }
  .gal--trio { grid-template-columns: repeat(3, 1fr); }
  .gal--mosaico { grid-template-columns: repeat(12, 1fr); }
  .gal--mosaico > :nth-child(1) { grid-column: span 8; }
  .gal--mosaico > :nth-child(2) { grid-column: span 4; }
  .gal--mosaico > :nth-child(3) { grid-column: span 4; grid-column-start: 3; }
}
.gal__item { position: relative; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.gal__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gal__item:hover .gal__img { transform: scale(1.03); }
.gal__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem .8rem .7rem;
  font-size: var(--t--2);
  color: var(--paper-2);
  background: linear-gradient(to top, rgba(11,11,12,.9), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.gal__item:hover figcaption { opacity: 1; }

.embed { position: relative; margin-block: clamp(1.8rem, 4vw, 3rem); aspect-ratio: 16/9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 2px; }

.credits {
  font-size: var(--t--1);
  color: var(--ash-2);
  letter-spacing: .04em;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

/* ── Lector ──────────────────────────────────────────────────── */
.reader { max-width: var(--measure); margin-inline: auto; }
.reader__p {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  font-weight: 340;
  line-height: 1.72;
  letter-spacing: .002em;
  color: var(--paper);
  margin-block: 0 1.35em;
  hyphens: auto;
}
.reader__p--verse { line-height: 1.95; margin-bottom: 1.6em; }
.reader__p strong { font-weight: 600; }
.reader__p a { border-bottom: 1px solid var(--accent-line); color: var(--paper); }
.reader__p a:hover { border-color: var(--accent); }
.reader__p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  padding: .1em .35em;
  background: var(--ink-3);
  border-radius: 3px;
}
.reader__h2 { font-size: var(--t-2); margin-block: 2.4em .7em; }
.reader__h3 { font-size: var(--t-1); margin-block: 2em .6em; color: var(--paper-2); }
.reader__audio { margin-block: clamp(2rem, 5vw, 3.4rem); }

.quote {
  margin-block: clamp(2rem, 5vw, 3.4rem);
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--accent);
}
.quote__p {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-style: italic;
  font-weight: 300;
  line-height: 1.36;
  color: var(--paper);
  letter-spacing: -.01em;
}
.quote__by {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--t--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ── Reproductor de audio a medida ───────────────────────────── */
.player {
  --p: 0%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.9rem, 2vw, 1.4rem);
  align-items: center;
  padding: clamp(1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  transition: border-color .5s var(--ease);
}
.player:hover, .player.is-playing { border-color: var(--line-2); }

.player__btn {
  position: relative;
  width: 54px; height: 54px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.player__btn:hover { border-color: var(--accent); color: var(--accent); }
.player__btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out);
}
.player.is-playing .player__btn::before { opacity: 1; transform: none; }
.player__ico { width: 20px; height: 20px; fill: currentColor; }
.player__ico--pause { display: none; }
.player.is-playing .player__ico--play { display: none; }
.player.is-playing .player__ico--pause { display: block; }
.player.is-playing .player__btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.player.is-playing .player__btn:hover { color: #fff; }

.player__main { min-width: 0; display: grid; gap: .5rem; }
.player__label {
  font-family: var(--serif);
  font-size: var(--t-1);
  font-weight: 380;
  line-height: 1.2;
  letter-spacing: -.008em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player__by {
  font-size: var(--t--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
}
.player__wave {
  position: relative;
  height: 34px;
  margin-top: .35rem;
  cursor: pointer;
  touch-action: none;
}
.player__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.player__bars i {
  flex: 1;
  min-width: 1px;
  height: 22%;
  border-radius: 1px;
  background: var(--line-2);
  transform-origin: 50% 50%;
  transition: background .18s linear;
}
.player__bars i.on { background: var(--accent); }
.player__fill {
  position: absolute;
  left: 0; top: 50%;
  width: var(--p);
  height: 1px;
  background: var(--accent);
  transform: translateY(-.5px);
  pointer-events: none;
  opacity: 0;
}
.player__head {
  position: absolute;
  top: 50%; left: var(--p);
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 85, 59, .2);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out);
  pointer-events: none;
}
.player:hover .player__fill, .player:hover .player__head,
.player.is-playing .player__fill, .player.is-playing .player__head { opacity: 1; }
.player:hover .player__head, .player.is-playing .player__head { transform: none; }

.player__foot {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: var(--t--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--ash);
}
.player__time:last-of-type { margin-left: auto; }
.player__vol { width: 26px; height: 26px; color: var(--ash); flex: none; transition: color var(--dur-fast) }
.player__vol:hover { color: var(--paper); }
.player__vol svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.6; fill-opacity: .25; }
.player__vol .player__waves, .player__vol .player__cross { fill: none; }
.player__vol .player__cross { opacity: 0; }
.player.is-muted .player__waves { opacity: 0; }
.player.is-muted .player__cross { opacity: 1; }

/* Estado de carga de la onda */
.player.is-loading .player__bars i { animation: bar 1.1s var(--ease) infinite; }
@keyframes bar { 0%,100% { height: 18%; } 50% { height: 62%; } }

@media (max-width: 460px) {
  .player { grid-template-columns: auto minmax(0,1fr); gap: .85rem; padding: .95rem; }
  .player__btn { width: 46px; height: 46px; }
  .player__wave { height: 28px; }
}


/* ── Uva de apoyo ────────────────────────────────────────────── */
.support-band {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .support-band { grid-template-columns: minmax(0, 1.25fr) auto; align-items: center; }
}
.support-band__t {
  font-family: var(--serif);
  font-size: var(--t-3);
  font-weight: 320;
  line-height: 1.04;
  letter-spacing: -.02em;
}
.support-band__t em { color: var(--ash); }
.support-band__p { color: var(--ash); font-size: var(--t-0); max-width: 48ch; margin-top: 1rem; line-height: 1.66; }

/* Pie de obra: invitación, nunca presión */
.support-foot {
  margin-top: clamp(2.4rem, 6vw, 4rem);
  padding-top: clamp(1.6rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.support-foot__q {
  font-family: var(--serif);
  font-size: var(--t-1);
  font-style: italic;
  font-weight: 300;
  color: var(--paper-2);
  max-width: 40ch;
}

/* Botón corazón */
.heart {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--t--2);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
  padding: .5rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.heart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: fill .3s var(--ease), stroke .3s, transform .3s var(--ease-out); }
.heart:hover { color: var(--accent); }
.heart:hover svg { fill: var(--accent); stroke: var(--accent); transform: scale(1.12); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(.9rem, 4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88svh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 4.6vw, 2.6rem);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: linear-gradient(165deg, var(--ink-3), var(--ink));
  transform: translateY(14px) scale(.985);
  transition: transform .5s var(--ease-out);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.modal.is-open .modal__box { transform: none; }
.modal__x {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: var(--ash);
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--dur-fast);
}
.modal__x:hover { color: var(--paper); }
.modal__mark { color: var(--accent); margin-bottom: 1.1rem; }
.modal__t {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 340;
  line-height: 1.14;
  margin-bottom: .9rem;
}
.modal__p { color: var(--ash); font-size: var(--t-0); line-height: 1.68; margin-bottom: 1.6rem; }

.qr {
  display: grid;
  gap: .7rem;
  justify-items: center;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.qr img {
  width: min(212px, 62vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}
.qr__alt { font-size: var(--t--2); color: #6a6660; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.qr__ph {
  display: grid;
  place-items: center;
  width: min(212px, 62vw);
  aspect-ratio: 1;
  border: 1px dashed #b9b3aa;
  border-radius: 3px;
  color: #8a857d;
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.alias {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-2);
  margin-bottom: 1.3rem;
}
.alias__k { font-size: var(--t--2); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.alias__v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-0);
  letter-spacing: .04em;
  word-break: break-all;
  color: var(--paper);
}
.alias__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

.amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.amount {
  padding: .55rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: var(--t--1);
  font-variant-numeric: tabular-nums;
  color: var(--paper-2);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.amount:hover, .amount.is-sel { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.amount--other { border-style: dashed; }
.amount input {
  width: 5.5ch;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.amount input:focus { outline: none; }
.amount input::placeholder { color: var(--ash); }

/* ── Pie ─────────────────────────────────────────────────────── */
.foot {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.foot__grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .foot__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; } }
.foot__t {
  font-size: var(--t--2);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash-2);
  margin-bottom: 1rem;
}
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot__list a { color: var(--paper-2); font-size: var(--t--1); transition: color var(--dur-fast); }
.foot__list a:hover { color: var(--accent); }
.foot__brand {
  font-family: var(--serif);
  font-size: var(--t-2);
  letter-spacing: .06em;
  margin-bottom: .8rem;
}
.foot__line {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  font-size: var(--t--2);
  letter-spacing: .1em;
  color: var(--ash-2);
}
.foot__line a { border-bottom: 1px solid var(--line); }
.foot__line a:hover { color: var(--paper); border-color: var(--accent); }

/* ── Revelado al hacer scroll ────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .1s; }
.js [data-reveal="3"] { transition-delay: .2s; }
.js [data-reveal="4"] { transition-delay: .3s; }

/* ── Páginas internas ─────────────────────────────────────────── */
/* Reemplaza un bloque anterior que describía clases que ninguna vista
   ended usando (.phead, .art, .crumbs). Lo de abajo es lo que el
   código pide hoy: encabezado de sección, ficha de obra, paginación,
   buscador y la página de error. */

.wrap--reading { max-width: calc(var(--measure) + var(--gutter) * 2); }
.wrap--narrow  { max-width: calc(58ch + var(--gutter) * 2); }

/* El encabezado de página comparte forma con el de la portada pero
   entra desde arriba y respira menos: no es un hero, es un título. */
.sec-head--page {
  padding-top: clamp(7rem, 19vh, 10.5rem);
  padding-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.sec-head--page .sec-head__t {
  font-size: var(--t-4);
  font-weight: 320;
  line-height: .96;
  letter-spacing: -.025em;
  margin-top: .8rem;
}
.sec-head--page .sec-head__t em { color: var(--ash); }
.sec-head--page .sec-head__d {
  color: var(--ash);
  font-size: var(--t-1);
  line-height: 1.6;
  max-width: 46ch;
  margin-top: 1.3rem;
}

/* Grid de listados: mismohythm que el de la portada, con menos aire
   entre tarjetas porque acá van many and the eye scans. */
.grid--tight { gap: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1rem, 2vw, 1.8rem); }

/* La pieza principal de la portada ocupa la fila entera. */
.g-full { grid-column: 1 / -1; }

/* ── Filtros de una sección ───────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-bottom: clamp(2.4rem, 6vw, 3.8rem);
}
.filters .tag { transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.filters .tag:hover { color: var(--paper); border-color: var(--line-3); }
.filters .tag.is-on {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

/* ── Buscador ─────────────────────────────────────────────────── */
.search {
  display: grid;
  gap: .7rem;
  justify-items: start;
}
.search__label {
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash-2);
}
.search__input {
  width: 100%;
  font: inherit;
  font-size: var(--t-1);
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .85rem 1rem;
  transition: border-color var(--dur-fast) var(--ease);
}
.search__input::placeholder { color: var(--ash-2); }
.search__input:focus { outline: none; border-color: var(--accent-line); }

/* ── Paginación ───────────────────────────────────────────────── */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.pager__a {
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-2);
  transition: color var(--dur-fast) var(--ease);
}
.pager__a:hover { color: var(--accent); }
.pager__a.is-off { color: var(--ash-2); opacity: .5; pointer-events: none; }
.pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__n {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding-inline: .35rem;
  font-size: var(--t--1);
  font-variant-numeric: tabular-nums;
  color: var(--ash);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
a.pager__n:hover { color: var(--paper); border-color: var(--line-2); }
.pager__n.is-here { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.pager__gap { padding-inline: .15rem; color: var(--ash-2); }

/* ── Ficha de una obra ────────────────────────────────────────── */
.obra { padding-bottom: clamp(4rem, 10vw, 8rem); }
.obra__head {
  padding-top: clamp(7rem, 19vh, 10.5rem);
  padding-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.obra__t {
  font-size: var(--t-4);
  font-weight: 320;
  line-height: .98;
  letter-spacing: -.025em;
  margin-top: .9rem;
  text-wrap: balance;
}
.obra__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-1);
  color: var(--ash);
  line-height: 1.45;
  margin-top: 1.1rem;
  max-width: 44ch;
}
.obra__meta { margin-top: 1.4rem; }
.obra__portada { margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.obra__portada img {
  width: 100%;
  border-radius: 2px;
  background: var(--ink-2);
}
.obra__portada figcaption { margin-top: .8rem; }
.obra__cuerpo { padding-top: clamp(1rem, 3vw, 2rem); }
.obra__galeria { padding-top: clamp(3.5rem, 9vw, 6rem); }
.obra__galeria .rule { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.obra__galeria figure img {
  width: 100%;
  border-radius: 2px;
  background: var(--ink-2);
}
.obra__galeria figcaption { margin-top: .7rem; }
.obra__salir {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(3rem, 8vw, 5rem);
  font-size: var(--t--2);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── Portada de una serie ─────────────────────────────────────── */
.serie__portada { margin-bottom: clamp(2.4rem, 6vw, 4rem); }
.serie__portada img {
  width: 100%;
  border-radius: 2px;
  background: var(--ink-2);
}

/* ── Párrafo suelto y listas de enlaces ───────────────────────── */
.p {
  font-family: var(--serif);
  font-size: var(--t-0);
  line-height: 1.72;
  color: var(--paper-2);
  margin-bottom: 1.3em;
}
.p:last-child { margin-bottom: 0; }

/* Titular dentro del texto: más chico que el de página, porque no
   es el titular de la página, es un corte adentro. */
.h-sec {
  font-size: var(--t-2);
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}

.linklist { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .1rem; }
.linklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}
.linklist li:first-child { border-top: 1px solid var(--line); }

/* Aviso al pie de un texto: «esto todavía no está escrito». */
.note {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 2px;
  background: var(--ink-2);
}
.note p { margin: 0; }
.note .meta { display: flex; align-items: center; gap: .6rem; }
.note .mark { color: var(--accent); flex: none; opacity: .9; }

/* ── 404 ──────────────────────────────────────────────────────── */
.err {
  padding-top: clamp(9rem, 26vh, 15rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
}
.err__code {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 17vw, 11rem);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--ink-4);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.err__t {
  font-size: var(--t-3);
  font-weight: 330;
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.err code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t--1);
  color: var(--paper-2);
  word-break: break-all;
}

/* ── Bloques: verso y epígrafe de figura ──────────────────────── */
.reader__verse { margin-block: .4em; }
.reader__verse .reader__p--verse:last-child { margin-bottom: 0; }

.figure__cap-text { flex: 1 1 auto; min-width: 0; }
/* Sin esto la imagen deja el hueco de la línea base debajo. */
.figure__img { display: block; }

/* ── Accesibilidad ───────────────────────────────────────────── */
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -60px; left: var(--gutter);
  z-index: 10001;
  padding: .8rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: top .25s var(--ease);
}
.skip:focus { top: .6rem; }

/* Respeta la preferencia del sistema: la estética nunca manda sobre esto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal-root] { clip-path: none; }
  .line__in { transform: none !important; }
  .hero__cue i { animation: none; }
  body::after { display: none; }
}

/* ── Impresión ───────────────────────────────────────────────── */
/* ── Descargas ────────────────────────────────────────────────── */
.dl { padding-top: clamp(2rem, 5vw, 3.5rem); }
.dl__list {
  list-style: none;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.dl__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-2);
  transition: border-color .35s ease, background .35s ease;
}
.dl__item:hover { border-color: var(--line-2); }
.dl__info { min-width: 0; flex: 1 1 16rem; }
.dl__t {
  font-family: var(--serif);
  font-size: var(--t-1);
  font-weight: 400;
  color: var(--paper);
  margin: 0;
}
.dl__d { margin: .35rem 0 0; color: var(--paper-2); font-size: var(--t-0); }
.dl__meta { margin: .5rem 0 0; letter-spacing: .14em; text-transform: uppercase; }
.dl__note { margin: .5rem 0 0; color: var(--ash); font-size: var(--t--1); max-width: 46ch; }
.dl__acts { display: flex; flex-wrap: wrap; gap: .6rem; flex: 0 0 auto; }
.dl__acts .btn { white-space: nowrap; }
@media (max-width: 40rem) {
  .dl__acts { width: 100%; }
  .dl__acts .btn { flex: 1 1 auto; justify-content: center; }
}

@media print {
  body { background: #fff; color: #000; }
  body::after, .top, .msheet, .progress, .loader, .support-band, .support-foot, .foot { display: none !important; }
  .hero { min-height: 0; }
}
