:root {
  --bg: #0b0a08;
  --bg-2: #121009;
  --ink: #ece5d8;
  --ink-soft: #b3ab9c;
  --ink-mute: #8c8578;
  --gold: #bf9f66;
  --gold-soft: rgba(191, 159, 102, .35);
  --line: rgba(236, 229, 216, .12);
  --red: #c0343a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-role {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 34px;
  font-weight: 400;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.005em;
}
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-lead { margin-top: 1.6em; color: var(--ink-soft); font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 10, 8, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a, .lang button {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-soft); transition: color .25s;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--ink-mute); font-size: 12px; }
.lang button {
  background: none; border: 0; padding: 6px 2px; cursor: pointer; font-family: var(--sans);
}
.lang button[aria-pressed="true"] { color: var(--gold); }
.lang button:hover { color: var(--ink); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.hero-portrait { margin: 0; height: 100%; position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--bg) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-text { padding: 120px var(--gutter) 80px clamp(24px, 4vw, 64px); max-width: 620px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 6.6vw, 104px);
  line-height: .98;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.fa-logo { width: clamp(200px, 20vw, 280px); margin: 0 0 30px -6px; }
.hero-lead {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--ink);
  max-width: 460px;
}
.keywords { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); margin: 30px 0 44px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.link-arrow::after { content: ""; width: 60px; height: 1px; background: currentColor; transform: scaleX(.7); transform-origin: left; transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: scaleX(1.2); } }

/* ---------- Statement ---------- */
.statement {
  max-width: 900px; margin: 0 auto;
  padding: clamp(100px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 100px);
  text-align: center;
}
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6vw, 84px); line-height: 1; margin-bottom: 40px; }
.display em { color: var(--red); }
.statement-text { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.55; color: var(--ink-soft); font-weight: 300; }

/* ---------- Works ---------- */
.works { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.work {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
  padding: clamp(60px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--line);
}
.work:last-child { border-bottom: 0; }
.work--alt { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.work--alt .work-img { order: 2; }
.work-img {
  position: relative; isolation: isolate;
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden;
}
.work-img img { width: 100%; transform: scale(1.1); will-change: transform; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 12%, rgba(11,10,8,.55), rgba(11,10,8,.98) 72%);
  opacity: 0;
}
.js .shade { opacity: 1; }
.work-info { padding-bottom: 12px; }
.work-num { font-family: var(--serif); font-size: 18px; color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; }
.work-title { font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; margin-bottom: 20px; }
.work-line { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.12; font-weight: 300; margin-bottom: 22px; }
.work-text { color: var(--ink-soft); max-width: 380px; }
.work-meta { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-mute); max-width: 380px; }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; height: 240vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .15em;
  text-align: center; padding: 0 var(--gutter);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4.2vw, 60px); line-height: 1.3;
}
.manifesto p { margin: 0; position: relative; }
.manifesto .gold { color: var(--gold); font-style: italic; }
.glow {
  position: absolute; left: 50%; top: -20%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(191,159,102,.16), rgba(191,159,102,.05) 55%, transparent);
  pointer-events: none;
}
.js .manifesto p { opacity: .12; }
.js .glow { opacity: 0; }

/* ---------- Artist ---------- */
.artist {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(100px, 14vw, 170px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start;
}
.artist-photo { margin: 0; overflow: hidden; }
.artist-photo img { transform: scale(1.14); will-change: transform; }
.artist-text .section-title { margin-bottom: 14px; }
.roles { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 40px; }
.artist-text > p:not(.eyebrow):not(.roles):not(.quote) { color: var(--ink-soft); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--ink); margin-top: 44px; padding-left: 24px; border-left: 1px solid var(--gold); }

/* ---------- Path / timeline ---------- */
.path { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px);
  padding: 40px 0; border-top: 1px solid var(--line);
}
.t-label { font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1.2; }
.timeline h3, .steps h3, .note h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.timeline p { color: var(--ink-soft); max-width: 640px; }
.t-img { margin: 30px 0 0; max-width: 640px; overflow: hidden; }
.t-img img { transform: scale(1.12); will-change: transform; }

