/**
 * Halma Coliving — home marketing (shortcodes + bloques).
 * Paleta: crema / gris muy claro / verde suave.
 */

/* Saltar al contenido (núcleo WP: #wp-skip-link.skip-link) */
#wp-skip-link.skip-link:focus {
	clip: auto !important;
	clip-path: none !important;
	height: auto;
	width: auto;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 99999;
	padding: 0.75rem 1.25rem;
	background: var(--halma-ink, #333);
	color: #fff !important;
	text-decoration: none;
	border-radius: 0 0 0.5rem 0;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 0.875rem;
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

/* Enlaces a anclas (#): desplazamiento animado (respeta «reducir movimiento» del sistema) */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Secciones con ancla (bloques Gutenberg suelen ser div) */
section[id^="halma-"],
div[id^="halma-"],
.halma-section {
	scroll-margin-top: 6rem;
}

/* Hero marketing — imagen de fondo a ancho completo */
.halma-hero,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title),
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title) {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 500px;
	padding-block: clamp(3rem, 8vw, 5rem);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.halma-hero::after,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title)::after,
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title)::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(245, 243, 240, 0.92) 0%, rgba(245, 243, 240, 0.7) 45%, transparent 75%);
	pointer-events: none;
}

.halma-hero > *,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title) > *,
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title) > * {
	position: relative;
	z-index: 1;
}

.halma-hero__title {
	font-family: "Cormorant Garamond", serif;
	font-weight: 500;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.15;
	color: var(--wp--preset--color--halma-ink, #333);
	margin: 0 0 0.75rem;
	/* ~2 líneas para «Espacios coliving en el corazón de Madrid» */
	max-width: min(19ch, 92vw);
	text-wrap: balance;
}

/* Hero shortcode: layout interno */
.halma-hero__inner {
	max-width: min(var(--wp--style--global--wide-size, 1340px), 100%);
	margin: 0 auto;
	padding-inline: var(--halma-page-gutter);
	display: grid;
	grid-template-columns: 52% 48%;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.halma-hero__text {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.halma-hero__media {
	display: none;
}

@media (min-width: 782px) {
	.halma-hero__media {
		display: block;
	}
}

.halma-hero__img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

body.home .halma-hero__media .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

body.home .halma-hero.alignfull[style*="background-image"] {
	background-color: var(--wp--preset--color--halma-cream, #f5f3f0);
}

@media (max-width: 781px) {
	.halma-hero__inner {
		grid-template-columns: 1fr;
	}
}

.halma-hero__actions {
	margin-top: 0.75rem;
}

/* Backward compat: Gutenberg blocks dentro del hero */
body.home .halma-hero .wp-block-columns.alignwide,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title) .wp-block-columns.alignwide,
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title) .wp-block-columns.alignwide {
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
	max-width: min(var(--wp--style--global--wide-size, 1340px), 100%) !important;
	box-sizing: border-box;
	padding-inline: var(--halma-page-gutter);
}

body.home .halma-hero .wp-block-column:first-child,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title) .wp-block-column:first-child,
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title) .wp-block-column:first-child {
	padding-inline-start: 0 !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

.halma-hero__actions .wp-block-buttons {
	display: inline-flex;
	width: auto;
	flex: 0 0 auto;
}

.halma-hero__actions .wp-block-button {
	width: auto;
	flex: 0 0 auto;
}

.halma-hero__subtitle {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	margin: 0 0 1.5rem;
	max-width: 36ch;
}

.halma-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 0.25rem;
}

.halma-hero__actions .halma-btn {
	margin: 0;
}

/* Medidas compartidas: CTA shortcode y bloque «Botón» (el core usa padding en em distinto) */
:root {
	--halma-btn-padding-y: 0.65rem;
	--halma-btn-padding-x: 1.35rem;
	--halma-btn-font-size: 0.9375rem;
	--halma-page-gutter: max(
		var(--wp--style--root--padding-left, var(--wp--preset--spacing--50, 1.5rem)),
		env(safe-area-inset-left, 0px)
	);
}

/* Botones de marca */
.halma-btn,
a.halma-btn,
.halma-espacio-single a.halma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem !important;
	border-radius: 6px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 0.9375rem !important;
	font-weight: 500;
	line-height: 1.25 !important;
	text-decoration: none !important;
	border: 1px solid transparent;
	box-sizing: border-box;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.halma-hero__title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", Garamond, serif);
}

.halma-section-title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", Garamond, serif);
}

