/* ==========================================================================
   Marta Guerrero Montes — tema "mgm"
   Concepto: una galería luminosa. Papel cálido; la pintura es el único color.
   Índice
   01 Fuentes · 02 Tokens · 03 Base · 04 Utilidades y tipografía · 05 Botones y enlaces
   06 Cabecera y menú móvil · 07 Cortina e intro · 08 Cursor · 09 Hero (home)
   10 Home: intro, series, selección, cita, exposiciones, adquirir
   11 Tarjetas de obra · 12 Rejilla masonry y filtros · 13 Cabecera de página / serie
   14 Obra individual · 15 Biografía y página genérica (prose) · 16 Contacto y formulario
   17 404 · 18 Pie · 19 Lightbox · 20 Estados de animación y reduced-motion
   ========================================================================== */

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

/* 02 Tokens --------------------------------------------------------------- */
:root {
	--paper: #F5F1EA;
	--paper-2: #ECE5DA;
	--ink: #1B1A18;
	--ink-soft: #5B554C;
	--line: rgba(27, 26, 24, .14);
	--accent: #A8432F;
	--night: #141311;
	--night-2: #1E1C19;
	--on-night: #EFE9DF;
	--tint: var(--paper);
	--olive: #6E7B4B;

	--font-display: "Cormorant Garamond Variable", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-ui: "Jost Variable", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pad: clamp(20px, 5vw, 80px);
	--max: 1440px;
	--sec: clamp(88px, 13vw, 200px);
	--header-h: 84px;
	--ease: cubic-bezier(.76, 0, .24, 1);
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--shadow-art: 0 30px 60px -30px rgba(0, 0, 0, .35);
}

/* 03 Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: auto; }
body {
	margin: 0;
	background: var(--tint);
	color: var(--ink-soft);
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	transition: background-color 1s ease;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 300; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link {
	position: fixed; left: 16px; top: -80px; z-index: 10000;
	background: var(--ink); color: var(--paper); padding: .8em 1.2em; border-radius: 4px;
	font-size: .85rem; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.site-main { display: block; outline: none; min-height: 60vh; }
body:not(.has-hero) .site-main { padding-top: var(--header-h); }
body.admin-bar:not(.has-hero) .site-main { padding-top: calc(var(--header-h) + 0px); }

/* 04 Utilidades y tipografía --------------------------------------------- */
.container, .container-wide { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 110px); }
.section--dark { background: var(--night); color: var(--on-night); }
.section--paper2 { background: var(--paper-2); }
.section-head { margin-bottom: clamp(40px, 6vw, 88px); }

.eyebrow {
	display: flex; align-items: center; gap: 14px;
	font-family: var(--font-ui); font-weight: 500; font-size: .72rem; line-height: 1.4;
	text-transform: uppercase; letter-spacing: .24em; color: var(--ink); margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow a:hover { color: var(--accent); }
.eyebrow--light, .section--dark .eyebrow { color: var(--on-night); }

.display-h1 { font-size: clamp(3.2rem, 8.5vw, 8.5rem); font-weight: 300; letter-spacing: -.015em; line-height: .95; }
.display-h1--md { font-size: clamp(3rem, 6.5vw, 6.4rem); }
.display-h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); font-weight: 300; line-height: 1.04; letter-spacing: -.01em; }
.display-h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.2; }
.section--dark .display-h2, .section--dark h2, .site-footer h2 { color: var(--on-night); }
.lead { font-size: 1.12rem; line-height: 1.75; max-width: 52ch; }
em, .num { font-family: var(--font-display); font-style: italic; }
.num { font-weight: 400; }

/* 05 Botones y enlaces ---------------------------------------------------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: 1.05em 2em; border: 1px solid currentColor; border-radius: 999px; background: transparent;
	color: var(--ink); font-family: var(--font-ui); font-weight: 500; font-size: .78rem; line-height: 1;
	text-transform: uppercase; letter-spacing: .18em; cursor: pointer; overflow: hidden; isolation: isolate;
	transition: color .5s var(--ease-out), border-color .5s;
}
.btn::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--ink);
	transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
	transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn--light { color: #fff; }
.btn--light::before { background: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); }
.btn--ghost { border-color: rgba(27, 26, 24, .35); }
.btn--light.btn--ghost { border-color: rgba(255, 255, 255, .45); }
.btn--small { padding: .85em 1.5em; font-size: .72rem; }
.btn span { position: relative; display: block; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 2rem; }

.link {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
	padding-bottom: 2px; transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink); }
.link--arrow .arrow { transition: transform .4s var(--ease-out); }
.link--arrow:hover .arrow { transform: translateX(6px); }
.link--light { color: var(--on-night); }
.intro-sec__body .link--arrow { margin-top: .6rem; }

/* 06 Cabecera y menú móvil ------------------------------------------------ */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 200; color: var(--ink);
	transition: transform .5s var(--ease-out), background-color .5s, color .5s, backdrop-filter .5s;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.has-hero .site-header:not(.is-solid) { background: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-110%); }
