/* Adaptative Site — landing adaptativa */

:root {
	--color-primary: #b03a47;
	--color-primary-dark: #8e2e39;
	--color-secondary: #4a6e82;
	--color-accent: #ff3266;
	--color-surface: #f7f5f4;
	--color-surface-2: #efeae8;
	--color-text: #1a1a1a;
	--color-muted: #6b6563;
	--color-white: #fff;
	--color-black: #000;
	--font-body: "Roboto", system-ui, sans-serif;
	--font-heading: "Playfair Display", Georgia, serif;
	--radius: 0.375rem;
	--radius-lg: 0.75rem;
	--shadow: 0 4px 24px rgb(0 0 0 / 8%);
	--shadow-lg: 0 12px 40px rgb(0 0 0 / 12%);
	--container-max: 1240px;
	--container-padding: clamp(1.25rem, 4vw, 2rem);
	--container: min(var(--container-max), 100%);
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-white);
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

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

/* Topbar promo */
.site-topbar {
	background: var(--color-black);
	color: var(--color-white);
	font-size: 0.8125rem;
}

.site-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 0.5rem;
}

.site-topbar__promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.site-topbar__badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: var(--color-primary);
	border-radius: 2px;
}

.site-topbar__link {
	color: var(--color-white);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-topbar__link:hover {
	color: rgb(255 255 255 / 85%);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--color-white);
	border-bottom: 1px solid rgb(0 0 0 / 8%);
	box-shadow: 0 1px 0 rgb(0 0 0 / 4%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.875rem;
}

.site-logo {
	display: block;
	line-height: 0;
}

.site-logo img,
.custom-logo {
	height: 36px;
	width: auto;
	max-width: 160px;
}

.site-logo--footer img {
	filter: brightness(0) invert(1);
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
}

.site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.site-header__toggle-bar {
	display: block;
	width: 1.35rem;
	height: 2px;
	background: var(--color-text);
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-header__panel {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex: 1;
	justify-content: flex-end;
}

.site-nav__list {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: var(--color-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s;
}

.site-nav__list a:hover {
	color: var(--color-primary);
}

.site-header__cta {
	flex-shrink: 0;
	padding-inline: 1.25rem;
	border-radius: 2px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: 2px;
}

.btn--primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-white);
	text-decoration: none;
}

.btn--outline {
	background: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
	border-radius: 2px;
}

.btn--outline:hover {
	background: var(--color-white);
	color: var(--color-primary);
	text-decoration: none;
}

.btn--accent {
	background: var(--color-white);
	color: var(--color-primary);
	border-radius: 2px;
}

.btn--accent:hover {
	background: var(--color-surface);
	color: var(--color-primary-dark);
	text-decoration: none;
}

.btn--block {
	width: 100%;
}

/* Hero */
.hero {
	position: relative;
	padding: 5rem 0 4rem;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgb(0 0 0 / 72%) 0%, rgb(176 58 71 / 55%) 55%, rgb(74 110 130 / 45%) 100%),
		url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80") center / cover no-repeat;
	z-index: 0;
}

.hero__bg--comuna {
	background: none;
}

.hero__bg-layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero__bg-layer--mobile {
	display: none;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgb(0 0 0 / 72%) 0%,
		rgb(176 58 71 / 55%) 55%,
		rgb(74 110 130 / 45%) 100%
	);
	pointer-events: none;
}

.hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__video--mobile {
	display: none;
}

.hero--media-video .hero__overlay {
	background: linear-gradient(
		105deg,
		rgb(0 0 0 / 78%) 0%,
		rgb(15 76 129 / 65%) 50%,
		rgb(26 107 74 / 55%) 100%
	);
}

@media (max-width: 768px) {
	.hero__bg-layer--desktop,
	.hero__video--desktop {
		display: none;
	}

	.hero__bg-layer--mobile,
	.hero__video--mobile {
		display: block;
	}
}

.hero__inner {
	position: relative;
	z-index: 2;
	color: var(--color-white);
	max-width: 42rem;
}

.hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

.hero__title {
	margin: 0 0 1rem;
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
}

