/* =========================================================
   Las Margas — main.css  v0.1.18
   Paper, ink, one image at a time.
   ========================================================= */

:root {
	--paper: #f3ede4;
	--paper-2: #e9e1d5;
	--ink: #171512;
	--ink-2: #4a463f;
	--stone: #8b857c;
	--line: rgba(23, 21, 18, .14);
	--white: #fbf8f3;

	--serif: "Instrument Serif", "Times New Roman", Georgia, serif;
	--sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 4vw, 56px);
	--measure: 62ch;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--t: .5s var(--ease);
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(16px, 1.05vw + 10px, 19px);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .visit a, .menu-overlay__aside a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--stone); }
p a:hover, .prose a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 112px); }
h2 { font-size: clamp(34px, 4.6vw, 72px); }
h3 { font-size: clamp(26px, 3vw, 44px); }
h4 { font-size: clamp(22px, 2vw, 30px); }
em, i:not([class]) { font-style: italic; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 1000; }
.skip:focus { left: 8px; }
::selection { background: var(--ink); color: var(--paper); }

.eyebrow {
	font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin: 0 0 1.4em;
}
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
	border: 1px solid var(--ink); border-radius: 999px; padding: 1em 1.8em; color: var(--ink); background: transparent;
	transition: background var(--t), color var(--t);
	min-height: 48px;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--big { padding: 1.2em 2.4em; font-size: 15px; }
.link-arrow { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: .3em; }
.link-arrow::after { content: " →"; }

/* ---------- Cabecera ---------- */
.site-head {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: clamp(14px, 2vw, 26px) var(--gutter);
	color: var(--ink);
	transition: background var(--t), color var(--t), padding var(--t);
	pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.is-home .site-head, .has-hero .site-head { color: var(--white); }
.site-head.is-solid { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); }
.site-head__logo { justify-self: start; }
.site-head .logo { width: auto; height: clamp(54px, 6vw, 84px); transition: filter var(--t), height var(--t); }
.is-home .site-head:not(.is-solid) .logo--dark, .has-hero .site-head:not(.is-solid) .logo--dark { display: none; }
.site-head.is-solid .logo--light, .is-inner:not(.has-hero) .site-head .logo--light, .site-foot .logo--light { display: none; }
.site-head.is-solid .logo--dark { display: block; }
.logo--text { font-family: var(--serif); font-size: 28px; letter-spacing: .04em; text-transform: uppercase; }