body.nav-open .site-header { background: transparent; color: var(--on-night); transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__in { max-width: 1680px; margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 7px; color: inherit; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: .005em; }
.brand__tag { font-family: var(--font-ui); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; opacity: .75; }
.brand img { max-height: 48px; width: auto; }
.nav-main .menu, .foot-menu, .legal-menu, .mnav__list { list-style: none; }
.nav-main .menu { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-main a {
	position: relative; display: block; padding: .5em 0; font-weight: 500; font-size: .78rem;
	text-transform: uppercase; letter-spacing: .16em; color: inherit;
}
.nav-main a::after {
	content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%;
	background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out);
}
.nav-main a:hover::after, .nav-main .current-menu-item > a::after, .nav-main [aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mnav {
	position: fixed; inset: 0; z-index: 190; background: var(--night); color: var(--on-night);
	display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 24px) var(--pad) 32px; visibility: hidden; opacity: 0;
	clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), opacity .3s, visibility 0s .7s; overflow-y: auto;
}
.mnav.is-open { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .7s var(--ease), opacity .2s, visibility 0s; }
.mnav__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 1rem; }
.mnav__list { display: flex; flex-direction: column; gap: .2em; counter-reset: mnav; }
.mnav__list a::before { counter-increment: mnav; content: counter(mnav, decimal-leading-zero); font-family: var(--font-ui); font-size: .7rem; letter-spacing: .2em; color: rgba(239, 233, 223, .5); width: 2.4rem; flex: none; transform: translateY(-.9em); }
.mnav__list a { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.1; color: var(--on-night); }
.mnav__list li { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease-out); }
.mnav.is-open .mnav__list li { opacity: 1; transform: none; }
.mnav.is-open .mnav__list li:nth-child(1) { transition-delay: .25s; }
.mnav.is-open .mnav__list li:nth-child(2) { transition-delay: .32s; }
.mnav.is-open .mnav__list li:nth-child(3) { transition-delay: .39s; }
.mnav.is-open .mnav__list li:nth-child(4) { transition-delay: .46s; }
.mnav.is-open .mnav__list li:nth-child(5) { transition-delay: .53s; }
.mnav.is-open .mnav__list li:nth-child(6) { transition-delay: .6s; }
.mnav__foot { display: flex; flex-direction: column; gap: .5em; font-size: .95rem; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(239, 233, 223, .15); align-items: flex-start; }

@media (max-width: 899px) {
	.nav-main { display: none; }
	.burger { display: block; margin-right: -10px; }
	html:not(.js) .nav-main { display: block; }
	html:not(.js) .burger { display: none; }
	html:not(.js) .nav-main .menu { flex-wrap: wrap; gap: 4px 16px; }
	html:not(.js) .site-header__in { flex-wrap: wrap; }
}
@media (min-width: 900px) { .mnav { display: none; } }

/* 07 Cortina e intro ------------------------------------------------------ */
.page-curtain {
	position: fixed; inset: 0; z-index: 9000; background: var(--paper); pointer-events: none;
	transform: translateY(-101%);
	animation: curtain-out .7s cubic-bezier(.76, 0, .24, 1) both;
	will-change: transform;
}
@keyframes curtain-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }
html.intro-on .page-curtain { display: none; }
.intro {
	position: fixed; inset: 0; z-index: 9500; background: var(--night); color: var(--on-night);
	display: none; align-items: center; justify-content: center; pointer-events: all;
}
html.intro-on .intro { display: flex; animation: intro-safety .01s linear 3.4s forwards; }
@keyframes intro-safety { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.intro__mark { font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 12vw, 9rem); letter-spacing: .08em; display: flex; gap: .04em; }
.intro__mark span { display: inline-block; opacity: 0; transform: translateY(30px); }
html:not(.js) .intro { display: none !important; }

