/*
 * Paleta aproximada a partir del mockup de referencia (home desktop).
 * Son valores de partida — hay que reemplazarlos por los hex/fuentes
 * definitivos de marca cuando el cliente los entregue.
 */
:root {
	--nh-color-olive: #6d6f52;
	--nh-color-gold: #c99a5b;
	--nh-color-gold-dark: #b6864a;
	--nh-color-dark: #23262b;
	--nh-color-bg: #faf7f2;
	--nh-color-text: #2b2b2b;
	--nh-color-muted: #6b6b6b;
	--nh-font-heading: 'Geffroy Eleonora', Georgia, serif;
	--nh-font-body: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body,
.nh-search-bar,
.nh-property-section,
.nh-comuna-section,
.nh-ficha {
	font-family: var(--nh-font-body);
	font-weight: 500;
}

.nh-section-title,
.nh-property-card__title,
.nh-comuna-card__label,
.nh-ficha__title,
.nh-ficha-banner__title {
	font-family: var(--nh-font-heading);
	font-weight: normal;
}

.nh-property-card__price,
.nh-ficha__price,
strong {
	font-weight: 700;
}

.nh-search-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: #fff;
	border-radius: 999px;
	padding: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	max-width: 720px;
	margin: 0 auto;
	align-items: center;
}

.nh-search-field select,
.nh-search-field input[type="text"] {
	border: none;
	background: transparent;
	font-family: var(--nh-font-body);
	font-size: 14px;
	color: var(--nh-color-text);
	padding: 8px 12px;
	min-width: 140px;
}

.nh-search-field select:focus,
.nh-search-field input[type="text"]:focus {
	outline: none;
}

.nh-search-field--text {
	flex: 1;
	border-left: 1px solid #eee;
}

.nh-search-submit {
	background: var(--nh-color-gold);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nh-search-submit:hover {
	background: var(--nh-color-gold-dark);
}

.nh-property-section,
.nh-comuna-section,
.nh-blog-section {
	text-align: center;
	font-family: var(--nh-font-body);
}

.nh-section-title {
	font-family: var(--nh-font-heading);
	font-size: 30px;
	color: var(--nh-color-text);
	margin-bottom: 8px;
}

.nh-section-subtitle {
	color: var(--nh-color-muted);
	max-width: 560px;
	margin: 0 auto 32px;
}

.nh-property-grid {
	display: grid;
	gap: 24px;
	text-align: left;
	grid-template-columns: repeat(3, 1fr);
}

.nh-property-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nh-property-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.nh-property-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nh-property-card__media {
	position: relative;
}

.nh-property-card__media img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.nh-property-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--nh-color-gold);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	z-index: 1;
}

.nh-property-card__body {
	padding: 18px 20px 20px;
}

.nh-property-card__title {
	font-family: var(--nh-font-heading);
	font-size: 18px;
	margin: 0 0 6px;
}

.nh-property-card__title a {
	color: var(--nh-color-text);
	text-decoration: none;
}

.nh-property-card__address {
	color: var(--nh-color-muted);
	font-size: 13px;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nh-property-card__specs {
	list-style: none;
	display: flex;
	gap: 14px;
	padding: 0;
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--nh-color-text);
	border-top: 1px solid #f0ede8;
	border-bottom: 1px solid #f0ede8;
	padding: 10px 0;
}

.nh-property-card__specs li {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nh-property-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nh-property-card__price {
	font-weight: 700;
	font-size: 16px;
	color: var(--nh-color-text);
}

.nh-property-card__cta {
	background: transparent;
	border: 1px solid var(--nh-color-gold);
	color: var(--nh-color-gold-dark);
	padding: 6px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.nh-property-card__cta:hover {
	background: var(--nh-color-gold);
	color: #fff;
}

.nh-comuna-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.nh-comuna-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 260px;
	border-radius: 12px;
	background-color: var(--nh-color-olive);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none !important;
	padding: 20px;
	overflow: hidden;
}

.nh-comuna-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.nh-comuna-card__label,
.nh-comuna-card__link {
	position: relative;
	z-index: 1;
}

.nh-comuna-card__label {
	font-family: var(--nh-font-heading);
	font-size: 18px;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.nh-comuna-card__link {
	font-size: 12px;
	opacity: 0.85;
}

.nh-no-results,
.nh-no-results-dynamic {
	color: var(--nh-color-muted);
	text-align: center;
	padding: 20px 0;
}

/* ---- Header transparente sobre el hero (Page_Settings::META_KEY) ---- */

body.nh-header-overlay #masthead {
	position: absolute !important;
	top: 0 !important;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent !important;
}

body.nh-header-overlay #masthead .elementor-section,
body.nh-header-overlay #masthead .elementor-widget-wrap {
	background: transparent !important;
}