.hero__subtitle {
	margin: 0 0 2rem;
	font-size: 1.125rem;
	opacity: 0.92;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero__location-hint {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	opacity: 0.85;
}

.hero__location-hint[hidden] {
	display: none;
}

/* Hero layout banner (CPT) */
.hero--layout-banner {
	padding: 0;
	min-height: clamp(26rem, 70vh, 40rem);
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.hero--layout-banner .hero__overlay {
	background: linear-gradient(
		90deg,
		rgb(0 0 0 / 72%) 0%,
		rgb(0 0 0 / 45%) 42%,
		rgb(0 0 0 / 18%) 70%,
		rgb(0 0 0 / 8%) 100%
	);
}

.hero--layout-banner .hero__banner {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	min-height: inherit;
	padding-top: clamp(4.5rem, 12vw, 6rem);
	padding-bottom: clamp(2.5rem, 8vw, 4rem);
	color: var(--color-white);
	box-sizing: border-box;
}

/* Posición del bloque de texto en el container */
.hero--managed.hero--content-center .hero__banner {
	align-items: center;
}

.hero--managed.hero--content-right .hero__banner {
	align-items: flex-end;
}

.hero--managed.hero--content-center .hero__inner {
	margin-inline: auto;
}

.hero--managed.hero--content-right .hero__inner {
	margin-left: auto;
	margin-right: 0;
}

/* Alineación / justificado del texto */
.hero--managed.hero--text-left .hero__banner-body,
.hero--managed.hero--text-left .hero__inner {
	text-align: left;
}

.hero--managed.hero--text-center .hero__banner-body,
.hero--managed.hero--text-center .hero__inner {
	text-align: center;
}

.hero--managed.hero--text-right .hero__banner-body,
.hero--managed.hero--text-right .hero__inner {
	text-align: right;
}

.hero--managed.hero--text-justify .hero__banner-body,
.hero--managed.hero--text-justify .hero__inner {
	text-align: justify;
}

.hero--managed.hero--text-center .hero__actions,
.hero--managed.hero--text-right .hero__actions {
	justify-content: center;
}

.hero--managed.hero--text-right .hero__actions {
	justify-content: flex-end;
}

.hero--layout-banner.hero--content-right .hero__overlay {
	background: linear-gradient(
		270deg,
		rgb(0 0 0 / 72%) 0%,
		rgb(0 0 0 / 45%) 42%,
		rgb(0 0 0 / 18%) 70%,
		rgb(0 0 0 / 8%) 100%
	);
}

.hero--layout-banner.hero--content-center .hero__overlay {
	background: linear-gradient(
		180deg,
		rgb(0 0 0 / 55%) 0%,
		rgb(0 0 0 / 40%) 50%,
		rgb(0 0 0 / 55%) 100%
	);
}

.hero--layout-banner .hero__brand {
	position: absolute;
	top: clamp(1rem, 3vw, 1.5rem);
	left: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	padding: 0.6rem 0.85rem;
	background: rgb(60 60 60 / 78%);
	border-radius: 2px;
}

.hero--layout-banner .hero__brand-link {
	display: block;
	line-height: 0;
}

.hero--layout-banner .hero__brand-logo {
	display: block;
	height: auto;
	max-height: 1.65rem;
	width: auto;
	max-width: 8.5rem;
}

.hero--layout-banner .hero__brand-caption {
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0.92;
	line-height: 1.2;
}

.hero--layout-banner .hero__banner-body {
	max-width: 36rem;
}

.hero--layout-banner .hero__eyebrow {
	text-transform: none;
	font-weight: 500;
	letter-spacing: normal;
	font-size: 0.8125rem;
	opacity: 0.88;
}

.hero--layout-banner .hero__title {
	font-family: var(--font-body);
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.12;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 12px rgb(0 0 0 / 45%);
}

.hero--layout-banner .hero__subtitle {
	font-size: clamp(0.9375rem, 2vw, 1.0625rem);
	line-height: 1.55;
	margin-bottom: 1.75rem;
	text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
}

.hero--layout-banner .hero__actions {
	margin-top: 0.25rem;
}

.btn--hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-white);
	background: #4a7dc4;
	border: none;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
	transition: background 0.2s ease, transform 0.15s ease;
}