.projects { margin-top: clamp(100px, 13vw, 160px); }
.project-list { margin: 0; }
.project-list > div {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px);
  padding: 32px 0; border-top: 1px solid var(--line);
}
.project-list > div:last-child { border-bottom: 1px solid var(--line); }
.project-list dt { font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 400; }
.project-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- Galleries ---------- */
.galleries {
  background: var(--bg-2);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.galleries > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.figures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
  margin-bottom: clamp(60px, 8vw, 100px);
}
.figures > div { padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; }
.figures > div + div { border-left: 1px solid var(--line); }
.fig { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 110px); line-height: .9; color: var(--gold); }
.fig-label { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--ink-soft); max-width: 220px; line-height: 1.6; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.step-n { display: block; font-size: 12px; letter-spacing: .24em; color: var(--gold); margin-bottom: 18px; }
.steps p { color: var(--ink-soft); }

/* ---------- News ---------- */
.news { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 14vw, 170px) var(--gutter) clamp(60px, 8vw, 100px); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.note { border-top: 1px solid var(--gold-soft); padding-top: 28px; }
.note-date { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.note p:not(.note-date) { color: var(--ink-soft); font-size: 16px; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(110px, 14vw, 170px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px);
}
.contact-intro > p:not(.eyebrow) { color: var(--ink-soft); margin-top: 1.4em; }
.contact-mail a { font-family: var(--serif); font-size: 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-soft); transition: border-color .25s; word-break: break-word; }
.contact-mail a:hover { border-color: var(--gold); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  font: 300 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; border-radius: 0; outline: none; transition: border-color .25s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.btn {
  justify-self: start; margin-top: 8px;
  font: 400 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--bg); background: var(--gold); border: 1px solid var(--gold);
  padding: 18px 34px; cursor: pointer; transition: background .25s, color .25s;
}
.btn { transition: background .25s, color .25s, transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn:hover, .btn:focus-visible { background: transparent; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px var(--gutter) 40px; }
.footer-logos { max-width: 760px; width: 100%; margin: 0 auto 50px; opacity: .9; }
.footer-line {
  max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.footer-line p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 4, 3, .94); }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lb-close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  background: none; border: 0; color: var(--ink); font-size: 34px; font-weight: 200; cursor: pointer; line-height: 1;
}

/* ---------- Motion ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Header: se oculta al bajar, vuelve al subir */
.site-header { transition: background .4s ease, border-color .4s ease, transform .45s var(--ease-out); }
.site-header.away { transform: translateY(-100%); }

