/* Tarjetas de propiedad/ciudad, beneficios, CTA, testimonios, contacto,
   footer y widgets flotantes. */

/* ---------- Tarjetas de propiedad ---------- */
.prop-grid {
	display: grid;
	gap: 26px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.prop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1040px) {
	.prop-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Carrusel de propiedades destacadas ---------- */
.pg-carousel-wrap {
	position: relative;
}

.pg-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 8px;
}

.pg-carousel-arrow {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pg-carousel-arrow:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.pg-carousel-arrow:disabled {
	opacity: 0.35;
	pointer-events: none;
}

.pg-carousel-prev svg {
	transform: scaleX(-1);
}

.pg-carousel-track {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: 2px 2px 10px;
	margin: -2px -2px -10px;
}

.pg-carousel-track::-webkit-scrollbar {
	display: none;
}

.pg-carousel-slide {
	flex: 0 0 auto;
	width: 280px;
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.pg-carousel-slide {
		width: 320px;
	}
}

@media (min-width: 1040px) {
	.pg-carousel-slide {
		width: calc((100% - 2 * 26px) / 3);
	}
}

.prop-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 14px rgba(22, 34, 76, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.prop-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(150deg, #26345f 0%, var(--navy-deep) 100%);
}

.prop-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prop-media .roofline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 44%;
	background: rgba(0, 0, 0, 0.22);
	clip-path: polygon(0 100%, 0 55%, 22% 30%, 40% 55%, 58% 20%, 76% 55%, 100% 40%, 100% 100%);
}

.prop-media .ref-label {
	position: absolute;
	left: 12px;
	bottom: 10px;
	z-index: 1;
	font-size: 0.6rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.prop-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	background: var(--gold);
	color: #1a1200;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 3px;
}

.prop-op {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	background: var(--red);
	color: #fff;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 3px;
}

.prop-body {
	padding: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.prop-title {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--navy);
}

.prop-loc {
	font-size: 0.8rem;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.prop-price {
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--red);
	font-variant-numeric: tabular-nums;
	margin-top: 2px;
}

.prop-price .suffix {
	font-size: 0.6rem;
	color: var(--text-muted);
	font-family: var(--font-body);
}

.prop-specs {
	display: flex;
	gap: 16px;
	justify-content: center;
	font-size: 0.8rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
	padding-top: 12px;
	margin-top: 6px;
	font-variant-numeric: tabular-nums;
}

.prop-specs span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.prop-specs svg {
	width: 15px;
	height: 15px;
	opacity: 0.65;
}

.prop-cta {
	margin-top: auto;
	padding-top: 8px;
}

.prop-cta .btn {
	width: 100%;
}

/* ---------- Beneficios ---------- */
.benefits {
	display: grid;
	gap: 34px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.benefits {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1040px) {
	.benefits {
		grid-template-columns: repeat(4, 1fr);
	}
}

.benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.benefit .mark {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.benefit .mark svg {
	width: 22px;
	height: 22px;
}

.benefit h3 {
	font-size: 1rem;
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--navy);
}

.benefit p {
	font-size: 0.87rem;
	color: var(--text-muted);
	margin: 0;
	max-width: 26ch;
}

/* ---------- Ciudades ---------- */
.city-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.city-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
		justify-content: center;
	}
}

.city-card {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(22, 34, 76, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.city-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(150deg, #26345f 0%, var(--navy-deep) 100%);
}

.city-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.city-media .roofline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 44%;
	background: rgba(0, 0, 0, 0.22);
	clip-path: polygon(0 100%, 0 55%, 22% 30%, 40% 55%, 58% 20%, 76% 55%, 100% 40%, 100% 100%);
}

.city-body {
	padding: 18px 20px 20px;
	text-align: center;
}

.city-card.add-city {
	border: 1px dashed var(--border);
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 22px;
	gap: 10px;
}

.city-card.add-city span {
	font-size: 0.82rem;
	color: var(--text-muted);
	max-width: 22ch;
}

.city-name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--navy);
}

.city-count {
	font-size: 0.76rem;
	color: var(--red);
	margin-top: 6px;
	display: block;
	font-weight: 600;
}

/* ---------- Banda CTA ---------- */
.cta-band {
	background: var(--bg);
	text-align: center;
}

.cta-band .cta-box {
	background: var(--navy);
	border-radius: 8px;
	padding: 56px 32px;
}

.cta-band .cta-box .eyebrow {
	color: var(--gold-bright);
}

.cta-band h2 {
	max-width: 24ch;
	margin: 0 auto;
	color: #fff;
}

.cta-band p {
	color: rgba(255, 255, 255, 0.72);
	margin: 14px auto 26px;
	max-width: 46ch;
}

/* ---------- Testimonios ---------- */
.testi-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.testi-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.testi-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 26px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.testi-quote {
	font-family: var(--font-display);
	font-size: 1rem;
	line-height: 1.5;
}

.testi-who {
	font-size: 0.82rem;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.testi-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 700;
	font-family: var(--font-display);
}

/* ---------- Contacto ---------- */
/* Sin mapa, el formulario pasa a ser el único elemento principal: columna
   única centrada (antes era un grid de 2 columnas junto al mapa). */
.contact-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	max-width: 640px;
	margin: 0 auto;
}

.contact-form {
	display: grid;
	gap: 16px;
}

.form-row {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 560px) {
	.form-row.two {
		grid-template-columns: 1fr 1fr;
	}
}

.contact-form label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-muted);
	display: block;
	margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 12px 13px;
	font-size: 0.92rem;
	font-family: inherit;
	background: var(--surface);
	color: var(--text);
}

.consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.8rem;
	color: var(--text-muted);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 14px;
}

.consent input {
	margin-top: 3px;
	width: auto;
}

.consent a {
	color: var(--navy);
	text-decoration: underline;
}

.honeypot-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	border-radius: 4px;
	padding: 14px 16px;
	font-size: 0.88rem;
}

.form-notice.ok {
	background: #e6f4ea;
	color: #1e6b34;
	border: 1px solid #b7ddc2;
}

.form-notice.error {
	background: #fbeaea;
	color: #8a2222;
	border: 1px solid #eec3c3;
}

.map-block {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	aspect-ratio: 4/3;
	background: var(--bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.map-block iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 0.78rem;
}

.map-pin svg {
	width: 30px;
	height: 30px;
	color: var(--red);
}

.contact-side-card {
	margin-top: 20px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-line {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 0.88rem;
}

.contact-line svg {
	width: 17px;
	height: 17px;
	color: var(--red);
	flex-shrink: 0;
}

.contact-line a {
	text-decoration: none;
}

.contact-line a:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */
footer.site {
	background: var(--bg-alt);
	color: var(--text-muted);
	padding: 22px 0 12px;
	font-size: 0.82rem;
	border-top: 1px solid var(--border);
}

.footer-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1.3fr repeat(3, 1fr);
}

@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.footer-grid h4 {
	color: var(--navy);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 6px;
	font-family: var(--font-body);
}

.footer-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-grid a {
	text-decoration: none;
	color: inherit;
}

.footer-grid a:hover {
	color: var(--red);
}

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

.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(22, 34, 76, 0.08);
	color: var(--navy);
	transition: background 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
	background: var(--red);
	color: #fff;
}

.footer-legal-note {
	border-top: 1px solid var(--border);
	margin-top: 14px;
	padding-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	font-size: 0.72rem;
	color: var(--text-muted);
}

.footer-legal-note nav {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.footer-legal-note nav a {
	color: var(--navy);
	text-decoration: underline;
}

/* ---------- Widgets flotantes ---------- */
.whatsapp-fab {
	position: fixed;
	bottom: 24px;
	right: 22px;
	z-index: 50;
	height: 52px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: #25d366;
	display: flex;
	align-items: center;
	gap: 9px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	text-decoration: none;
	color: #fff;
}

.whatsapp-fab svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.whatsapp-fab span {
	font-size: 0.94rem;
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.whatsapp-fab {
		height: 48px;
		padding: 0 16px 0 14px;
	}
	.whatsapp-fab span {
		font-size: 0.86rem;
	}
}

.cookie-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	max-width: 620px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: var(--shadow);
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cookie-bar[hidden] {
	display: none;
}

.cookie-bar p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--text-muted);
}

.cookie-bar p a {
	color: var(--navy);
	text-decoration: underline;
}

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cookie-actions .btn {
	flex: 1;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.breadcrumbs a {
	text-decoration: none;
	color: var(--navy);
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* ---------- Ficha de propiedad individual ---------- */
.property-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 6px;
}

.property-header h1 {
	font-size: 1.7rem;
	line-height: 1.2;
}

.property-specs-row {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	font-size: 0.92rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 12px 0;
	margin: 4px 0 0;
	font-variant-numeric: tabular-nums;
}

.property-specs-row span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.property-specs-row svg {
	width: 18px;
	height: 18px;
	color: var(--red);
}

.property-layout {
	display: grid;
	grid-template-columns: minmax(320px, 500px) 1fr;
	gap: 48px;
	align-items: center;
}

.property-info {
	display: flex;
	flex-direction: column;
}

.property-info .property-description {
	margin-bottom: 0;
}

.property-info .prop-price {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1.5rem;
}

.property-description {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--text-muted);
	line-height: 1.45;
	font-size: 0.94rem;
}

.property-description > * {
	margin: 0;
}

/* La columna del carrusel se mantiene visible al hacer scroll de la ficha,
   compensando la altura del header sticky (medida real: 124px). */
.property-carousel-wrap {
	position: sticky;
	top: 144px;
}

.carousel {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-alt);
	box-shadow: var(--shadow);
}

.carousel-empty {
	aspect-ratio: 1024 / 559;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.carousel-empty svg {
	color: var(--border);
}

.carousel-track {
	display: flex;
	/* Debe coincidir con la proporción real del tamaño 'large' (1024x559):
	   si el marco fuerza otra proporción, object-fit: cover recorta los
	   bordes izquierdo/derecho de la foto y corta el sello de agua, que
	   vive en la esquina inferior derecha. */
	aspect-ratio: 1024 / 559;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.carousel-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	background: var(--bg-alt);
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	/* contain (no cover): la foto se ve completa siempre, sin recortar
	   bordes cuando su proporción no calza con el marco del carrusel. */
	object-fit: contain;
	display: block;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--navy);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.carousel-arrow:hover {
	background: #fff;
}

.carousel-prev {
	left: 14px;
}

.carousel-prev svg {
	transform: scaleX(-1);
}

.carousel-next {
	right: 14px;
}

.carousel-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.carousel-dot.is-active {
	background: #fff;
}

.carousel-counter {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(22, 34, 76, 0.7);
	color: #fff;
	font-size: 0.72rem;
	padding: 4px 10px;
	border-radius: 20px;
	font-variant-numeric: tabular-nums;
}

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

	.property-carousel-wrap {
		position: static;
		order: -1;
	}
}

/* ---------- Página genérica de contenido ---------- */
.page-content {
	max-width: 72ch;
	margin: 0 auto;
}

.page-content h2 {
	margin-top: 2em;
}

.page-content p,
.page-content li {
	color: var(--text);
}