.btn--hero-cta:hover {
	background: #3d6aaf;
	color: var(--color-white);
	text-decoration: none;
	transform: translateY(-1px);
}

/* Hero carousel (sin GPS) */
.hero-carousel {
	--carousel-gap: 0;
	--carousel-visible: 1;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.hero-carousel.geo-carousel .geo-carousel__viewport {
	width: 100%;
	max-width: 100%;
	margin-inline: 0 !important;
	overflow: hidden;
}

.hero-carousel.geo-carousel .geo-carousel__track {
	display: flex;
	gap: 0;
	width: 100%;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.hero-carousel.geo-carousel .geo-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.hero-carousel .geo-carousel__slide > .hero {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	min-height: min(72vh, 560px);
	margin: 0;
	box-sizing: border-box;
}

.hero-carousel .hero--layout-banner {
	width: 100%;
	min-width: 100%;
	padding: 0;
}

.hero-carousel .hero__bg,
.hero-carousel .hero__bg-layer,
.hero-carousel .hero__overlay,
.hero-carousel .hero__video {
	width: 100%;
	max-width: none;
}

.hero-carousel .hero--layout-banner .hero__banner {
	width: 100%;
	max-width: var(--container-max);
}

.hero-carousel .hero-carousel__slide {
	position: relative;
	width: 100%;
}

.hero-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
}

.hero-carousel__nav--prev {
	left: 1rem;
}

.hero-carousel__nav--next {
	right: 1rem;
}

.hero-carousel__dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	margin: 0;
	padding: 0.35rem 0.5rem;
	border-radius: 999px;
	background: rgb(0 0 0 / 35%);
}

@media (max-width: 640px) {
	.hero-carousel .hero {
		min-height: min(68vh, 480px);
	}

	.hero-carousel__nav {
		display: none;
	}
}

/* Sections */
.section-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.section-header__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.section-header__subtitle--center {
	margin-inline: auto;
	text-align: center;
}

.section-header__title {
	margin: 0.5rem 0 0;
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.property-types {
	padding: 4rem 0;
	background: var(--color-surface);
}

.property-types__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.property-card {
	display: block;
	padding: 2rem;
	background: var(--color-white);
	border: 1px solid transparent;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.property-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
	border-color: rgb(176 58 71 / 20%);
}

.property-card.is-active {
	border-color: var(--color-primary);
	background: rgb(176 58 71 / 4%);
}

.property-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

.property-card__link {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
}

.property-card__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
}

.property-card__desc {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

/* Featured */
.featured {
	padding: 4rem 0;
}

.featured__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.featured-card {
	padding: 1.5rem;
	border: 1px solid rgb(176 58 71 / 12%);
	border-radius: var(--radius);
	background: var(--color-white);
}

.featured-card__badge {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	background: var(--color-surface);
	color: var(--color-primary);
	border-radius: 999px;
}

.featured-card h3 {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
}

.featured-card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

/* Quote */
.quote-section {
	padding: 4rem 0;
	background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface) 100%);
}

.quote-section__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 900px) {
	.site-header__toggle {
		display: flex;
	}

	.site-header__panel {
		position: fixed;
		inset: 0;
		top: var(--header-offset, 3.5rem);
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding: 1.5rem;
		background: var(--color-white);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.site-header.is-nav-open .site-header__panel {
		transform: translateX(0);
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		padding: 0.875rem 0;
		border-bottom: 1px solid var(--color-surface-2);
	}

	.site-header__cta {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.quote-section__inner {
		grid-template-columns: 1fr;
	}
}

.quote-section__copy h2 {
	margin: 0 0 1rem;
	font-family: var(--font-heading);
	font-size: 1.75rem;
}

.quote-section__copy p {
	margin: 0;
	color: var(--color-muted);
}

.quote-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.quote-form label {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.quote-form__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
}

.quote-form__legal {
	margin: 0;
	font-size: 0.75rem;
	color: var(--color-muted);
	line-height: 1.4;
}

.quote-section__bullets {
	margin: 1.25rem 0 0;
	padding-left: 1.25rem;
	color: var(--color-muted);
}

.quote-section__bullets li + li {
	margin-top: 0.35rem;
}

.quote-form input,
.quote-form select {
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	border: 1px solid rgb(0 0 0 / 15%);
	border-radius: 2px;
}

.quote-form input:focus,
.quote-form select:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* CTA banner */
.cta-banner {
	padding: 4rem 0;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-white);
	text-align: center;
}

.cta-banner__inner h2 {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner__inner p {
	margin: 0 0 1.5rem;
	opacity: 0.9;
}

/* Footer */
.site-footer {
	padding: 3.5rem 0 2rem;
	background: var(--color-black);
	color: rgb(255 255 255 / 80%);
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.site-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-white);
}

.site-footer a {
	color: rgb(255 255 255 / 75%);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--color-white);
}