.site-head__nav { justify-self: center; }
.nav-inline { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-inline a { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: .6em 0; position: relative; }
.nav-inline a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.nav-inline a:hover::after, .nav-inline .current-menu-item a::after { transform: scaleX(1); }
@media (max-width: 1023px) { .site-head__nav { display: none; } }

.site-head__tools { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-head__private { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 599px) { .site-head__private span { display: none; } }
.menu-btn { display: inline-flex; align-items: center; gap: .7em; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; }
.menu-btn__icon { width: 26px; height: 12px; position: relative; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--t), top var(--t); }
.menu-btn__icon i:first-child { top: 0; } .menu-btn__icon i:last-child { top: 11px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .menu-btn__label { display: none; } }

/* ---------- Menú overlay ---------- */
.menu-overlay {
	position: fixed; inset: 0; z-index: 40; background: var(--paper); color: var(--ink);
	display: grid; align-content: end;
	padding: calc(80px + 4vh) var(--gutter) 6vh;
	opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
	overflow: auto;
}
.menu-overlay[hidden] { display: grid; }
.menu-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
body.menu-open .site-head { color: var(--ink); }
body.menu-open .site-head .logo--light { display: none; }
body.menu-open .site-head .logo--dark { display: block; }
.menu-overlay__inner { display: grid; gap: 6vh; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .menu-overlay__inner { grid-template-columns: 2fr 1fr; } }
.nav-big { list-style: none; margin: 0; padding: 0; }
.nav-big li { border-top: 1px solid var(--line); }
.nav-big li:last-child { border-bottom: 1px solid var(--line); }
.nav-big a { display: block; font-family: var(--serif); font-size: clamp(40px, 8vw, 96px); line-height: 1.12; padding: .12em 0; transition: padding-left var(--t), color var(--t); }
.nav-big a:hover { padding-left: .25em; }
.nav-big .current-menu-item a { font-style: italic; }
.nav-big__private { display: inline-block; margin-top: 3vh; font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: .9em 1.6em; }
.menu-overlay__aside { font-size: 15px; color: var(--ink-2); }
.menu-overlay__aside p { margin: 0 0 .6em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.hero--home { min-height: 100svh; }
.hero--page { min-height: clamp(420px, 68vh, 760px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--home .hero__img { animation: hero-in 2.2s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .2; } to { transform: none; opacity: 1; } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.hero__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 72px); max-width: 26em; }
.hero--page .hero__text { max-width: none; }
.hero__claim { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 52px); line-height: 1.08; margin: 0; text-wrap: balance; }
.hero__title { color: var(--white); }
.hero__sub { font-size: clamp(15px, 1.3vw, 19px); max-width: 40em; margin: 1em 0 0; opacity: .9; }
.hero__cue { position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 72px); display: inline-flex; align-items: center; gap: .8em; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hero__cue i { width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 599px) { .hero__cue { right: auto; left: var(--gutter); bottom: 20px; } .hero__text { bottom: 90px; } }

/* ---------- Tiles (entradas a secciones) ---------- */
.tiles { display: grid; gap: 4px; grid-template-columns: 1fr; background: var(--paper); padding: 4px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); color: var(--white); }
@media (max-width: 899px) { .tile { aspect-ratio: 4 / 3; } }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%); }
.tile__label { position: absolute; left: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 36px); z-index: 1; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 48px); line-height: 1; display: flex; align-items: baseline; gap: .4em; }
.tile__label i { font-style: normal; font-family: var(--sans); font-size: .55em; transition: transform var(--t); }
.tile:hover .tile__label i { transform: translateX(.3em); }

/* ---------- Intro / bloques de texto ---------- */
.intro { padding: clamp(72px, 12vh, 160px) var(--gutter); }
.intro__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 2em; }
@media (min-width: 900px) { .intro__inner { grid-template-columns: 1fr 3fr; } .intro__inner .link-arrow { grid-column: 2; justify-self: start; } }
.intro__text { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.22; text-wrap: pretty; }
.intro__text p { margin: 0; }

