/* González Miranda Construcción — v2
   Lenguaje visual: lámina de dibujo arquitectónico.
   Ejes (A–E), cotas, notas generales y cajetín. */

:root {
	--paper: #f1ece2;
	--paper-2: #e7e0d2;
	--ink: #23211d;
	--ink-2: #47433c;
	--ink-3: #6b655a;
	--line: rgba(35, 33, 29, .16);
	--line-strong: rgba(35, 33, 29, .5);
	--gold: #957f52;
	--gold-ink: #74603a;
	--gold-light: #c9ad78;

	--night: #1d1c19;
	--night-text: #ece6da;
	--night-muted: #a59e90;
	--night-line: rgba(236, 230, 218, .2);

	--f-mark: "Cinzel", "Trajan Pro", Georgia, serif;
	--f-serif: "Spectral", Georgia, "Times New Roman", serif;
	--f-label: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--rail: 0px;
	--maxw: 1400px;
	--gap: clamp(16px, 2.4vw, 40px);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 960px) {
	:root { --rail: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}
html.lb-open { overflow: hidden; }

body {
	margin: 0;
	background-color: var(--paper);
	/* grano de papel */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .13 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--ink-2);
	font-family: var(--f-serif);
	font-size: clamp(17px, 1.05vw + 12px, 19px);
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper);
	padding: 10px 14px; font-family: var(--f-label); text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- tipografía base ---------- */

h1, h2, h3 { color: var(--ink); font-weight: 300; margin: 0; }

h1 {
	font-size: clamp(3.1rem, 7vw, 6.8rem);
	line-height: .94;
	letter-spacing: -.025em;
}
h1 em { font-style: italic; color: var(--gold); }

h2 {
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	line-height: 1;
	letter-spacing: -.02em;
}

.label {
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin: 0;
}

.eje {
	display: inline-grid;
	place-items: center;
	width: 32px; height: 32px;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0;
}

/* ---------- encabezado ---------- */

.masthead {
	position: relative;
	z-index: 20;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 18px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
.brand-mono { width: 56px; }
.brand-text { display: grid; gap: 4px; }
.brand-name {
	font-family: var(--f-mark);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ink);
	line-height: 1;
}
.brand-sub {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 10.5px;
	letter-spacing: .48em;
	text-transform: uppercase;
	color: var(--gold-ink);
	line-height: 1;
}
.brand-sub::before, .brand-sub::after {
	content: "";
	flex: 1;
	min-width: 12px;
	height: 1px;
	background: var(--gold);
}

.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav .eje { width: 22px; height: 22px; font-size: 11px; }

.nav-toggle { display: none; }

@media (max-width: 959px) {
	.masthead { flex-wrap: wrap; gap: 12px; }
	.brand { gap: 10px; }
	.brand-mono { width: 42px; }
	.brand-name { font-size: 15px; }
	.brand-sub { font-size: 9.5px; letter-spacing: .4em; }
	.nav { flex-wrap: wrap; gap: 4px 18px; width: 100%; }

	.js .nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		background: none;
		border: 1px solid var(--ink);
		padding: 9px 14px;
		font-family: var(--f-label);
		font-weight: 500;
		font-size: 13px;
		letter-spacing: .12em;
		text-transform: uppercase;
		cursor: pointer;
	}
	.js .nav-toggle::after {
		content: "";
		width: 14px; height: 7px;
		border-block: 1px solid currentColor;
		transition: transform .25s var(--ease);
	}
	.js .nav-toggle[aria-expanded="true"]::after { transform: scaleY(.15); }

	.js .nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		gap: 0;
		background: var(--paper);
		border-block: 1px solid var(--line-strong);
		padding: 6px var(--gutter) 14px;
	}
	.js .nav.is-open { display: flex; }
	.js .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
	.js .nav a:last-child { border-bottom: 0; }
}

/* ---------- lámina y ejes ---------- */

.sheet {
	position: relative;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter) 0 calc(var(--gutter) + var(--rail));
}

/* eje vertical en línea de trazo y punto */
@media (min-width: 960px) {
	.sheet::before {
		content: "";
		position: absolute;
		top: 0; bottom: 0;
		left: calc(var(--gutter) + var(--rail) / 2);
		width: 1px;
		background: repeating-linear-gradient(to bottom,
			var(--line-strong) 0 22px, transparent 22px 28px,
			var(--line-strong) 28px 31px, transparent 31px 37px);
		opacity: .55;
	}
}