/* 08 Cursor --------------------------------------------------------------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor label.check { cursor: auto; }
html.has-cursor input[type="text"], html.has-cursor input[type="email"], html.has-cursor input[type="tel"], html.has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
	width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; display: flex; align-items: center; justify-content: center;
	transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s;
}
.cursor__label { font-family: var(--font-ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: #000; opacity: 0; transition: opacity .25s; font-weight: 500; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-view .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: #fff; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* 09 Hero (home) ---------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: #fff; }
.hero__slides { position: absolute; inset: -24px; will-change: transform; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; }
.hero__slide.is-prev { opacity: 1; z-index: 1; }
.hero__slide.is-active { opacity: 1; z-index: 2; transition: opacity 1.6s ease; }
.hero__img, .hero__img img { width: 100%; height: 100%; }
.hero__img img { object-fit: cover; transform-origin: var(--origin, 50% 50%); }
.hero__slide.is-active .hero__img img, .hero__slide.is-prev .hero__img img { animation: kenburns 7.5s linear both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
	position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(10, 9, 8, .6) 0%, rgba(10, 9, 8, 0) 26%),
		linear-gradient(to top right, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .38) 38%, rgba(10, 9, 8, 0) 66%);
}
.hero__content { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(64px, 9vh, 110px); max-width: 1680px; }
.hero__title { color: #fff; font-size: clamp(3.2rem, 8.5vw, 8.5rem); font-weight: 300; letter-spacing: -.015em; line-height: .95; margin: 0 0 1.4rem; }
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__line-in { display: block; }
.hero__sub { font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .88); max-width: 38ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
	position: absolute; z-index: 4; right: var(--pad); bottom: clamp(64px, 9vh, 110px); width: min(300px, 40vw);
	text-align: right; color: #fff;
}
.hero__now { margin: 0 0 .8rem; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; line-height: 1.35; }
.hero__now a { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.15; }
.hero__now span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .75; font-weight: 500; }
.hero__count { font-size: .95rem; margin-bottom: .6rem; opacity: .9; }
.hero__count em { font-size: 1.5rem; }
.hero__bar { height: 1px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__bar span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__scroll {
	position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
	font-size: .6rem; text-transform: uppercase; letter-spacing: .3em; color: rgba(255, 255, 255, .8);
}
.hero__scroll i { display: block; width: 1px; height: 40px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: scrolline 2s var(--ease) infinite; }
@keyframes scrolline { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
@media (max-width: 899px) {
	.hero__meta { left: var(--pad); right: var(--pad); width: auto; bottom: 28px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; text-align: left; }
	.hero__now { margin: 0; }
	.hero__count { margin: 0; text-align: right; }
	.hero__bar { grid-column: 1 / -1; }
	.hero__content { bottom: 150px; }
	.hero__scroll { display: none; }
	.hero__sub { margin-bottom: 1.4rem; }
}

/* 10 Home ------------------------------------------------------------------ */
.intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.intro-sec__title { max-width: 15ch; }
.intro-sec__body { padding-bottom: .6rem; }
.trio { display: grid; grid-template-columns: 1fr 1.15fr .9fr; gap: clamp(16px, 4vw, 64px); align-items: start; margin-top: clamp(64px, 9vw, 140px); }
.trio__item { display: block; }
.trio__item--0 { margin-top: 12%; }
.trio__item--1 { margin-top: 0; }
.trio__item--2 { margin-top: 28%; }
.trio__frame { display: block; overflow: hidden; box-shadow: var(--shadow-art); }
.trio__frame img { width: 100%; height: auto; transform: scale(1.12); }

.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.scard { display: block; }
.scard__frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: var(--shadow-art); background: var(--paper-2); }
.scard__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.scard:hover .scard__frame img, .scard:focus-visible .scard__frame img { transform: scale(1.05); }
.scard__text { display: block; padding-top: 1.6rem; }
.scard__name { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; color: var(--ink); }
.scard__sub { display: block; margin-top: .6rem; max-width: 44ch; }
.scard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); }
.scard__foot .num { font-size: 1.3rem; }
.scard__foot .arrow { transition: transform .4s var(--ease-out); }
.scard:hover .arrow { transform: translateX(8px); }