/* ---------- Página interior ---------- */
.page-head { padding: calc(100px + 6vh) var(--gutter) 4vh; max-width: 1100px; margin: 0 auto; }
.page-head__sub { color: var(--ink-2); max-width: var(--measure); }
.prose { padding: clamp(56px, 9vh, 120px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.prose > * { max-width: var(--measure); }
.prose > p:first-child, .prose > p.is-style-lead, .prose .has-large-font-size { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.22; margin-bottom: 1.2em; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin: 2.2em 0 .6em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose figure { margin: 3em 0; }
.prose figcaption { font-size: 13px; color: var(--stone); margin-top: .6em; }
.prose .alignwide, .prose .alignfull, .prose .wp-block-gallery, .prose .wp-block-embed, .prose .wp-block-image { max-width: none; }
.prose .alignfull { width: calc(100% + var(--gutter) * 2); margin-left: calc(var(--gutter) * -1); }
.prose .wp-block-embed { margin: 3em 0; }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: 1em 1.8em; color: var(--ink); background: transparent; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }

/* Galería editorial: pocas fotos, grandes, ritmo irregular */
.lm-gallery { --g: clamp(10px, 1.6vw, 24px); display: grid !important; gap: var(--g) !important; grid-template-columns: repeat(6, 1fr); margin: 4em 0 !important; }
.lm-gallery .wp-block-image, .lm-gallery figure { margin: 0 !important; width: auto !important; }
.lm-gallery > * { grid-column: span 6; }
.lm-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) {
	.lm-gallery > *:nth-child(6n+1) { grid-column: span 4; }
	.lm-gallery > *:nth-child(6n+2) { grid-column: span 2; align-self: end; }
	.lm-gallery > *:nth-child(6n+3) { grid-column: span 3; }
	.lm-gallery > *:nth-child(6n+4) { grid-column: span 3; }
	.lm-gallery > *:nth-child(6n+5) { grid-column: 2 / span 4; }
	.lm-gallery > *:nth-child(6n+6) { grid-column: span 6; }
}

/* ---------- Ven a conocernos ---------- */
.visit { background: var(--paper-2); padding: clamp(72px, 12vh, 160px) var(--gutter); }
.visit__inner { max-width: 1100px; margin: 0 auto; }
.visit__title { margin-bottom: 1.2em; text-wrap: balance; }
.visit__cols { display: grid; gap: 1.6em; grid-template-columns: 1fr; margin-bottom: 2.4em; line-height: 1.7; }
@media (min-width: 700px) { .visit__cols { grid-template-columns: repeat(3, 1fr); } }
.visit__cols p { margin: 0; }

/* ---------- Pie ---------- */
.site-foot { padding: 6vh var(--gutter) 5vh; border-top: 1px solid var(--line); }
.site-foot__row { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2em; align-items: flex-end; justify-content: space-between; }
.site-foot__row--small { margin-top: 5vh; font-size: 13px; color: var(--stone); align-items: center; }
.site-foot__row--small p { margin: 0; }
.site-foot .logo { height: 72px; width: auto; }
.nav-foot, .nav-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4em; }
.nav-foot a { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav-legal a { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Formulario ---------- */
.lm-form { display: grid; gap: 1.4em; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 700px) { .lm-form { grid-template-columns: 1fr 1fr; } .lm-field--textarea, .lm-field--check, .lm-form .btn { grid-column: 1 / -1; } }
.lm-field label { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6em; }
.lm-field input:not([type=checkbox]), .lm-field select, .lm-field textarea {
	width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: .6em 0; min-height: 48px; outline: none;
}
.lm-field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23171512' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right center; padding-right: 24px; }
.lm-field textarea { resize: vertical; }
.lm-field input:focus, .lm-field select:focus, .lm-field textarea:focus { border-bottom-width: 2px; }
.lm-field--check label { text-transform: none; letter-spacing: 0; font-size: 14px; display: flex; gap: .7em; align-items: flex-start; }
.lm-field--check input { width: 18px; height: 18px; margin-top: .15em; accent-color: var(--ink); }
.lm-form__hp { position: absolute; left: -9999px; }
.lm-form__ok { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); }
.lm-form__error { color: #8a2f1f; }
.lm-form .btn { justify-self: start; }

/* ---------- Cursor (solo puntero fino) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	body.has-cursor { cursor: none; }
	body.has-cursor a, body.has-cursor button { cursor: none; }
	body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: auto; }
	.cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; color: #fff; }
	.cursor__dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
	.cursor__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; transition: transform .35s var(--ease), opacity .35s; }
	.cursor.is-link .cursor__ring { transform: scale(1.6); }
	.cursor.is-label .cursor__ring { transform: scale(2.4); background: currentColor; }
	.cursor.is-label .cursor__dot { opacity: 0; }
	.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #000; mix-blend-mode: normal; opacity: 0; transition: opacity .25s; white-space: nowrap; }
	.cursor.is-label .cursor__label { opacity: 1; }
	.cursor.is-hidden { opacity: 0; }
}

/* ---------- Reveal suave ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Admin bar ---------- */
body.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-head { top: 46px; } }

/* ---------- Portada v2 (0.1.14) ---------- */
.hero--v2 .hero__veil { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.hero__bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(16px, 3vh, 36px); display: grid; gap: .6em; }
.hero--v2 .hero__claim { font-size: clamp(17px, 1.6vw, 24px); max-width: 26em; margin: 0 0 .4em; opacity: .92; }
.hero__mark { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: clamp(64px, 15vw, 290px); line-height: .98; letter-spacing: -.02em; margin: 0 0 0 -.03em; display: block; animation: mark-in 1.6s .3s var(--ease) both; }
.hero__mark-pre { display: block; font-family: var(--sans); font-size: clamp(11px, .9vw, 14px); letter-spacing: .3em; text-transform: uppercase; line-height: 1; margin: 0 0 1.4em .2em; opacity: .85; }
@keyframes mark-in { from { opacity: 0; transform: translateY(.15em); } to { opacity: 1; transform: none; } }
.hero--v2 .hero__cue { bottom: auto; top: calc(100svh - 56px); right: var(--gutter); }
@media (max-width: 899px) { .hero--v2 .hero__cue { display: none; } .hero__bottom { bottom: 28px; } }
/* En portada el logo de cabecera se retira mientras el nombre grande está en pantalla */
.is-home .site-head:not(.is-solid) .site-head__logo { opacity: 0; pointer-events: none; }
.site-head__logo { transition: opacity var(--t); }

/* Secuencia editorial */
.seq { padding: clamp(64px, 10vh, 140px) var(--gutter) 0; max-width: 1400px; margin: 0 auto; display: grid; gap: clamp(72px, 12vh, 180px); }
.seq__item { display: grid; gap: clamp(20px, 3vw, 40px); align-items: end; }
.seq__media { display: block; overflow: hidden; background: var(--paper-2); }
.seq__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.seq__media:hover .seq__img { transform: scale(1.03); }
.seq__title { font-size: clamp(44px, 6.5vw, 108px); line-height: .95; margin: .2em 0 .35em; letter-spacing: -.01em; }
.seq__title a { text-decoration: none; }
.seq__line { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 26em; margin: 0 0 1.6em; }
@media (min-width: 900px) {
	.seq__item { grid-template-columns: repeat(12, 1fr); }
	.seq__item--1 .seq__media { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
	.seq__item--1 .seq__text  { grid-column: 9 / span 4; }
	.seq__item--2 .seq__media { grid-column: 7 / span 6; grid-row: 1; aspect-ratio: 4 / 5; }
	.seq__item--2 .seq__text  { grid-column: 1 / span 5; grid-row: 1; align-self: center; }
	.seq__item--3 .seq__media { grid-column: 3 / span 8; aspect-ratio: 16 / 9; }
	.seq__item--3 .seq__text  { grid-column: 3 / span 8; text-align: center; justify-items: center; display: grid; }
	.seq__item--3 .seq__line { max-width: 30em; }
}
@media (max-width: 899px) { .seq__media { aspect-ratio: 4 / 3; } }

/* Franja de datos */
.facts { padding: clamp(80px, 14vh, 200px) var(--gutter) clamp(64px, 10vh, 140px); max-width: 1400px; margin: 0 auto; }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2em 1.5em; }
@media (min-width: 900px) { .facts__list { grid-template-columns: repeat(5, 1fr); } }
.facts__list li { border-top: 1px solid var(--ink); padding-top: 1em; }
.facts__list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; margin-bottom: .35em; }
.facts__list span { font-size: 14px; color: var(--ink-2); line-height: 1.5; display: block; max-width: 16em; }

