/* ==========================================================================
   Margarita Birkide Rolan — hoja de estilos
   Estética editorial en lila (color del 25N), tinta violeta y oro viejo.
   ========================================================================== */

@import url("fonts.css");

:root {
  /* Papel lila y tinta violeta */
  --paper: #f8f3f9;
  --paper-2: #f0e7f4;
  --paper-3: #e4d5ec;
  --sand: #cdb5dc;
  --caramel: #a27dbf;   /* lila medio */
  --sepia: #775a91;     /* lila profundo para textos secundarios */
  --umber: #4e3466;
  --ink: #2a1d36;
  --ink-soft: #46375a;
  --night: #241830;
  /* Acento: violeta del 25N */
  --plum: #7a4aa6;
  --gold: #c9a45c;
  --daisy: #f4c84a;

  --rule: rgba(78, 52, 102, .2);
  --shadow: 0 30px 60px -30px rgba(42, 29, 54, .5);

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-text: "EB Garamond", Garamond, Georgia, serif;
  --f-label: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1.08rem, .35vw + 1rem, 1.22rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Grano de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .38 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .3s var(--ease); }
a:hover { color: var(--umber); }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 1px solid var(--plum); outline-offset: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--sepia); }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.center { text-align: center; margin-inline: auto; }

/* Etiquetas y adornos */
.label {
  display: inline-flex; align-items: center; gap: .9em;
  font-family: var(--f-label);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 1.6rem;
}
.label::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; opacity: .6; }
.center .label::after, .label.is-centered::after { content: ""; width: 2.6rem; height: 1px; background: currentColor; opacity: .6; }
.numeral { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--caramel); }
.lead { font-size: 1.22em; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--sepia); }
.fleuron { display: block; text-align: center; color: var(--caramel); font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .6em; margin: 2.5rem 0; }
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* Capitular */
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 4.6em; line-height: .78;
  padding: .08em .12em 0 0;
  color: var(--plum);
}

/* ---------- Botones ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--f-label); font-size: .76rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  border: 1px solid var(--b);
  color: var(--b); background: transparent;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--plum); }
.btn--solid:hover { border-color: var(--plum); }
.btn--light { --b: var(--paper); }
.btn--light:hover { color: var(--ink); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow {
  font-family: var(--f-label); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--caramel); padding-bottom: .35em;
}
.link-arrow:hover { color: var(--plum); border-color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: 2.2rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: padding .5s var(--ease);
  padding: 1.5rem 0;
}
/* El fondo va en una capa aparte: un backdrop-filter en la cabecera encerraría el menú móvil (position: fixed) dentro de ella */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(248, 243, 249, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
  opacity: 0; transition: opacity .5s var(--ease);
}
.site-header.is-scrolled { padding: .8rem 0; }
.site-header.is-scrolled::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-style: italic; font-size: 1.75rem; font-weight: 400; }
.brand__sub { font-family: var(--f-label); font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; color: var(--sepia); margin-top: .35rem; padding-left: .15rem; }
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-family: var(--f-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; position: relative; padding: .4em 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--plum);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--plum); }
.menu-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
  font-family: var(--f-label); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  align-items: center; gap: .7rem;
}
.menu-toggle__lines { width: 26px; height: 9px; position: relative; display: inline-block; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 8px; }
.menu-open .menu-toggle__lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; z-index: 60; }
  .brand { position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav a { font-family: var(--f-display); font-size: 2rem; letter-spacing: 0; text-transform: none; font-style: italic; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Portada (inicio) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(162, 125, 191, .18), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { display: block; }
.hero h1 .indent { padding-left: 1.2em; font-style: italic; color: var(--sepia); }
.verses { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.5; color: var(--ink-soft); margin: 2rem 0 0; border-left: 1px solid var(--caramel); padding-left: 1.4rem; }
.verses span { display: block; }
.hero__portrait { position: relative; justify-self: end; width: min(100%, 520px); }
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 0 0;
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.08); animation: slowzoom 18s var(--ease) forwards; }
.arch--fallback::after {
  content: "Margarita Birkide Rolan"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: var(--sepia);
}
.hero__portrait::before {
  content: ""; position: absolute; inset: -1.2rem -1.2rem 1.2rem 1.2rem;
  border: 1px solid var(--caramel); border-radius: 999px 999px 0 0; opacity: .55; z-index: -1;
}
.hero__caption {
  position: absolute; left: -2.5rem; bottom: 2.5rem;
  background: var(--paper); padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
  font-family: var(--f-label); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--sepia);
}
.hero__caption strong { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: .2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  font-family: var(--f-label); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sepia);
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-decoration: none;
}
.scroll-cue::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--sepia), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes slowzoom { to { transform: scale(1); } }

