/* ==========================================================
	Invertir en El Salvador — estilos base
	Referencia visual: theanavegagroup.com (lujo minimalista)
	========================================================== */

:root {
	--color-bg: #ffffff;
	--color-bg-soft: #f6f5f3;
	--color-text: #1d1d1b;
	--color-muted: #8a8a85;
	--color-white: #ffffff;
	--font-serif: "Cormorant Garamond", Georgia, serif;
	--font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--header-h: 96px;
	--gutter: 32px;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Header ---------- */

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

/* Al bajar, el header se vuelve sólido */
.site-header.is-scrolled {
	--header-h: 72px;
	background: rgba(20, 20, 18, .92);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

/* Páginas sin hero (fichas de propiedad): header siempre sólido */
.site-header--solid {
	background: rgba(20, 20, 18, .96);
}

.page-solid-header {
	padding-top: var(--header-h);
}

/* PLACEHOLDER del logo: reemplazar por <img src="images/logo.png"> */
.site-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, .7);
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .35em;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 40px;
}

.site-nav a {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .92;
	transition: opacity .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-left: 8px;
	font-size: 12px;
	opacity: .8;
}

.lang-switch a {
	font-size: 12px;
	opacity: .6;
}

.lang-switch a.is-active {
	opacity: 1;
}

/* EN sin enlace mientras no exista la versión en inglés */
.lang-switch .is-disabled {
	font-size: 12px;
	opacity: .4;
	cursor: default;
}

.nav-toggle {
	display: none;
	position: relative;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.nav-toggle span {
	position: absolute;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform .3s ease, width .3s ease, top .3s ease;
}

.nav-toggle span:nth-child(1) {
	top: 11px;
	width: 26px;
}

.nav-toggle span:nth-child(2) {
	top: 19px;
	width: 18px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	top: 15px;
	width: 26px;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	top: 15px;
	width: 26px;
	transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 var(--gutter) 18vh;
	color: var(--color-white);
	text-align: center;
	overflow: hidden;
}

/* PLACEHOLDER: degradado tipo cielo/mar hasta tener la foto o video real */
.hero__media {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, #9aa3a6 0%, #b9b5a8 38%, #c9bfa9 52%, #5f7f84 53%, #3f6268 75%, #2f4b50 100%);
	background-size: cover;
	background-position: center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .35) 100%);
}

.hero__content {
	position: relative;
	max-width: 1100px;
}

.hero__eyebrow {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .3em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(40px, 6.2vw, 92px);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.hero__tagline {
	margin: 22px 0 0;
	font-size: 17px;
	font-weight: 300;
}

/* ---------- Celular / tablet ---------- */

@media (max-width: 960px) {
	:root {
		--header-h: 76px;
		--gutter: 20px;
	}

	.site-header.is-scrolled {
		--header-h: 64px;
	}

	.site-logo {
		min-width: 110px;
		height: 40px;
		font-size: 13px;
	}

	.nav-toggle {
		display: block;
		z-index: 2;
	}

	/* Menú a pantalla completa */
	.site-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 32px;
		background: #141412;
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.site-nav a {
		font-size: 18px;
	}

	.lang-switch {
		padding: 16px 0 0;
	}

	.lang-switch a {
		font-size: 14px;
	}

	.hero {
		padding-bottom: 14vh;
	}

	.hero__eyebrow {
		font-size: 12px;
		letter-spacing: .25em;
	}

	.hero__tagline {
		font-size: 15px;
	}
}

body.nav-open {
	overflow: hidden;
}
