/* ==========================================================================
   Front page (front-page.php) — Grupo Acción design
   ========================================================================== */

/* Content container is full width on the front page; sections use their own .wrap */
body.gai-front-page .site-content > .ast-container {
	max-width: 100% !important;
	padding-inline: 0 !important;
}

/* ==========================================================================
   Restyle the plugin's [Nuevas] property cards into the prototype grid
   ========================================================================== */
.gai-home-properties {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Flatten any wrapper row emitted by the shortcode */
.gai-home-properties > .row {
	display: contents;
}

/* Each listing column becomes a plain grid item */
.gai-home-properties .custom-control-nuevas,
.gai-home-properties > .col-md-4 {
	width: auto !important;
	max-width: none !important;
	float: none !important;
	flex: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide any search form / stray paragraphs the shortcode may emit */
.gai-home-properties > p,
.gai-home-properties .search-wrapper2,
.gai-home-properties .advance-search-form {
	display: none !important;
}

/* The card box */
.gai-home-properties .property-item {
	display: block !important;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #fff;
	height: 100%;
	margin: 0 !important;
	transition: transform 0.25s, box-shadow 0.25s;
}
.gai-home-properties .property-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

/* First image only, fixed ratio */
.gai-home-properties .property-mini-carousel {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cream);
	margin: 0;
}
.gai-home-properties .property-mini-carousel .item {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	padding: 0;
}
.gai-home-properties .property-mini-carousel .item:not(.active) {
	display: none !important;
}
.gai-home-properties .property-mini-carousel .imagen {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Hide video tag, favourite heart and click overlay */
.gai-home-properties .info-tags,
.gai-home-properties .featured-mark-heart-inactive,
.gai-home-properties .img-click-layer {
	display: none !important;
}

/* Reference + internal rows keep normal flow */
.gai-home-properties .property-item .row {
	margin: 0 !important;
}
.gai-home-properties .ref p {
	margin: 0;
	padding: 10px 14px 0;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
}

/* Type + city */
.gai-home-properties .info-plus {
	padding: 4px 14px;
}
.gai-home-properties .info-plus .type {
	color: var(--berry);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}
.gai-home-properties .info-plus .ciudad {
	color: var(--muted);
	font-size: 0.78rem;
}

/* Beds / baths */
.gai-home-properties .info-property {
	display: inline-block;
	padding: 6px 14px 0 0;
	color: var(--muted);
	font-size: 0.8rem;
}

/* Price */
.gai-home-properties .ajustes-precio {
	margin-top: 12px;
	padding: 14px;
	border-top: 1px solid var(--line);
}
.gai-home-properties .precio-listado {
	display: block;
	color: var(--ink) !important;
	font-size: 1.15rem;
	font-weight: 800;
	text-decoration: none;
}
.gai-home-properties .precio-listado:hover {
	color: var(--berry) !important;
}

/* Responsive */
@media (max-width: 860px) {
	.gai-home-properties {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.gai-home-properties {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Home — two sell CTAs (replace the property search panel,
   2026-09-09)
   ============================================================ */
.home-sell-cta {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: -52px;
	padding: 34px 40px;
	background: #fff;
	box-shadow: var(--shadow);
}
.home-sell-cta-sub {
	max-width: 780px;
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
	text-align: center;
}
.home-sell-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.home-sell-btn {
	min-height: 58px;
	padding-inline: clamp(20px, 3vw, 38px);
	text-align: center;
	white-space: nowrap;
}
@media (max-width: 800px) {
	.home-sell-cta {
		gap: 18px;
		padding: 26px;
	}
	.home-sell-cta-actions {
		flex-direction: column;
		width: 100%;
	}
	.home-sell-btn {
		width: 100%;
		white-space: normal;
	}
}

/* ============================================================
   Home — services as a selector (tabs) instead of the tall grid
   (2026-09-09). Progressive disclosure: one description at a time.
   ============================================================ */
.gai-front-page .service-selector {
	display: grid;
	grid-template-columns: 1fr;
}
.gai-front-page .service-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.gai-front-page .service-tab {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 14px;
	border: 1px solid #4a484a;
	background: transparent;
	color: #d7d3d0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.gai-front-page .service-tab:hover {
	border-color: #8a8788;
}
.gai-front-page .service-tab span {
	color: #e790aa;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.6;
}
.gai-front-page .service-tab em {
	font-style: normal;
}
.gai-front-page .service-tab.is-active {
	border-color: var(--berry);
	background: var(--berry);
	color: #fff;
}
.gai-front-page .service-tab.is-active span {
	color: #f6cbd8;
}
.gai-front-page .service-panel {
	margin-top: 14px;
	padding: 24px 28px;
	border-left: 3px solid var(--berry);
	background: rgba(255, 255, 255, 0.04);
}
.gai-front-page .service-panel[hidden] {
	display: none;
}
.gai-front-page .service-panel p {
	margin: 0;
	color: #c7c3c0;
	font-size: 0.98rem;
	line-height: 1.75;
}
@media (max-width: 900px) {
	.gai-front-page .service-tabs {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.gai-front-page .service-tabs {
		grid-template-columns: 1fr;
	}
}

/* Fit the services band to the available viewport: reduce the section
   padding and let the band fill the visible area (no scroll needed to
   see it complete). The .wrap child keeps its normal side gutters. */
.gai-front-page .service-band {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100svh - 84px);
	padding-block: clamp(40px, 5vh, 72px);
}
.gai-front-page .service-band > .wrap {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}
@media (max-width: 900px) {
	.gai-front-page .service-band {
		min-height: 0;
	}
}

/* Fit the process section to the available viewport too: reduce the
   section padding and vertically centre the content so it is fully
   visible without scrolling. */
.gai-front-page .process-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100svh - 84px);
	padding-block: clamp(40px, 5vh, 72px);
}
.gai-front-page .process-section .section-heading {
	width: 100%;
}
@media (max-width: 900px) {
	.gai-front-page .process-section {
		min-height: 0;
	}
}

/* ==========================================================================
   Final CTA — banner with a copy panel and a diagonally cut photo.
   The band is full-bleed, so the copy panel is inset by hand to keep its
   text aligned with the 1180px container used everywhere else.
   ========================================================================== */
.gai-front-page .final-cta {
	--final-inset: max(24px, calc((100vw - 1180px) / 2));
	position: relative;
	overflow: hidden;
	padding: 0;
	background: var(--soft);
	color: var(--ink);
}
.gai-front-page .final-cta .wrap {
	display: grid;
	/* 50.6 / 49.4 mirrors the mockup: the copy panel keeps the left half and
	   the photo starts right where the panel's edge does. */
	grid-template-columns: 50.6fr 49.4fr;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: none;
	text-align: left;
}

/* Copy panel */
.gai-front-page .final-cta-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(44px, 4.6vw, 74px) clamp(28px, 3.4vw, 56px) clamp(44px, 4.6vw, 74px) var(--final-inset);
}
.gai-front-page .final-cta .eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--ink);
	font-size: .72rem;
	letter-spacing: .18em;
}
.gai-front-page .final-cta .eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	background: var(--berry);
}
.gai-front-page .final-cta h2 {
	max-width: 620px;
	margin: 0 0 18px;
	color: var(--ink);
	font-size: clamp(1.7rem, 2.7vw, 2.5rem);
	line-height: 1.14;
}
.gai-front-page .final-cta h2 .accent {
	color: var(--berry);
}
.gai-front-page .final-cta-copy > p:not(.eyebrow) {
	max-width: 560px;
	margin: 0 0 28px;
	color: var(--muted);
	font-size: .95rem;
	line-height: 1.72;
}
.gai-front-page .final-cta-btn {
	min-height: 52px;
	padding-inline: 28px;
	border-radius: 3px;
	font-size: .88rem;
}

