/* Cortijo El Río — landing.
   Paper, ink, one sage, photographs. */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Baskervville";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/baskervville-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Baskervville";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/baskervville-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #302727;
	--ink-soft: #5e564f;
	--paper: #f3f0e8;
	--paper-deep: #e7e1d4;
	--sage: #9ea597;
	--white: #f7f4ee;
	--line: rgba(48, 39, 39, 0.16);
	--header-h: 4.5rem;
	--pad: clamp(1.15rem, 4vw, 4.75rem);
	--head-space: clamp(3rem, 7vw, 5rem);
	--before-line: clamp(2.5rem, 6vw, 4.5rem);
	--serif: "Baskervville", "Palatino Linotype", Palatino, "Times New Roman", serif;
	--sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--measure: 38rem;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 400;
	line-height: 1.7;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; }
picture { display: block; }

a { color: inherit; }

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

::selection {
	background: var(--sage);
	color: var(--ink);
}

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

.skip:focus {
	position: fixed;
	top: .6rem;
	left: .6rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: .7rem 1rem;
	clip: auto;
	background: var(--paper);
	color: var(--ink);
}

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .055em;
	line-height: 1.08;
	text-wrap: balance;
	margin: 0;
}

.intro h2,
.history-copy h2,
.spaces-lead h2,
.day-intro h2,
.contact-copy h2,
.section-head h2 {
	margin-bottom: clamp(1.6rem, 3.2vw, 2.5rem);
}

h1 { font-size: clamp(2.45rem, 6.2vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.55rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: .06em; }

p { margin: 0 0 1rem; }

figure { margin: 0; }

.kicker {
	margin: 0 0 1rem;
	font-size: .72rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.kicker-light { color: rgba(247, 244, 238, .82); }

.sub {
	margin: .7rem 0 1.15rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

.prose { max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }
.prose-small { font-size: .98rem; color: var(--ink-soft); }
.prose-light { color: rgba(247, 244, 238, .88); }

.lead {
	max-width: 34rem;
	margin: 1rem 0 0;
	color: var(--ink-soft);
}

.text-link,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	margin-top: 1.6rem;
	padding: .95rem 1.35rem;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-family: var(--sans);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border-radius: 0;
	transition: background .4s ease, color .4s ease;
}

.text-link::after {
	content: "";
	width: 1.6rem;
	height: 1px;
	background: currentColor;
}

.btn:hover,
.text-link:hover {
	background: var(--ink);
	color: var(--paper);
}

.text-link-light:hover {
	background: var(--paper);
	color: var(--ink);
}

/* Header */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding: 0 var(--pad);
	color: #fff;
	transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}

.site-header.is-solid,
body:not(.home) .site-header,
.site-header.is-open {
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 1px 0 rgba(48, 39, 39, .08);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin-left: auto;
}

.lang-switch {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	line-height: 1;
}

.brand {
	display: block;
	position: relative;
	z-index: 2;
	width: min(48vw, 188px);
	line-height: 0;
}

.brand .logo { width: 100%; height: auto; display: block; }

.home .site-header:not(.is-solid):not(.is-open) .logo {
	filter: brightness(0) invert(1);
}

.nav-toggle {
	position: relative;
	z-index: 2;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nav-toggle-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 1.35rem;
	margin: 0 auto;
}

.nav-toggle-box span {
	display: block;
	height: 1px;
	background: currentColor;
	transform-origin: center;
}

.site-header.is-open .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(40deg); }
.site-header.is-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-40deg); }

.nav-panel {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .35rem;
	padding: calc(var(--header-h) + 1rem) var(--pad) 3rem;
	background: var(--paper);
	color: var(--ink);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.nav-panel.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	display: inline-block;
	padding: .45rem 0;
	font-family: var(--serif);
	font-size: clamp(1.8rem, 6vw, 2.6rem);
	letter-spacing: .08em;
	line-height: 1.15;
	text-decoration: none;
	text-transform: uppercase;
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100svh;
	height: 100dvh;
	min-height: 100svh;
	min-height: 100dvh;
	overflow: hidden;
	color: #fff;
	background: #241e1c;
}

