/* Identidad visual basada en la propuesta aprobada de Mendivil Arquitectos. */
:root {
	--altozano-ink: #30261f;
	--altozano-brown: #543324;
	--altozano-terracotta: #985b38;
	--altozano-sand: #c9af94;
	--altozano-olive: #8b6c58;
	--altozano-paper: #e3d1bc;
	--altozano-white: #f0e5d6;
	--altozano-line: rgba(84, 51, 36, 0.18);
	--altozano-max-width: 1240px;
	--altozano-sidebar-width: 340px;
	--altozano-content-offset: var(--altozano-sidebar-width);
}

html {
	scroll-behavior: smooth;
}

body.altozano-landing {
	margin: 0;
	background: var(--altozano-paper);
	color: var(--altozano-ink);
	font-family: "Barlow", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open,
body.tour-open {
	overflow: hidden;
}

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

.altozano-landing a {
	color: inherit;
	text-decoration: none;
}

.altozano-landing img {
	display: block;
	max-width: 100%;
	height: auto;
}

.altozano-landing button,
.altozano-landing input,
.altozano-landing select,
.altozano-landing textarea {
	font: inherit;
}

.site-shell {
	position: relative;
	overflow: hidden;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: var(--altozano-sidebar-width);
	height: 100vh;
	overflow: visible;
	background: rgba(48, 38, 31, 0.98);
	color: var(--altozano-white);
	transition: left 220ms ease;
}

.brand-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 190px;
	padding: 10px 34px;
	overflow: hidden;
	border-bottom: 1px solid var(--altozano-line);
	background: var(--altozano-white);
}

.brand-link img {
	width: auto;
	height: 160px;
	object-fit: contain;
}

.site-navigation {
	width: 100%;
}

.site-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: altozano-navigation;
}

.site-navigation li {
	position: relative;
	border-bottom: 1px solid rgba(240, 229, 214, 0.12);
	counter-increment: altozano-navigation;
}

.site-navigation li::before {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 74px;
	height: 68px;
	color: rgba(240, 229, 214, 0.28);
	content: "0" counter(altozano-navigation);
	font-size: 1.2rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	transition: color 180ms ease;
}

.site-navigation li::after {
	position: absolute;
	top: 0;
	right: 74px;
	bottom: 0;
	width: 1px;
	background: rgba(240, 229, 214, 0.12);
	content: "";
	transition: top 180ms ease, bottom 180ms ease, width 180ms ease, background-color 180ms ease;
}

.site-navigation a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 68px;
	padding: 18px 96px 18px 30px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-navigation a::after {
	position: absolute;
	top: 50%;
	right: 73px;
	width: 3px;
	height: 0;
	background: var(--altozano-terracotta);
	content: "";
	transform: translateY(-50%);
	transition: height 180ms ease;
}

.site-navigation li.active::before,
.site-navigation li:hover::before {
	color: var(--altozano-white);
}

.site-navigation li.active a::after,
.site-navigation a:hover::after,
.site-navigation a:focus-visible::after {
	height: 28px;
}

.menu-toggle {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 1002;
	width: 78px;
	height: 78px;
	padding: 24px;
	border: 0;
	background: var(--altozano-terracotta);
	color: var(--altozano-white);
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.sidebar-meta {
	position: absolute;
	right: 30px;
	bottom: 28px;
	left: 30px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid rgba(240, 229, 214, 0.12);
	color: rgba(240, 229, 214, 0.5);
	font-size: 0.67rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#contenido,
.footer-signature,
.site-footer {
	margin-left: var(--altozano-content-offset);
}

.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 100svh;
	padding: 150px clamp(24px, 7vw, 120px) clamp(52px, 8vw, 110px);
	overflow: hidden;
	color: var(--altozano-white);
	isolation: isolate;
}

.hero::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("../upload/altozano/render-fachada-esquina.webp") center 48% / cover no-repeat;
	content: "";
}

.hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(48, 38, 31, 0.82) 0%, rgba(48, 38, 31, 0.46) 46%, rgba(48, 38, 31, 0.08) 78%),
		linear-gradient(0deg, rgba(48, 38, 31, 0.64) 0%, transparent 50%);
	content: "";
}