/* Bodas · cómo funciona */
.prose .steps { max-width: none; display: grid; gap: 2.5em 2em; grid-template-columns: 1fr; margin: 3em 0; }
@media (min-width: 800px) { .prose .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__item { border-top: 1px solid var(--ink); padding-top: 1.2em; }
.steps__title { font-size: clamp(26px, 2.6vw, 36px); margin: .3em 0 .5em; }
.steps__text { font-size: 16px; color: var(--ink-2); margin: 0; }

/* Producciones · ficha técnica */
.prose .sheet { max-width: none; margin: 3em 0; }
.sheet__row { display: grid; grid-template-columns: 1fr; gap: .3em 2em; padding: 1em 0; border-top: 1px solid var(--line); }
.sheet__row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .sheet__row { grid-template-columns: 200px 1fr; } }
.sheet dt { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-top: .35em; }
.sheet dd { margin: 0; font-size: 17px; }

/* ---------- Portada v3: fotos (0.1.16) ---------- */
.hero--v3 .hero__stack { position: absolute; inset: 0; }
.hero--v3 .hero__img { opacity: 0; transition: opacity 2.4s var(--ease); animation: none; transform: none; }
.hero--v3 .hero__img.is-on { opacity: 1; }
.hero__veil--v3 { background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 100%); }
.hero__brand { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 64px); display: grid; gap: 1.2em; }
.hero__brand .logo { height: clamp(150px, 26vh, 300px); width: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.25)); animation: mark-in 1.6s .3s var(--ease) both; }
.hero__brand .hero__claim { font-size: clamp(17px, 1.5vw, 23px); max-width: 24em; margin: 0; opacity: .92; }
.hero--v3 .hero__cue { bottom: clamp(24px, 5vh, 64px); }
@media (max-width: 599px) { .hero--v3 .hero__cue { display: none; } .hero__brand { bottom: 28px; } .hero__brand .logo { height: 130px; } }