.hero .kicker-light { color: #fff; }

.hero-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-media picture,
.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 46%;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(24, 18, 16, .62) 0%, rgba(24, 18, 16, .08) 46%, rgba(24, 18, 16, .22) 100%);
	pointer-events: none;
}

.hero-copy {
	position: relative;
	z-index: 1;
	padding: 0 var(--pad) clamp(4.5rem, 12vh, 7.5rem);
	max-width: 78rem;
}

.hero-copy h1 { max-width: none; }

/* Intro */

.intro {
	background: #9fa597;
	color: var(--ink);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 50.5rem;
	padding: clamp(4.25rem, 8vh, 6.25rem) var(--pad);
}

.intro-copy {
	max-width: 54rem;
	margin-inline: auto;
}

.intro .kicker { color: var(--ink); }

.intro h2 {
	max-width: 11em;
	margin-inline: auto;
}

.intro .prose {
	max-width: 50rem;
	margin-inline: auto;
	text-wrap: pretty;
}

/* History */

.history {
	display: grid;
	gap: var(--head-space);
	padding: var(--head-space) var(--pad) 0;
	border-top: 1px solid var(--line);
}

.history-photos { position: relative; }
.history-main,
.history-second { margin: 0; }

.history-main picture {
	display: block;
	width: 84%;
	margin-left: auto;
}

.history-main img {
	width: 100%;
	height: 78vw;
	max-height: 760px;
	object-fit: cover;
}

.history-second {
	margin: -20vw 0 0 10%;
	max-width: 66%;
}

.history-second picture,
.history-second img {
	width: 100%;
	height: 52vw;
	max-height: 480px;
	object-fit: cover;
}

/* Spaces */

.spaces-lead {
	background: #9fa597;
	color: var(--ink);
	text-align: center;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 50.5rem;
	padding: clamp(5.5rem, 11vw, 8.5rem) var(--pad) clamp(4.5rem, 9vw, 7rem);
}

.spaces-lead .kicker { color: var(--ink); }

.spaces-lead h2 {
	color: var(--ink);
	font-size: clamp(1.85rem, 3vw, 2.7rem);
	letter-spacing: .08em;
}

.spaces-lead .prose {
	max-width: 48rem;
	margin-inline: auto;
	color: var(--ink);
}

.space-index {
	list-style: none;
	max-width: 28rem;
	margin: clamp(2.8rem, 6vw, 4.2rem) auto 0;
	padding: 0;
	display: grid;
	gap: .95rem;
}

.space-index a {
	font-family: var(--serif);
	font-size: clamp(1.05rem, 1.7vw, 1.35rem);
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.space-index a:hover { opacity: .72; }

.space { scroll-margin-top: calc(var(--header-h) + .5rem); }

.space-media img {
	width: 100%;
	height: 78vw;
	min-height: 320px;
	max-height: 760px;
	object-fit: cover;
	display: block;
}

.pos-high img { object-position: center 46%; }
.pos-mid img { object-position: center 45%; }
.pos-low img { object-position: center 62%; }

.space-copy {
	padding: clamp(2rem, 5vw, 4.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
}

.space-note {
	margin: 1.8rem 0 .35rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	letter-spacing: .03em;
}

.space-extra {
	margin: 0;
	font-size: .84rem;
	letter-spacing: .04em;
	color: var(--ink-soft);
}

/* Day */

.day {
	background: var(--sage);
	color: var(--ink);
	padding: var(--head-space) var(--pad) clamp(4.5rem, 10vw, 8rem);
	border-top: 1px solid var(--line);
}

.day .kicker { color: var(--ink); }

.moments {
	list-style: none;
	margin: var(--head-space) 0 0;
	padding: 0;
}

.moment {
	display: grid;
	grid-template-columns: 2.6rem 1fr;
	gap: 1rem;
	padding: 1.7rem 0;
	border-top: 1px solid rgba(48, 39, 39, .28);
}

.moment-num {
	font-size: .72rem;
	letter-spacing: .16em;
	padding-top: .4rem;
}

.moment p:last-child { margin-bottom: 0; color: var(--ink); }

/* Pause */

.pause {
	position: relative;
	min-height: 92svh;
	margin: 0;
	background: #241e1c;
}

.pause picture,
.pause img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
}

.pause::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 38%;
	background: linear-gradient(to top, rgba(24, 18, 16, .5), transparent);
}