section { position: relative; }

.sec-axis {
	position: absolute;
	top: 0;
	left: calc(var(--rail) / -2);
	transform: translate(-50%, -50%);
	z-index: 2;
}
.sec-axis .eje { width: 36px; height: 36px; font-size: 15px; }

.sec-head {
	position: relative;
	padding-top: 22px;
	margin-bottom: clamp(36px, 5vw, 64px);
	display: grid;
	gap: 14px;
}
.sec-head::after {
	content: "";
	position: absolute;
	top: 0;
	left: calc(var(--rail) / -2);
	right: 0;
	height: 1px;
	background: var(--line-strong);
	transform-origin: left;
	transition: transform 1.2s var(--ease);
}
.js .sec-head:not(.is-in)::after { transform: scaleX(0); }

.sec-intro { max-width: 46ch; margin: 6px 0 0; }

@media (max-width: 959px) {
	.sec-axis { position: static; transform: none; margin-bottom: 4px; }
	.sec-head > .sec-axis { margin-top: -40px; }
	.sec-head { padding-top: 0; }
	.sec-head::after { top: -22px; }
	.hero > .sec-axis { display: none; }
}

/* ---------- cota (línea de dimensión) ---------- */

.cota {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--ink-3);
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}
.cota i { flex: 1; height: 1px; background: currentColor; position: relative; }
.cota i::before, .cota i::after {
	content: "";
	position: absolute;
	top: -6px;
	width: 1px;
	height: 13px;
	background: currentColor;
}
.cota i:first-child::before { left: 0; }
.cota i:first-child::after { left: 0; transform: rotate(45deg); background: var(--ink); width: 1.5px; }
.cota i:last-child::before { right: 0; }
.cota i:last-child::after { right: 0; transform: rotate(45deg); background: var(--ink); width: 1.5px; }

.caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-top: 12px;
	font-family: var(--f-label);
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--ink-3);
}
.caption > span:first-child {
	color: var(--ink);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: 13px;
}

/* ---------- botones ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 15px 22px;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 0;
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}
.btn::after {
	content: "";
	width: 26px; height: 1px;
	background: currentColor;
	box-shadow: 0 0 0 0 currentColor;
	transition: width .3s var(--ease);
}
.btn:hover { background: #000; }
.btn:hover::after { width: 38px; }
.btn:disabled { opacity: .6; cursor: progress; }

.btn-light { background: var(--night-text); color: var(--night); }
.btn-light:hover { background: var(--gold-light); }

.link-line {
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	color: var(--ink);
}
.link-line:hover { text-decoration-color: var(--gold); color: var(--gold-ink); }

/* ---------- A · inicio ---------- */

.hero {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 48px;
	align-items: center;
	padding: clamp(36px, 6vw, 88px) 0 clamp(80px, 11vw, 150px);
}
.hero > .sec-axis { top: clamp(36px, 6vw, 88px); }

.hero-copy { grid-column: 1 / span 5; }
.hero-copy .label { margin-bottom: clamp(20px, 3vw, 36px); }
.lede {
	font-size: clamp(1.1rem, 1.3vw + .5rem, 1.35rem);
	line-height: 1.5;
	max-width: 32ch;
	margin: clamp(24px, 3vw, 36px) 0 clamp(28px, 3.5vw, 44px);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero-figure { grid-column: 6 / -1; margin: 0; }

.reveal {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
	cursor: ew-resize;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.reveal img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.reveal-sketch { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.reveal-line {
	position: absolute;
	top: 0; bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: var(--gold);
	pointer-events: none;
}
.reveal-knob {
	position: absolute;
	top: 50%; left: 50%;
	width: 46px; height: 46px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--paper);
	border: 1px solid var(--ink);
	display: grid;
	place-items: center;
}
.reveal-knob::before, .reveal-knob::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 7px; height: 7px;
	border: solid var(--ink);
	border-width: 0 0 1.5px 1.5px;
}
.reveal-knob::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.reveal-knob::after { right: 12px; transform: translateY(-50%) rotate(-135deg); }

.reveal-range {
	position: absolute;
	width: 1px; height: 1px;
	opacity: 0;
	pointer-events: none;
}
.reveal-range:focus-visible ~ .reveal-line .reveal-knob { outline: 2px solid var(--gold); outline-offset: 3px; }

.reveal-tag {
	position: absolute;
	bottom: 14px;
	padding: 5px 9px;
	background: rgba(241, 236, 226, .9);
	color: var(--ink);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	pointer-events: none;
}
.reveal-tag-l { left: 14px; }
.reveal-tag-r { right: 14px; }

.caption-hint { margin-left: auto; font-style: italic; font-family: var(--f-serif); letter-spacing: 0; }
html:not(.js) .caption-hint { display: none; }

@media (max-width: 959px) {
	.hero-copy, .hero-figure { grid-column: 1 / -1; }
	.caption-hint { margin-left: 0; width: 100%; }
}

/* ---------- B · obra ---------- */

.obra { padding-bottom: clamp(80px, 11vw, 150px); }

.obra-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	align-items: start;
}