.site-footer__tagline {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	max-width: 28rem;
	opacity: 0.7;
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list--plain {
	gap: 0.625rem;
}

.site-footer__copy {
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 12%);
	font-size: 0.8125rem;
	opacity: 0.55;
	text-align: center;
}

/* Content */
.content-area {
	padding: 3rem 0;
}

.post-card {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-surface);
}

.post-card__title {
	margin: 0 0 0.25rem;
	font-family: var(--font-heading);
}

.post-card__date {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.page-header__title {
	font-family: var(--font-heading);
}

.entry-content {
	max-width: 65ch;
}

/* Home personalizado */
.personalized-intro {
	padding: 2.5rem 0 1.5rem;
	background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-white) 100%);
	border-bottom: 1px solid var(--color-surface-2);
}

.personalized-intro__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-white);
	background: var(--color-primary);
	border-radius: 2px;
}

.personalized-intro__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	line-height: 1.2;
	max-width: 40rem;
}

.personalized-intro__lead {
	margin: 0 0 1.5rem;
	font-size: 1.0625rem;
	color: var(--color-muted);
	max-width: 36rem;
}

.personalized-intro__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.personalized-intro__step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-muted);
	background: var(--color-white);
	border: 1px solid var(--color-surface-2);
	border-radius: 999px;
}

.personalized-intro__step.is-active {
	color: var(--color-text);
	border-color: rgb(176 58 71 / 35%);
	background: rgb(176 58 71 / 6%);
}

.personalized-intro__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-white);
	background: var(--color-muted);
	border-radius: 50%;
}

.personalized-intro__step.is-active .personalized-intro__step-num {
	background: var(--color-primary);
}

.personalized-intro__hint {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--color-secondary);
}

.personalized-offers {
	padding: 2.5rem 0 1rem;
}

.personalized-offers__block {
	margin-bottom: 2.5rem;
}

.personalized-offers__block:last-child {
	margin-bottom: 0;
}

.personalized-offers__block-header {
	margin-bottom: 1.25rem;
}

.personalized-offers__block-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
}

.personalized-offers__block-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.2;
}

.personalized-offers__block-subtitle {
	margin: 0.5rem 0 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

.personalized-offers__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-top: 1rem;
	align-items: center;
}