/* Paseo: tres entradas a sangre */
.walk { display: grid; gap: 4px; padding: 4px 0 0; background: var(--paper); }
.walk__item { position: relative; display: block; overflow: hidden; background: var(--paper-2); color: var(--white); aspect-ratio: 16 / 7; text-decoration: none; }
@media (max-width: 899px) { .walk__item { aspect-ratio: 4 / 5; } }
.walk__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.walk__item:hover .walk__img { transform: scale(1.03); }
.walk__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.walk__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 48px); display: grid; gap: .4em; }
.walk__title { font-family: var(--serif); font-size: clamp(44px, 7vw, 120px); line-height: .95; letter-spacing: -.01em; }
.walk__line { font-size: clamp(15px, 1.2vw, 18px); max-width: 30em; opacity: .9; }
.walk__title::after { content: " →"; font-family: var(--sans); font-size: .4em; vertical-align: middle; opacity: 0; transition: opacity var(--t), transform var(--t); display: inline-block; transform: translateX(-.3em); }
.walk__item:hover .walk__title::after { opacity: 1; transform: none; }

/* ---------- Cortina de entrada + transiciones (0.1.17) ---------- */
.curtain { display: none; }
.lm-curtain .curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 900; background: var(--paper); animation: curtain-up 1s .55s var(--ease) both; pointer-events: none; }
.lm-curtain .curtain .logo { height: 96px; width: auto; animation: curtain-logo .5s var(--ease) both; }
.lm-curtain .curtain .logo--light { display: none; }
@keyframes curtain-up { to { transform: translateY(-100%); } }
@keyframes curtain-logo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Portada v4: tablero ---------- */
.board { padding: calc(90px + 4vh) var(--gutter) 6vh; max-width: 1400px; margin: 0 auto; }
.board__mast { text-align: center; display: grid; justify-items: center; gap: 1.6em; margin-bottom: clamp(48px, 8vh, 110px); }
.board__mast .logo { height: clamp(120px, 20vh, 220px); width: auto; }
.board__mast .logo--light { display: none; }
.board__claim { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; max-width: 22em; margin: 0; text-wrap: balance; color: var(--ink-2); }
.is-home .site-head:not(.is-solid) .site-head__logo { opacity: 0; pointer-events: none; }
.board__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.board__item { margin: 0; background: var(--paper-2); overflow: hidden; will-change: transform; }
.board__img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.board__img.is-in, .no-js .board__img { opacity: 1; }
.board__item--a { grid-column: 2 / span 4; aspect-ratio: 4 / 5; }
.board__item--b { grid-column: 7 / span 5; aspect-ratio: 3 / 2; margin-top: 12vh; }
.board__item--c { grid-column: 1 / span 3; aspect-ratio: 1; margin-top: 6vh; }
.board__item--d { grid-column: 5 / span 5; aspect-ratio: 4 / 3; margin-top: -4vh; }
.board__item--e { grid-column: 10 / span 3; aspect-ratio: 4 / 5; margin-top: 10vh; }
.board__item--f { grid-column: 3 / span 6; aspect-ratio: 16 / 10; margin-top: 8vh; }
@media (max-width: 899px) {
	.board { padding-top: calc(90px + 2vh); }
	.board__mast .logo { height: 120px; }
	.board__grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
	.board__item--a { grid-column: 1 / span 4; margin: 0; }
	.board__item--b { grid-column: 3 / span 4; margin-top: 0; }
	.board__item--c { grid-column: 1 / span 3; margin-top: 0; }
	.board__item--d { grid-column: 2 / span 5; margin-top: 0; }
	.board__item--e { grid-column: 4 / span 3; margin-top: 0; }
	.board__item--f { grid-column: 1 / span 5; margin-top: 0; }
}

