/* ============================================================
   El Búho · René Avilés Fabila — Sistema de diseño
   Editorial, literario, herencia sepia modernizada
   ============================================================ */

:root {
  /* Paleta */
  --paper:      #f3ede1;
  --paper-2:    #eae0cf;
  --paper-card: #fbf7ef;
  --ink:        #1b1714;
  --ink-soft:   #4f463c;
  --ink-faint:  #8a7d6d;
  --accent:     #b04a1c;   /* terracota — ocre del búho */
  --accent-deep:#8a3713;
  --pine:       #2c4742;   /* verde tinta para contraste */
  --gold:       #c2913a;
  --line:       rgba(27,23,20,.14);
  --line-soft:  rgba(27,23,20,.08);
  --shadow:     0 1px 2px rgba(27,23,20,.06), 0 18px 40px -24px rgba(27,23,20,.45);
  --shadow-lg:  0 30px 80px -40px rgba(27,23,20,.6);

  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Textura de papel sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(176,74,28,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(44,71,66,.05), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 1; }

/* Tipografía */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; margin: 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand span { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; }
.nav__links a { color: var(--ink-soft); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--accent); }
/* Calificado con .nav__links para ganar especificidad a `.nav__links a`
   (que si no, imponía color ink-soft y la letra se perdía sobre el botón). */
.nav__links a.nav__cta {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: transform .2s, background .2s, color .2s;
}
.nav__links a.nav__cta:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============================ HERO ============================ */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(48px, 9vw, 118px);
  margin: 18px 0 0;
  letter-spacing: -.03em;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__dates { font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 18px; }
.hero__lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); max-width: 46ch; margin: 22px 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -14px var(--accent); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

.hero__portrait { position: relative; max-width: 300px; margin-inline: auto; }
.hero__portrait .frame {
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform: rotate(-1.4deg);
  background: var(--paper-card);
  padding: 12px 12px 52px;
}
.hero__portrait img { border-radius: 2px; aspect-ratio: 1; object-fit: cover; object-position: center; filter: saturate(.92) contrast(1.02); }
.hero__portrait .cap { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 12px; letter-spacing: .04em; }
.hero__owl {
  position: absolute; right: -26px; bottom: -26px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow); transform: rotate(4deg);
}
.hero__owl img { width: 58px; filter: brightness(0) invert(1); }

/* Marquesina de credenciales */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip__inner { display: flex; gap: 56px; align-items: center; justify-content: center; padding: 18px 0; flex-wrap: wrap; }
.strip span { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.strip b { font-family: var(--display); font-size: 22px; color: var(--accent); font-weight: 600; }

/* ============================ SECCIONES ============================ */
section { padding: clamp(56px, 9vw, 110px) 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 5vw, 56px); margin-top: 16px; }
.sec-head p { color: var(--ink-soft); font-size: 19px; margin-top: 16px; }

/* Bio */
.bio { background: var(--ink); color: var(--paper); }
.bio .eyebrow { color: var(--gold); }
.bio .eyebrow::before { background: var(--gold); }
.bio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.bio h2 { font-size: clamp(30px, 4.5vw, 52px); color: var(--paper); }
.bio p { color: #d9cfc0; font-size: 19px; }
.bio .pull { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: #fff; line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 22px; margin: 28px 0; }
.bio__photo { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); }
.bio__photo img { aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.2) sepia(.15); }