.pause figcaption {
	display: none;
}

/* Gallery */

.gallery {
	margin-top: var(--before-line);
	padding: var(--head-space) var(--pad) 0;
	border-top: 1px solid var(--line);
}

.section-head {
	max-width: 46rem;
	margin-inline: auto;
	padding-bottom: var(--head-space);
	text-align: center;
}

.section-head .lead {
	max-width: 40rem;
	margin-top: 0;
	margin-inline: auto;
}

.mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .45rem;
}

.mosaic figure { margin: 0; overflow: hidden; background: var(--paper-deep); }
.mosaic a { display: block; height: 100%; color: inherit; }
.mosaic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	aspect-ratio: 3 / 4;
	transition: transform .7s ease;
}

.mosaic .is-flores img { object-position: center 46%; }
.mosaic .is-carpa-mesa img { object-position: 100% 100%; }
.mosaic .is-ostras img { object-position: center 48%; }
.mosaic .is-tabla img { object-position: center 36%; }
.mosaic .is-minuta img { object-position: center 46%; }
.mosaic .is-sillas img { object-position: center 48%; }
.mosaic .is-plano img { object-position: center 42%; }
.mosaic .is-puesto img { object-position: center 48%; }

.mosaic a:hover img { transform: scale(1.035); }

.lightbox[hidden] { display: none; }

.lightbox:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4.5rem 1rem 2rem;
	background: rgba(24, 18, 16, .94);
}

.lightbox img {
	max-width: min(1100px, 100%);
	max-height: calc(100svh - 7rem);
	width: auto;
	height: auto;
	object-fit: contain;
}