/* Entrada de portada: la luz se enciende sobre el retrato */
.js .hero-img { opacity: 0; filter: brightness(.25); transition: opacity 1.6s var(--ease-out), filter 2s var(--ease-out); }
.js .hero-text .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js .hero-text > :not(h1) { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.loaded .hero-img { opacity: 1; filter: none; }
.loaded .hero-text .line > span { transform: none; }
.loaded .hero-text .line:nth-child(2) > span { transition-delay: .09s; }
.loaded .hero-text > :not(h1) { opacity: 1; transform: none; }
.loaded .hero-text > :nth-child(2) { transition-delay: .45s; }
.loaded .hero-text > :nth-child(3) { transition-delay: .52s; }
.loaded .hero-text > :nth-child(4) { transition-delay: .59s; }
.loaded .hero-text > :nth-child(5) { transition-delay: .66s; }
.loaded .hero-text > :nth-child(6) { transition-delay: .73s; }
.hero-text .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-text .line > span { display: block; }
.hero-text { will-change: transform, opacity; }

/* Texto: aparece suave, solo opacidad y un desplazamiento mínimo */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* Visor */
.lightbox[open] img { animation: lb-in .5s var(--ease-out); }
.lightbox[open]::backdrop { animation: fade-in .35s ease; }
 lb-in { from { opacity: 0; transform: scale(.97); filter: blur(6px); } }
 fade-in { from { opacity: 0; } }

 (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header.away { transform: none; }
  .js .hero-img { filter: none; transition: opacity .6s ease; transform: none !important; }
  .js .hero-text .line > span, .js .hero-text > :not(h1) { transform: none; transition: opacity .6s ease; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .work-img img, .artist-photo img, .t-img img { transform: none !important; }
  .js .shade { opacity: 0 !important; }
  .manifesto { height: auto; }
  .manifesto-stage { position: static; height: auto; padding: 140px var(--gutter); }
  .js .manifesto p, .js .glow { opacity: 1 !important; }
  .lightbox[open] img { animation: fade-in .3s ease; }
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-size: 14px; }
  .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open { opacity: 1; visibility: visible; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .menu-btn span { display: block; height: 1px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-portrait { height: 72vh; }
  .hero-portrait::after { background: linear-gradient(0deg, var(--bg) 2%, transparent 45%); }
  .hero-text { padding: 0 var(--gutter) 90px; margin-top: -120px; position: relative; }
  .work, .work--alt { grid-template-columns: 1fr; gap: 28px; }
  .work--alt .work-img { order: 0; }
  .artist, .contact { grid-template-columns: 1fr; }
  .timeline li, .project-list > div { grid-template-columns: 1fr; gap: 10px; }
  .figures { grid-template-columns: 1fr; }
  .figures > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .figures > div { padding: 28px 0; }
  .steps, .news-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ==========================================================
   V3 — Sala de exposición navegable
   La sección queda fija y el scroll vertical recorre el muro
   en horizontal. Capas a distintas velocidades = parallax.
   ========================================================== */
.gallery { position: relative; height: 500vh; background: var(--bg); }
.g-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  --floor: 80%;
}
.g-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(191,159,102,.05), transparent 70%),
    linear-gradient(180deg, #16130f 0%, #110f0c var(--floor), #0a0907 var(--floor), #060504 100%);
}
.g-wall::after { /* zócalo */
  content: ""; position: absolute; left: 0; right: 0; top: var(--floor); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,159,102,.22) 20%, rgba(191,159,102,.22) 80%, transparent);
}
.g-layer { position: absolute; top: 0; left: 0; height: 100%; width: 100%; will-change: transform; pointer-events: none; }

.g-type { z-index: 1; display: flex; align-items: center; }
.g-type span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 42vh; line-height: 1; white-space: nowrap; letter-spacing: -.02em;
  color: rgba(236, 229, 216, .035);
  padding-left: 30vw; margin-top: -12vh;
}
.g-lamps {
  z-index: 2; height: 14vh;
  background:
    linear-gradient(rgba(236,229,216,.10), rgba(236,229,216,.10)) 0 3.2vh / 100% 1px no-repeat,
    radial-gradient(ellipse 34px 6px at 50% 3.4vh, rgba(236,229,216,.35), transparent 70%) 0 0 / 34vw 100% repeat-x,
    radial-gradient(ellipse 120px 50px at 50% 3.4vh, rgba(255,232,190,.07), transparent 70%) 0 0 / 34vw 100% repeat-x;
}
.g-floor {
  z-index: 6; top: auto; bottom: 0; height: 22%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='200' viewBox='0 0 1400 200' preserveAspectRatio='xMidYMax meet'%3E%3Cg fill='%23040302'%3E%3Crect x='420' y='118' width='520' height='16' rx='2'/%3E%3Crect x='456' y='134' width='14' height='66'/%3E%3Crect x='890' y='134' width='14' height='66'/%3E%3C/g%3E%3Crect x='420' y='118' width='520' height='1' fill='%23bf9f66' fill-opacity='.18'/%3E%3C/svg%3E") 0 100% / auto 100% repeat-x;
}