.personalized-offers__clear-profile {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.personalized-offers__clear-profile:hover {
	color: #b42318;
}

.personalized-offers__view-all {
	margin: 1.5rem 0 0;
	padding-top: 0.25rem;
	text-align: center;
}

/* btn--outline global usa blanco (hero); aquí fondo claro → borde primario */
.personalized-offers__view-all .btn.btn--outline {
	min-width: 10rem;
	background: var(--color-white);
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.personalized-offers__view-all .btn.btn--outline:hover {
	background: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.geo-interest--primary {
	padding-top: 0;
}

.geo-interest--secondary {
	padding-top: 2.5rem;
	background: var(--color-surface);
}

.geo-interest--pending {
	border-top: 1px dashed rgb(0 0 0 / 12%);
}

.interest-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.interest-tags li {
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-primary);
	background: rgb(176 58 71 / 10%);
	border-radius: 999px;
}

.interest-persist-note__edit {
	margin-left: 0.35rem;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: underline;
}

.interest-persist-note {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: var(--color-muted);
}

.interest-explore {
	padding: 1.5rem;
	background: var(--color-white);
	border: 1px dashed rgb(0 0 0 / 12%);
	border-radius: var(--radius-lg);
}

.interest-explore p {
	margin: 0 0 1rem;
	color: var(--color-muted);
}

.interest-explore__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.interest-explore__chip {
	color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	background: var(--color-white) !important;
}

.interest-explore__chip:hover {
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
	text-decoration: none;
}

.property-carousel__empty {
	padding: 2rem;
	text-align: center;
	background: var(--color-white);
	border-radius: var(--radius);
	border: 1px solid var(--color-surface-2);
}

.property-carousel__empty p {
	margin: 0 0 1rem;
	color: var(--color-muted);
}

/* Buscador home (final de página) */
.home-search {
	position: relative;
	z-index: 10;
	margin: 0;
	padding: 2.5rem 0 3rem;
	background: var(--color-surface);
	border-top: 1px solid var(--color-surface-2);
}

.home-search--explore .home-search__intro {
	margin-bottom: 1.25rem;
}

.home-search__surfaced-note {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: var(--color-secondary);
	background: var(--color-white);
	border-radius: var(--radius);
	border: 1px solid rgb(0 0 0 / 8%);
}

.home-search__results {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-surface-2);
}

.home-search__form--cols-2 {
	grid-template-columns: repeat(2, 1fr) auto;
}

.home-search__form--cols-3 {
	grid-template-columns: repeat(3, 1fr) auto;
}

.home-search__form--cols-4 {
	grid-template-columns: repeat(4, 1fr) auto;
}

.home-search__form {
	display: grid;
	grid-template-columns: repeat(5, 1fr) auto;
	gap: 0.75rem;
	align-items: end;
	padding: 1.25rem 1.5rem;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	border: 1px solid rgb(0 0 0 / 6%);
}

.home-search__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
}

.home-search__field select,
.home-search__field input {
	width: 100%;
	padding: 0.625rem 0.75rem;
	font-family: inherit;
	font-size: 0.9375rem;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 2px;
	background: var(--color-white);
}

.home-search__submit {
	height: 2.75rem;
	align-self: end;
	white-space: nowrap;
}

.home-search__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-surface-2);
}

.home-search__active-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-muted);
}

.home-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-search__chips li {
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: rgb(176 58 71 / 12%);
	color: var(--color-primary);
	border-radius: 999px;
}

.home-search__clear {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-secondary);
	margin-left: auto;
}

.geo-interest--search-results {
	background: rgb(176 58 71 / 4%);
}

@media (max-width: 1024px) {
	.home-search__form {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-search__submit {
		grid-column: 1 / -1;
		width: 100%;
	}
}

@media (max-width: 520px) {
	.home-search__form {
		grid-template-columns: 1fr;
	}
}

/* Trust bar */
.trust-bar {
	padding: 2rem 0;
	background: var(--color-white);
	border-block: 1px solid var(--color-surface-2);
}

.trust-bar__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.trust-bar__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}

.trust-bar__item strong {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	color: var(--color-text);
}

.trust-bar__item span {
	font-size: 0.8125rem;
	color: var(--color-muted);
}

@media (max-width: 768px) {
	.trust-bar__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* —— Zona geo + carrusel —— */
.geo-interest {
	padding: 3.5rem 0;
	background: var(--color-white);
}

.geo-interest__count-note {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--color-secondary);
	font-weight: 500;
}

.geo-carousel--few .geo-carousel__viewport {
	margin-inline: 0;
}

.geo-carousel--few .geo-carousel__slide {
	flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--carousel-visible) - 1))) / var(--carousel-visible));
	max-width: 360px;
}

.section-header--left {
	text-align: left;
	margin-bottom: 2rem;
}

.section-header__subtitle {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	color: var(--color-muted);
	max-width: 42rem;
}

.geo-interest__empty {
	padding: 2rem;
	text-align: center;
	background: var(--color-surface);
	border-radius: var(--radius);
}