.hero-content {
	width: min(760px, 100%);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.eyebrow::before {
	display: inline-block;
	width: 46px;
	height: 2px;
	background: var(--altozano-terracotta);
	content: "";
}

.hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(3.6rem, 7.6vw, 7rem);
	font-weight: 300;
	letter-spacing: -0.055em;
	line-height: 0.82;
}

.hero-copy {
	max-width: 600px;
	margin: 30px 0 0;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 300;
	line-height: 1.45;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 38px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid var(--altozano-terracotta);
	background: var(--altozano-terracotta);
	color: var(--altozano-white) !important;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
	border-color: var(--altozano-brown);
	background: var(--altozano-brown);
	transform: translateY(-2px);
}

.button-outline {
	border-color: rgba(240, 229, 214, 0.7);
	background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
	border-color: var(--altozano-white);
	background: var(--altozano-white);
	color: var(--altozano-brown) !important;
}

.hero-marker {
	position: absolute;
	right: clamp(24px, 5vw, 80px);
	bottom: clamp(52px, 8vw, 110px);
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}

.section {
	padding: clamp(82px, 10vw, 150px) clamp(24px, 5vw, 80px);
	scroll-margin-top: 76px;
}

.hero {
	scroll-margin-top: 0;
}

.section-inner {
	width: min(100%, var(--altozano-max-width));
	margin: 0 auto;
}

.section-kicker {
	margin: 0 0 14px;
	color: var(--altozano-terracotta);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.section-title {
	max-width: 850px;
	margin: 0;
	color: var(--altozano-brown);
	font-size: clamp(2.55rem, 5.6vw, 5.2rem);
	font-weight: 300;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: clamp(48px, 8vw, 110px);
	align-items: end;
}

.intro-copy {
	max-width: 560px;
	margin: 0 0 5px;
	font-size: 1.15rem;
	line-height: 1.8;
}

.facts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: clamp(58px, 8vw, 95px);
	border-top: 1px solid var(--altozano-line);
	border-bottom: 1px solid var(--altozano-line);
}

.fact {
	min-height: 150px;
	padding: 30px clamp(16px, 2.4vw, 32px);
	border-right: 1px solid var(--altozano-line);
}

.fact:first-child {
	padding-left: 0;
}

.fact:last-child {
	border-right: 0;
}

.fact strong {
	display: block;
	color: var(--altozano-brown);
	font-size: clamp(2rem, 4vw, 3.8rem);
	font-weight: 300;
	letter-spacing: -0.045em;
	line-height: 1;
}

.fact span {
	display: block;
	margin-top: 12px;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.author-section {
	display: grid;
	place-items: center;
	min-height: clamp(650px, 75vh, 820px);
	padding: clamp(56px, 7vw, 110px) clamp(16px, 4vw, 48px);
	/* Fachada de fondo, oscurecida ligeramente para que la tarjeta resalte. */
	background:
		linear-gradient(rgba(48, 38, 31, 0.45), rgba(48, 38, 31, 0.45)),
		url("../upload/altozano/render-fachada-frontal.webp") center 55% / cover no-repeat,
		var(--altozano-ink);
}

/* Sin retrato: la tarjeta queda centrada y ocupa ~70 % del ancho de la sección. */
.author-panel {
	width: min(70%, 1180px);
	padding: clamp(48px, 5.5vw, 96px) clamp(32px, 6vw, 110px);
	background: var(--altozano-white);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	text-align: center;
}

.author-title {
	margin: 0 auto;
	color: var(--altozano-brown);
	font-size: clamp(2.7rem, 5.6vw, 5.4rem);
	font-weight: 300;
	letter-spacing: -0.05em;
	line-height: 0.94;
	text-wrap: balance;
}

.author-copy {
	max-width: 640px;
	margin: 32px auto 0;
	color: rgba(48, 38, 31, 0.82);
	font-size: 1.1rem;
	line-height: 1.78;
}

.author-signature-wrap {
	display: flex;
	justify-content: center;
	max-width: 640px;
	margin: 40px auto 0;
	padding-top: 32px;
	border-top: 1px solid var(--altozano-line);
}

/* El video viene sobre fondo blanco; multiply lo vuelve transparente sobre la tarjeta. */
.author-signature {
	display: block;
	width: min(100%, 520px);
	height: auto;
	mix-blend-mode: multiply;
}

.feature-image {
	position: relative;
	min-height: min(78vw, 820px);
	overflow: hidden;
	background: var(--altozano-sand);
}

.feature-image img {
	width: 100%;
	height: 100%;
	min-height: min(78vw, 820px);
	object-fit: cover;
}

.feature-image-caption {
	position: absolute;
	right: clamp(20px, 4vw, 60px);
	bottom: clamp(20px, 4vw, 60px);
	max-width: 360px;
	padding: 24px 28px;
	background: rgba(240, 229, 214, 0.94);
	color: var(--altozano-brown);
	font-size: 0.95rem;
	backdrop-filter: blur(12px);
}

.feature-image-caption strong {
	display: block;
	margin-bottom: 5px;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.virtual-tour-section {
	position: relative;
	scroll-margin-top: 0;
	background: var(--altozano-ink);
	color: var(--altozano-white);
}

.tour-poster {
	position: relative;
	min-height: clamp(610px, 82vh, 880px);
	overflow: hidden;
}

.tour-poster > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-poster::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(48, 38, 31, 0.84) 0%, rgba(48, 38, 31, 0.48) 48%, rgba(48, 38, 31, 0.08) 82%),
		linear-gradient(0deg, rgba(48, 38, 31, 0.48), transparent 52%);
	content: "";
}