.halma-hero__actions .wp-block-button .wp-block-button__link {
	background: #757973;
	color: #fff !important;
	border: 1px solid transparent;
}

.halma-hero__actions .wp-block-button .wp-block-button__link:hover {
	filter: brightness(0.95);
}

.halma-hero__actions .wp-block-button .wp-block-button__link.halma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	padding: var(--halma-btn-padding-y) var(--halma-btn-padding-x);
	font-size: var(--halma-btn-font-size);
	font-weight: 500;
	line-height: 1.25;
	border-style: solid;
	border-width: 1px;
	border-radius: 6px;
}

.halma-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--halma-green, #6f7f6b);
	outline-offset: 2px;
}

.halma-btn .halma-btn__arrow {
	flex-shrink: 0;
}

.halma-btn--primary {
	background: #757973;
	color: #fff !important;
}

.halma-btn--primary:hover {
	filter: brightness(0.95);
}

.halma-btn--outline {
	background: #757973;
	color: #fff !important;
	border-color: #757973;
}

.halma-btn--outline:hover {
	filter: brightness(0.9);
}

/* Iconos / beneficios */
.halma-benefits {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.halma-benefits__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 600px) {
	.halma-benefits__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0;
	}

	.halma-benefits__grid > .wp-block-column + .wp-block-column > .halma-benefit,
	.halma-benefits__grid > .halma-benefit + .halma-benefit {
		border-left: 1px dotted rgba(44, 44, 44, 0.2);
	}
}

/* Sección de beneficios vía shortcode */
.halma-benefits {
	max-width: min(var(--wp--style--global--wide-size, 1340px), 100%);
	margin: 0 auto;
	padding-inline: var(--halma-page-gutter);
}

.halma-benefits__cta-wrap {
	text-align: center;
	margin-top: 1.5rem;
}

/* Títulos de sección (shortcodes con con_titulo) */
.halma-section {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.halma-section__title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	text-align: center;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-section--testimonios {
	background: var(--wp--preset--color--halma-mist, #ece8e2);
}

.halma-section--espacios {
	max-width: min(var(--wp--style--global--wide-size, 1340px), 100%);
	margin: 0 auto;
	padding-inline: var(--halma-page-gutter);
}

/* Sección contacto shortcode */
.halma-contact-section {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	max-width: min(var(--wp--style--global--wide-size, 1340px), 100%);
	margin: 0 auto;
	padding-inline: var(--halma-page-gutter);
}

.halma-benefit {
	background: transparent;
	border-radius: 0;
	padding: 1.5rem 2rem;
	border: none;
	box-shadow: none;
	text-align: center;
}

.halma-benefit__title {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-benefit__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-benefit__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0 auto 0.75rem;
	color: var(--wp--preset--color--halma-green, #6f7f6b);
}

.halma-benefit__icon svg,
.halma-benefit__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.halma-benefit__icon--heart,
.halma-benefit__icon--inclusive {
	background-color: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	width: 2rem;
	height: 2rem;
}

.halma-benefit__icon--heart {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}

.halma-benefit__icon--inclusive {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a6 6 0 0 1-6 6 6 6 0 0 1-6-6V8Z'/%3E%3C/svg%3E");
}

/* PNG con transparencia (p. ej. escoba): sin caja de color ni fondo forzado */
.halma-benefit__icon--png {
	color: inherit;
	width: auto;
	height: auto;
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none;
	border: none;
	padding: 0;
}

.halma-benefit__icon--png img {
	width: auto !important;
	height: 3rem !important;
	max-width: 5rem;
	object-fit: contain;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	vertical-align: middle;
}

/* Carruseles */
.halma-carousel {
	position: relative;
	padding-block: 0.5rem 2.5rem;
}

.halma-carousel__empty {
	text-align: center;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	font-size: 0.95rem;
}

.halma-carousel__viewport {
	overflow: hidden;
	width: 100%;
	outline: none;
}

.halma-carousel__viewport:focus-visible {
	box-shadow: 0 0 0 3px var(--wp--preset--color--halma-green-soft, #c5d5c8);
	border-radius: 0.75rem;
}

.halma-carousel__track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--halma-carousel-gap, 1.25rem);
	transition: transform 0.35s ease;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.halma-carousel__track {
		transition: none;
	}
}

.halma-carousel__slide {
	flex: 0 0 auto;
	width: var(--halma-slide-width, 100%);
	min-width: 0;
}

/* Espacios: 3 visibles en desktop */
.halma-carousel--espacios {
	--halma-carousel-gap: 1.25rem;
}

@media (min-width: 900px) {
	.halma-carousel--espacios .halma-carousel__slide {
		width: calc((100% - 2 * var(--halma-carousel-gap)) / 3);
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.halma-carousel--espacios .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap)) / 2);
	}
}