/* Pase horizontal */
.hs { padding-block: 0; overflow: hidden; }
.hs__viewport { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hs__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 110px); padding-inline: var(--pad); will-change: transform; width: max-content; }
.hs__lead { flex: none; width: min(46vw, 560px); }
.hs__lead .display-h2 { color: var(--on-night); }
.hs__item { flex: none; --h: 60vh; }
.hs__item--1 { --h: 48vh; }
.hs__item--2 { --h: 70vh; }
.hs__item .art__img { height: var(--h); width: calc(var(--h) * var(--r, .75)); }
.hs__item .art__img img { width: 100%; height: 100%; object-fit: cover; }
.hs__item .art__meta { width: calc(var(--h) * var(--r, .75)); min-width: 200px; }
.hs__more { flex: none; display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 3.4vw, 3.6rem); color: var(--on-night); padding-right: 12vw; white-space: nowrap; }
.hs__more .arrow { width: 40px; height: 40px; transition: transform .4s var(--ease-out); }
.hs__more:hover .arrow { transform: translateX(10px); }
.hs__bar { position: absolute; left: 0; right: 0; bottom: 34px; height: 1px; padding: 0; }
.hs__bar::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: rgba(239, 233, 223, .2); }
.hs__bar span { position: absolute; left: var(--pad); top: 0; height: 1px; width: calc(100% - 2 * var(--pad)); background: var(--on-night); transform: scaleX(0); transform-origin: left; }
@media (max-width: 899px) {
	.hs { padding-block: clamp(64px, 14vw, 100px); }
	.hs__viewport { height: auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: flex-start; }
	.hs__viewport::-webkit-scrollbar { display: none; }
	.hs__track { width: max-content; gap: 20px; align-items: flex-start; }
	.hs__lead { width: 72vw; scroll-snap-align: start; align-self: center; }
	.hs__item { scroll-snap-align: center; --h: auto; }
	.hs__item .art__img { width: 72vw; height: auto; }
	.hs__item .art__img img { height: auto; }
	.hs__item .art__meta { width: 72vw; }
	.hs__more { align-self: center; padding-right: var(--pad); font-size: 2rem; }
	.hs__bar { display: none; }
}

.quote-sec { padding-block: clamp(110px, 16vw, 260px); }
.quote { margin: 0; text-align: center; }
.quote__text { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--ink); font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.18; max-width: 22ch; margin: 0 auto 2.4rem; text-wrap: balance; }
.quote__text .w { display: inline-block; opacity: .15; white-space: pre; }
.quote__cite { display: block; font-style: normal; font-family: var(--font-ui); font-weight: 500; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }

.expo-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.expo-grid > .expo-sec__text:only-child { grid-column: 1 / -1; max-width: 62ch; }
.expo-sec__img { overflow: hidden; box-shadow: var(--shadow-art); }
.expo-sec__img img { width: 100%; height: auto; }
.expo-sec__when { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink); margin: .8rem 0 1.4rem; }
.expo-sec__text .display-h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 300; }

.buy-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.buy-grid .display-h2 { font-size: clamp(2.6rem, 6vw, 6rem); }

@media (max-width: 899px) {
	.intro-grid, .series-grid, .expo-grid, .buy-grid { grid-template-columns: 1fr; }
	.trio { grid-template-columns: 1fr 1fr; }
	.trio__item--2 { display: none; }
	.trio__item--0 { margin-top: 10%; }
	.series-grid { gap: 56px; }
}

/* 11 Tarjetas de obra ------------------------------------------------------ */
.art { position: relative; perspective: 1000px; }
.art__frame { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; transform-style: preserve-3d; will-change: transform; }
.art__img { position: relative; display: block; width: 100%; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-art); }
.art__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.art__frame:hover .art__img img { transform: scale(1.03); }
.art__glow, .art-lit .art__glow {
	position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; mix-blend-mode: soft-light;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 244, 228, .28), transparent 45%);
}
.art__frame:hover .art__glow, .art-lit:hover .art__glow { opacity: 1; }
.art__meta { padding-top: 1rem; }
.art__title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; margin: 0; }
.art__title a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .5s var(--ease-out); }
.art__title a:hover, .art__title a:focus-visible { background-size: 100% 1px; }
.art__sub { margin: .25rem 0 0; font-size: .82rem; line-height: 1.4; color: var(--ink-soft); }
.art__state { margin: .45rem 0 0; display: flex; align-items: center; gap: .5em; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; color: var(--ink-soft); }
.art__state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); flex: none; }
.art--dark .art__title, .section--dark .art__title { color: var(--on-night); }
.section--dark .art__sub, .section--dark .art__state { color: rgba(239, 233, 223, .66); }
.section--dark .art__img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); background: var(--night-2); }

/* 12 Masonry y filtros ----------------------------------------------------- */
.page-head { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(32px, 5vw, 72px); }
.page-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 100px); align-items: end; }
.page-head__intro { max-width: 46ch; font-size: 1.05rem; margin: 0; }
.page-head__side .counter { margin: 1.4rem 0 0; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; }
.counter .num { font-size: 1.8rem; color: var(--accent); text-transform: none; letter-spacing: 0; margin-right: .2em; }
.page-head .display-h1 { margin-top: .2rem; }
.page-head .page-head__intro { margin-top: 2rem; }

.filters { position: relative; display: none; flex-wrap: wrap; gap: 8px clamp(18px, 3vw, 44px); margin-bottom: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
html.js .filters { display: flex; }
.filters__btn { position: relative; background: none; border: 0; padding: 14px 0 16px; cursor: pointer; font-family: var(--font-ui); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); transition: color .3s; }
.filters__btn .num { font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.filters__btn:hover, .filters__btn.is-active { color: var(--ink); }
.filters__ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }

.masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(16px, 3vw, 40px); align-items: start; }
.masonry.is-ready { display: flex; align-items: flex-start; gap: clamp(14px, 3vw, 40px); }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.masonry__stash { display: none; }
@media (min-width: 1100px) { .masonry:not(.is-ready) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .masonry { gap: 28px 12px; } .masonry.is-ready { gap: 12px; } .masonry__col { gap: 28px; } .art__title { font-size: 1.1rem; } }
.empty { text-align: center; padding: 80px 0; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 36px); }
@media (max-width: 899px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }

/* 13 Cabecera de página / serie ------------------------------------------- */
.phero { position: relative; height: 70vh; min-height: 460px; overflow: hidden; background: var(--night); color: #fff; }
.phero--page { height: 56vh; min-height: 380px; }
.phero__img { position: absolute; inset: -8% 0; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 9, 8, .7), rgba(10, 9, 8, 0) 34%), linear-gradient(to top, rgba(10, 9, 8, .75), rgba(10, 9, 8, 0) 60%), linear-gradient(90deg, rgba(12, 11, 10, .55) 0%, rgba(12, 11, 10, .25) 45%, transparent 75%); }
.phero__text .eyebrow, .phero__text .display-h1, .phero__sub, .phero__count { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.phero__text { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 80px); max-width: 1680px; }
.phero .display-h1 { color: #fff; }
.phero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.8rem); color: rgba(255, 255, 255, .9); margin: 1.2rem 0 0; max-width: 40ch; }
.phero__count { margin: .8rem 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255, .8); }
.phero__count .num { font-size: 1.5rem; text-transform: none; letter-spacing: 0; }
.prose--center { text-align: center; }
.prose--center > * { margin-inline: auto; }
.prose--center p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.4; color: var(--ink); }

.nextcard { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--on-night); overflow: hidden; }
.nextcard__img { display: block; min-height: 320px; overflow: hidden; }
.nextcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.nextcard:hover .nextcard__img img { transform: scale(1.05); }
.nextcard__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px, 5vw, 80px); gap: .6rem; }
.nextcard__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; color: var(--on-night); margin-bottom: 1.2rem; }
@media (max-width: 899px) { .nextcard { grid-template-columns: 1fr; } .nextcard__img { min-height: 240px; order: -1; } }

/* 14 Obra individual ------------------------------------------------------- */
.sobra__grid { display: grid; grid-template-columns: 8fr 4fr; align-items: start; }
.sobra__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 0px); padding: calc(var(--header-h) + 40px) clamp(24px, 6vw, 100px) 80px; transition: background-color 1s; }
.sobra__art { width: auto; max-width: 100%; }
.sobra__art .art__frame { width: auto; }
.sobra__art .art__img { width: auto; max-width: 100%; max-height: calc(100vh - var(--header-h) - 140px); }
.sobra__art .art__img img { width: auto; max-width: 100%; max-height: calc(100vh - var(--header-h) - 140px); height: auto; object-fit: contain; }
.sobra__zoom { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); }
.sobra__info { padding: calc(var(--header-h) + 40px) var(--pad) 80px clamp(24px, 4vw, 64px); }
.sobra__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
body.admin-bar .sobra__sticky { top: calc(var(--header-h) + 64px); }
.sobra__title { margin-bottom: 2rem; font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
.spec { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 500; color: var(--ink); padding-top: .25em; }
.spec dd { margin: 0; }
.sobra__content { margin-bottom: 2rem; }
.sobra__note { margin: 0 0 1.6rem; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.sobra__content > * { max-width: none; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: clamp(40px, 6vw, 90px); }
.pn__item { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pn__item--next { flex-direction: row-reverse; text-align: right; }
.pn__thumb { width: 84px; flex: none; overflow: hidden; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .35); }
.pn__thumb img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.pn__item:hover .pn__thumb img { transform: scale(1.08); }
.pn__text .eyebrow { margin-bottom: .3rem; }
.pn__item--next .eyebrow { flex-direction: row-reverse; }
.pn__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.15; display: block; }
@media (max-width: 899px) {
	.sobra__grid { grid-template-columns: 1fr; }
	.sobra__stage { min-height: 0; padding: calc(var(--header-h) + 24px) 20px 72px; }
	.sobra__art .art__img, .sobra__art .art__img img { max-height: 70vh; }
	.sobra__info { padding: 36px var(--pad) 40px; }
	.sobra__sticky { position: static; }
	.pn { grid-template-columns: 1fr; gap: 0; }
	.pn__item--next { flex-direction: row; text-align: left; }
	.pn__item--next .eyebrow { flex-direction: row; }
	.spec > div { grid-template-columns: 8rem 1fr; }
}

/* 15 Biografía y prose ----------------------------------------------------- */
.bio-head { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding-top: clamp(32px, 6vw, 96px); padding-bottom: clamp(24px, 4vw, 60px); }
.bio-head__img { --r: 3 / 4; overflow: hidden; aspect-ratio: var(--r); width: min(100%, calc(78vh * (var(--r)))); max-height: 78vh; box-shadow: var(--shadow-art); background: var(--paper-2); justify-self: start; }
.bio-head__img img { width: 100%; height: 100%; object-fit: contain; }
.bio-head:not(:has(.bio-head__img)) { grid-template-columns: 1fr; }
.bio-head__lead { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); max-width: 36ch; margin: 2rem 0 0; }
@media (max-width: 899px) { .bio-head { grid-template-columns: 1fr; } .bio-head__img { max-width: 420px; } }