/* Obra — rejilla de libros */
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.book { transition: transform .3s; }
.book a { display: block; }
.book__cover {
  border-radius: 3px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 2/3; background: var(--paper-2); border: 1px solid var(--line-soft);
  transition: transform .3s, box-shadow .3s;
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book__cover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.book h3 { font-family: var(--serif); font-weight: 600; font-size: 15px; margin-top: 14px; line-height: 1.25; }
.book span { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }

/* Búho feature */
.buho { background: linear-gradient(160deg, var(--pine), #1d302c); color: var(--paper); position: relative; overflow: hidden; }
.buho::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.buho__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.buho .eyebrow { color: var(--gold); } .buho .eyebrow::before { background: var(--gold); }
.buho h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.buho p { color: #cfe0db; font-size: 19px; max-width: 46ch; }
.buho .btn--primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.buho .btn--primary:hover { background: #d8a850; }
.covers-fan { display: flex; }
.covers-fan a { flex: 1; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,.85); transition: transform .35s; }
.covers-fan a:nth-child(odd) { transform: translateY(14px) rotate(-2deg); }
.covers-fan a:not(:first-child) { margin-left: -22px; }
.covers-fan a:hover { transform: translateY(-8px) rotate(0); z-index: 3; }
.covers-fan img { aspect-ratio: 2/3; object-fit: cover; }

/* Trayectoria timeline */
.timeline { display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__year { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); }
.tl__body h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.tl__body p { color: var(--ink-soft); font-size: 16px; margin: 4px 0 0; }

/* Galería tira */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal a { border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; background: var(--paper-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; filter: saturate(.9); }
.gal a:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* ============================ FOOTER ============================ */
.foot { background: var(--ink); color: #cabfae; padding: clamp(56px, 8vw, 90px) 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot .brand b { color: #fff; } .foot .brand img { filter: brightness(0) invert(1); }
.foot h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.foot a { display: block; color: #cabfae; padding: 5px 0; font-size: 15px; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot p { font-size: 15px; margin: 6px 0; }
.foot__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--sans); font-size: 13px; color: #8a7d6d; }

/* ============================ ARCHIVO EL BÚHO ============================ */
.arch-hero { background: var(--ink); color: var(--paper); padding: clamp(56px, 9vw, 96px) 0 clamp(40px,5vw,56px); }
.arch-hero h1 { font-size: clamp(40px, 7vw, 84px); color: var(--paper); margin-top: 16px; }
.arch-hero h1 em { font-style: italic; color: var(--gold); }
.arch-hero p { color: #d9cfc0; font-size: 19px; max-width: 54ch; margin-top: 18px; }
.arch-tools { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 11px 18px;
}
.search input { background: none; border: 0; outline: 0; color: var(--paper); font-family: var(--sans); font-size: 15px; width: 100%; }
.search input::placeholder { color: #b3a796; }
.search svg { width: 18px; height: 18px; color: #b3a796; }
.years { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #d9cfc0;
  transition: .2s;
}
.chip:hover { border-color: var(--gold); color: #fff; }
.chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.arch-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 24px);
  padding: clamp(40px, 6vw, 72px) 0;
}
.issue { opacity: 0; transform: translateY(14px); animation: rise .5s forwards; }
.issue a { display: block; }
.issue__cover {
  border-radius: 3px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 2/3; background: var(--paper-2); border: 1px solid var(--line-soft);
  transition: transform .3s, box-shadow .3s; position: relative;
}
.issue__cover img { width: 100%; height: 100%; object-fit: cover; }
.issue__cover::after {
  content: "Leer →"; position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 88%, transparent); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .25s;
}
.issue:hover .issue__cover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.issue:hover .issue__cover::after { opacity: 1; }
.issue__meta { margin-top: 10px; }
.issue__meta b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.issue__meta span { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-faint); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero__grid, .bio__grid, .buho__grid, .foot__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 380px; margin: 0 auto; }
  .books { grid-template-columns: repeat(3, 1fr); }
  .arch-grid { grid-template-columns: repeat(4, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .bio__photo { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); padding: 20px var(--gut); gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav__toggle { display: block; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .covers-fan a:not(:first-child) { margin-left: -30px; }
  .tl { grid-template-columns: 70px 1fr; gap: 16px; }
}

/* ============================================================
   ANIMACIONES & REFINAMIENTO HIGH-END
   ============================================================ */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* entrada suave */
  --ease-in:  cubic-bezier(.7, 0, .84, 0);     /* salida */
  --spring:   cubic-bezier(.34, 1.56, .64, 1); /* rebote sutil */
}

/* Cifras tabulares en la franja de datos (evita saltos al contar) */
.strip b { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Entrada del HERO en carga (escalonada) --- */
.hero [data-anim] { opacity: 0; transform: translateY(22px); }
body.loaded .hero [data-anim] {
  animation: heroIn .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Marco del retrato: entra con un leve giro hacia su ángulo final */
.hero__portrait .frame { opacity: 0; transform: rotate(-1.4deg) translateY(30px) scale(.97); }
body.loaded .hero__portrait .frame { animation: frameIn 1.1s var(--ease-out) .35s forwards; }
@keyframes frameIn { to { opacity: 1; transform: rotate(-1.4deg) translateY(0) scale(1); } }
.hero__owl { opacity: 0; }
body.loaded .hero__owl { animation: owlIn .8s var(--spring) .9s forwards; }
@keyframes owlIn { from { transform: rotate(-40deg) scale(.4); } to { opacity: 1; transform: rotate(4deg) scale(1); } }

/* Parallax sutil del retrato/búho (controlado por JS con --py) */
.hero__portrait { will-change: transform; transform: translateY(calc(var(--py, 0) * 1px)); }

/* --- Nav: se compacta al hacer scroll --- */
.nav { transition: height .3s var(--ease-out), background .3s, box-shadow .3s, border-color .3s; }
.nav.scrolled { box-shadow: 0 10px 30px -22px rgba(27,23,20,.6); border-color: var(--line); }
.nav.scrolled .nav__inner { height: 60px; }
.nav__inner { transition: height .3s var(--ease-out); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--accent); transition: right .3s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { right: 0; }

/* --- Reveal escalonado (transition-delay lo pone el JS) --- */
.reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

/* Líneas de la cronología: cada una entra desde la izquierda */
.tl { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.tl.in { opacity: 1; transform: none; }
.tl__year { transition: color .3s, transform .3s var(--spring); display: inline-block; }
.tl:hover .tl__year { transform: scale(1.12); }

/* --- Micro-interacción de presión (botones y tarjetas) --- */
.btn { transition: transform .25s var(--spring), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn:active { transform: scale(.96); }
.book__cover, .issue__cover, .gal a img { will-change: transform; }
.book:active .book__cover, .issue:active .issue__cover { transform: translateY(-3px) scale(.98); }

/* Brillo que recorre la portada del libro al hover */
.book__cover { position: relative; }
.book__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out); mix-blend-mode: overlay;
}
.book:hover .book__cover::after { transform: translateX(120%); }

/* Abanico de portadas El Búho: leve flotación continua */
.covers-fan a { will-change: transform; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.covers-fan a:nth-child(2) { animation: floaty 6s ease-in-out infinite; }
.covers-fan a:nth-child(3) { animation: floaty 6s ease-in-out infinite .8s; }

/* Botón scroll-to-top */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--ink); color: var(--paper); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.8);
  transition: opacity .3s var(--ease-out), transform .3s var(--spring), background .25s;
  pointer-events: none;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent-deep); }
.totop svg { width: 20px; height: 20px; }

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold)); z-index: 70;
  transition: width .1s linear;
}

/* Línea que se dibuja bajo los títulos de sección al entrar */
.sec-head h2 { position: relative; }
.sec-head.in h2::after {
  content: ""; position: absolute; left: 0; bottom: -14px; height: 3px; width: 0;
  background: var(--accent); animation: drawLine .8s var(--ease-out) .25s forwards;
}
@keyframes drawLine { to { width: 64px; } }

/* ============================================================
   PÁGINAS INTERNAS (obra, trayectoria, galería, fundación)
   ============================================================ */
.page-hero { padding: clamp(48px, 8vw, 92px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 7vw, 82px); margin-top: 14px; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); max-width: 60ch; margin-top: 18px; }

/* Migas de pan */
.crumbs { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); letter-spacing: .03em; }
.crumbs a { color: var(--ink-faint); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* Chips de categoría en fondo claro */
.cats { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 8px; }
.cat {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; background: transparent;
  border: 1px solid var(--line); color: var(--ink-soft); transition: .2s;
}
.cat:hover { border-color: var(--ink); color: var(--ink); }
.cat.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat b { font-variant-numeric: tabular-nums; opacity: .55; margin-left: 6px; font-weight: 500; }

/* Subtítulo de grupo dentro del catálogo */
.group-title {
  font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 500;
  margin: clamp(36px, 5vw, 56px) 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.group-title span { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); letter-spacing: .04em; }

/* Premios / cronología extendida */
.awards .tl { grid-template-columns: 90px 1fr; }
.awards .tl__year { font-size: 20px; }
.awards .tl__body p { font-size: 15.5px; line-height: 1.6; }

/* Cita destacada en fondo claro */
.quote-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.quote-band blockquote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 4vw, 40px); line-height: 1.28; max-width: 24ch; margin: 0 auto; text-align: center;
}
.quote-band cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 24px; }