body.nh-header-overlay #masthead .hfe-site-logo-img,
body.nh-header-overlay #masthead img.hfe-site-logo-img {
	filter: brightness(0) invert(1);
}

body.nh-header-overlay #masthead .elementor-column,
body.nh-header-overlay #masthead .elementor-widget-wrap,
body.nh-header-overlay #masthead .elementor-container {
	background: transparent !important;
}

body.nh-header-overlay #masthead .hfe-nav-menu a.hfe-menu-item,
body.nh-header-overlay #masthead .hfe-nav-menu-icon {
	color: #fff !important;
}

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

.nh-hero {
	position: relative;
	width: 100%;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.nh-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.85) 100%);
}

.nh-hero--left .nh-hero__overlay {
	background: linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.85) 100%);
}

.nh-hero__content {
	position: absolute;
	z-index: 2;
	bottom: 7%;
	max-width: 620px;
	color: #fff;
}

.nh-hero--right .nh-hero__content {
	right: 5%;
	text-align: right;
}

.nh-hero--left .nh-hero__content {
	left: 5%;
	text-align: left;
}

.nh-hero__eyebrow {
	font-family: var(--nh-font-heading);
	font-style: italic;
	font-weight: 400;
	font-size: 28px;
	margin: 0 0 4px;
}

.nh-hero__heading {
	font-family: var(--nh-font-heading);
	text-transform: uppercase;
	font-weight: 400;
	font-size: 52px;
	line-height: 1.08;
	margin: 0 0 16px;
}

.nh-hero__subtitle {
	font-family: var(--nh-font-body);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
	margin: 0;
}

/* ---- NH Filtro ---- */

.nh-filtro {
	display: grid;
	gap: 14px;
	max-width: 640px;
	margin: 40px auto;
}

.nh-filtro--cols-1 { grid-template-columns: 1fr; max-width: 280px; }
.nh-filtro--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nh-filtro--cols-3 { grid-template-columns: repeat(3, 1fr); }
.nh-filtro--cols-4 { grid-template-columns: repeat(4, 1fr); }

.nh-filtro__btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 15px 24px;
	border-radius: 6px;
	border: 1px solid var(--nh-color-gold);
	background: #fff;
	color: var(--nh-color-text);
	font-family: var(--nh-font-body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nh-filtro__btn:focus {
	outline: 2px solid var(--nh-color-gold-dark);
	outline-offset: 2px;
}

.nh-filtro__btn--operacion.nh-filtro__btn--active {
	background: var(--nh-color-gold);
	border-color: var(--nh-color-gold);
	color: #fff;
}

.nh-filtro__btn--tipo_propiedad {
	border-color: var(--nh-color-olive);
}

.nh-filtro__btn--tipo_propiedad.nh-filtro__btn--active {
	background: var(--nh-color-olive);
	border-color: var(--nh-color-olive);
	color: #fff;
}

/* ---- NH Promo split ---- */

.nh-promo {
	display: flex;
	min-height: 480px;
}

.nh-promo--reverse {
	flex-direction: row-reverse;
}

.nh-promo__media {
	flex: 1 1 50%;
	background-size: cover;
	background-position: center;
}

.nh-promo__panel {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 60px 70px;
}

.nh-promo__eyebrow {
	font-family: var(--nh-font-heading);
	font-style: italic;
	font-size: 20px;
	margin: 0 0 6px;
	opacity: 0.9;
}

.nh-promo__title {
	font-family: var(--nh-font-heading);
	text-transform: uppercase;
	font-weight: 400;
	font-size: 32px;
	letter-spacing: 1px;
	margin: 0 0 20px;
}

.nh-promo__text {
	font-family: var(--nh-font-body);
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 28px;
	max-width: 420px;
	opacity: 0.95;
}

.nh-promo__button {
	display: inline-block;
	background: #fff;
	color: var(--nh-color-text);
	padding: 12px 32px;
	border-radius: 4px;
	text-decoration: none !important;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---- NH Blog grid ---- */

.nh-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: left;
	margin-top: 32px;
}

.nh-blog-card__media {
	display: block;
	position: relative;
	height: 210px;
	background-size: cover;
	background-position: center;
	border-radius: 14px;
	overflow: hidden;
}

.nh-blog-card__badge {
	position: absolute;
	background: var(--nh-color-olive);
	color: #fff;
	font-size: 13px;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 600;
}

.nh-blog-card__badge--top-left { top: 16px; left: 16px; }
.nh-blog-card__badge--top-right { top: 16px; right: 16px; }
.nh-blog-card__badge--top-center { top: 16px; left: 50%; transform: translateX(-50%); }
.nh-blog-card__badge--bottom-left { bottom: 16px; left: 16px; }
.nh-blog-card__badge--bottom-right { bottom: 16px; right: 16px; }
.nh-blog-card__badge--bottom-center { bottom: 16px; left: 50%; transform: translateX(-50%); }

.nh-blog-card__body {
	padding: 16px 4px 0;
}

.nh-blog-card__date {
	font-size: 12px;
	color: var(--nh-color-muted);
	margin: 0 0 8px;
}

.nh-blog-card__title {
	font-family: var(--nh-font-heading);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.4;
	margin: 0 0 10px;
}

.nh-blog-card__link {
	color: var(--nh-color-gold-dark);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
}

/* ---- NH Property listing (Home, full-width row) ---- */

.nh-property-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nh-property-listing {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	height: 420px;
}

.nh-property-listing__media {
	position: absolute;
	inset: 0;
	display: block;
}

.nh-property-listing__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--nh-obj-x, 50%) var(--nh-obj-y, 50%);
	display: block;
}