.obra-list {
	grid-column: 1 / span 6;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line-strong);
}

.obra-item {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas:
		"no name count"
		"no meta count";
	column-gap: 12px;
	row-gap: 4px;
	padding: 20px 0 18px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	cursor: pointer;
}
.obra-item::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .6s var(--ease);
}
.obra-item.is-active::after { transform: scaleX(1); }

.obra-no {
	grid-area: no;
	padding-top: 10px;
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: .08em;
	color: var(--ink-3);
}
.obra-name {
	grid-area: name;
	font-family: var(--f-serif);
	font-weight: 300;
	font-size: clamp(1.5rem, 2.3vw, 2.1rem);
	line-height: 1.15;
	color: var(--ink);
	transition: transform .4s var(--ease), color .2s;
}
.obra-item.is-active .obra-name { transform: translateX(10px); }
.obra-item.is-active .obra-no { color: var(--gold-ink); }

.obra-meta {
	grid-area: meta;
	font-family: var(--f-label);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
	transition: transform .4s var(--ease);
}
.obra-item.is-active .obra-meta { transform: translateX(10px); }

.obra-count {
	grid-area: count;
	align-self: center;
	font-family: var(--f-label);
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--ink-3);
	white-space: nowrap;
}
.obra-thumb { display: none; }

.obra-preview {
	grid-column: 7 / -1;
	position: sticky;
	top: 28px;
	cursor: zoom-in;
}
.obra-preview figure { margin: 0; }
.obra-frame {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
	border: 1px solid var(--line);
}
.obra-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .35s ease, transform 1.2s var(--ease);
}
.obra-frame img.is-swapping { opacity: 0; transform: scale(1.015); }
.obra-preview:hover .obra-frame img { transform: scale(1.02); }

@media (max-width: 959px) {
	.obra-list { grid-column: 1 / -1; }
	.obra-preview { display: none; }
	.obra-item {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		grid-template-areas:
			"no name count"
			"no meta count"
			"thumb thumb thumb";
	}
	.obra-item.is-active .obra-name,
	.obra-item.is-active .obra-meta { transform: none; }
	.obra-item::after { display: none; }
	.obra-thumb {
		display: block;
		grid-area: thumb;
		width: 100%;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		margin-top: 14px;
		background: var(--paper-2);
	}
}

/* ---------- C · notas generales ---------- */

.notas { padding-bottom: clamp(80px, 11vw, 150px); }

.notas-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 48px;
	align-items: start;
}
.notas-figure { grid-column: 1 / span 5; margin: 0; position: sticky; top: 28px; }
.notas-figure img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: saturate(.85);
}
.notas-body { grid-column: 7 / -1; }

.plan-notes { border: 1px solid var(--line-strong); }
.plan-notes-head {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 11px 18px;
	border-bottom: 1px solid var(--line-strong);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink);
}
.plan-notes-head span { font-weight: 400; color: var(--ink-3); letter-spacing: .1em; }

.plan-notes ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: nota;
}
.plan-notes li {
	counter-increment: nota;
	position: relative;
	padding: 18px 20px 18px 50px;
	border-bottom: 1px solid var(--line);
	line-height: 1.55;
}
.plan-notes li:last-child { border-bottom: 0; }
.plan-notes li::before {
	content: counter(nota) ".";
	position: absolute;
	left: 18px;
	top: 21px;
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 14px;
	color: var(--gold-ink);
}
.plan-notes strong { font-weight: 500; color: var(--ink); }