@media (max-width: 860px) {
  .hero { padding-top: 7rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: center; width: min(88%, 420px); order: -1; }
  .hero__caption { left: -1rem; bottom: 1.5rem; }
  .scroll-cue { display: none; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-head {
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 40rem; margin-top: 1.5rem; }
.page-head__mark {
  position: absolute; right: -2rem; bottom: -4.5rem;
  font-family: var(--f-display); font-style: italic; font-size: clamp(9rem, 22vw, 20rem); line-height: 1;
  color: var(--sand); opacity: .45; pointer-events: none; user-select: none;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--night); color: #eadff1; }
.section--dark h2, .section--dark h3 { color: #faf5fb; }
.section--dark h2 em, .section--dark h3 em { color: var(--gold); }
.section--dark .label { color: var(--gold); }
.section--dark .lead, .section--dark p { color: #d6c6e2; }
.section--dark a { color: var(--gold); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }

/* ---------- Libros ---------- */
.book {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(70% 60% at 50% 45%, var(--paper), var(--paper-3));
}
.book img { max-height: 520px; width: auto; filter: drop-shadow(0 30px 30px rgba(42, 29, 54, .35)); transition: transform .8s var(--ease); }
.book:hover img { transform: translateY(-6px) rotate(-.6deg); }
.book--small { padding: 2rem; aspect-ratio: 3 / 4; }
.book--small img { max-height: 260px; }
.spec { list-style: none; padding: 0; margin: 1.8rem 0 0; border-top: 1px solid var(--rule); }
.spec li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.spec span:first-child { font-family: var(--f-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); padding-top: .25rem; }
.price { font-family: var(--f-display); font-size: 2rem; color: var(--plum); }

/* Portada plana con aspecto de libro físico: lomo, luz y sombra */
.cover {
  position: relative; display: block;
  width: min(100%, var(--cw, 300px));
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow:
    1px 1px 0 rgba(255,255,255,.25) inset,
    18px 26px 40px -14px rgba(42, 29, 54, .55),
    4px 6px 10px -4px rgba(42, 29, 54, .35);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none !important; }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.18) 1.2%, rgba(0,0,0,.12) 2.6%, transparent 6%),
    linear-gradient(115deg, rgba(255,255,255,.14), transparent 40%);
}
.book:hover .cover, .shelf__item:hover .cover { transform: perspective(1200px) rotateY(0) translateY(-6px); }
.book:hover .cover img { transform: none; }
.cover--lg { --cw: 360px; }
.cover--sm { --cw: 220px; }
.cover--land { --cw: 440px; aspect-ratio: 1000 / 727; border-radius: 3px; transform: perspective(1400px) rotateY(-4deg); }

.badge {
  display: block; width: fit-content; margin-bottom: 1.2rem;
  font-family: var(--f-label); font-size: .64rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--paper); background: var(--plum); padding: .45em .9em;
}
.synopsis { columns: 2 18rem; column-gap: 2.5rem; }
.synopsis p { break-inside: avoid; }
button.link-arrow { background: none; border-width: 0 0 1px; border-style: solid; cursor: pointer; padding: 0 0 .35em; }
.buy { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: 2rem; }
.store { font-family: var(--f-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); }