.prose { --measure: 37rem; }
.prose > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.prose--wide > * { max-width: 48rem; margin-left: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 2.4em auto .6em; line-height: 1.1; }
.prose h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; margin: 2em auto .5em; }
.prose h4 { font-size: 1.25rem; font-weight: 500; margin: 1.6em auto .4em; }
.prose > :first-child { margin-top: 0; }
.prose a:not(.wp-block-button__link):not(.btn) { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s, color .3s; }
.prose a:not(.wp-block-button__link):not(.btn):hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose blockquote, .wp-block-quote { margin: 3em auto; padding: 0; border: 0; text-align: center; }
.prose blockquote p, .wp-block-quote p, .wp-block-pullquote p { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.25; color: var(--ink); }
.prose blockquote, .prose .wp-block-quote { max-width: 40rem; margin-inline: auto; }
.prose blockquote p, .prose .wp-block-quote p { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.3; text-wrap: balance; max-width: none; }
.prose blockquote cite, .wp-block-quote cite, .wp-block-pullquote cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-top: 1rem; }
.wp-block-pullquote { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.4em 0; text-align: center; margin: 3em auto; }
.prose .wp-block-image, .prose figure { margin-top: 2.4em; margin-bottom: 2.4em; }
.prose figure img { width: 100%; height: auto; box-shadow: var(--shadow-art); }
.prose figcaption, .wp-element-caption { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: .9em; font-style: italic; font-family: var(--font-display); font-size: 1.05rem; }
.prose .alignwide { max-width: min(1200px, 100%); }
.prose .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.prose .alignfull img { box-shadow: none; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 2em; max-width: min(1100px, 100%); align-items: flex-start; }
.prose .wp-block-column { flex: 1 1 260px; min-width: 0; }
.prose .wp-block-gallery { max-width: min(1200px, 100%); display: flex; flex-wrap: wrap; gap: 14px; padding: 0; list-style: none; }
.prose .wp-block-gallery .wp-block-image { margin: 0; flex: 1 1 220px; }
.prose .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.prose .wp-block-separator, .prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em auto; width: 100%; max-width: var(--measure); opacity: 1; background: none; height: 0; }
.prose .wp-block-separator.is-style-dots { border: 0; text-align: center; max-width: none; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em auto; }
.prose .wp-block-button__link { display: inline-block; padding: 1.05em 2em; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; transition: background-color .4s, color .4s; }
.prose .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }
.prose .wp-block-button.is-style-fill .wp-block-button__link { background: var(--ink); color: var(--paper); }
.prose .wp-block-button.is-style-fill .wp-block-button__link:hover { background: transparent; color: var(--ink); }
.prose table, .prose .wp-block-table { width: 100%; max-width: min(900px, 100%); border-collapse: collapse; font-size: .95rem; margin-bottom: 2em; }
.prose .wp-block-table { overflow-x: auto; }
.prose table, .prose .wp-block-table { max-width: var(--measure); background: none; }
.prose .wp-block-table table { margin: 0; }
.prose table, .prose table thead, .prose table tbody, .prose table tr, .prose table th, .prose table td, .prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: none; }
.prose table th, .prose table td { text-align: left; padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--line); font-family: var(--font-ui); color: var(--ink); vertical-align: baseline; }
.prose table td:nth-child(2), .prose table th:nth-child(2) { text-align: right; }
.prose table td:nth-child(2) { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.prose table td:nth-child(2) strong, .prose table td:nth-child(1) strong { font-weight: inherit; }
.prose .wp-block-table figcaption { text-align: left; }
.prose table th { color: var(--ink); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; border-bottom-color: var(--ink); }
.prose .has-text-align-center { text-align: center; }
.list-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.search-form { display: flex; gap: 10px; margin-bottom: 2rem; }
.search-form input[type="search"] { flex: 1; padding: .8em 1em; border: 1px solid var(--line); background: transparent; font: inherit; }
.search-form input[type="submit"] { padding: .8em 1.4em; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px; cursor: pointer; }

/* 16 Contacto y formulario ------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 140px); padding-top: clamp(32px, 6vw, 96px); padding-bottom: var(--sec); align-items: start; }
.contact__info .prose > * { margin-left: 0; }
.contact__info .display-h1 { margin-bottom: 2rem; }
.contact__list { margin: 2.4rem 0 0; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 500; color: var(--ink); padding-top: .3em; }
.contact__list dd { margin: 0; }
.cform { display: grid; gap: 8px; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__status:empty { display: none; }
.cform__status { margin-bottom: 1rem; outline: none; }
.cform__ok, .cform__err { padding: 1rem 1.2rem; margin: 0; border-left: 2px solid var(--olive); background: color-mix(in srgb, var(--olive) 10%, transparent); color: var(--ink); }
.cform__err { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.field { position: relative; padding-top: 1.4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .7rem 0 .6rem;
	font: inherit; font-size: 1.05rem; color: var(--ink); border-radius: 0; resize: vertical; outline: none;
}
.field textarea { min-height: 7.5rem; }
.field label { position: absolute; left: 0; top: calc(1.4rem + .7rem); color: var(--ink-soft); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
	transform: translateY(-1.65rem) scale(.78); color: var(--ink); font-weight: 500; letter-spacing: .04em;
}
.field .line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within .line { transform: scaleX(1); }
.field.has-error .line { transform: scaleX(1); }
.field__err { margin: .4rem 0 0; min-height: 0; font-size: .82rem; color: var(--accent); }
.field__err:empty { display: none; }
.field--check { padding-top: 1.2rem; }
.check { display: flex; align-items: flex-start; gap: .8rem; font-size: .92rem; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box { flex: none; width: 20px; height: 20px; border: 1px solid var(--ink); margin-top: .2em; position: relative; transition: background .3s; }
.check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s; }
.check input:checked + .check__box { background: var(--ink); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform .btn { margin-top: 2.2rem; justify-self: start; }
.cform .btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } .contact__list > div { grid-template-columns: 8.5rem 1fr; } }

/* 17 404 ------------------------------------------------------------------- */
.e404 { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: var(--sec); min-height: calc(100vh - 120px); }
.e404__img { overflow: hidden; box-shadow: var(--shadow-art); max-height: 70vh; }
.e404__img img { width: 100%; height: 70vh; max-height: 70vh; object-fit: cover; }
@media (max-width: 899px) { .e404 { grid-template-columns: 1fr; min-height: 0; } .e404__img img { height: 46vh; } }

/* 18 Pie ------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(48px, 7vw, 110px); overflow: hidden; position: relative; }
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: clamp(48px, 7vw, 110px); user-select: none; }
.marquee__track { display: inline-flex; animation: marquee 60s linear infinite; will-change: transform; }
.marquee__item { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(4rem, 10vw, 10rem); line-height: 1.05; color: rgba(239, 233, 223, .18); padding-right: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot-grid { display: grid; grid-template-columns: 7fr 3fr; gap: clamp(32px, 6vw, 100px); padding-bottom: clamp(56px, 8vw, 120px); }
.foot-cta .display-h2 { font-size: clamp(3rem, 7vw, 7rem); margin-bottom: 1.2rem; }
.foot-mail { display: inline-block; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 3.4rem); color: var(--on-night); line-height: 1.2; padding: .2em 0; overflow-wrap: anywhere; }
.foot-mail span { display: inline-block; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; transition: background-size .5s var(--ease-out), color .3s; }
.foot-mail:hover span { background-size: 0 1px; }
.foot-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 1.6rem; }
.foot-menu { display: flex; flex-direction: column; gap: .5rem; }
.foot-menu a { font-family: var(--font-display); font-size: 1.5rem; color: var(--on-night); }
.foot-menu a:hover { color: #fff; font-style: italic; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(239, 233, 223, .14); font-size: .85rem; color: rgba(239, 233, 223, .66); }
.foot-bar p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bar a { color: rgba(239, 233, 223, .8); }
.foot-bar a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--on-night); }
.foot-grid--nocta { grid-template-columns: 1fr; }
@media (max-width: 899px) { .foot-grid { grid-template-columns: 1fr; } }

/* 19 Lightbox -------------------------------------------------------------- */
.lb {
	position: fixed; inset: 0; z-index: 9200; display: flex; flex-direction: column; color: var(--on-night);
	background: color-mix(in srgb, var(--lb-color, #6b625a) 22%, #0c0b0a);
	opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s, background-color .6s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s, background-color .6s; }
.lb__top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); }
.lb__count { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; letter-spacing: .04em; }
.lb__tools { display: flex; gap: 6px; }
.lb__btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(239, 233, 223, .28); border-radius: 50%; background: transparent; color: var(--on-night); cursor: pointer; transition: background-color .3s, color .3s; }
.lb__btn:hover, .lb__btn:focus-visible { background: var(--on-night); color: #0c0b0a; }
.lb__btn svg { width: 20px; height: 20px; }
.lb__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(56px, 8vw, 120px); overflow: hidden; touch-action: pan-y; }
.lb__fig { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; transition: opacity .35s; }
.lb.is-zoomed .lb__fig { cursor: zoom-out; }
.lb__fig.is-swap { opacity: 0; }
.lb__img { max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); width: auto; height: auto; object-fit: contain; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.lb__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(8px, 2vw, 28px); }
.lb__nav--next { right: clamp(8px, 2vw, 28px); }
.lb__bar { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 18px clamp(16px, 3vw, 40px) 24px; }
.lb__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; color: #fff; margin: 0; line-height: 1.15; }
.lb__meta { margin: .3rem 0 0; font-size: .85rem; color: rgba(239, 233, 223, .75); }
.lb__state { display: flex; align-items: center; gap: .5em; margin: .3rem 0 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; color: rgba(239, 233, 223, .8); }
.lb__state .dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa86a; }
.lb__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lb .btn { color: var(--on-night); font-size: .72rem; padding: .95em 1.6em; }
.lb .btn::before { background: var(--on-night); }
.lb .btn:hover, .lb .btn:focus-visible { color: #0c0b0a; }
@media (max-width: 699px) {
	.lb__stage { padding: 0 8px; }
	.lb__nav { display: none; }
	.lb__img { max-height: calc(100svh - 270px); }
	.lb__actions { width: 100%; }
	.lb__actions .btn { flex: 1; padding-inline: 1em; }
}

/* 20 Estados de animación y reduced-motion ------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); }
html.js [data-reveal-img] { clip-path: inset(100% 0 0 0); }
html.js [data-split]:not(.is-split) { visibility: hidden; }
html.js .hero__line-in { transform: translateY(105%); }
html.js .hero__sub, html.js .hero__cta, html.js .hero__content > .eyebrow, html.js .hero__meta, html.js .hero__scroll { opacity: 0; }
html.js.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
html.js.no-anim [data-reveal-img] { clip-path: none !important; }
html.js.no-anim [data-split] { visibility: visible !important; }
html.js.no-anim .hero__line-in { transform: none !important; }
html.js.no-anim .hero__sub, html.js.no-anim .hero__cta, html.js.no-anim .hero__content > .eyebrow, html.js.no-anim .hero__meta, html.js.no-anim .hero__scroll { opacity: 1 !important; }
html.js.no-anim .quote__text .w { opacity: 1 !important; }
html.js.no-anim .page-curtain { display: none; }
.is-split .split-line { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	html.js [data-reveal], html.js [data-reveal-img], html.js [data-split], html.js .hero__line-in,
	html.js .hero__sub, html.js .hero__cta, html.js .hero__content > .eyebrow, html.js .hero__meta, html.js .hero__scroll { opacity: 1 !important; transform: none !important; clip-path: none !important; visibility: visible !important; }
	.quote__text .w { opacity: 1 !important; }
	.hero__slide.is-active { transition-duration: .6s; }
	.hero__slide.is-active .hero__img img, .hero__slide.is-prev .hero__img img { animation: none; }
	.page-curtain, .intro { display: none !important; }
	.marquee__track { animation-duration: 240s !important; animation-iteration-count: infinite !important; }
	.hero__scroll i::after { animation: none; }
	.trio__frame img { transform: none; }
	.cursor { display: none !important; }
}

/* Estados finales de revelado y utilidades de JS */
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal-img].is-in { clip-path: none; }
html.lb-open { overflow: hidden; }
.hs.hs-native .hs__viewport { overflow-x: auto; }

.e404__text .display-h2 { margin-bottom: 1.4rem; }
.bio-head__img img { display: block; }

@media (max-width: 899px) {
	.page-head--split { grid-template-columns: 1fr; }
	.hs__viewport { scroll-padding-inline: var(--pad); }
}
@media (max-width: 599px) {
	.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 24px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
	.filters::-webkit-scrollbar { display: none; }
	.filters__btn { white-space: nowrap; font-size: .7rem; letter-spacing: .12em; flex: none; }
}

/* El checkbox de privacidad no es un campo flotante */
.field--check .check { position: relative; top: auto; left: auto; transform: none; pointer-events: auto; color: var(--ink-soft); }