.alcances {
	width: 100%;
	margin-top: clamp(36px, 4vw, 52px);
	border-collapse: collapse;
}
.alcances caption { text-align: left; margin-bottom: 12px; }
.alcances th, .alcances td {
	text-align: left;
	vertical-align: top;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}
.alcances tr:last-child th, .alcances tr:last-child td { border-bottom: 1px solid var(--line); }
.alcances th {
	width: 42%;
	padding-right: 20px;
	font-weight: 400;
	color: var(--ink);
	font-size: 1.1em;
}
.alcances td { font-size: .95em; color: var(--ink-2); }

@media (max-width: 959px) {
	.notas-figure, .notas-body { grid-column: 1 / -1; }
	.notas-figure { position: static; }
	.notas-figure img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
	.alcances th, .alcances td { display: block; width: auto; border: 0; padding: 0; }
	.alcances th { padding-top: 14px; border-top: 1px solid var(--line); }
	.alcances td { padding: 4px 0 14px; }
}

/* ---------- D · nosotros ---------- */

.nosotros { padding-bottom: clamp(80px, 11vw, 150px); }

.nosotros-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 56px;
	align-items: start;
}
.nosotros-text { grid-column: 1 / span 6; }
.nosotros-text p { max-width: 54ch; }
.nosotros-text .big {
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	line-height: 1.3;
	font-weight: 300;
	color: var(--ink);
	margin-top: 0;
	max-width: 30ch;
}

.handles {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
	font-family: var(--f-label);
	font-size: 15px;
	letter-spacing: .04em;
}
.handles li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
}
.handles a { color: var(--ink); text-decoration: none; }
.handles a:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.handles span { color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }

.cita { grid-column: 8 / -1; margin: 0; }
.cita-mono { width: min(220px, 60%); margin-bottom: 28px; opacity: .9; }
.cita blockquote { margin: 0; }
.cita blockquote p {
	margin: 0;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.3rem, 1.9vw, 1.7rem);
	line-height: 1.4;
	color: var(--ink);
}
.cita figcaption {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}
.cita figcaption::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

@media (max-width: 959px) {
	.nosotros-text, .cita { grid-column: 1 / -1; }
}

/* ---------- E · contacto (lámina nocturna) ---------- */

.contacto {
	z-index: 1;
	color: var(--night-text);
	padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
	/* fondo a sangre sin romper la retícula */
	border-image: linear-gradient(var(--night) 0 0) fill 0 / 0 / 0 100vw;
}
@media (min-width: 960px) {
	.contacto::before {
		content: "";
		position: absolute;
		top: 0; bottom: 0;
		left: calc(var(--rail) / -2);
		width: 1px;
		background: repeating-linear-gradient(to bottom,
			var(--night-line) 0 22px, transparent 22px 28px,
			var(--night-line) 28px 31px, transparent 31px 37px);
	}
}
.contacto h2 { color: var(--night-text); }
.contacto .label { color: var(--night-muted); }
.contacto .sec-head::after { background: var(--night-line); }
.contacto .eje { background: var(--night); color: var(--night-text); border-color: var(--night-text); }

.contacto-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 48px;
	align-items: start;
}
.contacto-text { grid-column: 1 / span 4; }
.contacto-text > p {
	font-size: clamp(1.15rem, 1.4vw, 1.35rem);
	line-height: 1.5;
	margin-top: 0;
	max-width: 30ch;
}
.datos { margin: 32px 0 0; border-top: 1px solid var(--night-line); }
.datos div { padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.datos dt {
	font-family: var(--f-label);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--night-muted);
}
.datos dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.datos a { text-decoration-color: var(--gold-light); text-underline-offset: 4px; }
.datos a:hover { color: var(--gold-light); }