/* Three reassurance points under the button */
.gai-front-page .final-cta-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(16px, 2vw, 30px);
	width: 100%;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}
.gai-front-page .final-cta-points li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}
.gai-front-page .final-cta-points svg {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: var(--berry);
}
.gai-front-page .final-cta-points span {
	color: var(--ink);
	font-size: .84rem;
	font-weight: 700;
	line-height: 1.35;
}

/* Photo column: plain photo plus a berry band that slides in diagonally
   from 44% of the height downwards, exactly like the mockup. */
.gai-front-page .final-cta-media {
	position: relative;
	min-height: clamp(400px, 32vw, 500px);
}
.gai-front-page .final-cta-photo {
	position: absolute;
	inset: 0;
	background: url("../images/final-cta-banner.jpg") center / cover no-repeat;
	/* The copy panel keeps the upper half and, below 44% of the height, runs
	   all the way to the berry band, so the photo starts at the band's outer
	   edge instead of at the column boundary. */
	clip-path: polygon(0 0, 100% 0, 100% 100%, 28.2% 100%, 9.6% 44%, 0 44%);
}
.gai-front-page .final-cta-berry {
	position: absolute;
	top: 44%;
	bottom: 0;
	left: 0;
	width: 28.2%;
	background: var(--berry);
	clip-path: polygon(0 0, 34% 0, 100% 100%, 66% 100%);
}
.gai-front-page .final-cta-card {
	position: absolute;
	z-index: 2;
	top: 56%;
	left: 4%;
	transform: translateY(-50%);
	display: flex;
	align-items: flex-start;
	gap: 11px;
	width: min(250px, 74%);
	padding: 16px 20px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 44px rgba(24, 24, 25, .18);
}
.gai-front-page .final-cta-card svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--berry);
}
.gai-front-page .final-cta-card p {
	margin: 0;
	color: var(--ink);
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.38;
}
.gai-front-page .final-cta-card p::after {
	content: "";
	display: block;
	width: 70px;
	height: 2px;
	margin-top: 9px;
	background: var(--berry);
}
.gai-front-page .final-cta .final-cta-tag {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	width: 230px;
	margin: 0;
	/* The shape is a wedge whose tip points at the left edge, so the words are
	   pushed down and to the right, into the solid part of the polygon. Note:
	   padding percentages resolve against the CONTAINING BLOCK width, not the
	   tag's own width, hence plain px here. */
	padding: 62px 20px 14px 74px;
	background: #fff;
	/* `.final-cta p:not(.eyebrow)` in style.css forces a pink here, so the
	   selector needs the extra `.final-cta` to win. Same grey as the copy. */
	color: var(--muted);
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .11em;
	line-height: 2.2;
	text-align: left;
	text-transform: uppercase;
	clip-path: polygon(15% 49%, 100% 0, 100% 100%, 0 105%);
}
.gai-front-page .final-cta-tag::after {
	content: "";
	display: block;
	width: 52px;
	height: 2px;
	margin-top: 8px;
	background: var(--berry);
}

@media (max-width: 900px) {
	.gai-front-page .final-cta .wrap {
		grid-template-columns: 1fr;
	}
	.gai-front-page .final-cta-copy {
		padding: 52px 24px 44px;
	}
	.gai-front-page .final-cta-media {
		min-height: 340px;
	}
	.gai-front-page .final-cta-berry {
		display: none;
	}
	.gai-front-page .final-cta-photo {
		clip-path: none;
	}
	.gai-front-page .final-cta-card {
		top: 50%;
		left: 20px;
		width: min(250px, calc(100% - 40px));
	}
	.gai-front-page .final-cta .final-cta-tag {
		width: 100%;
		padding: 46px 20px 12px 34%;
	}
}