.nh-property-listing__fav,
.nh-property-tile__fav {
	position: absolute;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 0;
	background: transparent;
	border: none;
	outline: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
}

.nh-property-listing__fav--top-left,
.nh-property-tile__fav--top-left { top: 20px; left: 20px; }

.nh-property-listing__fav--top-right,
.nh-property-tile__fav--top-right { top: 20px; right: 20px; }

.nh-property-listing__fav--bottom-left,
.nh-property-tile__fav--bottom-left { bottom: 20px; left: 20px; }

.nh-property-listing__fav--bottom-right,
.nh-property-tile__fav--bottom-right { bottom: 20px; right: 20px; }

.nh-property-listing__fav.is-active,
.nh-property-tile__fav.is-active {
	color: #fff;
}

.nh-property-listing__overlay {
	position: absolute;
	inset: 0;
	width: 48%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 36px;
	color: #fff;
	text-align: left;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 100%);
}

.nh-property-listing__kicker {
	font-size: 14px;
	margin: 0 0 4px;
}

.nh-property-listing__kicker strong {
	font-family: var(--nh-font-heading);
	font-weight: 400;
	font-size: 26px;
	display: block;
}

.nh-property-listing__address {
	font-size: 13px;
	opacity: 0.9;
	margin: 6px 0 18px;
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.nh-property-listing__price {
	font-family: var(--nh-font-body);
	font-weight: 700;
	font-size: 24px;
	margin: 0 0 6px;
}

.nh-property-listing__specs {
	font-size: 14px;
	margin: 0 0 16px;
}

.nh-property-listing__meta {
	font-size: 12px;
	opacity: 0.75;
	margin: 0;
}

/* ---- NH Property tile (Propiedades archive grid) ---- */

.nh-property-tile {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	height: 340px;
}

.nh-property-tile__media {
	position: absolute;
	inset: 0;
	display: block;
}

.nh-property-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--nh-obj-x, 50%) var(--nh-obj-y, 50%);
	display: block;
}

.nh-property-tile__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.2));
}

.nh-property-tile__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	font-weight: 700;
	gap: 10px;
}

.nh-property-tile__price {
	font-size: 20px;
}

.nh-property-tile__specs {
	font-size: 13px;
	background: rgba(0, 0, 0, 0.35);
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.nh-property-tile__bottom {
	text-align: left;
}

.nh-property-tile__address {
	font-size: 13px;
	margin: 0 0 4px;
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.nh-property-tile__title {
	font-size: 13px;
	margin: 0;
	opacity: 0.9;
}

.nh-property-tile__meta {
	font-size: 11px;
	opacity: 0.8;
	margin: 2px 0 0;
}

/* ---- NH CTA band ("Necesitas asesoria?") ---- */

.nh-cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	background: var(--nh-color-olive);
	color: #fff;
	padding: 32px 60px;
}

.nh-cta-band__title {
	font-family: var(--nh-font-heading);
	font-weight: 400;
	font-size: 26px;
	margin: 0;
}

.nh-cta-band .nh-whatsapp-btn {
	background: #fff;
	color: var(--nh-color-gold-dark);
	border-radius: 999px;
	padding: 14px 30px;
}

@media (max-width: 900px) {
	.nh-promo,
	.nh-blog-grid {
		flex-direction: column;
		display: block;
	}

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

	.nh-property-listing__overlay {
		width: 100%;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
	}
}

@media (max-width: 900px) {
	.nh-property-grid,
	.nh-property-grid--cols-4,
	.nh-comuna-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.nh-property-grid,
	.nh-property-grid--cols-2,
	.nh-property-grid--cols-4,
	.nh-comuna-grid {
		grid-template-columns: 1fr;
	}

	.nh-search-bar {
		border-radius: 20px;
		flex-direction: column;
		align-items: stretch;
	}

	.nh-search-field--text {
		border-left: none;
		border-top: 1px solid #eee;
	}
}