.g-track {
  position: absolute; top: 0; left: 0; height: 100%; z-index: 4;
  display: flex; align-items: center; gap: 18vw;
  padding: 0 14vw 0 10vw;
  will-change: transform;
}
.g-intro, .g-outro { flex: none; width: min(560px, 80vw); display: flex; flex-direction: column; }
.g-title { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 9vw, 140px); line-height: .95; letter-spacing: -.02em; }
.g-title em { color: var(--red); }
.g-room { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 26px 0 26px; }
.g-intro-text, .g-outro-text { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; color: var(--ink-soft); max-width: 460px; }
.g-outro .g-room { margin-top: 0; }
.g-outro .link-arrow { margin-top: 18px; }
.g-hint { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.g-hint-line { width: 80px; height: 1px; background: currentColor; transform-origin: left; animation: hint 2.4s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.exhibit {
  flex: none; position: relative;
  display: grid; grid-template-columns: auto 250px; gap: 44px; align-items: end;
  margin-top: -4vh;
}
.spot {
  position: absolute; z-index: -1; top: -40vh; left: 0; width: calc(100% - 294px); height: 130vh;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(255, 234, 196, .16), rgba(255, 234, 196, .04) 55%, transparent 75%);
  clip-path: polygon(44% 0, 56% 0, 100% 72%, 0 72%);
  opacity: .2; transition: opacity 1s var(--ease-out);
}
.frame {
  display: block; height: 58vh; padding: 0; border: 0; background: #0d0b09; cursor: zoom-in;
  overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(191,159,102,.28), 0 0 0 9px #0c0a08, 0 0 0 10px rgba(191,159,102,.14), 0 60px 90px -40px rgba(0,0,0,.95);
  transition: transform 160ms var(--ease-out);
}
.frame:active { transform: scale(.985); }
.frame img {
  height: 100%; width: auto; max-width: none;
  transform: scale(1.12); will-change: transform;
  filter: brightness(.5) saturate(.8);
  transition: filter 1s var(--ease-out);
}
.label {
  width: 250px; padding-top: 18px; border-top: 1px solid var(--gold-soft);
  opacity: .35; transition: opacity .8s var(--ease-out);
  will-change: transform;
}
.label-num { font-family: var(--serif); color: var(--gold); font-size: 18px; margin-bottom: 10px; }
.label h3 { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; margin-bottom: 12px; }
.label-line { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin-bottom: 12px; }
.label-text { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.label-meta { font-family: var(--serif); font-style: italic; color: var(--ink-mute); margin: 0; font-size: 16px; }

.exhibit.is-lit .spot { opacity: 1; }
.exhibit.is-lit .frame img { filter: none; }
.exhibit.is-lit .label { opacity: 1; }

.g-ui {
  position: absolute; z-index: 8; left: 50%; bottom: 3.5vh; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px;
}
.g-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,10,8,.6); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: border-color .25s ease, opacity .25s ease, transform 160ms var(--ease-out);
}
.g-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.g-btn:active { transform: scale(.94); }
.g-btn:disabled { opacity: .25; cursor: default; }
@media (hover: hover) and (pointer: fine) { .g-btn:not(:disabled):hover { border-color: var(--gold); color: var(--gold); } }
.g-status { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g-count { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 60px; text-align: center; }
.g-current { color: var(--gold); }
.g-bar { display: block; width: 150px; height: 1px; background: var(--line); overflow: hidden; }
.g-bar-fill { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* Visor con ficha */
.lightbox { max-width: min(1240px, 94vw); }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; }
.lightbox img { max-width: 100%; max-height: 86vh; }
.lb-caption { color: var(--ink); padding-bottom: 12px; }
.lb-caption:empty { display: none; }
.lb-caption .label-text { font-size: 16px; }
.lb-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lightbox[open] .lb-caption { animation: fade-in .6s .15s var(--ease-out) backwards; }

@media (max-width: 820px) {
  .g-sticky { --floor: 84%; }
  .g-track { gap: 22vw; padding: 0 14vw 0 8vw; }
  .exhibit { grid-template-columns: auto; gap: 20px; margin-top: 2vh; }
  .spot { width: 100%; }
  .frame { height: 42vh; }
  .label { width: min(300px, 78vw); }
  .label-text, .label-meta { display: none; }
  .label-line { font-size: 22px; }
  .g-type span { font-size: 28vh; }
  .g-floor { height: 14%; }
  .g-ui { bottom: 2.5vh; }
  .lb-inner { grid-template-columns: 1fr; gap: 20px; }
  .lightbox img { max-height: 58vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery { height: auto !important; }
  .g-sticky { position: relative; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .g-track { position: relative; height: auto; padding-top: 12vh; padding-bottom: 16vh; transform: none !important; }
  .exhibit { scroll-snap-align: center; }
  .g-layer, .g-ui { display: none; }
  .frame img { transform: none !important; filter: none; }
  .label, .spot { opacity: 1; }
  .g-hint-line { animation: none; }
}

/* ---------- Franja de logos ---------- */
.logo-strip {
  list-style: none; margin: 0 auto 56px; padding: 0;
  max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-strip li { display: flex; justify-content: center; align-items: center; padding: 48px 20px; min-height: 170px; }
.logo-strip li + li { border-left: 1px solid var(--line); }
.logo-strip img { width: auto; max-width: 100%; transition: opacity .3s ease; }
.l-gtac { height: 34px; }
.l-mamo { height: 62px; }
.l-fa   { height: 54px; }
.l-ghs  { height: 76px; }
@media (max-width: 820px) {
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip li { min-height: 130px; padding: 32px 14px; }
  .logo-strip li + li { border-left: 0; }
  .logo-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .logo-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .l-gtac { height: 24px; } .l-mamo { height: 46px; } .l-fa { height: 40px; } .l-ghs { height: 56px; }
}

/* ---------- Encabezado legible sobre fotos claras ---------- */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170%;
  background: linear-gradient(180deg, rgba(11,10,8,.88) 0%, rgba(11,10,8,.55) 50%, rgba(11,10,8,0) 100%);
  z-index: -1; pointer-events: none; transition: opacity .4s ease;
}
.site-header.scrolled::before { opacity: 0; }
.brand, .nav a, .lang { text-shadow: 0 1px 14px rgba(0,0,0,.55); }

/* ---------- Piezas reales ---------- */
.real { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 14vw, 170px) var(--gutter) clamp(80px, 10vw, 140px); }
.real-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.real-col { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 32px); will-change: transform; }
.real-col:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.real-col:nth-child(3) { margin-top: clamp(20px, 4vw, 60px); }
.real-item {
  display: block; position: relative; padding: 0; border: 0; background: #14110d; cursor: zoom-in; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(191,159,102,.18);
  transition: transform 160ms var(--ease-out);
}
.real-item:active { transform: scale(.985); }
.real-item img { width: 100%; transition: transform 1.2s var(--ease-out); }
.real-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink);
  background: linear-gradient(0deg, rgba(11,10,8,.85), transparent);
}
@media (hover: hover) and (pointer: fine) { .real-item:hover img { transform: scale(1.04); } }
.flyer-link { background: none; border: 0; padding: 0; margin-top: 18px; cursor: pointer; font-family: var(--sans); }
@media (max-width: 820px) {
  .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .real-col:nth-child(3) { grid-column: 1 / -1; flex-direction: row; margin-top: 0; }
  .real-col:nth-child(3) .real-item { flex: 1; }
  .real-cap { font-size: 15px; padding: 30px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { .real-col { transform: none !important; } }

/* ==========================================================
   Ajustes octubre 2026: logo SJPM, Montserrat, texto justificado
   ========================================================== */
:root {
  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
body { font-size: 16px; line-height: 1.75; }

/* Logo principal */
.brand { display: block; line-height: 0; }
.brand img { height: 22px; width: auto; filter: drop-shadow(0 1px 10px rgba(0,0,0,.5)); }

/* Nombre del hero en una sola línea */
.hero h1 {
  font-size: clamp(22px, 3.1vw, 44px);
  line-height: 1.15; letter-spacing: .02em; font-weight: 300;
  white-space: nowrap; margin-bottom: 18px;
}

/* Montserrat es más ancha: escala de títulos más contenida */
.section-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; font-weight: 300; }
.work-line, .label-line { font-size: 21px; line-height: 1.3; font-weight: 300; }
.statement-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; }
.manifesto-stage { font-size: clamp(22px, 3vw, 42px); line-height: 1.45; font-weight: 300; }
.quote { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }
.timeline h3, .steps h3, .note h3 { font-size: 22px; font-weight: 400; }
.t-label { font-size: 20px; }
.project-list dt { font-size: 19px; line-height: 1.4; }
.fig { font-weight: 200; }
.fig-label, .g-intro-text, .g-outro-text { font-size: 17px; line-height: 1.6; }
.label-meta, .work-meta, .real-cap { font-size: 14px; }
.lb-caption .label-line { font-size: 22px; }
.g-type span { font-weight: 200; letter-spacing: -.04em; }

/* Logotipo Fruits&Art en lugar de texto */
.display-logo { display: block; width: min(420px, 78vw); height: auto; margin: 0 auto; }
.g-title .display-logo { margin: 0 0 0 -6px; width: min(520px, 76vw); }

/* Artista sin fotografía: una sola columna centrada */
.artist { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.artist-text .section-title { text-align: left; }

/* Texto justificado */
.statement-text,
.artist-text > p,
.timeline p,
.project-list dd,
.section-lead,
.steps p,
.note p:not(.note-date),
.contact-intro > p:not(.contact-mail),
.work-text, .label-text,
.g-intro-text, .g-outro-text,
.lb-caption .label-text {
  text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
}
.statement-text { text-align-last: center; }

@media (max-width: 820px) {
  .hero h1 { font-size: 6.2vw; }
  .brand img { height: 18px; }
}
.artist-text > .roles, .artist-text > .quote { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

/* ---------- Justificado sin cortar palabras ---------- */
main p, main dd, .lb-caption p { hyphens: manual !important; -webkit-hyphens: manual !important; }

/* ---------- BMW Art Car: margen para que el parallax no recorte el carro ---------- */
.t-img { background: var(--bg); }
.t-img img { padding: 4% 6%; box-sizing: border-box; }

/* ---------- Mundo Colmena: la obra se abre hasta ocupar la pantalla ---------- */
.colmena { position: relative; height: 260vh; border-top: 1px solid var(--line); }
.colmena-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.colmena-media {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  clip-path: inset(16% 30% 16% 30%);
  will-change: clip-path;
}
.colmena-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.3); will-change: transform; }
.colmena-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(11,10,8,.92) 0%, rgba(11,10,8,.55) 32%, rgba(11,10,8,0) 60%);
  opacity: var(--shade, 0);
}
.colmena-text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  max-width: 620px; z-index: 2;
}
.colmena-title { font-size: clamp(40px, 6.5vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; }
.colmena-sub { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.colmena-desc { color: var(--ink); text-align: justify; max-width: 520px; }
.js .colmena-text { opacity: 0; transform: translateY(24px); }

@media (max-width: 820px) {
  .colmena-media { clip-path: inset(22% 12% 22% 12%); }
  .colmena-media img { object-position: 50% 25%; }
  .colmena-desc { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .colmena { height: auto; }
  .colmena-stage { position: relative; }
  .colmena-media { clip-path: none !important; }
  .colmena-media img { transform: none !important; }
  .colmena-media::after { opacity: 1; }
  .js .colmena-text { opacity: 1; transform: none; }
}
.colmena-media::after {
  background:
    linear-gradient(90deg, rgba(11,10,8,.75) 0%, rgba(11,10,8,.35) 45%, rgba(11,10,8,0) 70%),
    linear-gradient(0deg, rgba(11,10,8,.92) 0%, rgba(11,10,8,.5) 30%, rgba(11,10,8,0) 58%);
}
.colmena-sub { color: var(--ink); opacity: .85; }
@media (max-width: 820px) { .colmena-media::after { background: linear-gradient(0deg, rgba(11,10,8,.95) 0%, rgba(11,10,8,.7) 45%, rgba(11,10,8,0) 75%); } }

/* Mundo Colmena dentro de Proyectos: ocupa todo el ancho de la pantalla */
.projects .colmena { width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: clamp(40px, 6vw, 80px); border-top: 0; }

/* Estado de la obra (editable desde el CMS) */
.label-status {
  display: inline-block; margin: 14px 0 0; padding: 5px 10px 4px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--gold-soft); color: var(--gold);
}
.label-status.is-vendida { color: var(--ink-mute); border-color: var(--line); }

/* ==========================================================
   Ajustes 2 de octubre
   ========================================================== */
/* Marcas destacadas en el texto */
.brand-fa { color: #e3393c; }
.brand-bmw { color: #35baf6; }

/* Portada del libro (Literatura) */
.proj-img {
  display: block; margin-top: 24px; padding: 0; border: 0; background: none; cursor: zoom-in;
  width: 150px; transition: transform 160ms var(--ease-out);
}
.proj-img img { width: 100%; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(236,229,216,.08); }
.proj-img:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .proj-img:hover img { box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px var(--gold-soft); } }

/* Contacto: título, correo y texto */
.contact-intro .section-title { margin-bottom: 18px; }
.contact-intro .contact-mail { margin-top: 0; }

/* Mundo Colmena: obra completa sobre su propio fondo desenfocado */
.colmena-media img { width: auto; height: auto; object-fit: initial; }
.colmena-bg {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  object-fit: cover !important; transform: scale(1.35); will-change: transform;
}
.colmena-media::before { /* oscurece el fondo */
  content: ""; position: absolute; inset: 0; background: rgba(11,10,8,.55); pointer-events: none;
}
.colmena-img {
  position: absolute; top: 50%; right: 9vw;
  height: 84vh !important; max-width: 52vw; width: auto !important; object-fit: contain;
  translate: 0 -50%; transform: scale(.82); will-change: transform;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9);
}
.colmena-text { max-width: min(520px, 40vw); z-index: 3; }
.colmena-media::after { z-index: 2; }
@media (max-width: 820px) {
  .colmena-img { top: 10vh; right: auto; left: 50%; height: 50vh !important; max-width: 86vw; translate: -50% 0; }
  .colmena-text { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .colmena-bg, .colmena-img { transform: none !important; }
}
/* Capas: fondo < oscurecido/degradado < obra completa < texto */
.colmena-bg { z-index: 0; }
.colmena-media::before, .colmena-media::after { z-index: 1; }
.colmena-img { z-index: 2; }
@media (max-width: 820px) {
  .colmena-img { top: 9vh; height: 40vh !important; }
  .colmena-title { font-size: 34px; margin-bottom: 12px; }
  .colmena-sub { margin-bottom: 14px; }
  .colmena-desc { font-size: 14px; line-height: 1.65; }
  .colmena-text { bottom: 36px; }
}

/* ==========================================================
   Mundo Colmena — panal, palabra de fondo y obra enmarcada
   ========================================================== */
.colmena-stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: 5vw; padding: 0 var(--gutter);
  isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 72% 50%, rgba(214,120,40,.10), transparent 70%), var(--bg);
}
.cm-hex {
  position: absolute; left: 0; right: 0; top: -220px; bottom: -220px; z-index: -3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23bf9f66' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 56px 100px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 65% at 70% 50%, #000 20%, transparent 75%);
  will-change: transform; pointer-events: none;
}
.cm-word {
  position: absolute; left: 0; top: 50%; z-index: -2; translate: 0 -50%;
  font-size: 24vw; font-weight: 200; line-height: 1; letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(236,229,216,.08);
  will-change: transform; pointer-events: none;
}
.cm-glow {
  position: absolute; right: 8vw; top: 50%; width: 70vh; height: 70vh; translate: 0 -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(232,140,40,.22), rgba(232,140,40,.06) 60%, transparent);
  opacity: 0; pointer-events: none;
}
.colmena .colmena-text {
  position: relative; left: auto; right: auto; bottom: auto;
  max-width: 500px; justify-self: end; z-index: 1;
}
.colmena-credit { margin: 26px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cm-card {
  position: relative; margin: 0; justify-self: start;
  height: min(80vh, 760px); aspect-ratio: 1015 / 1400; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(191,159,102,.3), 0 60px 110px -40px rgba(0,0,0,.95);
  clip-path: inset(8% 42% 8% 42%); will-change: clip-path;
}
.cm-img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }

@media (max-width: 820px) {
  .colmena-stage { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-top: 64px; }
  .cm-card { order: -1; justify-self: center; height: 44vh; }
  .colmena .colmena-text { justify-self: stretch; max-width: none; }
  .cm-word { font-size: 42vw; top: 32%; }
  .cm-glow { right: 50%; top: 32%; translate: 50% -50%; width: 90vw; height: 90vw; }
  .cm-hex { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 32%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 50% 32%, #000 20%, transparent 75%); }
}
@media (prefers-reduced-motion: reduce) {
  .colmena-stage { position: relative; height: auto; padding-top: 120px; padding-bottom: 120px; }
  .cm-card { clip-path: none !important; }
  .cm-img, .cm-hex, .cm-word { transform: none !important; }
  .cm-glow { opacity: 1; }
}

/* ==========================================================
   Proyecto destacado con libro en 3D (Literatura)
   ========================================================== */
.project-list > .proj-feature {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  grid-template-areas: "book title" "book text";
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 5vw, 80px);
  padding: 64px 0; align-items: start;
}
.proj-feature dt { grid-area: title; }
.pf-cat { display: block; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.pf-title { display: block; font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.2; }
.proj-feature .pf-text { grid-area: text; margin-top: 22px; }
.pf-book {
  grid-area: book; margin: 0; position: relative;
  display: flex; justify-content: center; align-items: center; min-height: 400px;
}
.pf-book::before { /* resplandor rojo, como la salsa de la portada */
  content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(227,57,60,.20), rgba(227,57,60,.05) 60%, transparent);
  pointer-events: none;
}
.pf-book::after { /* sombra en el piso */
  content: ""; position: absolute; left: 50%; bottom: 18px; width: 200px; height: 22px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); pointer-events: none;
}
.book { position: relative; z-index: 1; border: 0; padding: 0; background: none; cursor: zoom-in; perspective: 1200px; }
.book-3d {
  position: relative; display: block; width: clamp(170px, 15vw, 220px); aspect-ratio: 574 / 900;
  transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(4deg); will-change: transform;
}
.book-3d img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(12px); border-radius: 1px 3px 3px 1px;
  box-shadow: inset 4px 0 6px -2px rgba(0,0,0,.25);
}
.book-3d::before { /* canto de las páginas */
  content: ""; position: absolute; top: 1.2%; bottom: 1.2%; right: -12px; width: 24px;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f3eee4 0 1px, #d6cfbf 1px 2px);
}
.book-3d::after { /* contratapa y sombra */
  content: ""; position: absolute; inset: 0; transform: translateZ(-12px);
  background: #e9e3d6; border-radius: 1px 3px 3px 1px;
  box-shadow: 30px 30px 60px -10px rgba(0,0,0,.75);
}
@media (hover: hover) and (pointer: fine) {
  .book:hover .book-3d img { box-shadow: inset 4px 0 6px -2px rgba(0,0,0,.25), 0 0 0 1px var(--gold-soft); }
}
@media (max-width: 820px) {
  .project-list > .proj-feature { grid-template-columns: 1fr; grid-template-areas: "title" "book" "text"; padding: 40px 0; }
  .pf-book { min-height: 320px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .book-3d { transform: rotateY(-18deg) rotateX(3deg) !important; } }
/* Texto del libro centrado verticalmente junto a la portada */
.project-list > .proj-feature {
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "book ." "book title" "book text" "book .";
}
.proj-feature .pf-text { margin-top: 20px; max-width: 620px; }
.pf-book::before { width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(227,57,60,.32), rgba(227,57,60,.08) 55%, transparent); }
@media (max-width: 820px) {
  .project-list > .proj-feature { grid-template-rows: auto; grid-template-areas: "title" "book" "text"; }
  .pf-book::before { width: 300px; height: 300px; }
}
.project-list > .proj-feature { row-gap: 0; }

/* En los títulos las marcas van en el color del título (blanco), no en rojo/azul */
h1 .brand-fa, h2 .brand-fa, h3 .brand-fa, dt .brand-fa, .pf-title .brand-fa,
h1 .brand-bmw, h2 .brand-bmw, h3 .brand-bmw, dt .brand-bmw, .pf-title .brand-bmw { color: inherit; }