/* formulario en forma de cajetín */
.cajetin {
	grid-column: 6 / -1;
	border: 1px solid rgba(236, 230, 218, .55);
}
.cajetin-head {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 11px 16px;
	border-bottom: 1px solid rgba(236, 230, 218, .55);
	font-family: var(--f-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.cajetin-head span { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--night-muted); font-size: 14px; }

.cajetin-grid { display: grid; grid-template-columns: 1fr 1fr; }

.cell {
	display: flex;
	flex-direction: column;
	padding: 10px 16px 4px;
	border-bottom: 1px solid var(--night-line);
	border-right: 1px solid var(--night-line);
	transition: background-color .2s;
	min-width: 0;
}
.cell:nth-child(2n) { border-right: 0; }
.cell-wide { grid-column: 1 / -1; border-right: 0; }
.cell:focus-within { background: rgba(236, 230, 218, .05); box-shadow: inset 0 -2px 0 var(--gold-light); }

.cell > span {
	font-family: var(--f-label);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--night-muted);
}
.cell input, .cell select, .cell textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 6px 0 10px;
	font-family: var(--f-serif);
	font-size: 1.1rem;
	color: var(--night-text);
	outline: none;
}
.cell textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.cell textarea::placeholder { color: rgba(236, 230, 218, .35); font-style: italic; }
.cell select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--night-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--night-muted) 50%);
	background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.cell select option { color: #1d1c19; background: #f1ece2; }

.cell-captcha { padding-bottom: 14px; }
.cell-captcha .cf-turnstile { margin-top: 10px; min-height: 65px; }

.cell.is-invalid { box-shadow: inset 0 -2px 0 #e39a88; }
.cell.is-invalid > span { color: #f0b3a5; }
.cell.is-invalid > span::after { content: " · obligatorio"; text-transform: none; letter-spacing: .04em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cajetin-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	padding: 14px 16px;
}
.form-status {
	margin: 0;
	font-family: var(--f-label);
	font-size: 15px;
	letter-spacing: .02em;
	color: var(--gold-light);
	flex: 1 1 220px;
}
.form-status:empty { visibility: hidden; }

@media (max-width: 959px) {
	.contacto-text, .cajetin { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.cajetin-grid { grid-template-columns: 1fr; }
	.cell { border-right: 0; }
	.cajetin-foot .btn { width: 100%; justify-content: space-between; }
}

/* ---------- pie: cajetín de la lámina ---------- */

.titleblock {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 28px var(--gutter) 32px;
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) minmax(0, 2fr);
	font-family: var(--f-label);
	font-size: 14px;
	letter-spacing: .03em;
	color: var(--ink);
}
.tb-cell {
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	margin: 0 0 -1px -1px;
	min-width: 0;
}
.tb-cell:first-child { margin-left: 0; }
.tb-cell:not(.tb-brand) > span {
	display: block;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin-bottom: 2px;
}
.tb-brand { display: flex; align-items: center; gap: 12px; }
.tb-brand img { width: 40px; flex: none; }
.tb-brand span { display: grid; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-ink); }
.tb-brand strong { font-family: var(--f-mark); font-weight: 600; font-size: 15px; letter-spacing: .05em; color: var(--ink); }

@media (max-width: 959px) {
	.titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: calc(var(--gutter) + 1px); }
	.tb-cell, .tb-cell:first-child { margin: 0 0 -1px -1px; }
	.tb-brand, .tb-wide { grid-column: 1 / -1; }
}

/* ---------- visor de fotografías ---------- */

.lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(22, 21, 18, .97);
	color: var(--night-text);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(22, 21, 18, .6); }

.lb-top {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px var(--gutter);
	border-bottom: 1px solid var(--night-line);
	font-family: var(--f-label);
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.lb-top p { margin: 0; }
.lb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-no { color: var(--gold-light); margin-right: 6px; }
.lb-count { color: var(--night-muted); }
.lb-close {
	background: none;
	border: 1px solid var(--night-line);
	padding: 8px 14px;
	cursor: pointer;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-family: var(--f-label);
	font-size: 13px;
}
.lb-close:hover { border-color: var(--night-text); }

.lb-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 20px clamp(12px, 6vw, 88px);
}
.lb-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.lb-prev, .lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px; height: 48px;
	display: grid;
	place-items: center;
	background: rgba(22, 21, 18, .6);
	border: 1px solid var(--night-line);
	font-size: 20px;
	cursor: pointer;
}
.lb-prev:hover, .lb-next:hover { border-color: var(--night-text); }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

.lb-caption {
	margin: 0;
	padding: 12px var(--gutter) 18px;
	font-family: var(--f-label);
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--night-muted);
	min-height: 1.5em;
}

/* ---------- movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
	.js .sec-head:not(.is-in)::after { transform: none; }
}