/* Galería con lightbox */
.photo-grid { columns: 4 220px; column-gap: 16px; }
.photo {
  break-inside: avoid; margin-bottom: 16px; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; position: relative; background: var(--paper-2);
  display: block; border: 1px solid var(--line-soft);
}
.photo img { width: 100%; display: block; transition: transform .5s var(--ease-out); }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-family: var(--sans);
  font-size: 12.5px; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.78));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.photo:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,16,13,.92);
  display: none; place-items: center; padding: 28px; backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #e7ddcd; font-family: var(--sans); font-size: 14px; text-align: center; margin-top: 16px; max-width: 60ch; }
.lightbox__x, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__x { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; } .lightbox__nav.next { right: 24px; }
.lightbox svg { width: 22px; height: 22px; }

/* Ficha de obra: portada + texto (como el sitio original) */
.bookficha {
  display: grid; grid-template-columns: minmax(150px, 270px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  background: var(--paper); color: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  width: min(940px, 92vw); max-height: 86vh;
  padding: clamp(22px, 3vw, 40px);
  text-align: left;
}
.bookficha__cover { align-self: start; }
.bookficha__cover img {
  width: 100%; max-width: none; max-height: none; height: auto;
  border-radius: 4px; box-shadow: var(--shadow); display: block;
}
.bookficha__text {
  overflow-y: auto; max-height: calc(86vh - 2 * clamp(22px, 3vw, 40px));
  padding-right: 8px;
}
.bookficha__text h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(23px, 3vw, 32px); line-height: 1.08; color: var(--ink);
}
.bookficha__meta {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .05em;
  color: var(--ink-faint); text-transform: uppercase; margin: 11px 0 20px;
}
.bookficha__desc {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.72; color: var(--ink-soft);
}
.bookficha__rel { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.bookficha__rel h4 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 13px;
}
.bookficha__rel ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.bookficha__rel li {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.4; color: var(--ink-soft);
  padding-left: 18px; position: relative;
}
.bookficha__rel li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.bookficha__empty { font-family: var(--serif); font-style: italic; color: var(--ink-faint); }