/* Tarjeta espacio */
.halma-espacio-card__inner {
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(44, 44, 44, 0.06);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 40px rgba(44, 44, 44, 0.06);
}

.halma-espacio-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--halma-mist, #ece8e2);
}

.halma-espacio-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halma-espacio-card__img--placeholder {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, #ece8e2, #f0eeea);
}

.halma-espacio-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
	flex: 1;
}

.halma-espacio-card__title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-espacio-card__meta,
.halma-espacio-card__rooms {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-espacio-card__link {
	margin-top: auto;
	align-self: center;
}

/* Testimonios */
.halma-carousel--testimonios {
	--halma-carousel-gap: 1.25rem;
}

.halma-carousel--testimonios .halma-carousel__slide {
	width: 100%;
}

@media (min-width: 782px) {
	.halma-carousel--testimonios[data-halma-visible="2"] .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap)) / 2);
	}
	.halma-carousel--testimonios[data-halma-visible="3"] .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap) * 2) / 3);
	}
}

.halma-testimonio-card {
	display: flex;
}

.halma-testimonio-card__inner {
	margin: 0;
	padding: 2rem 1.5rem;
	background: #fff;
	border-radius: 1rem;
	border: 1px solid rgba(44, 44, 44, 0.06);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.25rem;
	box-shadow: 0 12px 40px rgba(44, 44, 44, 0.05);
	flex: 1;
}

.halma-testimonio-card__avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wp--preset--color--halma-sand, #f0eeea);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.halma-testimonio-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.halma-testimonio-card__placeholder {
	color: var(--wp--preset--color--halma-green-soft, #C5D5C8);
	width: 44px;
	height: 44px;
}

.halma-testimonio-card__quote {
	margin: 0;
	padding: 0;
	border: none;
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--halma-ink, #333);
	flex: 1;
}

.halma-testimonio-card__quote p {
	margin: 0 0 0.5rem;
}

.halma-testimonio-card__quote p:last-child {
	margin-bottom: 0;
}

.halma-testimonio-card__cite {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(44, 44, 44, 0.08);
	font-size: 0.9rem;
	font-style: normal;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	width: 100%;
}