.geo-interest__empty p {
	margin: 0 0 1rem;
	color: var(--color-muted);
}

.geo-carousel {
	position: relative;
	--carousel-gap: 1.25rem;
	--carousel-visible: 3;
}

.geo-carousel__viewport {
	overflow: hidden;
	margin-inline: 2.75rem;
}

.geo-carousel__track {
	display: flex;
	gap: var(--carousel-gap);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.geo-carousel__slide {
	flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--carousel-visible) - 1))) / var(--carousel-visible));
	min-width: 0;
}

.geo-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgb(176 58 71 / 15%);
	border-radius: 50%;
	background: var(--color-white);
	color: var(--color-primary);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: background 0.2s, border-color 0.2s;
}

.geo-carousel__nav:hover:not(:disabled) {
	background: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.geo-carousel__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.geo-carousel__nav--prev {
	left: 0;
}

.geo-carousel__nav--next {
	right: 0;
}

.geo-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.geo-carousel__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgb(176 58 71 / 25%);
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}

.geo-carousel__dot.is-active {
	background: var(--color-primary);
	transform: scale(1.2);
}

/* Cards propiedad */
.prop-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--color-white);
	border: 1px solid rgb(0 0 0 / 8%);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
	transition: box-shadow 0.2s, transform 0.2s;
}

.prop-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}

.prop-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	text-decoration: none;
}

.prop-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prop-card__img--placeholder {
	background: linear-gradient(135deg, var(--color-surface) 0%, rgb(176 58 71 / 12%) 100%);
}

.prop-card__offer {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3rem 0.625rem;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: 2px;
}

.prop-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.125rem 1.25rem;
}

.prop-card__address {
	margin: 0 0 0.25rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-muted);
	line-height: 1.4;
}

.prop-card__spec {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	color: var(--color-muted);
}

.prop-card__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
}

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

.prop-card__title a:hover {
	color: var(--color-primary);
}

.prop-card__pricing {
	margin-bottom: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--color-surface-2);
}

.prop-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.75rem;
	color: var(--color-muted);
}

.prop-card__price strong {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
}

.prop-card__price-before {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	color: var(--color-muted);
	text-decoration: line-through;
}

.prop-card__reserve {
	margin: 0.35rem 0 0;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--color-secondary);
}

.prop-card__cta {
	margin-top: auto;
	align-self: flex-start;
}

.btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

@media (max-width: 1024px) {
	.geo-carousel {
		--carousel-visible: 2;
	}
}

@media (max-width: 640px) {
	.geo-carousel {
		--carousel-visible: 1;
	}

	.geo-carousel__viewport {
		margin-inline: 2.25rem;
	}
}

/* Geolocalización — banner GPS, badges y restablecer ubicación */
.ac-geo-banner {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 9999;
	max-width: 22rem;
	padding: 1.25rem;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: 0 8px 32px rgb(176 58 71 / 18%);
	border: 1px solid rgb(176 58 71 / 12%);
}

.ac-geo-banner__title {
	margin: 0 0 0.5rem;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--color-text);
}

.ac-geo-banner__text {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	color: var(--color-muted);
	line-height: 1.5;
}

.ac-geo-banner--blocked {
	border-color: rgb(180 35 24 / 25%);
}

.ac-geo-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ac-geo-banner__actions .btn {
	flex: 1 1 auto;
	min-width: 7rem;
}

.ac-geo-banner__status {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--color-secondary);
}

.ac-geo-banner__status.is-error {
	color: #b42318;
}

.ac-geo-badge {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 999px;
	background: rgb(255 255 255 / 20%);
}

.ac-geo-badge--gps {
	background: rgb(201 162 39 / 35%);
}

.ac-geo-badge--ip {
	background: rgb(255 255 255 / 25%);
}

@media (max-width: 480px) {
	.ac-geo-banner {
		left: 1rem;
		right: 1rem;
		max-width: none;
	}
}

.ac-reset-geo-wrap {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.75rem;
}

