/* Barra de contacto, header/nav, hero, buscador y estructura de secciones. */

.topbar {
	background: var(--surface);
	color: var(--text-muted);
	font-size: 0.78rem;
	border-bottom: 1px solid var(--border);
}

.topbar .container {
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.topbar span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.topbar svg {
	width: 13px;
	height: 13px;
	color: var(--red);
}

/* ---------- Header ---------- */
header.site {
	background: var(--navy);
	position: sticky;
	top: 0;
	z-index: 40;
}

.nav-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 0 0;
	gap: 14px;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.brand-logo {
	height: 72px;
	width: auto;
	display: block;
}

.nav-strip {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-tab {
	background: var(--red);
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-tab svg {
	width: 18px;
	height: 18px;
	color: #fff;
}

nav.primary {
	display: none;
	align-items: center;
	gap: 30px;
	height: 46px;
	padding: 0 26px;
}

nav.primary a {
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.01em;
}

nav.primary a:hover,
nav.primary a.current-menu-item {
	color: var(--gold-bright);
}

.menu-toggle {
	display: inline-flex;
	margin-left: auto;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 3px;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	color: #fff;
}

@media (min-width: 860px) {
	.nav-row {
		flex-direction: row;
		justify-content: space-between;
		padding: 16px 20px;
	}
	.nav-strip {
		width: auto;
		border-top: none;
	}
	nav.primary {
		display: flex;
	}
	.menu-toggle {
		display: none;
	}
}

/* Menú móvil */
body.nav-open .nav-strip {
	display: flex;
}

@media (max-width: 859px) {
	.nav-strip {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 8px;
	}
	.nav-strip .nav-tab {
		display: none;
	}
	nav.primary {
		display: flex;
		flex-direction: column;
		height: auto;
		align-items: flex-start;
		gap: 4px;
		padding: 10px 20px;
	}
	body.nav-open .nav-strip {
		display: flex;
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
	color: var(--text);
	text-align: center;
	overflow: hidden;
	padding-top: 0;
	padding-bottom: 0;
}

.hero-inner {
	position: relative;
	z-index: 1;
	padding: 24px 0 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.hero h1 {
	color: var(--navy);
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	max-width: 20ch;
	line-height: 1.12;
}

.hero p.lead {
	max-width: 50ch;
	color: var(--text-muted);
	font-size: 1.02rem;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 6px;
}

.hero-photo-note {
	position: absolute;
	bottom: 14px;
	right: 18px;
	z-index: 1;
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	opacity: 0.7;
}

/* Buscador flotante */
.finder {
	position: relative;
	z-index: 2;
	margin: -56px auto 0;
	max-width: 1000px;
	background: var(--surface);
	border-radius: 6px;
	box-shadow: var(--shadow);
	padding: 22px;
	border: 1px solid var(--border);
}

.finder-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field label {
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 700;
}

.field select,
.field input {
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 11px 12px;
	font-size: 0.9rem;
	background: var(--bg-alt);
	color: var(--text);
	font-family: inherit;
}

.finder-submit {
	display: flex;
	align-items: flex-end;
}

.finder-submit .btn {
	width: 100%;
}

@media (min-width: 780px) {
	.finder-fields {
		grid-template-columns: repeat(4, 1fr) auto;
		align-items: end;
	}
}

/* En páginas de resultados (sin hero encima), el buscador no debe flotar
   con margen negativo: eso es solo para superponerse a la foto del hero. */
.finder-static .finder {
	margin-top: 24px;
}

/* ---------- Estructura de secciones (alternadas, sin dos iguales seguidas) ---------- */
section {
	padding: 80px 0;
}

#propiedades {
	padding-top: 24px;
}

#propiedades .section-head {
	margin-bottom: 4px;
}

#quienes-somos {
	padding-top: 24px;
}

#ciudades {
	padding-top: 24px;
}

#testimonios {
	padding-top: 24px;
}

#contacto {
	padding-top: 24px;
}

.page-quienes-somos {
	padding-top: 4px;
}

#contacto-pagina {
	padding-top: 4px;
}

.page-legal {
	padding-top: 4px;
}

/* La ficha de propiedad vive dentro de <main>, no de <section>, así que no
   recibe el padding vertical genérico (section { padding: 80px 0; }) y
   quedaba pegada justo debajo del breadcrumb sin aire ni arriba ni abajo. */
.property-page-container {
	padding: 32px 0 72px;
}

.band-alt {
	background: var(--bg-alt);
}

.section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 46px;
}

.section-head h2 {
	font-size: clamp(1.55rem, 3vw, 2.05rem);
	margin-top: 10px;
}

.section-head p {
	color: var(--text-muted);
	margin: 12px 0 0;
}

.see-all-wrap {
	text-align: center;
	margin-top: 40px;
}

.see-all {
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--navy);
	border-bottom: 2px solid var(--red);
	padding-bottom: 3px;
}

.empty-state {
	text-align: center;
	color: var(--text-muted);
	padding: 40px 0;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 4px;
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	font-size: 0.86rem;
}

.pagination .current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

@media (max-width: 640px) {
	section {
		padding: 56px 0;
	}
	.finder {
		margin-top: -46px;
	}
}