.tour-poster-copy {
	position: absolute;
	bottom: clamp(50px, 8vw, 110px);
	left: clamp(28px, 7vw, 100px);
	z-index: 1;
	width: min(620px, calc(100% - 56px));
}

.tour-poster-copy h2 {
	margin: 0;
	font-size: clamp(3.2rem, 7vw, 7rem);
	font-weight: 300;
	letter-spacing: -0.05em;
	line-height: 0.92;
}

.tour-poster-copy > p:not(.section-kicker) {
	max-width: 560px;
	margin: 25px 0 0;
	color: rgba(240, 229, 214, 0.82);
	font-size: 1.08rem;
}

.tour-launch {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	min-height: 58px;
	margin-top: 34px;
	padding: 0 28px 0 10px;
	border: 1px solid rgba(240, 229, 214, 0.72);
	background: rgba(48, 38, 31, 0.28);
	color: var(--altozano-white);
	font-size: 0.79rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	backdrop-filter: blur(10px);
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tour-launch span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--altozano-terracotta);
	font-size: 0.7rem;
	letter-spacing: 0;
}

.tour-launch:hover,
.tour-launch:focus-visible {
	background: var(--altozano-white);
	color: var(--altozano-brown);
	transform: translateY(-2px);
}

.tour-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: var(--altozano-content-offset);
	z-index: 950;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: #30261f;
	color: var(--altozano-white);
	opacity: 0;
	pointer-events: none;
	transform: translateX(28px);
	transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
	visibility: hidden;
}

.tour-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
	visibility: visible;
}

.tour-overlay-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 76px;
	padding: 15px clamp(20px, 3vw, 42px);
	border-bottom: 1px solid rgba(240, 229, 214, 0.12);
	background: var(--altozano-ink);
}

.tour-overlay-header > div {
	display: grid;
	gap: 2px;
}

.tour-overlay-kicker {
	color: var(--altozano-terracotta);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tour-overlay-header strong {
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.tour-overlay-close {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0 8px 18px;
	border: 0;
	border-left: 1px solid rgba(240, 229, 214, 0.2);
	background: transparent;
	color: var(--altozano-white);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.tour-overlay-close span {
	font-size: 1.65rem;
	font-weight: 300;
	line-height: 1;
}

.tour-frame-shell {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: #30261f;
}

.tour-frame-shell video {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #30261f;
	object-fit: contain;
}

.tour-error {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: min(420px, calc(100% - 40px));
	margin: 0;
	padding: 24px 28px;
	background: rgba(48, 38, 31, 0.94);
	color: var(--altozano-white);
	font-size: 0.95rem;
	text-align: center;
	transform: translate(-50%, -50%);
}

.tour-error[hidden] {
	display: none;
}

.tour-error a {
	display: block;
	margin-top: 10px;
	color: var(--altozano-sand);
	text-decoration: underline;
}

.tour-contact-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 88px;
	padding: 14px clamp(20px, 3vw, 42px);
	background: var(--altozano-paper);
	color: var(--altozano-brown);
}

.tour-contact-bar p {
	display: flex;
	align-items: baseline;
	gap: 15px;
	margin: 0;
}

.tour-contact-bar strong {
	font-size: 1rem;
	font-weight: 600;
}

.tour-contact-bar span {
	font-size: 0.88rem;
}

.tour-contact-bar .button {
	flex: 0 0 auto;
	min-height: 48px;
}

.design-section {
	background: var(--altozano-brown);
	color: var(--altozano-white);
}

.design-section .section-title {
	color: var(--altozano-white);
}

.design-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(48px, 8vw, 115px);
	align-items: start;
}

.design-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 4px 0 0;
	border-top: 1px solid rgba(240, 229, 214, 0.19);
}