.ac-reset-geo {
	color: var(--color-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ac-reset-geo:hover {
	color: var(--color-text);
}

/* Página flujo del home */
.flow-page__hero {
	padding: 3rem 0 2rem;
	background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-white) 100%);
	border-bottom: 1px solid var(--color-surface-2);
}

.flow-page__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
}

.flow-page__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
}

.flow-page__lead {
	max-width: 42rem;
	margin: 1rem 0 0;
	color: var(--color-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.flow-page__actions {
	margin-top: 1.5rem;
}

.flow-page__body {
	padding: 2.5rem 0 4rem;
}

.flow-page__section {
	margin-bottom: 3rem;
}

.flow-page__section-title {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-size: 1.5rem;
}

.flow-diagram {
	padding: 1.5rem;
	background: var(--color-white);
	border: 1px solid var(--color-surface-2);
	border-radius: var(--radius-lg);
	overflow-x: auto;
}

.flow-diagram .mermaid {
	margin: 0;
	font-size: 0.875rem;
}

.flow-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.flow-steps__item {
	padding: 1.25rem 1.5rem;
	background: var(--color-surface);
	border-radius: var(--radius);
	border-left: 4px solid var(--color-primary);
}

.flow-steps__item h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.flow-steps__item p {
	margin: 0;
	color: var(--color-muted);
	line-height: 1.55;
}

.flow-table-wrap {
	overflow-x: auto;
}

.flow-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.flow-table th,
.flow-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--color-surface-2);
}

.flow-table th {
	font-weight: 700;
	background: var(--color-surface);
}

.flow-table code {
	font-size: 0.8125rem;
	background: rgb(0 0 0 / 5%);
	padding: 0.15rem 0.35rem;
	border-radius: 3px;
}

.flow-notes {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--color-muted);
	line-height: 1.6;
}

.flow-notes li + li {
	margin-top: 0.5rem;
}

.flow-page__section--note {
	padding: 1.5rem;
	background: rgb(176 58 71 / 6%);
	border-radius: var(--radius-lg);
}

/* Página buscar (/buscar/ → search.php) */
.property-search-page {
	padding: 2rem 0 4rem;
}

.property-search-page__header {
	margin-bottom: 2rem;
}

.property-search-page__layout {
	display: grid;
	grid-template-columns: minmax(260px, 320px) 1fr;
	gap: 2rem;
	align-items: start;
}

.property-search-page__filters {
	position: sticky;
	top: 1rem;
}

.property-search-panel {
	padding: 1.5rem;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-surface-2);
}

.property-search-form__group {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	min-width: 0;
}

.property-search-form__group legend {
	display: block;
	margin-bottom: 0.65rem;
	padding: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
}

.property-search-form__field {
	margin-bottom: 0.75rem;
}

.property-search-form__field:last-child {
	margin-bottom: 0;
}

.property-search-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
}

.property-search-form__field select,
.property-search-form__field input {
	width: 100%;
	padding: 0.625rem 0.75rem;
	font-family: inherit;
	font-size: 0.9375rem;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 2px;
	background: var(--color-white);
}

.property-search-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.property-search-form__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-surface-2);
}

.property-search-form__actions .btn {
	width: 100%;
	justify-content: center;
}

.property-search-form__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-surface-2);
}

.property-search-form__chips[hidden] {
	display: none !important;
}

.property-search-form__chips-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.property-search-form__chips .home-search__chips {
	margin: 0;
}

.property-search-results__status {
	margin: 0 0 1.25rem;
	font-weight: 600;
}

.property-search-results__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.property-search-results__empty {
	padding: 2rem;
	text-align: center;
	background: var(--color-surface);
	border-radius: var(--radius);
	color: var(--color-muted);
}

.property-search-page__results.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.home-search-cta {
	padding: 2.5rem 0;
	background: var(--color-surface);
	border-top: 1px solid var(--color-surface-2);
}

.home-search-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.home-search-cta .section-header {
	margin: 0;
	flex: 1 1 20rem;
}

.btn--lg {
	padding: 0.875rem 1.75rem;
	font-size: 1rem;
}

@media (max-width: 900px) {
	.property-search-page__layout {
		grid-template-columns: 1fr;
	}
}