/* Videos y entrevistas (videos.html) */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); margin-bottom: clamp(36px, 5vw, 56px); }
.video { cursor: pointer; }
.video__thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #000 center/cover no-repeat; box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.video:hover .video__thumb { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video__thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,.05), rgba(20,16,13,.35));
  transition: opacity .3s; pointer-events: none;
}
.video__thumb.is-playing::after { display: none; }
.video__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(176,74,28,.92); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .25s var(--spring), background .2s;
}
.video:hover .video__play { transform: scale(1.12); background: var(--accent); }
.video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video h3 { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 14px; color: var(--ink); }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }

/* Artículos (articulos.html) */
.artlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: clamp(36px, 5vw, 52px); }
.art {
  display: flex; flex-direction: column; gap: 12px; min-height: 150px;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px 24px 22px; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.art:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.art h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); }
.art__go { margin-top: auto; font-family: var(--sans); font-size: 13px; letter-spacing: .03em; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.art__go svg { width: 15px; height: 15px; transition: transform .25s; }
.art:hover .art__go svg { transform: translateX(4px); }
.art__tag { align-self: flex-start; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #fff; background: var(--pine); padding: 3px 9px; border-radius: 4px; }

/* Lector de artículo (modal de texto) */
.reader {
  background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow-lg);
  width: min(760px, 92vw); max-height: 88vh; overflow-y: auto;
  padding: clamp(28px, 4vw, 52px); text-align: left;
}
.reader h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.reader__meta { font-family: var(--sans); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; }
.reader__body { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.reader__body p { margin-bottom: 1.1em; }
@media (max-width: 560px) { .artlist { grid-template-columns: 1fr; } }

/* ENTREVISTAS (entrevistas.html) — reutiliza .artlist y .art__go */
.ent {
  display: flex; flex-direction: column; gap: 10px; min-height: 150px;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px 24px 22px; cursor: pointer; color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.ent:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.ent__by { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ent h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--ink); }
/* En el lector: preguntas (negrita/cursiva) y subtítulos resaltan sobre las respuestas */
.reader__body strong { color: var(--ink); font-weight: 600; }
.reader__body em { font-style: italic; }
.reader__body p strong em, .reader__body p em strong { display: inline; color: var(--ink); }

/* LONG READ — René en la intimidad (rene-en-la-intimidad.html) */
.longread { max-width: 720px; margin: 0 auto; }
.longread .lead {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.7; color: var(--ink); margin: 0 0 2em; padding-bottom: 1.6em;
  border-bottom: 1px solid var(--line);
}
.longread p { font-family: var(--serif); font-size: 18px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 1.3em; }
.longread p em { font-style: italic; }
.longread .epigraph {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(26px, 5vw, 40px); line-height: 1.15; color: var(--accent);
  text-align: center; margin: 1.4em 0 0; padding: 0; border: 0;
}
.longread .credit {
  margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 14px; color: var(--ink-faint);
}

/* TRADUCCIONES (traducciones.html) */
.tradlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.trad {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.trad:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.trad__cover { flex: 0 0 92px; }
.trad__cover img { width: 92px; height: auto; display: block; border-radius: 6px; box-shadow: var(--shadow); }
.trad__body { min-width: 0; }
.trad__lang {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--pine);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.trad h3 { font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.25; margin: 0 0 8px; }
.trad__y { color: var(--ink-faint); font-weight: 400; }
.trad p { font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.trad p i { font-style: italic; }
@media (max-width: 560px) { .tradlist { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .bookficha {
    grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto;
    width: 94vw; gap: 18px;
  }
  .bookficha__cover img { max-width: 190px; margin: 0 auto; }
  .bookficha__text { overflow: visible; max-height: none; padding-right: 0; }
}

/* Fundación: tarjetas de info / contacto */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 26px; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; margin-bottom: 18px;
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); font-size: 15.5px; margin: 2px 0; }
.info-card a { color: var(--accent); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 20px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }

.bio-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } .photo-grid { columns: 2 160px; } .bio-split { grid-template-columns: 1fr; } .bio-split .bio__photo { max-width: 420px; } }
@media (max-width: 560px) { .photo-grid { columns: 1; } }

/* --- Respeto a usuarios con movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal, .tl, .hero [data-anim], .hero__portrait .frame, .hero__owl { opacity: 1 !important; transform: none !important; }
  .hero__portrait { transform: none !important; }
}