.design-item {
	min-height: 190px;
	padding: 28px 26px 28px 0;
	border-bottom: 1px solid rgba(240, 229, 214, 0.19);
}

.design-item:nth-child(odd) {
	border-right: 1px solid rgba(240, 229, 214, 0.19);
}

.design-item:nth-child(even) {
	padding-left: 26px;
}

.design-item span {
	display: block;
	margin-bottom: 34px;
	color: var(--altozano-terracotta);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.design-item h3 {
	margin: 0 0 9px;
	font-size: 1.25rem;
	font-weight: 500;
}

.design-item p {
	margin: 0;
	color: rgba(240, 229, 214, 0.7);
	font-size: 0.94rem;
}

.plan-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: center;
}

.plan-pair {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 1100px;
	gap: clamp(12px, 1.6vw, 24px);
}

.plan-sheet {
	margin: 0;
	padding: clamp(10px, 1.4vw, 18px);
	background: var(--altozano-white);
	box-shadow: 0 26px 70px rgba(84, 51, 36, 0.1);
}

.plan-crop {
	position: relative;
	aspect-ratio: 1452 / 2876;
	overflow: hidden;
	background: var(--altozano-white);
}

.plan-crop img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.plan-sheet figcaption {
	margin-top: 14px;
	color: var(--altozano-brown);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}

.level-list {
	margin: 38px 0 0;
	padding: 0;
	list-style: none;
}

.level-list li {
	padding: 18px 0;
	border-bottom: 1px solid var(--altozano-line);
}

.level-list strong {
	display: block;
	margin-bottom: 5px;
	color: var(--altozano-brown);
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gallery-section {
	padding-right: 0;
	padding-left: 0;
	background: var(--altozano-ink);
	color: var(--altozano-white);
}

.gallery-heading {
	width: min(calc(100% - 48px), var(--altozano-max-width));
	margin: 0 auto clamp(42px, 6vw, 78px);
}

.gallery-section .section-title {
	color: var(--altozano-white);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 10px;
	padding: 0 10px;
}

.gallery-item {
	position: relative;
	grid-column: span 6;
	min-height: 0;
	aspect-ratio: 16 / 9;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #30261f;
	cursor: zoom-in;
}

.gallery-item:last-child {
	grid-column: 1 / -1;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 250ms ease;
}

.gallery-item::after {
	position: absolute;
	right: 18px;
	bottom: 16px;
	padding: 8px 11px;
	background: rgba(48, 38, 31, 0.82);
	color: var(--altozano-white);
	content: "+";
	font-size: 1.2rem;
	line-height: 1;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
	transform: scale(1.035);
	opacity: 0.88;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
}

.location-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(45px, 8vw, 110px);
	align-items: center;
}

.location-copy p:not(.section-kicker) {
	max-width: 520px;
	margin: 28px 0 0;
	font-size: 1.08rem;
}

.location-meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin-top: 38px;
	background: var(--altozano-line);
	border: 1px solid var(--altozano-line);
}

.location-meta div {
	padding: 22px;
	background: var(--altozano-paper);
}

.location-meta strong,
.location-meta span {
	display: block;
}