.lightbox-close {
	position: absolute;
	top: 1.2rem;
	right: 1.2rem;
	border: 0;
	background: transparent;
	color: var(--white);
	font-family: var(--sans);
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Capacities */

.capacity {
	margin-top: var(--before-line);
	padding: var(--head-space) var(--pad) 0;
	border-top: 1px solid var(--line);
}

.cap-list {
	max-width: 62rem;
	margin: 0 auto;
}

.cap-row {
	display: grid;
	gap: 0;
	padding: 1.15rem 0 1.35rem;
	border-top: 1px solid var(--line);
}

.cap-row:last-child { border-bottom: 1px solid var(--line); }

.cap-head { display: none; }

.cap-row h3 {
	margin: 0 0 .85rem;
	font-size: 1.15rem;
}

.cap-row p {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0;
	padding: .7rem 0;
	border-top: 1px solid var(--line);
	text-align: left;
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1;
}

.cap-row p span {
	font-family: var(--sans);
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.cap-row p.is-empty { display: none; }

.cap-aside {
	max-width: 40rem;
	margin: 2.2rem auto .45rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	letter-spacing: .03em;
	text-align: center;
}

.cap-note {
	max-width: 34rem;
	margin: 0 auto;
	color: var(--ink-soft);
	font-size: .92rem;
	text-align: center;
}

.cap-download {
	display: none; /* Oculto hasta que el dossier sea el definitivo. */
	margin: 2.4rem 0 0;
	text-align: center;
}

.btn-sage {
	margin-top: 0;
	border-color: #9fa597;
	background: #9fa597;
	color: var(--ink);
}

.btn-sage:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

/* Grupo Tercer Acto */

.grupo {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	margin-top: var(--before-line);
	padding: clamp(3.2rem, 7vw, 5.5rem) var(--pad);
	background: #9fa597;
	color: var(--ink);
	box-sizing: border-box;
	min-height: 50.5rem;
	scroll-margin-top: calc(var(--header-h) + .5rem);
}

.grupo-logo {
	margin: 0 0 1.8rem;
	font-size: 0;
	letter-spacing: 0;
	line-height: 0;
	text-transform: none;
}

.grupo-logo img {
	width: min(78%, 26rem);
	height: auto;
}

.grupo .prose {
	max-width: 38rem;
	font-size: .98rem;
	line-height: 1.65;
}

.grupo-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1.5rem 1.75rem;
	margin: 2.4rem 0 0;
}

.grupo-facts div { margin: 0; }

.grupo-facts dt {
	margin: 0;
	font-family: var(--sans);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.grupo-facts dd {
	margin: .55rem 0 0;
	font-family: var(--serif);
	font-size: clamp(1.55rem, 2.4vw, 2.45rem);
	white-space: nowrap;
	font-weight: 400;
	letter-spacing: .01em;
	line-height: 1.05;
	text-transform: none;
}

.grupo-slides {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.grupo-slides picture {
	display: block;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.grupo-slides picture:not(:first-child) {
	position: absolute;
	inset: 0;
}

.grupo-slides picture.is-on { opacity: 1; z-index: 1; }

.grupo-slides img {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 7;
	object-fit: cover;
	object-position: center 42%;
}

/* Contact */

.contact {
	display: grid;
	gap: var(--head-space);
	margin-top: var(--before-line);
	padding: var(--head-space) var(--pad) clamp(4.5rem, 10vw, 8rem);
	background: var(--ink);
	color: var(--paper);
}

.contact .kicker { color: rgba(243, 240, 232, .7); }
.contact address { font-style: normal; margin-top: 2rem; }
.contact address a { text-decoration: none; border-bottom: 1px solid rgba(243, 240, 232, .4); }

/* Arrival */

.arrive {
	margin-top: var(--before-line);
	padding: var(--head-space) var(--pad) 0;
	border-top: 1px solid var(--line);
}

.arrive-address {
	max-width: 28rem;
	margin: .35rem auto 0;
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.45;
	letter-spacing: .02em;
}

.arrive .text-link { margin-top: 1.35rem; }

.arrive-ways {
	list-style: none;
	display: grid;
	gap: 0;
	max-width: 68rem;
	margin: 0 auto;
	padding: 0;
}

.arrive-ways li {
	padding: 1.45rem 0;
	border-top: 1px solid var(--line);
}

.arrive-ways h3 {
	margin: 0 0 .7rem;
	font-size: 1.25rem;
}

.arrive-ways p {
	margin: 0;
	max-width: 36rem;
	color: var(--ink-soft);
}

.form-grid {
	display: grid;
	gap: 1.15rem 1.25rem;
}

.field { margin: 0; display: flex; flex-direction: column; }

.field label {
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	margin-top: .35rem;
	padding: .7rem 0;
	border: 0;
	border-bottom: 1px solid rgba(243, 240, 232, .38);
	border-radius: 0;
	background: transparent;
	color: var(--paper);
	font: inherit;
	font-size: 1rem;
	transition: border-color .35s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-bottom-color: var(--paper);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field select {
	appearance: none;
	color-scheme: light;
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 12px) 1.15rem, calc(100% - 7px) 1.15rem;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.field select option {
	color: #302727;
	background: #fff;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 240, 232, .4); }

.field-check {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .7rem;
}

.field-check input {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: .2rem;
	accent-color: var(--sage);
	border: 0;
}

.field-check label {
	flex: 1;
	letter-spacing: 0;
	text-transform: none;
	font-size: .92rem;
	line-height: 1.5;
}

.field-error {
	margin-top: .35rem;
	color: #f0cfc4;
	font-size: .82rem;
}

.form-status p { margin: 0 0 1rem; }
.form-status .is-ok { color: #e4ecd8; }
.form-status .is-error { color: #f0cfc4; }

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

.contact .btn:hover {
	background: var(--paper);
	color: var(--ink);
}

/* Footer */

.site-footer {
	display: grid;
	gap: 1.8rem;
	padding: 2.6rem var(--pad) 2.8rem;
	background: var(--paper);
	color: var(--ink);
	border-top: 1px solid var(--line);
}

.footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
}
.footer-brand img {
	display: block;
	width: min(46vw, 172px);
	height: auto;
}
.footer-brand .logo-cer { margin-bottom: -.4rem; }
.footer-legal p {
	margin: .85rem 0 0;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.footer-contact p { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.45; }
.footer-contact p:last-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .45rem;
	margin: 0;
}
.footer-contact span[aria-hidden] { display: none; }
.footer-contact a { text-decoration: none; border-bottom: 1px solid var(--line); }

.footer-legal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .7rem;
}
.footer-legal a {
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

/* Legal pages */

.legal { padding: calc(var(--header-h) + 3.5rem) var(--pad) 5rem; }
.legal-article { max-width: 44rem; }
.legal-article h1 { margin-bottom: 1.6rem; }
.legal-body h2 {
	margin: 2rem 0 .6rem;
	font-size: 1.25rem;
}
.legal-body h3 {
	margin: 1.35rem 0 .4rem;
	font-size: 1rem;
	letter-spacing: .08em;
}
.legal-body ul,
.legal-body ol {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}
.legal-body li { margin: .35rem 0; }
.legal-body a { color: inherit; }

/* Desktop */

@media (min-width: 760px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.is-wide { grid-column: 1 / -1; }
	.site-footer {
		grid-template-columns: 1.1fr 1.4fr .9fr;
		align-items: end;
	}
	.footer-contact p:last-child {
		flex-direction: row;
		flex-wrap: wrap;
		gap: .35rem .5rem;
	}
	.footer-contact span[aria-hidden] { display: inline; }
	.footer-legal {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: .4rem 1rem;
	}
	.footer-legal p { margin: 0; }
}

@media (min-width: 980px) {
	:root { --header-h: 5.4rem; }

	.brand { width: 214px; }

	.intro,
	.spaces-lead,
	.grupo,
	.day {
		min-height: 47.5rem;
	}

	.grupo {
		grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
		grid-template-rows: 1fr;
		align-items: stretch;
		gap: clamp(2.5rem, 5vw, 5rem);
	}

	.grupo-logo img { width: min(100%, 26rem); }

	.grupo-copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.grupo-slides { height: 100%; min-height: 0; }

	.grupo-slides picture,
	.grupo-slides img {
		height: 100%;
		aspect-ratio: auto;
	}

	.nav-toggle { display: none; }

	.nav-panel {
		position: static;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		flex-direction: row;
		justify-content: flex-end;
		padding: 0;
		background: transparent;
		color: inherit;
	}

	.nav-list { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
	.nav-list a {
		padding: .2rem 0;
		font-family: var(--sans);
		font-size: .7rem;
		font-weight: 500;
		letter-spacing: .2em;
		background-image: linear-gradient(currentColor, currentColor);
		background-repeat: no-repeat;
		background-position: 0 100%;
		background-size: 0 1px;
		transition: background-size .35s ease;
	}
	.nav-list a:hover { background-size: 100% 1px; }

	.history {
		grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
		gap: clamp(2rem, 5vw, 6rem);
		align-items: center;
		padding-right: 0;
	}

	.history-main picture { width: 78%; }
	.history-main img {
		height: 72svh;
		max-height: none;
	}

	.history-second { margin: -22svh 0 0; }

	.history-second img {
		height: 48svh;
		max-height: none;
	}

	.space {
		display: grid;
		grid-template-columns: 1.28fr .86fr;
		min-height: 88vh;
		align-items: stretch;
	}

	.space.is-flip { grid-template-columns: .86fr 1.28fr; }
	.space.is-flip .space-media { order: 2; }

	.space-media { position: relative; min-height: 100%; }
	.space-media picture { position: absolute; inset: 0; height: 100%; }
	.space-media img {
		height: 100%;
		max-height: none;
		min-height: 100%;
	}

	.space-copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.day {
		display: grid;
		grid-template-columns: minmax(240px, .78fr) 1.15fr;
		gap: clamp(2rem, 6vw, 7rem);
		align-items: start;
	}

	.day-intro {
		position: sticky;
		top: calc(var(--header-h) + 2.2rem);
	}

	.moments { margin-top: 0; }

	.mosaic {
		container-type: inline-size;
		grid-template-columns: 1.12fr 1fr .96fr;
		grid-template-rows: 28cqi 26cqi 24cqi 28cqi;
		gap: .7cqi;
	}

	.mosaic figure,
	.mosaic a,
	.mosaic picture { height: 100%; }

	.mosaic figure:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
	.mosaic figure:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
	.mosaic figure:nth-child(3) { grid-column: 2; grid-row: 2; }
	.mosaic figure:nth-child(4) { grid-column: 3; grid-row: 2; }
	.mosaic figure:nth-child(5) { grid-column: 1; grid-row: 3; }
	.mosaic figure:nth-child(6) { grid-column: 2; grid-row: 3; }
	.mosaic figure:nth-child(7) { grid-column: 3; grid-row: 3; }
	.mosaic figure:nth-child(8) { grid-column: 1; grid-row: 4; }
	.mosaic figure:nth-child(9) { grid-column: 2; grid-row: 4; }
	.mosaic figure:nth-child(10) { grid-column: 3; grid-row: 4; }

	.mosaic img { aspect-ratio: auto; height: 100%; }

	.cap-head,
	.cap-row {
		grid-template-columns: 1.35fr repeat(4, 1fr);
		align-items: center;
		gap: .75rem 1rem;
	}

	.cap-head {
		display: grid;
		border-top: 0;
		padding-bottom: .35rem;
		font-size: .62rem;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--ink-soft);
		text-align: center;
	}

	.cap-head span:first-child { text-align: left; }

	.cap-row h3 {
		grid-column: auto;
		margin: 0;
		font-size: 1.05rem;
	}

	.cap-row p {
		display: block;
		padding: 0;
		border-top: 0;
		text-align: center;
		font-size: 1.35rem;
	}

	.cap-row p span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	.cap-row p.is-empty { display: block; }

	.arrive-ways {
		grid-template-columns: repeat(3, 1fr);
		gap: clamp(1.5rem, 3vw, 3.5rem);
	}

	.arrive-ways li {
		padding: 0;
		border-top: 0;
	}

	.contact {
		grid-template-columns: .82fr 1.18fr;
		gap: clamp(2rem, 5vw, 6rem);
		align-items: start;
	}
}

@media (min-width: 1400px) {
	.brand { width: 236px; }
}

@media (prefers-reduced-motion: no-preference) {
	.hero-media img {
		animation: cer-drift 28s ease-out both;
	}

	.cer-motion .brand,
	.cer-motion .nav-toggle {
		animation: cer-fade .7s ease both;
	}

	.cer-motion .hero-copy > * {
		animation: cer-rise 1.05s cubic-bezier(.22, .61, .36, 1) both;
	}

	.cer-motion .hero-copy > *:nth-child(1) { animation-delay: .12s; }
	.cer-motion .hero-copy > *:nth-child(2) { animation-delay: .26s; }
	.cer-motion .hero-copy > *:nth-child(3) { animation-delay: .42s; }

	.cer-motion .reveal {
		opacity: 0;
		transform: translateY(12px);
		transition:
			opacity .95s cubic-bezier(.22, .61, .36, 1),
			transform .95s cubic-bezier(.22, .61, .36, 1);
		transition-delay: var(--cer-delay, 0s);
	}

	.cer-motion .reveal.is-in {
		opacity: 1;
		transform: none;
	}

	.cer-motion .reveal-frame {
		overflow: hidden;
	}

	.cer-motion .reveal-frame img {
		transform: scale(1.045);
		transition: transform 1.8s cubic-bezier(.22, .61, .36, 1);
		transition-delay: var(--cer-delay, 0s);
	}

	.cer-motion .reveal-frame.is-in img {
		transform: scale(1);
	}

	.lightbox:not([hidden]) {
		animation: cer-fade .4s ease;
	}
}

@keyframes cer-drift {
	from { transform: scale(1.08); }
	to { transform: scale(1.03); }
}

@keyframes cer-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes cer-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