.halma-testimonio-card__name {
	font-weight: 600;
	font-style: normal;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-testimonio-card__country {
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	font-size: 0.85rem;
}

/* Controles carrusel */
.halma-carousel__controls {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 0.5rem;
}

.halma-carousel__btn {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1px solid rgba(44, 44, 44, 0.15);
	background: #fff;
	color: var(--wp--preset--color--halma-ink, #333);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.halma-carousel__btn:hover {
	border-color: var(--wp--preset--color--halma-green, #6f7f6b);
	color: var(--wp--preset--color--halma-green, #6f7f6b);
}

.halma-carousel__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--halma-green-soft, #c5d5c8);
	outline-offset: 2px;
}

.halma-carousel__btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Bloque contacto final */
.halma-contact-cta {
	padding: clamp(2.5rem, 6vw, 4rem);
	background: linear-gradient(180deg, var(--wp--preset--color--halma-sand, #f0eeea), var(--wp--preset--color--halma-cream, #f5f3f0));
	border-radius: 1.25rem;
	border: 1px solid rgba(44, 44, 44, 0.06);
}

/* Variante: imagen decorativa en un lateral (dormitorio / interior) */
.halma-contact-cta-has-side-image {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.halma-contact-cta-has-side-image .halma-contact-cta__content {
	flex: 1;
	min-width: 0;
	padding: clamp(2rem, 5vw, 4rem);
	background: linear-gradient(180deg, var(--wp--preset--color--halma-sand, #f0eeea), var(--wp--preset--color--halma-cream, #f5f3f0));
}

.halma-contact-cta__media {
	order: -1;
	flex-shrink: 0;
	min-height: 200px;
	background-color: var(--wp--preset--color--halma-sand, #e8e4de);
	background-image: none;
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
}

.halma-contact-cta__media .wp-block-image,
.halma-contact-cta__media figure {
	margin: 0;
	height: 100%;
}

.halma-contact-cta__media .wp-block-image img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
	object-position: center;
	display: block;
}

@media (min-width: 782px) {
	.halma-contact-cta-has-side-image {
		flex-direction: row;
		align-items: stretch;
		min-height: min(22rem, 50vw);
	}

	.halma-contact-cta-has-side-image .halma-contact-cta__media {
		order: 0;
		width: min(44%, 26rem);
		min-height: auto;
		background-position: center center;
	}
}

.halma-contact-cta__title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.75rem;
	/* HOME.pdf: «CONTACTA CON HALMA» */
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.halma-contact-cta__text {
	margin: 0 0 1.25rem;
	max-width: 42ch;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	line-height: 1.6;
}

/* Fondo general de la home: gris/crema muy claro */
body.home {
	background-color: var(--wp--preset--color--halma-cream, #f5f3f0);
}

/* Hero pegado bajo la cabecera: la imagen llega hasta la barra de navegación (sin franja crema) */
body.home .wp-site-blocks {
	gap: 0;
}

body.home main.wp-block-group,
body.home main {
	padding-top: 0 !important;
	padding-block-start: 0 !important;
	margin-top: 0 !important;
}

body.home .wp-block-post-content,
body.home .entry-content {
	padding-top: 0 !important;
	margin-block-start: 0 !important;
}

body.home header + main {
	margin-top: 0 !important;
}

body.home .wp-block-post-content > .alignfull:first-child:not(.halma-hero):not(:has(.halma-hero__title)),
body.home .entry-content > .alignfull:first-child:not(.halma-hero):not(:has(.halma-hero__title)) {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* Sube el hero: compensa padding del tema + acerca la imagen a la cabecera (+30px baja el bloque respecto a ese ajuste) */
body.home .halma-hero.alignfull,
body.home .wp-block-post-content > .halma-hero.alignfull:first-child,
body.home .entry-content > .halma-hero.alignfull:first-child,
body.home .entry-content > .alignfull:has(> .wp-block-columns .halma-hero__title),
body.home .wp-block-post-content > .alignfull:has(> .wp-block-columns .halma-hero__title) {
	margin-top: calc(30px - clamp(3rem, 9vw, 7rem)) !important;
	margin-block-start: calc(30px - clamp(3rem, 9vw, 7rem)) !important;
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
	padding-inline-start: 0 !important;
	padding-inline-end: clamp(1rem, 4vw, 2rem) !important;
}

/* Servicios pegados al hero: sin gap entre ambos bloques */
body.home .halma-hero.alignfull + .alignfull {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/*
 * La plantilla «Página» de Twenty Twenty-Five muestra el título del post (p. ej. «Inicio»)
 * encima del contenido; el H1 real del brief va en el bloque hero.
 */
body.home .wp-block-post-title {
	display: none !important;
}

/* Cabecera: menú + CTA (parts/header.html + [halma_site_navigation]) */
.halma-header-bar {
	border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

/* El grupo «constrained» limita hijos al contentSize (~720px en theme.json); el menú usa el ancho «wide» */
.halma-header-bar.is-layout-constrained > * {
	max-width: min(100%, var(--wp--style--global--wide-size, 1200px)) !important;
	width: 100%;
	box-sizing: border-box;
}

.halma-header-bar .wp-block-shortcode {
	width: 100%;
	max-width: 100%;
}

.halma-site-nav {
	width: 100%;
}

.halma-site-nav__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	width: 100%;
}

.halma-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	line-height: 0;
}

.halma-logo img {
	display: block;
	height: clamp(2.25rem, 5vw, 3rem);
	width: auto;
	max-width: min(15rem, 42vw);
}

.halma-logo--text {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--wp--preset--color--halma-ink, #333);
	line-height: 1.2;
}

.halma-footer .halma-logo img {
	height: clamp(2rem, 4vw, 2.75rem);
	max-width: min(13rem, 70vw);
}

.halma-site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	row-gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 20rem;
}

@media (min-width: 782px) {
	.halma-site-nav__list {
		flex-wrap: nowrap;
		row-gap: 0;
	}
}

.halma-site-nav__list a:not(.halma-btn) {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--halma-ink, #333);
	text-decoration: none;
	white-space: nowrap;
}

.halma-site-nav__list a:not(.halma-btn):hover {
	color: var(--wp--preset--color--halma-green, #6f7f6b);
	text-decoration: underline;
}

@media (min-width: 782px) {
	.halma-site-nav__list > li:not(.halma-site-nav__item--cta) {
		display: flex;
		align-items: center;
		padding-left: 1rem;
		border-left: 1px solid rgba(91, 103, 102, 0.22);
	}

	.halma-site-nav__list > li:not(.halma-site-nav__item--cta):first-of-type {
		border-left: none;
		padding-left: 0;
	}
}

.halma-site-nav__item--cta {
	display: flex;
	align-items: center;
}

.halma-site-nav__cta {
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 781px) {
	.halma-site-nav__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.halma-logo {
		align-self: center;
	}

	.halma-site-nav__list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		flex: 1 1 auto;
	}

	.halma-site-nav__list > li:not(.halma-site-nav__item--cta) {
		border-left: none;
		padding-left: 0;
	}
}

/* ===== Kit Digital ===== */
.halma-kit-digital {
	background: #fff;
	border-top: 1px solid rgba(51, 51, 51, 0.08);
}

.halma-kit-digital__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	text-align: center;
}

.halma-kit-digital__img {
	display: block;
	width: 100%;
	max-width: 1200px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

/* ===== Footer ===== */
.halma-footer {
	background-color: var(--wp--preset--color--halma-ink, #333);
	color: #e0ddd8;
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	padding: 3.5rem clamp(1.5rem, 5vw, 4rem) 1.5rem;
}

.halma-footer a {
	color: #e0ddd8;
	text-decoration: none;
	transition: color 0.2s;
}

.halma-footer a:hover {
	color: var(--wp--preset--color--halma-green-soft, #C5D5C8);
	text-decoration: underline;
}

.halma-footer__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2.5rem;
}

.halma-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.halma-footer__logo {
	margin: 0;
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: #fff;
}

.halma-footer__tagline {
	margin: 0;
	font-size: 0.9rem;
	color: #a8a5a0;
}

.halma-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
}

.halma-footer__nav ul,
.halma-footer__legal ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.halma-footer__nav li a,
.halma-footer__legal li a {
	font-size: 0.9rem;
}

.halma-footer__bottom {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
}

.halma-footer__bottom p {
	margin: 0;
	font-size: 0.8rem;
	color: #a8a5a0;
}

.halma-footer__bottom a {
	color: var(--wp--preset--color--halma-green-soft, #C5D5C8);
	font-weight: 600;
}

@media (max-width: 768px) {
	.halma-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.halma-footer__bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* —— Banner cookies (RGPD básico, sin plugin) —— */
.halma-cookie-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 1rem clamp(1rem, 3vw, 2rem);
	background: rgba(30, 41, 59, 0.97);
	color: #f8fafc;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.halma-cookie-bar__inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.halma-cookie-bar__text {
	margin: 0;
	flex: 1 1 280px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.halma-cookie-bar__link {
	color: #7dd3fc;
	font-weight: 600;
}

.halma-cookie-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.halma-cookie-bar__btn {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	font-family: inherit;
}

.halma-cookie-bar__btn--primary {
	background: #19b6a6;
	color: #fff;
}

.halma-cookie-bar__btn--ghost {
	background: transparent;
	color: #f8fafc;
	border-color: rgba(248, 250, 252, 0.35);
}

/* ================================================================
   Ficha de espacio (single-halma_espacio)
   ================================================================ */

.halma-espacio-single {
	font-family: var(--wp--preset--font-family--halma-sans, "DM Sans", system-ui, sans-serif);
	color: var(--wp--preset--color--halma-ink, #333);
}

/* Ocultar el título que genera el tema por defecto */
body.single-halma_espacio .wp-block-post-title {
	display: none !important;
}

body.single-halma_espacio .wp-site-blocks {
	gap: 0;
}

body.single-halma_espacio main.wp-block-group {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.single-halma_espacio .wp-block-post-content,
body.single-halma_espacio .entry-content {
	max-width: none !important;
	padding: 0 !important;
}

.halma-espacio-single {
	width: 100%;
}

/* ── Hero (fondo = imagen destacada, como la home) ── */
.halma-espacio-single__hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	background-color: var(--wp--preset--color--halma-cream, #f5f3f0);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.halma-espacio-single__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(245, 243, 240, 0.92) 0%, rgba(245, 243, 240, 0.7) 45%, transparent 75%);
	pointer-events: none;
}

.halma-espacio-single__hero > * {
	position: relative;
	z-index: 1;
}

.halma-espacio-single__hero-inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	width: 100%;
	align-items: center;
}

.halma-espacio-single__breadcrumb {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.halma-espacio-single__breadcrumb-name {
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-espacio-single__name {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-espacio-single__title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-espacio-single__subtitle {
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	margin: 0 0 1.5rem;
	max-width: 40ch;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.halma-espacio-single__hero {
		min-height: 320px;
	}

	.halma-espacio-single__hero::after {
		background: rgba(245, 243, 240, 0.85);
	}
}

/* ── Sobre ── */
.halma-espacio-single__about {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.halma-espacio-single__about-inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: start;
}

.halma-espacio-single__section-title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 500;
	margin: 0 0 1rem;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-espacio-single__section-title--center {
	text-align: center;
}

.halma-espacio-single__about-text p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	margin: 0 0 0.75rem;
}

.halma-espacio-single__about-media {
	border-radius: 1rem;
	overflow: hidden;
}

.halma-espacio-single__about-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

@media (max-width: 781px) {
	.halma-espacio-single__about-inner {
		grid-template-columns: 1fr;
	}
}

/* ── Zonas comunes ── */
.halma-espacio-single__zones {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
	background-color: var(--wp--preset--color--halma-sand, #f0eeea);
}

.halma-espacio-single__zones-desc {
	text-align: center;
	max-width: 60ch;
	margin: 0 auto 2rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-espacio-single__zones-grid {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	display: grid;
	gap: 1.25rem;
}

.halma-espacio-single__zones-grid--1 {
	grid-template-columns: 1fr;
	max-width: 600px;
}

.halma-espacio-single__zones-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.halma-espacio-single__zones-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.halma-espacio-single__zone-item {
	border-radius: 0.75rem;
	overflow: hidden;
}

.halma-espacio-single__zone-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
}

@media (max-width: 600px) {
	.halma-espacio-single__zones-grid--2,
	.halma-espacio-single__zones-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* ── Habitaciones (carrusel) ── */
.halma-espacio-single__rooms {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.halma-carousel--habitaciones {
	--halma-carousel-gap: 1.25rem;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
}

.halma-carousel--habitaciones .halma-carousel__slide {
	width: 100%;
}

@media (min-width: 600px) and (max-width: 899px) {
	.halma-carousel--habitaciones .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap)) / 2);
	}
}

@media (min-width: 900px) {
	.halma-carousel--habitaciones[data-halma-visible="3"] .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap) * 2) / 3);
	}
	.halma-carousel--habitaciones[data-halma-visible="2"] .halma-carousel__slide {
		width: calc((100% - var(--halma-carousel-gap)) / 2);
	}
	.halma-carousel--habitaciones[data-halma-visible="1"] .halma-carousel__slide {
		width: 100%;
	}
}

.halma-hab-card__inner {
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(44, 44, 44, 0.06);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 40px rgba(44, 44, 44, 0.06);
}

.halma-hab-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--halma-mist, #ece8e2);
}

.halma-hab-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halma-hab-card__img--placeholder {
	min-height: 12rem;
	background: linear-gradient(135deg, #ece8e2, #f0eeea);
}

.halma-hab-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.halma-hab-card__title {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-hab-card__desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-hab-card__includes {
	margin: 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-hab-card__price {
	margin: 0.5rem 0 0;
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
}

.halma-hab-card__price-from {
	font-size: 0.75rem;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
	text-transform: lowercase;
}

.halma-hab-card__price-amount {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--halma-ink, #333);
}

.halma-hab-card__link {
	margin-top: auto;
	align-self: flex-start;
}

/* ── Mapa ── */
.halma-espacio-single__map {
	background-color: var(--wp--preset--color--halma-sand, #f0eeea);
}

.halma-espacio-single__map-header {
	padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 4rem) 0;
	text-align: center;
}

.halma-espacio-single__map-address {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 auto 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--halma-muted, #5c5c5c);
}

.halma-espacio-single__map-address svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--halma-green, #6f7f6b);
}

.halma-espacio-single__map-embed {
	margin-top: clamp(1.5rem, 3vw, 2rem);
	width: 100%;
	line-height: 0;
}

.halma-espacio-single__map-embed iframe {
	width: 100%;
	height: clamp(300px, 35vw, 500px);
	display: block;
}

/* ── CTA final ── */
.halma-espacio-single__cta {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
	text-align: center;
	background-color: var(--wp--preset--color--halma-cream, #f5f3f0);
}

.halma-espacio-single__cta-text {
	font-family: var(--wp--preset--font-family--halma-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	line-height: 1.5;
	max-width: 50ch;
	margin: 0 auto 1.5rem;
	color: var(--wp--preset--color--halma-ink, #333);
}