.location-meta strong {
	margin-bottom: 5px;
	color: var(--altozano-terracotta);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.studio-strip {
	background: var(--altozano-sand);
}

.studio-grid {
	display: block;
}

.studio-copy {
	width: min(100%, 900px);
	margin: 0 auto;
	text-align: center;
}

.studio-copy h2 {
	margin: 0 0 22px;
	color: var(--altozano-brown);
	font-size: clamp(2rem, 4.2vw, 4rem);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1.04;
}

.studio-copy p {
	max-width: 680px;
	margin: 0 auto;
	font-size: 1.08rem;
}

.contact-section {
	background: var(--altozano-terracotta);
	color: var(--altozano-white);
}

.contact-section .section-kicker,
.contact-section .section-title {
	color: var(--altozano-white);
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
	gap: clamp(50px, 9vw, 130px);
}

.contact-intro .contact-copy {
	max-width: 470px;
	margin-top: 28px;
	font-size: 1.08rem;
}

.contact-phone {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: clamp(34px, 5vw, 58px);
}

.contact-phone span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.contact-phone a {
	display: inline-block;
	color: var(--altozano-white);
	font-size: clamp(1.55rem, 2.5vw, 2.4rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-decoration: none;
	border-bottom: 1px solid rgba(240, 229, 214, 0.55);
	transition: border-color 180ms ease, opacity 180ms ease;
}

.contact-phone a:hover,
.contact-phone a:focus-visible {
	border-color: var(--altozano-white);
	opacity: 0.82;
}

.contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.field-full {
	grid-column: 1 / -1;
}

.contact-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 0;
	border: 0;
	border-bottom: 1px solid rgba(240, 229, 214, 0.58);
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: var(--altozano-white);
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(240, 229, 214, 0.58);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: var(--altozano-white);
}

.contact-form .button {
	justify-self: start;
	border-color: var(--altozano-brown);
	background: var(--altozano-brown);
}

.contact-form .button:hover,
.contact-form .button:focus-visible {
	border-color: var(--altozano-white);
	background: var(--altozano-white);
	color: var(--altozano-brown) !important;
}

.form-message {
	grid-column: 1 / -1;
	min-height: 26px;
	margin: 0;
	font-weight: 500;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 35px clamp(24px, 5vw, 80px);
	background: var(--altozano-ink);
	color: rgba(240, 229, 214, 0.72);
	font-size: 0.82rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--altozano-white);
}

.lightbox {
	width: min(94vw, 1500px);
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--altozano-white);
}

.lightbox::backdrop {
	background: rgba(48, 38, 31, 0.93);
}

.lightbox figure {
	margin: 0;
}

.lightbox img {
	width: 100%;
	max-height: 86vh;
	object-fit: contain;
}

.lightbox figcaption {
	padding: 12px 58px 0 0;
	font-size: 0.86rem;
	letter-spacing: 0.08em;
}