/* Portada tipográfica para títulos sin imagen */
.typecover {
  width: min(100%, 230px); aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #3b2850, #1f1529);
  color: #f3eaf6; padding: 1.6rem 1.3rem;
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  box-shadow: 14px 22px 34px -12px rgba(42, 29, 54, .55), inset 6px 0 0 rgba(0,0,0,.25);
  position: relative;
}
.typecover::before { content: ""; position: absolute; inset: .7rem; border: 1px solid rgba(162, 125, 191, .55); pointer-events: none; }
.typecover__author { font-family: var(--f-label); font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.typecover__title { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.05; font-style: italic; }
.typecover__kind { font-family: var(--f-label); font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
.typecover--plum { background: linear-gradient(160deg, #7a4aa6, #3d2459); }
.typecover--sepia { background: linear-gradient(160deg, #9a78b4, #4e3466); }

.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.shelf__item { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.shelf__item .book { aspect-ratio: 4 / 5; padding: 1.8rem; }
.shelf__item .book img { max-height: 100%; }
.shelf__item h3 { font-size: 1.4rem; margin: 1.2rem 0 .2rem; transition: color .3s; }
.shelf__item:hover h3 { color: var(--plum); }
.shelf__item small { font-family: var(--f-label); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); }

.work { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.work:first-of-type { border-top: 0; }
.work .split { align-items: start; }
.work__visual { position: sticky; top: 7rem; }

/* ---------- Citas ---------- */
.pull {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.25;
  color: var(--ink); margin: 0; position: relative;
}
.pull::before { content: "\201C"; position: absolute; left: -.55em; top: -.25em; font-size: 3em; color: var(--sand); line-height: 1; }
.section--dark .pull { color: #f6eefa; }
.section--dark .pull::before { color: rgba(162, 125, 191, .4); }

.voices { position: relative; }
.voice { display: none; }
.voice.is-active { display: block; animation: fadeUp 1s var(--ease); }
.voice blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.45; font-weight: 300; font-style: italic; }
.voice figcaption { margin-top: 2rem; font-family: var(--f-label); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.voice figcaption span { display: block; color: #b9a4c9; margin-top: .4rem; letter-spacing: .15em; }
.voices__nav { display: flex; gap: .8rem; margin-top: 2.6rem; justify-content: center; }
.voices__nav button { width: 2.4rem; height: 1px; padding: .6rem 0; border: 0; background: none; cursor: pointer; position: relative; }
.voices__nav button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(231, 218, 240, .35); transition: background .4s; }
.voices__nav button[aria-current="true"]::after { background: var(--gold); height: 2px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Índice de vídeo-poemas ---------- */
.chapter { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.chapter:first-child { border-top: 0; }
.chapter__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.chapter__head p { font-size: 1rem; color: var(--ink-soft); }
.chapter__head .numeral { display: block; font-size: 3rem; line-height: 1; margin-bottom: .8rem; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } }

.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc button, .toc a.toc__row {
  width: 100%; display: flex; align-items: baseline; gap: 1rem;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 1.05rem 0; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none;
  font: inherit;
}
.toc button::before, .toc a.toc__row::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-label); font-size: .7rem; letter-spacing: .15em; color: var(--caramel); min-width: 2rem;
}
.toc__title { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; transition: color .3s var(--ease), transform .45s var(--ease); }
.toc__dots { flex: 1; border-bottom: 1px dotted var(--sand); transform: translateY(-.35em); min-width: 1rem; }
.toc__play {
  font-family: var(--f-label); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sepia);
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
}
.toc__play::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.toc button:hover .toc__title, .toc a.toc__row:hover .toc__title { color: var(--plum); transform: translateX(6px); }
.toc button:hover .toc__play { color: var(--plum); }
.toc__more { margin-top: 1.6rem; }
.section--dark .toc button, .section--dark .toc a.toc__row { color: #f3eaf7; border-color: rgba(231, 218, 240, .15); }
.section--dark .toc__dots { border-color: rgba(231, 218, 240, .2); }
.section--dark .toc__play { color: var(--gold); }

/* ---------- Reconocimientos ---------- */
.honours { list-style: none; padding: 0; margin: 0; counter-reset: h; }
.honours li { counter-increment: h; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.honours li::before { content: counter(h, upper-roman); font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--caramel); }
.honours h3 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.honours p { margin: 0; font-size: 1rem; color: var(--sepia); }

/* ---------- Cronología ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--caramel); }
.timeline li { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--plum); }
.timeline time { font-family: var(--f-label); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sepia); }
.timeline h3 { font-size: 1.5rem; margin: .3rem 0 .3rem; }
.timeline p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Texto largo (legales, sinopsis) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2.4em; }
.prose h3 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose--small { font-size: 1.02rem; }

/* ---------- Banda cita ---------- */
.band { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; background: var(--paper-3); position: relative; overflow: hidden; }
.band .pull { max-width: 26ch; margin-inline: auto; }
.band .pull::before { left: 50%; transform: translateX(-50%); top: -.6em; }
.band cite { display: block; margin-top: 1.8rem; font-family: var(--f-label); font-style: normal; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sepia); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-label); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sepia); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--sand); padding: .6rem 0; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { margin-top: .35rem; accent-color: var(--plum); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.3rem; border-left: 2px solid var(--plum); background: var(--paper-2); font-size: 1rem; }
.notice[hidden] { display: none; }

.contact-lines { list-style: none; padding: 0; margin: 2rem 0; }
.contact-lines li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contact-lines span { display: block; font-family: var(--f-label); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sepia); }
.contact-lines a { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.contact-lines a:hover { color: var(--plum); }

/* ---------- Redes ---------- */
.social { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid currentColor; border-radius: 50%; color: inherit; opacity: .75; transition: opacity .3s, color .3s, background .3s; }
.social a:hover { opacity: 1; color: var(--paper); background: var(--plum); border-color: var(--plum); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: #cbb8da; padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: 1rem; }
.site-footer a { color: #eadff1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(231, 218, 240, .12); }
.footer__quote { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25; color: #f3eaf7; margin: 0 0 1.4rem; }
.footer__title { font-family: var(--f-label); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-family: var(--f-label); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #9884ab; }
.footer__bottom nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-footer .social { color: #eadff1; margin-top: 1.4rem; }
.help-line { margin-top: 1.4rem; font-size: .95rem; color: #b9a4c9; }
.help-line strong { color: #f3eaf7; font-weight: 500; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Modal de vídeo ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(20, 15, 12, .92); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__frame { width: min(100%, 1100px); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: scale(.97); transition: transform .6s var(--ease); }
.modal.is-open .modal__frame { transform: none; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__title { color: #eadff1; font-family: var(--f-display); font-style: italic; font-size: 1.4rem; margin-top: 1rem; text-align: center; }
.modal__close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 1px solid rgba(231,218,240,.4); color: #eadff1; font-family: var(--f-label); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; padding: .7em 1.1em; cursor: pointer; }
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal__note { color: #9884ab; font-family: var(--f-label); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; margin-top: .6rem; text-align: center; }

/* ---------- Animación de entrada ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.verses span { opacity: 0; transform: translateY(8px); animation: verse 1.2s var(--ease) forwards; }
.verses span:nth-child(1) { animation-delay: .5s; }
.verses span:nth-child(2) { animation-delay: 1.1s; }
.verses span:nth-child(3) { animation-delay: 1.7s; }
.verses span:nth-child(4) { animation-delay: 2.3s; }
@keyframes verse { to { opacity: 1; transform: none; } }
.hero h1 span { opacity: 0; animation: verse 1.3s var(--ease) forwards; }
.hero h1 span:nth-child(2) { animation-delay: .2s; }

/* Con «reducir movimiento» se quitan los movimientos continuos y los desplazamientos,
   pero se conservan las apariciones breves (la margarita que florece, el trazo de tinta). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arch img, .scroll-cue::after, .daisy, .ornament .icon, .arch__placeholder .icon, svg.page-head__mark, .vcard__play::before { animation: none !important; }
  [data-reveal] { transform: none; transition: opacity .8s var(--ease); }
}
@media (scripting: none) { [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   Iconografía, margarita y animaciones
   ========================================================================== */
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; color: inherit; }
.label .icon { width: 1.5em; height: 1.5em; color: var(--plum); }
.label:has(.icon)::before { display: none; }
.section--dark .label .icon { color: var(--gold); }

/* Trazo de tinta bajo el nombre */
.ink-stroke { display: block; width: min(420px, 85%); height: auto; margin: -.6rem 0 1.4rem; overflow: visible; color: var(--plum); }
.ink-stroke path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; animation: ink 2.4s var(--ease) 1s forwards; }
.ink-stroke use { opacity: 0; animation: quill 1s var(--ease) 2.9s forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes quill { from { opacity: 0; transform: translate(-30px, 6px); } to { opacity: 1; transform: none; } }

/* Pétalos que caen */
.hero { isolation: isolate; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero .wrap { position: relative; z-index: 2; }
.hero {
  background:
    radial-gradient(70% 60% at 85% 25%, rgba(162, 125, 191, .28), transparent 65%),
    radial-gradient(50% 40% at 10% 90%, rgba(201, 164, 92, .12), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* Arco del retrato */
.arch { background: linear-gradient(170deg, var(--paper-3), var(--sand)); }
.arch img { position: relative; z-index: 1; }
.arch__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--plum); }
.arch__placeholder .icon { width: 7rem; height: 7rem; opacity: .75; animation: spin 40s linear infinite; }
.arch__placeholder span { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; color: var(--umber); }
.arch--fallback::after { content: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__caption { z-index: 4; display: block; }
.hero__caption .icon { color: var(--plum); width: 1.4em; height: 1.4em; margin-right: .3em; }

/* Margarita ilustrada */
.daisy {
  position: absolute; z-index: 3;
  width: clamp(120px, 15vw, 190px); height: auto;
  right: -3.2rem; bottom: -2.2rem;
  transform-origin: 50% 100%;
  animation: sway 7s ease-in-out 3s infinite alternate;
  filter: drop-shadow(0 14px 18px rgba(42, 29, 54, .25));
  overflow: visible;
}
.daisy__petals path {
  fill: url(#daisyPetal); stroke: var(--caramel); stroke-width: 1.3;
  stroke-dasharray: 200; stroke-dashoffset: 200; fill-opacity: 0;
  animation: petal 1.4s var(--ease) forwards;
  animation-delay: calc(.5s + var(--i) * .09s);
}
.daisy__line { fill: none; stroke: #7e9b5c; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: ink 1.6s var(--ease) .2s forwards; }
.daisy__leaf { fill: rgba(126, 155, 92, .28); stroke-width: 1.4; }
.daisy__heart, .daisy__seeds { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: bloom .9s cubic-bezier(.34, 1.56, .64, 1) 2.1s forwards; }
.daisy__seeds { animation-delay: 2.3s; }
@keyframes petal { 65% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes bloom { to { transform: scale(1); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (max-width: 860px) { .daisy { right: -1rem; bottom: -1.5rem; width: 110px; } }

/* Pilares */
.pillars { position: relative; z-index: 4; margin-top: -3.5rem; padding-bottom: 2rem; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar {
  display: block; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(162, 125, 191, .25);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: 0 20px 40px -28px rgba(42, 29, 54, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(122, 74, 166, .55); border-color: var(--caramel); color: var(--ink); }
.pillar__icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: linear-gradient(145deg, var(--paper-3), #fff); color: var(--plum);
  margin-bottom: 1.2rem; transition: background .5s, color .5s, transform .6s var(--ease);
}
.pillar__icon .icon { width: 1.6rem; height: 1.6rem; }
.pillar:hover .pillar__icon { background: var(--plum); color: #fff; transform: rotate(-8deg) scale(1.05); }
.pillar h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.pillar p { font-size: .98rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr 1fr; } .pillars { margin-top: 0; padding-top: 3rem; } }
@media (max-width: 480px) { .pillars__grid { grid-template-columns: 1fr; } }

/* Ornamento */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--plum); margin-bottom: 1.8rem; }
.ornament::before, .ornament::after { content: ""; width: 4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--caramel)); }
.ornament::after { transform: scaleX(-1); }
.ornament .icon { width: 2.2rem; height: 2.2rem; animation: spin 30s linear infinite; }
.band:has(.ornament) .pull::before { display: none; }

/* Cabeceras interiores: margarita de fondo */
svg.page-head__mark { width: clamp(14rem, 30vw, 24rem); height: clamp(14rem, 30vw, 24rem); right: -3rem; bottom: -6rem; color: var(--sand); opacity: .55; animation: spin 90s linear infinite; }
.page-head { background: radial-gradient(60% 80% at 90% 20%, rgba(162, 125, 191, .22), transparent 70%), linear-gradient(180deg, var(--paper-2), var(--paper)); }

/* Contacto, capítulos, pie */
.contact-lines li { display: flex; gap: 1.1rem; align-items: center; }
.contact-lines li > .icon { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%; background: var(--paper-3); color: var(--plum); }
.chapter__icon { display: block; width: 2.4rem; height: 2.4rem; color: var(--plum); margin-bottom: .6rem; }
.footer__daisy { width: 2.4rem; height: 2.4rem; color: var(--caramel); margin-bottom: 1rem; }
.footer__list .icon { color: var(--caramel); margin-right: .35rem; }
.help-line { display: flex; gap: .7rem; align-items: flex-start; }
.help-line .icon { color: var(--caramel); width: 1.6em; height: 1.6em; margin-top: .1em; }

.btn--solid { background: linear-gradient(135deg, var(--umber), var(--ink)); border-color: var(--ink); }

/* ---------- Más cuerpo en la tipografía ---------- */
h1 { font-weight: 500; }
h2 { font-weight: 500; }
h3 { font-weight: 600; }
.label { font-weight: 500; }
.toc__title { font-weight: 600; font-size: clamp(1.4rem, 2.1vw, 1.75rem); }
.toc__play { font-weight: 500; }
.chapter__head h2 { font-weight: 600; }
.chapter__head p { font-size: 1.05rem; }
.lead { font-weight: 500; }

/* ---------- Tarjetas de vídeo ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.4rem, 2.5vw, 2.2rem); }
.vgrid--feature { grid-template-columns: repeat(6, 1fr); }
.vgrid--feature .vcard { grid-column: span 2; }
.vgrid--feature .vcard:nth-child(-n+2) { grid-column: span 3; }
.vgrid--feature .vcard:nth-child(-n+2) .vcard__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
@media (max-width: 860px) {
  .vgrid--feature { grid-template-columns: 1fr 1fr; }
  .vgrid--feature .vcard, .vgrid--feature .vcard:nth-child(-n+2) { grid-column: span 1; }
  .vgrid--feature .vcard:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .vgrid--feature { grid-template-columns: 1fr; } }

.vcard { display: flex; flex-direction: column; gap: 1rem; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.vcard__media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 4px; background: var(--night);
  box-shadow: 0 24px 44px -26px rgba(42, 29, 54, .6);
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.vcard__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(36, 24, 48, .05) 40%, rgba(36, 24, 48, .55)), linear-gradient(135deg, rgba(122, 74, 166, .22), transparent 60%);
  transition: opacity .6s var(--ease);
}
.vcard__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(248, 243, 249, .9); color: var(--plum);
  box-shadow: 0 10px 30px rgba(36, 24, 48, .35);
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.vcard__play .icon { width: 2.6rem; height: 2.6rem; }
.vcard__play::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(248, 243, 249, .7);
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.vcard__badge {
  position: absolute; left: .9rem; bottom: .8rem; z-index: 2;
  font-family: var(--f-label); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; display: inline-flex; align-items: center; gap: .5em;
}
.vcard__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--daisy); box-shadow: 0 0 0 3px rgba(244, 200, 74, .25); }
.vcard__title { font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; transition: color .3s; }
.vcard:hover .vcard__media img, .vcard:focus-visible .vcard__media img { transform: scale(1.06); filter: saturate(1.05); }
.vcard:hover .vcard__play, .vcard:focus-visible .vcard__play { transform: scale(1.1); background: var(--plum); color: #fff; }
.vcard:hover .vcard__title { color: var(--plum); }
.section--dark .vcard { color: #f3eaf7; }
.section--dark .vcard:hover .vcard__title { color: var(--gold); }
.toc--after { margin-top: 2rem; }

/* ---------- Móvil: desplazamiento fluido ---------- */
@media (max-width: 860px) {
  /* La portada «pegajosa» solo tiene sentido con dos columnas */
  .work__visual { position: static; top: auto; }
  .work .split { gap: 2rem; }
  .book { padding: 1.6rem; }
  .cover--lg { --cw: 260px; }
}
@media (hover: none), (max-width: 860px) {
  /* Capas fijas con fusión y desenfoques: costosas al deslizar en teléfonos */
  body { position: relative; }
  body::before { position: absolute; mix-blend-mode: normal; opacity: .18; }
  .pillar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .92); }
  .cover { transform: none; }
  .vcard__media img, .gitem__frame { transition: none; }
}
html { -webkit-overflow-scrolling: touch; }
img { -webkit-user-drag: none; }

/* ---------- Galerías ---------- */
.gallery { columns: 4 220px; column-gap: clamp(1rem, 2vw, 1.6rem); }
.gitem { display: block; position: relative; break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.6rem); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.gitem img { width: 100%; height: auto; display: block; }
.gitem__frame { display: block; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
/* Estilo «marco»: moldura clara y paspartú, como los cuadros de la exposición */
.gallery--marco .gitem__frame {
  padding: clamp(10px, 1.4vw, 16px);
  background: linear-gradient(135deg, #efe3cf, #e2d0b4 50%, #efe3cf);
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, .18), 0 18px 30px -18px rgba(42, 29, 54, .55);
}
.gallery--marco .gitem__frame img { padding: clamp(10px, 1.6vw, 18px); background: #fff; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .12); }
/* Estilo «papel»: diplomas sobre cartulina */
.gallery--papel .gitem__frame { background: #fff; padding: 8px; box-shadow: 0 1px 0 rgba(78, 52, 102, .08), 0 16px 30px -20px rgba(42, 29, 54, .5); border-radius: 2px; }
/* Estilo «foto»: fotografías de la exposición */
.gallery--foto { columns: 2 280px; }
.gallery--foto .gitem__frame { border-radius: 4px; overflow: hidden; box-shadow: 0 22px 40px -24px rgba(42, 29, 54, .6); }
.gitem__zoom {
  position: absolute; right: .9rem; top: .9rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(248, 243, 249, .92); color: var(--plum);
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease);
}
.gitem__zoom .icon { width: 1.2rem; height: 1.2rem; }
.gitem:hover .gitem__frame, .gitem:focus-visible .gitem__frame { transform: translateY(-4px); }
.gitem:hover .gitem__zoom, .gitem:focus-visible .gitem__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gitem__zoom { opacity: .9; transform: none; width: 2rem; height: 2rem; } }
@media (max-width: 600px) {
  .gallery { columns: 2; column-gap: .8rem; }
  .gallery--foto { columns: 1; }
  .gitem { margin-bottom: .8rem; }
  .gallery--marco .gitem__frame { padding: 7px; }
  .gallery--marco .gitem__frame img { padding: 6px; }
}
/* Estilo «album»: fotos de trayectoria */
.gallery--album { columns: 4 200px; }
.gallery--album .gitem__frame { border-radius: 4px; overflow: hidden; box-shadow: 0 16px 30px -20px rgba(42, 29, 54, .55); }
.section--dark .gallery-head h3 { color: #f6eefa; }
.section--dark .gallery-head p { color: var(--gold); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.gallery-head h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.gallery-head p { margin: 0; font-family: var(--f-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); }
.poster { box-shadow: var(--shadow); border-radius: 2px; }

/* ---------- Visor ---------- */
.lb-open, .lb-open body { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto 3px 1fr auto;
  background: #181020; color: #f3eaf7; opacity: 0; transition: opacity .3s var(--ease);
  -webkit-user-select: none; user-select: none;
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: max(.7rem, env(safe-area-inset-top)) 1rem .7rem; }
.lb__count { font-family: var(--f-label); font-size: .8rem; letter-spacing: .2em; padding-left: .4rem; }
.lb__tools { display: flex; gap: .3rem; }
.lb__btn, .lb__nav { background: none; border: 0; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .3s, color .3s; }
.lb__btn { width: 2.9rem; height: 2.9rem; }
.lb__btn .icon { width: 1.45rem; height: 1.45rem; }
.lb__btn:hover, .lb__nav:hover { background: rgba(255, 255, 255, .1); color: var(--daisy); }
.lb__btn[hidden] { display: none; }
.lb__progress { background: rgba(255, 255, 255, .08); }
.lb__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--caramel), var(--daisy)); }
.lb__stage { position: relative; overflow: hidden; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; touch-action: none; padding: 1rem clamp(.5rem, 6vw, 5.5rem); }
.lb__img {
  display: block; width: auto; height: auto; max-width: 100%;
  /* Pantalla menos barra superior, progreso, pie de foto y márgenes: las verticales caben enteras */
  max-height: calc(100vh - 10.5rem); max-height: calc(100dvh - 10.5rem);
  object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); will-change: transform; cursor: zoom-in; -webkit-user-drag: none; }
.lb.is-zoomed .lb__img { cursor: grab; }
.lb__nav { position: absolute; top: 50%; width: 3.4rem; height: 3.4rem; margin-top: -1.7rem; z-index: 2; }
.lb__nav .icon { width: 1.9rem; height: 1.9rem; }
.lb__nav--prev { left: max(.6rem, env(safe-area-inset-left)); }
.lb__nav--prev .icon { transform: scaleX(-1); }
.lb__nav--next { right: max(.6rem, env(safe-area-inset-right)); }
.lb.is-zoomed .lb__nav { opacity: 0; pointer-events: none; }
.lb__cap { margin: 0; text-align: center; padding: .6rem 1rem max(1rem, env(safe-area-inset-bottom)); font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); min-height: 1.5em; }
@media (max-width: 600px) {
  .lb__nav { top: auto; bottom: max(.4rem, env(safe-area-inset-bottom)); margin: 0; width: 3rem; height: 3rem; background: rgba(255, 255, 255, .08); }
  .lb__cap { padding-inline: 4.2rem; }
  .lb__stage { padding: .5rem; }
  .lb__img { max-height: calc(100vh - 12.5rem); max-height: calc(100dvh - 12.5rem); }
}
.jump { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.jump a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.2rem;
  border: 1px solid var(--sand); border-radius: 999px; background: #fff;
  font-family: var(--f-label); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; transition: background .3s, color .3s, border-color .3s;
}
.jump a .icon { color: var(--plum); width: 1.3em; height: 1.3em; }
.jump a:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.jump a:hover .icon { color: #fff; }
[id] { scroll-margin-top: 5rem; }
.section--dark .btn--light { margin-top: .4rem; }
.contact-lines a, .footer__list a, .notice { overflow-wrap: anywhere; }
.contact-lines a { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

/* Página de vídeo-poemas: cabecera del capítulo encima y tarjetas a todo el ancho */
.page-video .chapter { grid-template-columns: 1fr; gap: 2rem; }
.page-video .chapter__head { display: grid; grid-template-columns: auto 1fr; column-gap: 1.6rem; align-items: end; max-width: 52rem; }
.page-video .chapter__head .chapter__icon, .page-video .chapter__head .numeral { grid-row: span 2; }
.page-video .chapter__head .numeral { display: none; }
.page-video .chapter__head .chapter__icon { width: 3.4rem; height: 3.4rem; padding: .7rem; border-radius: 50%; background: var(--paper); align-self: start; }
.page-video .chapter__head h2 { margin-bottom: .3rem; }
.toc__play::before { border-left-color: var(--plum); }

.hero .scroll-cue { display: none; }

/* ---------- Móvil: ajustes finos (29/10/2026) ---------- */
@media (max-width: 940px) {
  /* Menú a pantalla completa: sin rebote ni scroll del fondo (iOS ignora overflow en body) */
  .nav { height: 100vh; height: 100dvh; overscroll-behavior: contain; padding: 5rem 1.5rem 2rem; }
  html:has(body.menu-open) { overflow: hidden; }
}
@media (max-width: 600px) {
  /* Menos aire vertical entre secciones: la página se hacía muy larga */
  .section { padding: 3.75rem 0; }
  .work { padding: 3rem 0; }
  .band { padding: 4rem 0; }
  .section__head { margin-bottom: 2rem; }

  /* Pilares de la portada: compactos, icono a la izquierda */
  .pillars { padding-top: 2rem; padding-bottom: 0; }
  .pillars__grid { gap: .75rem; }
  .pillar { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; }
  .pillar__icon { grid-row: span 2; margin: 0; width: 3rem; height: 3rem; }
  .pillar h3 { font-size: 1.35rem; margin: 0; }
  .pillar p { font-size: .95rem; line-height: 1.45; }

  /* Textos pequeños en mayúsculas: legibles en pantalla de teléfono */
  .brand__sub { font-size: .66rem; letter-spacing: .42em; }
  .badge, .vcard__badge, .toc__play, .footer__title, .modal__note, .gallery-head p { font-size: .72rem; }
}
@media (hover: none), (max-width: 600px) {
  /* Zonas de pulsación de al menos 44 px sin cambiar el aspecto */
  .link-arrow { position: relative; }
  .link-arrow::before { content: ""; position: absolute; inset: -12px -6px; }
  .actions, .buy { row-gap: 1.4rem; }
  .voices__nav { gap: .4rem; }
  .voices__nav button { width: 2.8rem; height: 44px; padding: 0; }
}
