/* =========================================================
   Laura Nieto — Actriz
   Paleta: papel de programa de mano + negro de escenario + rojo telón
   ========================================================= */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* Colores animables (la página "apaga las luces" al entrar en las secciones oscuras) */
@property --bg     { syntax: "<color>"; inherits: true; initial-value: #F2EDE5; }
@property --fg     { syntax: "<color>"; inherits: true; initial-value: #161210; }
@property --fg-2   { syntax: "<color>"; inherits: true; initial-value: #4A423C; }
@property --muted  { syntax: "<color>"; inherits: true; initial-value: #6F665E; }
@property --rule   { syntax: "<color>"; inherits: true; initial-value: rgba(22,18,16,.16); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #9B1C1C; }
@property --tile   { syntax: "<color>"; inherits: true; initial-value: #E6DFD4; }

:root {
  --paper: #F2EDE5;
  --stage: #0E0B0A;
  --red: #9B1C1C;
  --red-light: #D2493D;

  --bg: var(--paper);
  --fg: #161210;
  --fg-2: #4A423C;
  --muted: #6F665E;
  --rule: rgba(22,18,16,.16);
  --accent: var(--red);
  --tile: #E6DFD4;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1440px;
  --gap: clamp(.5rem, 1.2vw, 1rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 4.5rem;
}

body[data-scene="dark"] {
  --bg: var(--stage);
  --fg: #EFE8DE;
  --fg-2: #D3C8BB;
  --muted: #A39686;
  --rule: rgba(239,232,222,.16);
  --accent: var(--red-light);
  --tile: #1A1513;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: --bg 1s var(--ease), --fg 1s var(--ease), --fg-2 1s var(--ease), --muted 1s var(--ease),
              --rule 1s var(--ease), --accent 1s var(--ease), --tile 1s var(--ease);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* Idiomas: se muestra solo el activo */
html:not([lang="en"]) body [lang="en"],
html[lang="en"] body [lang="es"] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Datos pendientes (se ven marcados mientras falte el contenido real) */
.tbd { position: relative; color: var(--muted); }
.tbd::after {
  content: "pendiente";
  display: inline-block; margin-left: .6em; padding: .1em .5em;
  font: 500 .58rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px dashed currentColor; border-radius: 2px; vertical-align: .25em; opacity: .8;
}
html[lang="en"] .tbd::after { content: "to add"; }
.tbd-block {
  color: var(--muted);
  border-left: 1px dashed var(--muted);
  padding-left: 1.25rem;
}
.credit.tbd::after { display: none; }
.credit.tbd { opacity: .55; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: 1.05rem 1.6rem;
  border: 1px solid var(--fg); border-radius: 999px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn__meta { opacity: .6; letter-spacing: .1em; }
.icon-play { width: .62rem; height: .72rem; fill: currentColor; }

.text-link {
  position: relative; display: inline-block;
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding-block: .5rem;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .5s var(--ease);
}
.text-link:hover::after { transform: scaleX(0); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--fg);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.brand {
  font: 400 1.45rem/1 var(--serif);
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand em { font-style: italic; }

.nav { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav a {
  position: relative;
  font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding-block: .5rem;
  color: var(--fg-2);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { display: flex; gap: .15rem; }
.lang-switch button {
  font: 500 .7rem/1 var(--sans); letter-spacing: .16em;
  padding: .45rem .4rem; color: var(--muted);
  transition: color .3s;
}
.lang-switch button:hover { color: var(--fg); }
html:not([lang="en"]) .lang-switch [data-set-lang="es"],
html[lang="en"] .lang-switch [data-set-lang="en"] { color: var(--fg); box-shadow: inset 0 -1px 0 var(--accent); }

.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; position: relative; margin-right: -.6rem; }
.menu-toggle__bars, .menu-toggle__bars::before {
  position: absolute; left: .7rem; right: .7rem; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__bars { top: 1.15rem; }
.menu-toggle__bars::before { content: ""; left: 0; right: 0; top: .45rem; }
.menu-open .menu-toggle__bars { top: 1.35rem; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: end;
}
.hero__text {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3rem, 9vh, 7rem) var(--gutter);
  align-self: end;
}
.hero__eyebrow { margin-bottom: clamp(1rem, 2.5vh, 2rem); }
.hero__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 12.5vw, 13.5rem);
  line-height: .84;
  letter-spacing: -.02em;
  margin-right: -14vw;           /* el nombre se adentra en la foto */
}
.hero__line { display: block; }
.hero__line:last-child { padding-left: .55em; }
.hero__name em { font-style: italic; font-weight: 300; }
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.hero__photo {
  position: relative; height: 100%; align-self: stretch;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--tile);
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
}
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.5rem; z-index: 2;
  width: 1px; height: 3rem; overflow: hidden; background: var(--rule);
}
.hero__scroll span {
  position: absolute; inset: 0; background: var(--fg);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Entrada de la portada */
.js .hero__eyebrow, .js .hero__line, .js .hero__actions { opacity: 0; transform: translateY(1.2rem); animation: rise 1.4s var(--ease) forwards; }
.js .hero__line:nth-child(1) { animation-delay: .15s; }
.js .hero__line:nth-child(2) { animation-delay: .3s; }
.js .hero__actions { animation-delay: .55s; }
.js .hero__photo img { animation: unveil 1.8s var(--ease) both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(5rem, 12vw, 10rem); }
.section--tight-top { padding-top: 0; }
.section--stage::before {          /* foco de luz cenital */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 0%, rgba(255, 236, 214, .07), transparent 70%);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5rem clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.sec-num {
  font: italic 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif);
  color: var(--accent);
  min-width: 1.6em;
}
.sec-head h2 {
  font: 300 clamp(3rem, 8.5vw, 7.5rem)/.9 var(--serif);
  letter-spacing: -.015em;
}
.sec-meta {
  font: 500 .7rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}

/* Revelado suave al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Botones-imagen que abren el visor */
.zoom { display: block; width: 100%; position: relative; overflow: hidden; background: var(--tile); cursor: zoom-in; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.zoom:hover img { transform: scale(1.025); }

/* ---------- I · Videobook ---------- */
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__cover { position: absolute; inset: 0; display: grid; place-items: center; color: #F4EEE6; }
.player__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; filter: brightness(.82); }
.player__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.player__play {
  position: relative; z-index: 1;
  width: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 238, 230, .75);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  background: rgba(14, 11, 10, .18);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.player__play svg { width: 22%; fill: currentColor; margin-left: 6%; }
.player__label {
  position: absolute; z-index: 1; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.75rem);
  font: 500 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.player__cover:hover img { transform: scale(1.02); filter: brightness(.95); }
.player__cover:hover .player__play { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.player.is-playing .player__cover { display: none; }

/* ---------- II · Perfil ---------- */
.perfil {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.perfil__photo .zoom { aspect-ratio: 2 / 3; }
.perfil__body { padding-top: clamp(0rem, 3vw, 2.5rem); }
.perfil__bio {
  font: 400 clamp(1.35rem, 1.9vw, 1.75rem)/1.4 var(--serif);
  max-width: 40ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.datos {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.datos > div {
  display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem;
  padding-block: .85rem; border-bottom: 1px solid var(--rule);
}
.datos dt { font: 500 .68rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.datos dd { font: 400 1.25rem/1.4 var(--serif); }
.downloads { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.downloads ul { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.downloads a {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.15rem; border: 1px solid var(--rule); border-radius: 999px;
  font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s, background-color .3s, color .3s;
}
.downloads a:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.icon-dl { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- III · Book ---------- */
.triptych {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.75rem);
  margin-bottom: clamp(4rem, 9vw, 8rem);
}
.triptych figcaption {
  display: flex; align-items: baseline; gap: .8rem;
  font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2);
  padding-bottom: .9rem;
}
.triptych .idx { font: italic 400 1.15rem/1 var(--serif); letter-spacing: 0; color: var(--accent); }
.triptych .zoom { aspect-ratio: 2 / 3; }

.book-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.5rem);
  padding-bottom: 6%;
}
.book-grid .zoom { aspect-ratio: 2 / 3; }
.book-grid > figure { position: relative; }
.book-grid > figure:nth-child(even) { top: 16%; }     /* columnas pares desplazadas: ritmo editorial */

/* ---------- IV · En escena ---------- */
.stage-feature { margin-bottom: clamp(1rem, 2vw, 1.75rem); }
.stage-feature .zoom { aspect-ratio: 21 / 9; max-height: 88vh; }
.stage-feature .zoom img { object-position: 50% 38%; }
.stage-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
  padding-top: 1.1rem;
}
.stage-caption__role { font: italic 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--serif); }
.stage-caption__work { font: 500 .7rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stage-caption--inline { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 1.1rem; }

.stage-rows { display: flex; flex-direction: column; gap: var(--gap); margin-top: clamp(2rem, 4vw, 3rem); }
.stage-row { display: flex; gap: var(--gap); }
.stage-row > figure { flex: var(--ar) 1 0%; min-width: 0; }
.stage-row .zoom { aspect-ratio: var(--ar); }

/* ---------- V · Trayectoria ---------- */
.credits { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.credits__block {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}
.credits__block h3 {
  font: italic 400 clamp(1.6rem, 2.6vw, 2.25rem)/1.1 var(--serif);
  color: var(--fg);
}
.credit-list { border-top: 1px solid var(--rule); }
.credit {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1.5rem; row-gap: .2rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.credit__year { grid-row: span 2; font: italic 400 1.1rem/1.7 var(--serif); color: var(--accent); white-space: nowrap; }
.credit__year:empty { visibility: hidden; }
.credit__main { display: flex; align-items: baseline; gap: .9rem; }
.credit__work { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); font-style: italic; }
.credit__leader { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--muted); transform: translateY(-.3em); opacity: .7; }
.credit__role { font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.3 var(--serif); white-space: nowrap; }
.credit__meta { font: 500 .68rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- VI · Contacto ---------- */
.contact { padding-bottom: 0; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
  padding-bottom: clamp(5rem, 12vw, 10rem);
}
.contact__mail {
  display: inline-block; margin-top: 1rem;
  font: 300 clamp(2rem, 4.4vw, 4.25rem)/1.1 var(--serif);
  letter-spacing: -.01em;
  word-break: break-word;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__mail:hover { background-size: 100% 1px; color: var(--accent); }
.contact__list { border-top: 1px solid var(--rule); }
.contact__list > div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--rule);
}
.contact__list dt { font: 500 .68rem/2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { font: 400 1.3rem/1.4 var(--serif); }
.contact__list a:hover { color: var(--accent); }
.contact__list small {
  display: block; margin-top: .3rem;
  font: 500 .66rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.contact__list small a { text-transform: none; letter-spacing: .04em; font-size: .78rem; border-bottom: 1px solid var(--rule); }

.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  padding-block: 1.75rem;
  font: 500 .68rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Visor de fotos ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 8, 7, .97); color: #EFE8DE;
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .4s var(--ease); }
.lightbox::backdrop { background: rgba(10, 8, 7, .9); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: grid; justify-items: center; gap: 1rem; padding: 4.5rem 4.5rem 1.5rem; }
.lightbox__img {
  max-width: min(92vw, 1600px); max-height: calc(100dvh - 9rem);
  width: auto; height: auto; object-fit: contain;
  transition: opacity .35s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption {
  display: flex; gap: 1.5rem; align-items: baseline;
  font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #A39686;
}
.lightbox__text { font: italic 400 1.15rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: #EFE8DE; }
.lightbox__btn {
  position: fixed; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  color: #EFE8DE; opacity: .75; transition: opacity .3s, transform .3s var(--ease);
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translate(-3px, -50%); }
.lightbox__next:hover { transform: translate(3px, -50%); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }

/* Sin JavaScript: las secciones oscuras pintan su propio fondo */
html:not(.js) .section--stage {
  --bg: var(--stage); --fg: #EFE8DE; --fg-2: #D3C8BB; --muted: #A39686;
  --rule: rgba(239,232,222,.16); --accent: var(--red-light); --tile: #1A1513;
  background: var(--bg); color: var(--fg);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 4rem; }

  /* Menú móvil a pantalla completa.
     (Sin backdrop-filter en la cabecera: haría que el menú fijo quedara encerrado dentro de ella.) */
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
  }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    padding: var(--header-h) var(--gutter) 3rem;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav a {
    font: 300 clamp(2.4rem, 10vw, 3.4rem)/1 var(--serif); letter-spacing: 0; text-transform: none;
    color: var(--fg);
  }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--bg); }
  .menu-open { overflow: hidden; }

  /* Portada: foto a sangre con el nombre encima */
  .hero { display: block; min-height: 0; }
  .hero__photo { min-height: 0; height: 88svh; max-height: 54rem; }
  .hero__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 11, 10, .72) 100%);
  }
  .hero__text {
    position: absolute; left: 0; right: 0; bottom: 0; top: auto;
    padding: 0 var(--gutter) 2.25rem;
    color: #F4EEE6;
  }
  .hero__eyebrow { color: rgba(244, 238, 230, .82); }
  .hero__name { margin-right: 0; font-size: clamp(4rem, 21vw, 7rem); }
  .hero__actions { gap: 1rem 1.5rem; }
  .hero .btn--solid { background: #F4EEE6; color: #161210; border-color: #F4EEE6; }
  .hero .text-link { color: #F4EEE6; }
  .hero__scroll { display: none; }

  .sec-head { grid-template-columns: auto 1fr; }
  .sec-meta { grid-column: 1 / -1; text-align: left; }

  .perfil { grid-template-columns: 1fr; }
  .perfil__photo { max-width: 26rem; }

  .triptych {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .triptych::-webkit-scrollbar { display: none; }
  .triptych figure { flex: 0 0 74%; scroll-snap-align: start; }

  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 12%; }

  .stage-feature .zoom { aspect-ratio: 4 / 3; }
  .stage-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); }
  .stage-row { display: contents; }
  .stage-row > figure.land, .stage-row > figure.m-full { grid-column: span 2; }
  .stage-caption--inline { grid-column: 1 / -1; }

  .credits__block { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 1fr; }
  .credit__year { grid-row: auto; font-size: 1rem; }
  .credit__year:empty { display: none; }
  .credit__main { flex-wrap: wrap; column-gap: .6rem; row-gap: 0; }
  .credit__leader { display: none; }
  .credit__role::before { content: "— "; color: var(--muted); }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 8.5rem 1fr; }

  .lightbox__figure { padding: 4rem .75rem 1rem; }
  .lightbox__img { max-width: 100%; max-height: calc(100dvh - 8rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: .75rem; transform: none; }
  .lightbox__prev:hover, .lightbox__next:hover { transform: none; }
}

@media (max-width: 520px) {
  .datos > div { grid-template-columns: 7.75rem 1fr; gap: .75rem; padding-block: .8rem; }
  .contact__list > div { grid-template-columns: 1fr; gap: .15rem; }
  .downloads a { padding: .8rem 1rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Impresión: ficha limpia */
@media print {
  .site-header, .hero__scroll, .player, .lightbox, .downloads, .skip { display: none !important; }
  body { --bg: #fff; --fg: #000; background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