.lightbox-close {
	position: fixed;
	top: 22px;
	right: 28px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(240, 229, 214, 0.55);
	background: rgba(48, 38, 31, 0.5);
	color: white;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 10px 14px;
	background: var(--altozano-white);
	color: var(--altozano-brown) !important;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

@media (max-width: 1459px) {
	.brand-link {
		min-height: 150px;
		padding: 12px 28px;
	}

	.brand-link img {
		height: 120px;
	}

	.site-navigation li::before {
		width: 60px;
		height: 60px;
		font-size: 1.05rem;
	}

	.site-navigation li::after {
		right: 60px;
	}

	.site-navigation a {
		min-height: 60px;
		padding: 16px 80px 16px 25px;
	}

	.site-navigation a::after {
		right: 59px;
	}
}

@media (max-width: 1279px) {
	:root {
		--altozano-sidebar-width: 300px;
		--altozano-content-offset: 0px;
	}

	.site-header {
		left: calc(-1 * var(--altozano-sidebar-width));
		background: var(--altozano-ink);
	}

	.site-header.menu-visible {
		left: 0;
	}

	.menu-toggle {
		display: block;
	}

	.tour-overlay-header {
		padding-left: 96px;
	}
}

@media (max-width: 1023px) {
	:root {
		--altozano-content-offset: 0px;
	}

	#contenido,
	.footer-signature,
	.site-footer {
		margin-left: 0;
	}
}

@media (max-width: 980px) {
	.hero-marker {
		display: none;
	}

	.intro-grid,
	.design-grid,
	.plan-grid,
	.location-grid,
	.studio-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.facts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.author-section {
		min-height: 0;
		padding: 56px 16px;
		background:
			linear-gradient(rgba(48, 38, 31, 0.45), rgba(48, 38, 31, 0.45)),
			url("../upload/altozano/render-fachada-frontal-800.webp") center / cover no-repeat,
			var(--altozano-ink);
	}

	.author-panel {
		width: 100%;
		padding: 52px clamp(22px, 6vw, 56px) 56px;
	}

	.author-signature {
		width: min(100%, 380px);
	}

	.fact:nth-child(2) {
		border-right: 0;
	}

	.fact:nth-child(-n + 2) {
		border-bottom: 1px solid var(--altozano-line);
	}

	.fact:nth-child(3) {
		padding-left: 0;
	}

	.location-grid {
		gap: 70px;
	}

	.gallery-item {
		grid-column: span 6;
	}

	.gallery-item:last-child {
		grid-column: 1 / -1;
	}

	.tour-contact-bar p {
		display: grid;
		gap: 0;
	}
}

@media (max-width: 640px) {
	.hero {
		min-height: max(760px, 100svh);
		padding-top: 118px;
	}

	.plan-pair {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.hero::before {
		background-position: 62% center;
	}

	.hero::after {
		background: linear-gradient(0deg, rgba(48, 38, 31, 0.82) 0%, rgba(48, 38, 31, 0.34) 72%, rgba(48, 38, 31, 0.35) 100%);
	}

	.site-header {
		width: min(86vw, 300px);
		left: calc(-1 * min(86vw, 300px));
	}

	.site-header.menu-visible {
		left: 0;
	}

	.brand-link {
		min-height: 126px;
		padding: 10px 24px;
	}

	.brand-link img {
		height: 104px;
	}

	.site-navigation li::before {
		height: 54px;
	}

	.site-navigation a {
		min-height: 54px;
		padding-top: 14px;
		padding-bottom: 14px;
		font-size: 0.76rem;
	}

	.sidebar-meta {
		display: none;
	}

	.hero h1 {
		font-size: clamp(3.25rem, 15vw, 4.6rem);
	}

	.hero-actions,
	.hero-actions .button {
		width: 100%;
	}

	.facts-grid {
		grid-template-columns: 1fr;
	}

	.fact,
	.fact:first-child,
	.fact:nth-child(3) {
		min-height: 0;
		padding: 25px 0;
		border-right: 0;
		border-bottom: 1px solid var(--altozano-line);
	}

	.fact:last-child {
		border-bottom: 0;
	}

	.feature-image,
	.feature-image img {
		min-height: 610px;
	}

	.feature-image-caption {
		right: 16px;
		bottom: 16px;
		left: 16px;
	}

	.tour-poster {
		min-height: 680px;
	}

	.tour-poster::after {
		background: linear-gradient(0deg, rgba(48, 38, 31, 0.88) 0%, rgba(48, 38, 31, 0.24) 76%);
	}

	.tour-poster-copy {
		bottom: 42px;
		left: 24px;
		width: calc(100% - 48px);
	}

	.tour-launch {
		width: 100%;
	}

	.tour-overlay-header {
		min-height: 78px;
		padding-right: 14px;
		padding-left: 88px;
	}

	.tour-overlay-kicker,
	.tour-overlay-header strong {
		display: none;
	}

	.tour-contact-bar {
		min-height: 76px;
		padding: 12px 14px;
	}

	.tour-contact-bar p {
		display: none;
	}

	.tour-contact-bar .button {
		width: 100%;
	}

	.design-list,
	.location-meta,
	.contact-form {
		grid-template-columns: 1fr;
	}

	.design-item,
	.design-item:nth-child(even) {
		min-height: 0;
		padding: 25px 0;
		border-right: 0;
	}

	.design-item span {
		margin-bottom: 20px;
	}

	.gallery-grid {
		display: block;
		padding: 0 8px;
	}

	.gallery-item {
		display: block;
		width: 100%;
		min-height: 0;
		margin-bottom: 8px;
		aspect-ratio: 16 / 10;
	}

	.contact-form .field-full {
		grid-column: auto;
	}

	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

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

	.altozano-landing *,
	.altozano-landing *::before,
	.altozano-landing *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ===== Mejoras oct 2026: idioma, cercanías, planos ampliables, formulario, barra móvil, aviso de privacidad ===== */

/* Cambio de idioma */
.hero-lang {
	position: absolute;
	top: clamp(22px, 3vw, 40px);
	right: clamp(22px, 4vw, 60px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid rgba(240, 229, 214, 0.55);
	background: rgba(48, 38, 31, 0.32);
	color: var(--altozano-white);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	transition: background-color 180ms ease, color 180ms ease;
}

.hero-lang:hover,
.hero-lang:focus-visible {
	background: var(--altozano-white);
	color: var(--altozano-brown);
}

.lang-switch {
	display: flex;
	gap: 0;
	margin: 22px 30px 0;
	border: 1px solid rgba(240, 229, 214, 0.18);
	width: max-content;
}

.lang-switch a {
	padding: 8px 14px;
	color: rgba(240, 229, 214, 0.6);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.lang-switch a[aria-current="true"] {
	background: rgba(240, 229, 214, 0.12);
	color: var(--altozano-white);
}

/* Planos ampliables */
.plan-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.plan-open .plan-crop::after {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 6px 9px;
	background: rgba(48, 38, 31, 0.82);
	color: var(--altozano-white);
	content: "+";
	font-size: 1rem;
	line-height: 1;
}

.lightbox.is-plan img {
	background: #fff;
}

/* Qué hay cerca */
.nearby {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--altozano-line);
}

.nearby::before {
	position: absolute;
	top: -22px;
	right: -22px;
	width: 34%;
	height: 34%;
	border-top: 2px solid var(--altozano-terracotta);
	border-right: 2px solid var(--altozano-terracotta);
	content: "";
	pointer-events: none;
}

.nearby li {
	display: grid;
	grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr);
	gap: 22px;
	align-items: baseline;
	padding: 17px 0;
	border-bottom: 1px solid var(--altozano-line);
}

.nearby-time {
	color: var(--altozano-brown);
	font-size: clamp(1.45rem, 2.2vw, 2rem);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.nearby-place strong {
	display: block;
	color: var(--altozano-ink);
	font-size: 1rem;
	font-weight: 600;
}

.nearby-place span {
	display: block;
	color: rgba(48, 38, 31, 0.68);
	font-size: 0.9rem;
}

.nearby-note {
	margin: 16px 0 0;
	color: rgba(48, 38, 31, 0.6);
	font-size: 0.82rem;
}

/* Formulario */
.contact-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 28px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.contact-form select option {
	background: var(--altozano-white);
	color: var(--altozano-ink);
}

.contact-form .label-optional {
	margin-left: 6px;
	opacity: 0.7;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
}

.form-legal {
	grid-column: 1 / -1;
	margin: -6px 0 0;
	color: rgba(240, 229, 214, 0.78);
	font-size: 0.82rem;
}

.form-legal a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Footer */
/* Firma animada justo arriba del pie de página, en crema sobre el fondo oscuro. */
.footer-signature {
	display: flex;
	justify-content: center;
	padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 80px) clamp(28px, 3vw, 40px);
	background: var(--altozano-ink);
	border-bottom: 1px solid rgba(240, 229, 214, 0.12);
}

/* invert + screen: el fondo blanco del video desaparece y el trazo queda claro. */
.footer-signature-video {
	display: block;
	width: min(100%, 420px);
	height: auto;
	filter: invert(1);
	mix-blend-mode: screen;
	opacity: 0.85;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

/* El recorrido en video ya tiene su propio botón de cerrar: se oculta el del menú */
body.tour-open .menu-toggle {
	display: none;
}

/* Botón de WhatsApp visible en toda la página.
   Escritorio: botón flotante abajo a la derecha. Celular y tablet: barra fija con "Agendar visita" + WhatsApp. */
.mobile-cta {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 900;
	display: block;
	transition: opacity 200ms ease, transform 200ms ease;
}

.mobile-cta > .button:not(.button-whatsapp) {
	display: none;
}

.mobile-cta .button-whatsapp {
	gap: 10px;
	min-height: 56px;
	padding: 0 24px 0 20px;
	border-color: rgba(240, 229, 214, 0.45);
	border-radius: 999px;
	background: var(--altozano-brown);
	box-shadow: 0 14px 34px rgba(48, 38, 31, 0.32);
}

@media (min-width: 1280px) {
	.site-footer {
		padding-right: 220px;
	}
}

.mobile-cta .button-whatsapp svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

body.tour-open .mobile-cta,
body.menu-open .mobile-cta {
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
}

@media (max-width: 1279px) {
	.tour-overlay-header {
		padding-left: clamp(20px, 3vw, 42px);
	}

	.mobile-cta {
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(48, 38, 31, 0.96);
		box-shadow: 0 -12px 30px rgba(48, 38, 31, 0.18);
	}

	.mobile-cta > .button:not(.button-whatsapp) {
		display: inline-flex;
	}

	body.menu-open .mobile-cta,
	body.tour-open .mobile-cta {
		transform: translateY(110%);
	}

	.mobile-cta .button {
		min-height: 50px;
		padding: 0 18px;
	}

	.mobile-cta .button-whatsapp {
		gap: 8px;
		min-height: 50px;
		padding: 0 18px;
		border-color: rgba(240, 229, 214, 0.55);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.mobile-cta .button-whatsapp svg {
		width: 18px;
		height: 18px;
	}

	.hero {
		padding-bottom: calc(clamp(52px, 8vw, 110px) + 70px);
	}

	.site-footer {
		padding-bottom: calc(35px + 74px);
	}
}

@media (max-width: 640px) {
	.hero-lang {
		top: 19px;
		right: 16px;
	}

	.nearby::before {
		right: -10px;
	}

	.nearby li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Aviso de privacidad */
.legal-page {
	min-height: 100vh;
	padding: clamp(40px, 7vw, 100px) clamp(20px, 5vw, 80px);
	background: var(--altozano-paper);
}

.legal-inner {
	width: min(100%, 780px);
	margin: 0 auto;
}

.legal-brand img {
	width: auto;
	height: 96px;
	margin-bottom: 40px;
}

.legal-inner h1 {
	margin: 0 0 12px;
	color: var(--altozano-brown);
	font-size: clamp(2.3rem, 5vw, 3.8rem);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1;
}

.legal-inner h2 {
	margin: 44px 0 10px;
	color: var(--altozano-brown);
	font-size: 1.15rem;
	font-weight: 600;
}

.legal-inner p,
.legal-inner li {
	font-size: 1rem;
}

.legal-inner ul {
	padding-left: 20px;
}

.legal-inner a {
	color: var(--altozano-terracotta);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.legal-updated {
	color: rgba(48, 38, 31, 0.6);
	font-size: 0.9rem;
}

.legal-back {
	display: inline-block;
	margin-top: 50px;
}

.plan-open .plan-crop {
	display: block;
}

.lightbox.is-plan img {
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

/* Distribución: texto bajo las tres plantas, en dos columnas en pantallas anchas */
@media (min-width: 981px) {
	#distribucion .plan-grid > div:last-child {
		display: grid;
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: clamp(40px, 6vw, 96px);
		align-items: start;
	}
	#distribucion .plan-grid > div:last-child .level-list {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-top: 0;
	}
}

/* Zoom de planos en la vista ampliada */
.lightbox-zoom {
	max-height: 86vh;
	overflow: hidden;
}

.lightbox.is-plan .lightbox-zoom {
	position: relative;
	max-height: 80vh;
	overflow: auto;
	overscroll-behavior: contain;
	background: transparent;
	-webkit-overflow-scrolling: touch;
}

.lightbox.is-plan .lightbox-zoom img {
	display: block;
	max-height: none;
	max-width: none;
	margin: 0 auto;
	cursor: zoom-in;
}

.lightbox.is-plan.is-zoomed .lightbox-zoom img {
	cursor: grab;
}

.lightbox.is-plan .lightbox-zoom.is-dragging img {
	cursor: grabbing;
}

.zoom-controls {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0 58px 10px 0;
}

.lightbox.is-plan .zoom-controls {
	display: flex;
}

.zoom-controls button {
	min-width: 44px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(240, 229, 214, 0.55);
	background: rgba(48, 38, 31, 0.6);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.zoom-controls button:hover,
.zoom-controls button:focus-visible {
	background: rgba(240, 229, 214, 0.18);
}

.zoom-hint {
	margin-left: 8px;
	font-size: 0.8rem;
	opacity: 0.8;
}

@media (max-width: 640px) {
	.zoom-hint {
		display: none;
	}
}
