/* Página Servicios — extiende estilos de ficha espacio (halma-espacio-single) */

body.halma-servicios-page .wp-block-post-title {
	display: none !important;
}

body.halma-servicios-page .wp-site-blocks {
	gap: 0;
}

body.halma-servicios-page main.wp-block-group {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.halma-servicios-page .wp-block-post-content,
body.halma-servicios-page .entry-content {
	max-width: none !important;
	padding: 0 !important;
}

/* Sección «Todos nuestros servicios» (justo tras el hero) */
.halma-servicios-included {
	--halma-srv-card-bg: #fbfaf8;
	--halma-srv-card-ink: #6d5d4e;
	--halma-srv-section-bg: #f0eeea;
	padding: clamp(3rem, 6.5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	background-color: var(--halma-srv-section-bg);
	background-image:
		radial-gradient(rgba(109, 93, 78, 0.04) 0.65px, transparent 0.65px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
	background-size: 5px 5px, 100% 100%;
}

.halma-servicios-section-head {
	max-width: 920px;
	margin: 0 auto 2.75rem;
	text-align: center;
}

.halma-servicios-section-head__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.45rem, 2.5vw, 1.85rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--halma-srv-card-ink);
	text-align: center;
	letter-spacing: 0.01em;
}

/* Grid de servicios incluidos */
.halma-servicios-cards-grid {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
	grid-auto-rows: auto;
	align-items: stretch;
}

.halma-servicios-cards-grid > p:empty {
	display: none;
}

@media (min-width: 640px) {
	.halma-servicios-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.halma-servicios-cards-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.halma-servicio-card {
	background: var(--halma-srv-card-bg);
	border-radius: 1rem;
	padding: 1.65rem 1.35rem 1.5rem;
	text-align: center;
	box-shadow:
		0 10px 28px rgba(109, 93, 78, 0.07),
		0 3px 10px rgba(109, 93, 78, 0.05);
	border: none;
	margin: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.halma-servicio-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	margin: 0 auto 1rem;
	flex-shrink: 0;
}

.halma-servicio-card__icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--halma-srv-card-ink);
}

.halma-servicio-card__icon-svg svg {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
}

.halma-servicio-card__icon svg {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--halma-srv-card-ink);
}

.halma-servicio-card__title {
	margin: 0 0 0.65rem;
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--halma-srv-card-ink);
	line-height: 1.4;
}

.halma-servicio-card__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--halma-srv-card-ink);
	opacity: 0.92;
}

.halma-hab-card__media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--halma-mist, #ece8e2);
}

.halma-hab-card__media--icon .halma-servicio-card__icon {
	width: 3rem;
	height: 3rem;
	margin: 0;
}

/* Hero servicios: foto comunidad a la derecha, texto como mockup */
.halma-servicios-single__hero.halma-espacio-single__hero {
	background-position: center right;
	background-size: cover;
}

.halma-servicios-single__hero.halma-espacio-single__hero::after {
	background: linear-gradient(
		to right,
		rgba(245, 243, 240, 0.97) 0%,
		rgba(245, 243, 240, 0.88) 38%,
		rgba(245, 243, 240, 0.45) 58%,
		transparent 78%
	);
}

.halma-servicios-single__lead {
	max-width: 34ch;
	font-size: clamp(0.95rem, 1.6vw, 1.05rem);
	line-height: 1.55;
	margin-bottom: 1.5rem;
}