/* Entradas grandes en texto */
.doors { max-width: 1400px; margin: 0 auto; padding: clamp(40px, 8vh, 120px) var(--gutter) 0; }
.doors__item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5em; padding: clamp(18px, 2.5vh, 32px) 0; border-top: 1px solid var(--ink); text-decoration: none; }
.doors__item:last-child { border-bottom: 1px solid var(--ink); }
.doors__title { font-family: var(--serif); font-size: clamp(40px, 7vw, 110px); line-height: 1; letter-spacing: -.01em; }
.doors__img { width: clamp(64px, 8vw, 120px); aspect-ratio: 4 / 5; object-fit: cover; opacity: 0; transform: translateX(10px); transition: opacity var(--t), transform var(--t); }
.doors__item:hover .doors__img { opacity: 1; transform: none; }
.doors__arrow { font-family: var(--sans); font-size: clamp(18px, 2vw, 28px); transition: transform var(--t); }
.doors__item:hover .doors__arrow { transform: translateX(.3em); }
@media (max-width: 899px) { .doors__img { display: none; } }

/* Galería suelta: fotos con aire, tamaños distintos, tipo tablero */
.lm-gallery--loose { --g: clamp(16px, 3vw, 48px); grid-template-columns: repeat(12, 1fr) !important; align-items: start; margin: 5em 0 !important; }
.lm-gallery--loose > * { grid-column: span 12; cursor: zoom-in; }
.lm-gallery--loose img { height: auto; }
@media (min-width: 700px) {
	.lm-gallery--loose > *:nth-child(6n+1) { grid-column: 1 / span 5; }
	.lm-gallery--loose > *:nth-child(6n+2) { grid-column: 8 / span 5; margin-top: 14vh; }
	.lm-gallery--loose > *:nth-child(6n+3) { grid-column: 3 / span 7; margin-top: 4vh; }
	.lm-gallery--loose > *:nth-child(6n+4) { grid-column: 1 / span 4; margin-top: 8vh; }
	.lm-gallery--loose > *:nth-child(6n+5) { grid-column: 6 / span 6; margin-top: -6vh; }
	.lm-gallery--loose > *:nth-child(6n+6) { grid-column: 4 / span 6; margin-top: 10vh; }
}
@media (max-width: 699px) {
	.lm-gallery--loose { --g: 28px; grid-template-columns: repeat(6, 1fr) !important; }
	.lm-gallery--loose > *:nth-child(3n+1) { grid-column: 1 / span 5; }
	.lm-gallery--loose > *:nth-child(3n+2) { grid-column: 2 / span 5; }
	.lm-gallery--loose > *:nth-child(3n+3) { grid-column: 1 / span 4; }
}

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 800; background: var(--paper); display: grid; place-items: center; padding: 6vh var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 88vh; object-fit: contain; animation: lb-in .5s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
.lightbox button { position: absolute; background: none; border: 0; font: inherit; font-family: var(--sans); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); min-height: 48px; min-width: 48px; cursor: pointer; }
.lightbox__close { top: 16px; right: var(--gutter); font-size: 28px; }
.lightbox__prev { left: var(--gutter); top: 50%; }
.lightbox__next { right: var(--gutter); top: 50%; }
@media (max-width: 699px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; } }

/* v4: portada sobre papel, cabecera oscura desde el principio */
.is-home.home-v4 .site-head { color: var(--ink); }
.is-home.home-v4 .site-head:not(.is-solid) .logo--light { display: none; }
.is-home.home-v4 .site-head:not(.is-solid) .logo--dark { display: block; }
