/* Estilos que no se pueden expresar en theme.json. */

:root {
	/* 1 px del Figma (frame de 1920) escalado al ancho de la ventana, sin pasar de 1 px. */
	--hg-u: min(calc(100vw / 1920), 1px);
	--hg-gold-dark: #C88A02;
}

/* Las template parts van pegadas: el hero arranca bajo la cabecera. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Etiquetas en mayúsculas (Maison Neue Extended). */
.hg-eyebrow {
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

/* ---------- Cabecera ---------- */
.site-header {
	min-height: 78px;
	box-sizing: border-box;
	background: var(--wp--preset--color--dark);
	border-bottom: 1px solid rgb(255 255 255 / 0.3);
}

.is-overlay {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
}

.is-overlay .site-header {
	background: transparent;
}

.site-header__brand {
	gap: 6rem !important;
}

.site-header__logo img {
	display: block;
	width: 118px;
	height: auto;
}

/* Botón de menú: dos líneas largas. */
.hg-menu-toggle {
	display: flex;
	align-items: center;
	width: 93px;
	height: 18px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.hg-menu-toggle span {
	display: block;
	width: 100%;
	height: 5px;
	border-block: 1px solid currentColor;
	transition: height 0.4s var(--hg-ease, ease);
}

.hg-menu-toggle:hover span {
	height: 9px;
}

.site-header__nav {
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.site-header {
		padding-inline: var(--wp--preset--spacing--40) !important;
	}

	.site-header__brand {
		gap: 2rem !important;
	}

	.hg-menu-toggle {
		width: 56px;
	}

	.site-header__nav {
		display: none;
	}
}

/* ---------- Hero ----------
 * Medidas del Figma (frame 1920x1080). Todo escala con min(ancho, alto) para que
 * el contenido completo quepa siempre en la primera pantalla. Los márgenes del título y la firma van en em
 * para que escalen con su tamaño de letra y las posiciones de línea base se mantengan.
 */
.hg-hero {
	min-height: max(100vh, min(80.9vw, 1554px));
	padding-top: max(126px, min(11.09vw, 19.72vh, 213px));
	padding-bottom: clamp(4rem, 8vw, 8rem);
	padding-inline: var(--wp--preset--spacing--40);
}

/* Efecto Noise del Figma: mono, tamaño 0.5, densidad 100 %, negro al 25 %. */
.hg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.25;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 256px;
}

.hg-hero {
	/* clip (no hidden) para que el sticky del contenido funcione. */
	overflow: clip;
}

.hg-hero .wp-block-cover__inner-container {
	z-index: 2;
}

.hg-hero .wp-block-cover__inner-container > * {
	margin-block: 0;
}

.hg-hero .wp-block-cover__inner-container > .hg-hero__title,
.hg-hero .wp-block-cover__inner-container > .hg-hero__signature {
	max-width: none;
}

.hg-hero__eyebrow {
	max-width: 373px;
	margin-inline: auto !important;
}

.hg-hero__title {
	margin-top: 0.1033em !important;
	font-weight: 200;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hg-hero__signature {
	position: relative;
	margin-top: -0.8335em !important;
	line-height: 1;
}

.hg-hero__text {
	max-width: 577px;
	margin-top: min(2.4vw, 4.27vh, 46px) !important;
	margin-inline: auto !important;
}

.hg-vline {
	width: 1px;
	height: min(5vw, 8.89vh, 96px) !important;
	margin: min(2.29vw, 4.07vh, 44px) auto 0 !important;
	background: var(--wp--preset--color--gold);
}

.hg-hero__actions {
	margin-top: min(2.29vw, 4.07vh, 44px) !important;
}

.hg-hero .wp-block-button__link {
	min-width: 273px;
}

@media (max-width: 781px) {
	.hg-hero {
		min-height: 100svh;
	}

	.hg-hero__title {
		margin-top: 1.25rem !important;
		font-size: 17vw !important;
	}

	.hg-hero__signature {
		font-size: 11.3vw !important;
	}

	.hg-hero__text {
		margin-top: 1.5rem !important;
	}

	.hg-vline {
		height: 64px !important;
		margin-top: 1.75rem !important;
	}

	.hg-hero__actions {
		margin-top: 1.75rem !important;
	}

	.hg-hero .wp-block-button__link {
		min-width: 0;
		padding-inline: 2.5rem;
	}
}

/* ---------- Perfiles: bloque blanco con borde curvo ---------- */
.hg-perfiles {
	position: relative;
	z-index: 3;
	/* El vértice de la curva está 274 px por encima del final del hero. */
	margin-top: calc(-274 * var(--hg-u)) !important;
	padding-top: calc(74 * var(--hg-u));
	padding-bottom: 0;
	overflow-x: clip;
	background: linear-gradient(transparent calc(576 * var(--hg-u)), var(--wp--preset--color--base) 0);
}

/* Elipse del Figma: 3546.89 x 1107. */
.hg-perfiles::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 50%;
	width: calc(3546.89 * var(--hg-u));
	height: calc(1107 * var(--hg-u));
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	transform: translateX(-50%);
}

.hg-perfiles > * {
	margin-block: 0;
}

.hg-perfiles__text {
	max-width: 282px;
	margin-inline: auto !important;
	color: var(--wp--preset--color--contrast);
}

/* Flecha dorada sobre el texto. */
.hg-perfiles__text::before {
	content: "";
	display: block;
	width: 17.5px;
	height: 9.5px;
	margin: 0 auto calc(48.5 * var(--hg-u));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 9.5'%3E%3Cpath d='M1 8.5 8.75 1.2 16.5 8.5' fill='none' stroke='%23C88A02' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hg-orbits {
	max-width: none !important;
	flex-wrap: nowrap !important;
	gap: calc(236.5 * var(--hg-u)) !important;
	margin-top: calc(74 * var(--hg-u)) !important;
}

.hg-orbit .wp-block-button__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 130px;
	height: 130px;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	font-size: 9.5px;
}

.hg-orbit__arc {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: currentColor;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Círculo: aro fino oscuro, hueco blanco y disco dorado con degradado radial. */
.hg-orbit .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 78px;
	height: 78px;
	margin-top: auto;
	margin-bottom: 26px;
	border: 1px solid #1D1D1B;
	border-radius: 50%;
	box-sizing: border-box;
	background: radial-gradient(circle, #FFC034 0, var(--hg-gold-dark) 29.5px, var(--hg-gold-dark) 30px, transparent 30.5px);
	transition: transform 0.3s ease;
}

.hg-orbit .wp-block-button__link:hover,
.hg-orbit .wp-block-button__link:focus-visible {
	background: none;
	color: var(--wp--preset--color--contrast);
}

.hg-orbit .wp-block-button__link:hover::after,
.hg-orbit .wp-block-button__link:focus-visible::after {
	transform: scale(1.08);
}

/* ---------- Carrusel de viviendas ---------- */
.hg-carousel {
	position: relative;
	z-index: 3;
	margin-top: 0 !important;
	padding-top: max(2.5rem, calc(93 * var(--hg-u)));
	padding-bottom: calc(99 * var(--hg-u));
	background: var(--wp--preset--color--base);
	--hg-card-w: calc(498.52 * var(--hg-u));
	--hg-cut: calc(22 * var(--hg-u));
}

.hg-carousel .hg-carousel__track {
	display: flex;
	gap: calc(96 * var(--hg-u));
	/* Margen vertical interno para que el scroll horizontal no recorte las fichas
	 * mientras suben al aparecer. */
	margin: -48px 0;
	padding: 48px calc(50% - var(--hg-card-w) / 2);
	overflow-x: auto;
	scrollbar-width: none;
	cursor: grab;
}

.hg-carousel .hg-carousel__track::-webkit-scrollbar {
	display: none;
}

.hg-carousel .hg-carousel__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.hg-carousel .hg-carousel__track > li {
	flex: 0 0 var(--hg-card-w);
	margin: 0 !important;
}

.hg-card > * {
	margin-block: 0;
}

/* Imagen con esquinas recortadas, borde fino, desenfoque y velo negro al 34 %. */
.hg-card__media {
	position: relative;
	aspect-ratio: 498.52 / 626.53;
	background: var(--wp--preset--color--contrast);
	clip-path: polygon(var(--hg-cut) 0, calc(100% - var(--hg-cut)) 0, 100% var(--hg-cut), 100% calc(100% - var(--hg-cut)), calc(100% - var(--hg-cut)) 100%, var(--hg-cut) 100%, 0 calc(100% - var(--hg-cut)), 0 var(--hg-cut));
}

.hg-card__img {
	position: absolute !important;
	inset: 1px;
	margin: 0 !important;
	overflow: hidden;
	clip-path: inherit;
}

.hg-card__img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	filter: blur(7px);
	transform: scale(1.08);
	transition: filter 0.6s ease, transform 0.8s ease;
}

/* Al pasar el cursor la imagen se aclara un poco, sin perder del todo el desenfoque. */
.hg-card:hover .hg-card__img img {
	filter: blur(3px);
	transform: scale(1.04);
}

.hg-card__img::after {
	transition: background 0.6s ease;
}

.hg-card:hover .hg-card__img::after {
	background: rgb(0 0 0 / 0.22);
}

.hg-card__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.34);
}

.hg-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	justify-content: center !important;
	gap: 17px !important;
}

/* Candado (Lock Thin) sobre el botón. */
.hg-card__overlay::before {
	content: "";
	width: 25.14px;
	height: 28.43px;
	margin-bottom: 11px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 28' fill='none' stroke='%23fff' stroke-width='1'%3E%3Crect x='0.5' y='11.5' width='24' height='16'/%3E%3Cpath d='M5.5 11.5V7a7 7 0 0 1 14 0v4.5'/%3E%3Cpath d='M12.5 18v4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hg-card__cta .wp-block-button__link {
	min-width: min(271px, calc(var(--hg-card-w) - 2rem));
}

.hg-card__tag {
	padding: 6.5px 9.5px;
	background: var(--hg-gold-dark);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	line-height: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hg-card__tag:empty {
	display: none;
}

.hg-card__title {
	max-width: calc(448 * var(--hg-u));
	min-height: max(2.2em, calc(86 * var(--hg-u)));
	margin: calc(47.5 * var(--hg-u)) auto 0 !important;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(20px, calc(30.94 * var(--hg-u)));
	font-weight: 200;
	line-height: 1.067;
	text-transform: uppercase;
}

.hg-card__specs {
	gap: 0 !important;
	margin-top: calc(12 * var(--hg-u)) !important;
}

.hg-card__specs p {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	line-height: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hg-card__specs p + p {
	margin-left: 24px;
	padding-left: 24px;
	border-left: 1px solid var(--hg-gold-dark);
}

.hg-card__specs p:empty {
	display: none;
}

.hg-carousel__bar {
	position: relative;
	width: calc(637 * var(--hg-u));
	height: 4px;
	margin: max(2rem, calc(96 * var(--hg-u))) auto 0;
	background: rgb(0 0 0 / 0.25);
}

/* Zona de agarre más alta que la línea visible, para poder arrastrarla con comodidad. */
.hg-carousel__bar {
	cursor: pointer;
	touch-action: none;
}

.hg-carousel__bar::before {
	content: "";
	position: absolute;
	inset: -12px 0;
}

.hg-carousel__bar.is-dragging {
	cursor: grabbing;
}

.hg-carousel__thumb {
	position: relative;
	display: block;
	cursor: grab;
	height: 100%;
	background: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.hg-perfiles {
		padding-top: 3rem;
	}

	.hg-perfiles__text::before {
		margin-bottom: 1.5rem;
	}

	.hg-orbits {
		gap: 0.5rem !important;
		margin-top: 2rem !important;
	}

	.hg-orbit .wp-block-button__link {
		width: 110px;
	}

	.hg-carousel {
		padding-top: 2.5rem;
		padding-bottom: 3.5rem;
		--hg-card-w: 78vw;
		--hg-cut: 14px;
	}

	.hg-carousel .hg-carousel__track {
		gap: 1rem;
	}

	.hg-card__title {
		max-width: none;
		margin-top: 1.5rem !important;
	}

	.hg-card__specs {
		margin-top: 0.75rem !important;
	}

	.hg-card__specs p + p {
		margin-left: 12px;
		padding-left: 12px;
	}

	.hg-carousel__bar {
		width: 60vw;
	}
}

/* ---------- Franja dorada de cita (Figma y = 2765, alto 88) ---------- */
.hg-band {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: max(56px, calc(88 * var(--hg-u)));
	margin: 0 !important;
	padding-block: 0.75rem;
	background: var(--hg-gold-dark);
	color: var(--wp--preset--color--base);
}

.hg-band p {
	margin: 0;
}

.hg-band a {
	margin-left: 0.35em;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.hg-band a + a {
	margin-left: 0;
}

/* ---------- Conoce Housingo (y = 2853) ---------- */
.hg-conoce {
	display: flow-root;
	position: relative;
	z-index: 2;
	margin: 0 !important;
	overflow-x: clip;
	color: var(--wp--preset--color--base);
	/* Fondo oscuro hasta y = 4535; la galería sobresale sobre el blanco. */
	background: linear-gradient(#181818 calc(1682 * var(--hg-u)), var(--wp--preset--color--base) 0);
}

.hg-conoce > * {
	margin-block: 0;
}

.hg-conoce__title {
	margin-top: calc(-40 * var(--hg-u)) !important;
	font-size: calc(333 * var(--hg-u));
	line-height: 1.5;
	white-space: nowrap;
}

.hg-conoce__text {
	max-width: 888px;
	margin: calc(29 * var(--hg-u)) auto 0 !important;
	line-height: 20px;
	padding-inline: var(--wp--preset--spacing--40);
}

.hg-conoce__line {
	height: min(5vw, 96px) !important;
	margin-top: calc(51 * var(--hg-u)) !important;
}

.hg-conoce__actions {
	margin-top: calc(51 * var(--hg-u)) !important;
}

.hg-conoce__actions .wp-block-button__link {
	min-width: 271px;
}

/* Galería: posiciones del Figma dentro de un lienzo de 1920 x 1204. */
.hg-gallery {
	position: relative;
	height: calc(1204 * var(--hg-u));
	margin-top: calc(252 * var(--hg-u)) !important;
}

.hg-gallery > figure {
	position: absolute;
	margin: 0 !important;
	overflow: hidden;
}

.hg-gallery > figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-gallery__a {
	top: 0;
	left: calc(57 * var(--hg-u));
	width: calc(869 * var(--hg-u));
	height: 100%;
}

.hg-gallery__b {
	top: 0;
	left: calc(959 * var(--hg-u));
	width: calc(648 * var(--hg-u));
	height: calc(397 * var(--hg-u));
}

.hg-gallery__c {
	top: calc(432 * var(--hg-u));
	left: calc(959 * var(--hg-u));
	right: 0;
	height: calc(772 * var(--hg-u));
}

.hg-gallery__link {
	position: absolute;
	top: calc(367 * var(--hg-u));
	left: calc(1648 * var(--hg-u));
	width: 110px;
	margin: 0 !important;
}

.hg-gallery__link a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.hg-gallery__link a::after {
	content: "→";
	margin-left: 0.6em;
	color: var(--hg-gold-dark);
}

/* ---------- No publicamos (y = 5125) ---------- */
.hg-manifesto {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	padding-top: calc(221 * var(--hg-u));
	padding-bottom: calc(207 * var(--hg-u));
	overflow-x: clip;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.hg-manifesto > * {
	position: relative;
	margin-block: 0;
}

.hg-silk {
	position: absolute !important;
	z-index: -1;
	margin: 0 !important;
	pointer-events: none;
}

.hg-silk img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hg-silk--left {
	top: calc(163 * var(--hg-u));
	left: calc(-578 * var(--hg-u));
	width: calc(1212 * var(--hg-u));
	height: calc(758 * var(--hg-u));
	transform: rotate(8deg);
}

.hg-silk--right {
	top: calc(60 * var(--hg-u));
	left: calc(1385 * var(--hg-u));
	width: calc(960 * var(--hg-u));
	height: calc(600 * var(--hg-u));
	/* Girada 180° como en el Figma: el nudo arriba a la izquierda y la cola sale por la derecha. */
	transform: rotate(180deg);
}

.hg-manifesto__title {
	max-width: calc(720 * var(--hg-u));
	margin-inline: auto !important;
	font-size: max(30px, calc(59.43 * var(--hg-u)));
	line-height: 0.934;
	text-transform: uppercase;
}

.hg-muted {
	opacity: 0.17;
}

.hg-manifesto__sign {
	margin-top: calc(13 * var(--hg-u)) !important;
}

.hg-manifesto__sign img {
	width: max(180px, calc(301 * var(--hg-u))) !important;
	height: auto;
}

/* Cuatro pasos sobre el arco: los dos centrales más altos. */
.hg-steps {
	z-index: 1;
	max-width: calc(1180 * var(--hg-u));
	margin: calc(291 * var(--hg-u)) auto 0 !important;
	gap: calc(6 * var(--hg-u)) !important;
	flex-wrap: nowrap !important;
}

.hg-step {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hg-step:nth-child(2),
.hg-step:nth-child(3) {
	translate: 0 calc(-14 * var(--hg-u));
}

.hg-step > * {
	margin: 0 !important;
}

.hg-step__title,
.hg-step__text {
	max-width: 205px;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

.hg-step__title {
	font-weight: 600;
}

.hg-step__text {
	margin-top: 12px !important;
	font-weight: 500;
}

.hg-step::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-top: calc(33 * var(--hg-u));
	border-radius: 50%;
	background: var(--hg-gold-dark);
}

/* Arco dorado: elipse más plana (3800 x 1096) para una línea casi recta, vértice en y = 5995. */
.hg-manifesto::after {
	content: "";
	position: absolute;
	z-index: 0;
	/* La coloca el JS justo bajo los puntos de los pasos (--hg-arc-top). */
	top: var(--hg-arc-top, calc(870 * var(--hg-u)));
	left: 50%;
	width: calc(3800 * var(--hg-u));
	height: calc(1096 * var(--hg-u));
	border: 1px solid var(--hg-gold-dark);
	border-radius: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ---------- Ventana / Private Collection (vértice en y = 6180) ---------- */
.hg-window {
	z-index: 2;
	min-height: calc(1160 * var(--hg-u)) !important;
	margin: 0 !important;
	padding: calc(300 * var(--hg-u)) var(--wp--preset--spacing--40) calc(300 * var(--hg-u)) !important;
	color: var(--wp--preset--color--contrast);
	/* Borde superior curvo: la misma elipse que el arco dorado (2654 x 1096), paralela a él. */
	--hg-arch: calc(548 * var(--hg-u));
	-webkit-mask: radial-gradient(calc(1900 * var(--hg-u)) var(--hg-arch) at 50% var(--hg-arch), #000 99.5%, transparent 100%) top / 100% var(--hg-arch) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--hg-arch) - 2px) / 100% 100% no-repeat;
	mask: radial-gradient(calc(1900 * var(--hg-u)) var(--hg-arch) at 50% var(--hg-arch), #000 99.5%, transparent 100%) top / 100% var(--hg-arch) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--hg-arch) - 2px) / 100% 100% no-repeat;
}


.hg-window .wp-block-cover__inner-container {
	z-index: 2;
	color: var(--wp--preset--color--contrast);
}

.hg-window .wp-block-cover__inner-container > * {
	margin-block: 0;
}

.hg-window figure.hg-window__key {
	width: calc(400 * var(--hg-u));
	height: calc(262 * var(--hg-u));
	margin-inline: auto !important;
}

.hg-window__key img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hg-window__title {
	max-width: none !important;
	/* La imagen de la llave trae aire transparente debajo: se compensa para pegarla al texto. */
	margin-top: calc(-70 * var(--hg-u)) !important;
	font-size: max(28px, calc(59.43 * var(--hg-u)));
	line-height: 0.934;
	text-transform: uppercase;
}

.hg-aside {
	display: inline-block;
	width: 6em;
	margin: 0 0.6em 0.15em;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-align: left;
	vertical-align: 0.9em;
	word-spacing: 100vw;
}

.hg-aside--left {
	text-align: right;
}

.hg-window__text {
	max-width: 520px;
	line-height: 20px;
	margin: calc(39 * var(--hg-u)) auto 0 !important;
}

.hg-window__actions {
	margin-top: calc(42 * var(--hg-u)) !important;
}

/* Imagen escalada como en el Figma: el hueco de la ventana (487 px en el original) mide 829 px. */
.hg-window .wp-block-cover__image-background {
	/* Escala 0.8 respecto al Figma para que la sección sea más baja. */
	top: calc(-130 * var(--hg-u));
	left: 50%;
	/* Nunca más estrecha que la sección: antes dejaba una franja blanca a la derecha. */
	width: max(100% + 10px, calc(1910 * var(--hg-u)));
	transform: translateX(-50%);
	max-width: none;
	height: calc(1526 * var(--hg-u));
}

/* Botón de texto con círculo dorado y "+" a la derecha. */
.hg-plus .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 21px;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	font-size: 12px;
	line-height: 1.25;
	text-align: right;
}

.hg-plus .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 57px;
	height: 57px;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' stroke='%23fff'%3E%3Cpath d='M8.5 0v17M0 8.5h17'/%3E%3C/svg%3E") no-repeat center / 17px, var(--hg-gold-dark);
	transition: transform 0.3s ease;
}

.hg-plus .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--contrast);
}

.hg-plus .wp-block-button__link:hover::after {
	transform: rotate(90deg);
}

@media (max-width: 781px) {
	.hg-conoce {
		padding-bottom: 3rem;
		background: #181818;
	}

	.hg-conoce__title {
		margin-top: 0 !important;
		font-size: 15vw;
	}

	.hg-gallery {
		display: grid;
		gap: 0.5rem;
		height: auto;
		margin-top: 3rem !important;
		padding-inline: var(--wp--preset--spacing--40);
	}

	.hg-gallery > figure,
	.hg-gallery__link {
		position: static;
		width: auto;
		height: auto;
	}

	.hg-gallery > figure {
		aspect-ratio: 4 / 3;
	}

	.hg-gallery__link {
		margin-top: 0.5rem !important;
	}

	.hg-manifesto {
		padding-top: 5rem;
		padding-bottom: 4rem;
	}

	.hg-silk--left {
		top: -1rem;
		left: -32%;
		width: 55%;
		height: 9rem;
	}

	.hg-silk--right {
		top: -2.5rem;
		left: 78%;
		width: 45%;
		height: 9rem;
	}

	.hg-manifesto__title {
		max-width: 22rem;
	}

	.hg-steps {
		flex-wrap: wrap !important;
		max-width: 26rem;
		margin-top: 3rem !important;
		row-gap: 2rem !important;
	}

	.hg-steps > .hg-step {
		flex-basis: calc(50% - 1rem) !important;
		translate: none !important;
	}

	.hg-manifesto::after {
		display: none;
	}

	.hg-window .wp-block-cover__image-background {
		inset: 0;
		width: 100%;
		height: 100%;
		transform: none;
	}

	.hg-window {
		padding-top: 8rem !important;
		padding-bottom: 6rem !important;
	}

	.hg-window figure.hg-window__key {
		width: 160px;
		height: 105px;
	}

	.hg-aside {
		display: block;
		width: auto;
		margin: 0 0 0.5rem;
		text-align: center !important;
		word-spacing: normal;
	}
}

/* ---------- Novedades + imagen final (Figma y = 7629) ---------- */
.hg-tail {
	--hg-villa-h: max(260px, calc(520 * var(--hg-u)));
	--hg-band-h: max(56px, calc(88 * var(--hg-u)));
	position: relative;
	margin: 0 !important;
}

.hg-news {
	position: sticky;
	top: 0;
	/* Por encima del pie: la franja (y su enlace a Instagram) sigue visible y clicable al final. */
	z-index: 5;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--hg-band-h);
	margin: 0 !important;
	padding-block: 0.75rem;
	background: #181818;
	color: var(--wp--preset--color--base);
}

.hg-news p {
	margin: 0;
}

.hg-news a {
	color: var(--hg-gold-dark);
	text-decoration: none;
}

.hg-villa {
	/* Franja negra e imagen se quedan fijas juntas en cuanto la franja llega arriba;
	 * el pie sube por encima de las dos. */
	position: sticky;
	top: var(--hg-band-h);
	z-index: 1;
	height: var(--hg-villa-h);
	margin: 0 !important;
}

.hg-villa img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Pie ----------
 * Va detrás de la imagen final y, al seguir bajando, sube por encima de ella.
 * Degradado C88A02 del 0 al 100 % y desenfoque progresivo (0 → 90) como en el Figma.
 */
.hg-footer-sticky {
	position: relative;
	z-index: 4;
	margin-top: 0 !important;
}

.site-footer {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	min-height: calc(600 * var(--hg-u));
	padding: calc(230 * var(--hg-u)) calc(57 * var(--hg-u)) calc(57 * var(--hg-u));
	background: linear-gradient(rgb(200 138 2 / 0), #C88A02);
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.5;
	text-transform: uppercase;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-backdrop-filter: blur(45px);
	backdrop-filter: blur(45px);
	-webkit-mask-image: linear-gradient(transparent, #000 45%);
	mask-image: linear-gradient(transparent, #000 45%);
}

.site-footer > * {
	margin-block: 0;
}

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

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__logo img {
	width: 184px !important;
	height: auto;
}

.site-footer__social {
	gap: 19px !important;
	margin-top: calc(28 * var(--hg-u)) !important;
}

.site-footer__social .wp-social-link {
	color: #181818 !important;
	background: none !important;
}

.site-footer__social .wp-social-link svg {
	width: 19px;
	height: 19px;
}

.site-footer__cols {
	align-items: flex-end !important;
	margin-top: calc(110 * var(--hg-u)) !important;
}

.site-footer__cols p {
	margin: 0;
}

@media (max-width: 781px) {
	.site-footer {
		padding: 5rem var(--wp--preset--spacing--40) 2.5rem;
		text-align: center;
	}

	.site-footer__social {
		margin-top: 1.5rem !important;
	}

	.site-footer__cols {
		gap: 1.25rem !important;
		margin-top: 2.5rem !important;
	}

	.site-footer__cols .has-text-align-right {
		text-align: center !important;
	}
}

/* El pie es casi tan alto como la pantalla: se puede seguir bajando y el amarillo
 * sube hasta tapar casi toda la imagen (solo queda una franja de cielo arriba).
 * Logo, redes y columnas se quedan abajo; lo que crece es el degradado de arriba. */
.hg-tail .site-footer {
	min-height: max(calc(600 * var(--hg-u)), 100vh);
	display: flex;
	flex-direction: column;
}

.hg-tail .site-footer__logo {
	margin-top: auto !important;
}

/* ---------- Pop up Solicita acceso (Figma 924.54 x 879) ---------- */
.has-modal {
	overflow: hidden;
}

.hg-modal {
	--hg-cut: 34px;
	width: min(924.54px, calc(100vw - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	background: none;
	color: #181818;
	overflow: visible;
}

.hg-modal__box::-webkit-scrollbar {
	display: none;
}

.hg-modal::backdrop {
	background: rgb(24 24 24 / 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.hg-modal[open] {
	animation: hg-modal-in 0.35s ease;
}

@keyframes hg-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* Caja blanca con esquinas recortadas y borde negro de 1 px. */
.hg-modal__box {
	position: relative;
	box-sizing: border-box;
	max-height: calc(100dvh - 2rem);
	padding: 62px 103px 98px;
	overflow-y: auto;
	scrollbar-width: none;
	background: #000;
	clip-path: polygon(var(--hg-cut) 0, calc(100% - var(--hg-cut)) 0, 100% var(--hg-cut), 100% calc(100% - var(--hg-cut)), calc(100% - var(--hg-cut)) 100%, var(--hg-cut) 100%, 0 calc(100% - var(--hg-cut)), 0 var(--hg-cut));
	isolation: isolate;
}

.hg-modal__box::before {
	content: "";
	position: absolute;
	inset: 1px;
	z-index: -1;
	background: #fff;
	clip-path: polygon(calc(var(--hg-cut) - 0.41px) 0, calc(100% - var(--hg-cut) + 0.41px) 0, 100% calc(var(--hg-cut) - 0.41px), 100% calc(100% - var(--hg-cut) + 0.41px), calc(100% - var(--hg-cut) + 0.41px) 100%, calc(var(--hg-cut) - 0.41px) 100%, 0 calc(100% - var(--hg-cut) + 0.41px), 0 calc(var(--hg-cut) - 0.41px));
}

/* Aspa: dos líneas cruzadas de 88.87 x 24. */
.hg-modal__close {
	position: absolute;
	top: 55px;
	right: calc(924.54px - 788px - 88.87px);
	width: 88.87px;
	height: 24px;
	padding: 0;
	border: 0;
	background: url("../images/icons/cerrar.svg") no-repeat center / contain;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.hg-modal__close:hover {
	transform: scaleX(0.85);
}

.hg-modal__head {
	position: relative;
	margin: 0 0 76px !important;
}

.hg-modal__head > * {
	margin: 0 !important;
}

.hg-modal__title {
	font-size: 127.83px;
	line-height: 149px;
}

.hg-modal__eyebrow {
	position: absolute;
	top: 68px;
	left: 0;
	right: 0;
	margin-left: 37px !important;
}

/* Formulario: etiqueta sobre el borde, como un fieldset. */
.hg-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px 18px;
}

.hg-field {
	position: relative;
	display: block;
}

.hg-field--email,
.hg-field--mensaje,
.hg-form__submit,
.hg-form__status {
	grid-column: 1 / -1;
}

.hg-field > span {
	position: absolute;
	top: 0;
	left: 13px;
	padding: 0 10px;
	background: #fff;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 15px;
	text-transform: uppercase;
	transform: translateY(-50%);
}

.hg-field input,
.hg-field textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 66px;
	margin: 0;
	padding: 6px 23px 0;
	border: 1px solid #181818;
	border-radius: 0;
	background: #fff;
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 15px;
	outline: 0;
}

.hg-field textarea {
	height: 213px;
	padding-top: 27px;
	resize: vertical;
}

.hg-field input::placeholder,
.hg-field textarea::placeholder {
	color: rgb(24 24 24 / 0.3);
	text-transform: uppercase;
}

.hg-field input:focus,
.hg-field textarea:focus {
	border-color: var(--hg-gold-dark);
	box-shadow: inset 0 0 0 1px var(--hg-gold-dark);
}

.was-validated .hg-field :invalid {
	border-color: #b3261e;
}

.hg-hp {
	position: absolute;
	left: -9999px;
}

.hg-form__submit {
	height: 66.63px;
	margin-top: -7px;
	border: 0;
	background: #181818;
	color: #fff;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: 22.5px;
	font-style: italic;
	font-weight: 200;
	line-height: 21px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.hg-form__submit:disabled {
	opacity: 0.5;
	cursor: wait;
}

.hg-form__status {
	margin: 0;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
}

.hg-form__status:empty {
	display: none;
}

@media (max-width: 781px) {
	.hg-modal {
		--hg-cut: 20px;
	}

	.hg-modal__box {
		padding: 72px 1.25rem 2.5rem;
	}

	.hg-modal__close {
		top: 26px;
		right: 22px;
		width: 56px;
		height: 16px;
	}

	.hg-modal__head {
		margin-bottom: 2.5rem !important;
	}

	.hg-modal__title {
		font-size: 84px;
		line-height: 100px;
	}

	.hg-modal__eyebrow {
		top: 44px;
		margin-left: 24px !important;
	}

	.hg-form {
		grid-template-columns: 1fr;
	}

	.hg-field textarea {
		height: 150px;
	}
}

/* Más pequeño que en el Figma (78 %) y aún menos en pantallas bajas, para que quepa sin scroll. */
@media (min-width: 782px) {
	.hg-modal {
		zoom: 0.78;
		max-height: none;
	}

	.hg-modal .hg-modal__box {
		max-height: none;
		overflow: visible;
	}
}

@media (min-width: 782px) and (max-height: 760px) {
	.hg-modal {
		zoom: 0.68;
	}
}

@media (min-width: 782px) and (max-height: 660px) {
	.hg-modal {
		zoom: 0.58;
	}
}

.hg-modal__box:focus {
	outline: 0;
}

/* ---------- Hover de botones ----------
 * Barrido dorado #C88A02 de izquierda a derecha, con el texto abriéndose un poco
 * y un brillo que cruza el botón. Aplica a todos los botones rectangulares.
 */
.wp-element-button:not(.hg-orbit .wp-block-button__link, .hg-plus .wp-block-button__link),
.hg-form__submit {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image: linear-gradient(var(--hg-gold-dark), var(--hg-gold-dark));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.35s ease, letter-spacing 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.wp-element-button:not(.hg-orbit .wp-block-button__link, .hg-plus .wp-block-button__link)::after,
.hg-form__submit::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -60%;
	z-index: -1;
	width: 40%;
	background: linear-gradient(105deg, transparent, rgb(255 255 255 / 0.35), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}

.wp-element-button:not(.hg-orbit .wp-block-button__link, .hg-plus .wp-block-button__link):hover,
.wp-element-button:not(.hg-orbit .wp-block-button__link, .hg-plus .wp-block-button__link):focus-visible,
.hg-form__submit:hover,
.hg-form__submit:focus-visible {
	background-size: 100% 100%;
	color: var(--wp--preset--color--base) !important;
}

.wp-element-button:not(.hg-orbit .wp-block-button__link, .hg-plus .wp-block-button__link):hover::after,
.hg-form__submit:hover::after {
	left: 130%;
	transition: left 0.8s ease 0.15s;
}

/* Círculos: al pasar el cursor el texto en arco gira alrededor del disco. */
.hg-orbit__arc {
	transform-origin: 50% 50%;
	transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hg-orbit .wp-block-button__link:hover .hg-orbit__arc,
.hg-orbit .wp-block-button__link:focus-visible .hg-orbit__arc {
	transform: rotate(-18deg);
}

.hg-plus .wp-block-button__link:hover::after {
	transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
	.wp-element-button,
	.hg-form__submit,
	.wp-element-button::after,
	.hg-form__submit::after,
	.hg-orbit__arc {
		transition: none !important;
	}
}

/* ---------- Efectos de entrada ----------
 * Lentos y con una curva muy suave, para que la navegación se sienta pausada.
 * Solo se activan cuando el JS está listo (sin JS todo se ve normal).
 */
:root {
	--hg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hg-slow: 1.4s;
}

html {
	scroll-behavior: smooth;
}

.hg-reveal-ready [data-reveal] {
	transition-delay: var(--hg-delay, 0ms);
	transition-timing-function: var(--hg-ease);
}

.hg-reveal-ready [data-reveal]:not(.is-in) {
	transition-duration: 0s !important;
	transition-delay: 0s !important;
}

/* Sube y aparece. */
.hg-reveal-ready [data-reveal="up"] {
	opacity: 0;
	transform: translateY(36px);
	transition-property: opacity, transform;
	transition-duration: var(--hg-slow);
}

/* Solo aparece. */
.hg-reveal-ready [data-reveal="fade"],
.hg-reveal-ready [data-reveal="fade-slow"] {
	opacity: 0;
	transition-property: opacity;
	transition-duration: var(--hg-slow);
}

.hg-reveal-ready [data-reveal="fade-slow"] {
	transition-duration: 2.4s;
}

/* Titulares: entran desenfocados, con las letras más abiertas, y se asientan. */
.hg-reveal-ready [data-reveal="blur"] {
	opacity: 0;
	filter: blur(14px);
	transform: translateY(20px);
	transition-property: opacity, filter, transform;
	transition-duration: 1.8s;
}

/* Hero: secuencia al cargar la página. */
.hg-reveal-ready [data-reveal="hero"] {
	opacity: 0;
	filter: blur(10px);
	transform: translateY(24px);
	transition-property: opacity, filter, transform;
	transition-duration: 1.6s;
	transition-delay: calc(var(--hg-delay) + 150ms);
}

.hg-reveal-ready .hg-hero__title[data-reveal="hero"] {
	letter-spacing: 0.05em;
	transition-property: opacity, filter, transform, letter-spacing;
	transition-duration: 2.2s;
}

.hg-reveal-ready .hg-hero .hg-vline[data-reveal="hero"] {
	filter: none;
	transform: scaleY(0);
	transform-origin: top;
}

/* Líneas que se dibujan. */
.hg-reveal-ready [data-reveal="line-y"] {
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 1.6s var(--hg-ease);
}

.hg-reveal-ready [data-reveal="line-x"] {
	transform: scaleX(0);
	transition: transform 1.6s var(--hg-ease);
}

/* Fotos: se descubren de abajo arriba como un telón, con un zoom que se relaja. */
.hg-reveal-ready [data-reveal="curtain"] {
	clip-path: inset(100% 0 0 0);
	transition: clip-path 1.6s var(--hg-ease);
	transition-delay: var(--hg-delay);
}

.hg-reveal-ready [data-reveal="curtain"] img {
	transform: scale(1.18);
	transition: transform 2.6s var(--hg-ease);
	transition-delay: var(--hg-delay);
}

/* Firma: se "escribe" de izquierda a derecha. */
.hg-reveal-ready [data-reveal="write"] {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 2.2s cubic-bezier(0.45, 0, 0.25, 1) 0.6s;
}

/* Llave: baja girando suavemente. */
.hg-reveal-ready [data-reveal="key"] {
	opacity: 0;
	transform: translateY(-30px) rotate(-14deg) scale(0.92);
	transition: opacity 1.6s var(--hg-ease), transform 2.2s var(--hg-ease);
}

/* Pasos ligados al scroll: la sección se queda fija, la línea dorada se rellena
 * según se baja y cada paso aparece cuando la línea llega a él.
 * El JS escribe --hg-arc-r (recorte derecho de la línea) y --hg-sp (0–1 por paso). */
.hg-pin {
	position: relative;
}

.hg-pin > .hg-manifesto {
	position: sticky;
	top: min(0px, 100vh - var(--hg-pin-h, 100vh));
}

.is-scrubbed.hg-manifesto::after {
	clip-path: inset(0 var(--hg-arc-r, 0px) 0 0);
}

.is-scrubbed .hg-step {
	opacity: var(--hg-sp, 0);
	transform: translateY(calc((1 - var(--hg-sp, 0)) * 18px));
	filter: blur(calc((1 - var(--hg-sp, 0)) * 6px));
}

.is-scrubbed .hg-step::after {
	transform: scale(var(--hg-dot, 0));
}


/* Estado final (las telas conservan su giro: solo cambian de opacidad). */
.hg-reveal-ready [data-reveal].is-in {
	opacity: 1;
	filter: none;
}

/* Solo los efectos de recorte terminan en inset(0); el resto sin recorte (no corta tildes ni trazos). */
.hg-reveal-ready [data-reveal="curtain"].is-in,
.hg-reveal-ready [data-reveal="write"].is-in {
	clip-path: inset(0);
}

.hg-reveal-ready [data-reveal]:not([data-reveal^="fade"]).is-in {
	transform: none;
}

.hg-reveal-ready .hg-hero__title[data-reveal="hero"].is-in {
	letter-spacing: 0;
}

.hg-reveal-ready [data-reveal="curtain"].is-in img {
	transform: none;
}

.hg-reveal-ready .hg-manifesto[data-reveal="arc"].is-in::after {
	clip-path: inset(0);
}

/* Las telas flotan muy despacio una vez visibles. */
.hg-silk.is-in img {
	animation: hg-float 9s ease-in-out infinite alternate;
}

.hg-silk--right.is-in img {
	animation-duration: 11s;
	animation-delay: -3s;
}

@keyframes hg-float {
	from {
		transform: translate(0, 0) rotate(0deg);
	}

	to {
		transform: translate(10px, -16px) rotate(1.5deg);
	}
}

/* La imagen del hero se asienta al cargar. */
.hg-reveal-ready .hg-hero .wp-block-cover__image-background {
	animation: hg-settle 3.2s var(--hg-ease) both;
}

@keyframes hg-settle {
	from {
		opacity: 0.4;
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Firma del hero: sin desenfoque (rasterizaba la caligrafía y cortaba los trazos de abajo).
 * Se "escribe" de izquierda a derecha con una máscara suave. */
.hg-reveal-ready .hg-hero__signature[data-reveal="hero"],
.hg-reveal-ready .hg-sell-hero__script[data-reveal="hero"] {
	filter: none;
	transform: none;
	opacity: 1;
	-webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
	mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
	-webkit-mask-size: 250% 100%;
	mask-size: 250% 100%;
	-webkit-mask-position: 100% 0;
	mask-position: 100% 0;
	/* Ritmo de pluma: casi constante y con el borde de la máscara estrecho, como si se escribiera. */
	transition: -webkit-mask-position 3.4s cubic-bezier(0.35, 0.1, 0.55, 1), mask-position 3.4s cubic-bezier(0.35, 0.1, 0.55, 1);
	/* Portada: se escribe cuando HOUSINGO ya ha aparecido. */
	transition-delay: 600ms;
}

.hg-reveal-ready .hg-hero__signature[data-reveal="hero"].is-in,
.hg-reveal-ready .hg-sell-hero__script[data-reveal="hero"].is-in {
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
}

/* La caja de la firma deja sitio a los trazos que bajan de la línea. */
.hg-hero__signature {
	padding-bottom: 0.25em;
	margin-bottom: -0.25em !important;
}

.hg-silk {
	will-change: translate, rotate;
}

.hg-write-box {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	margin-top: calc(13 * var(--hg-u)) !important;
}

.hg-write-box > figure {
	margin: 0 !important;
}

/* ---------- Menú lateral (Figma 1072 x 1090 sobre 1920) ---------- */
.hg-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.hg-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(24 24 24 / 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.7s var(--hg-ease);
}

.hg-menu__panel {
	position: absolute;
	inset: 0 auto 0 0;
	box-sizing: border-box;
	width: min(1072px, 55.8vw);
	padding: 0 0 0 245px;
	overflow-y: auto;
	background: #fff;
	border-right: 1px solid #000;
	color: #181818;
	transform: translateX(-100%);
	transition: transform 0.8s var(--hg-ease);
}

.hg-menu.is-open .hg-menu__backdrop {
	opacity: 1;
}

.hg-menu.is-open .hg-menu__panel {
	transform: none;
}

.hg-menu__close {
	position: absolute;
	top: 30px;
	left: 56px;
	width: 90px;
	height: 25px;
	padding: 0;
	border: 0;
	background: url("../images/icons/cerrar.svg") no-repeat center / contain;
	cursor: pointer;
	transition: transform 0.4s var(--hg-ease);
}

.hg-menu__close:hover {
	transform: scaleX(0.85);
}

.hg-menu__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 28px 0 60px;
	box-sizing: border-box;
}

.hg-menu__inner > * {
	margin: 0 !important;
}

.hg-menu__logo img {
	display: block;
	width: 118px !important;
	height: auto;
}

/* Enlaces en Pangaia 47.94/33 con numeración dorada 01., 02.… */
.hg-menu__nav {
	margin-top: 120px !important;
	counter-reset: hg-menu;
}

.hg-menu__nav .wp-block-navigation__container {
	gap: 0 !important;
}

.hg-menu__nav .wp-block-navigation-item {
	position: relative;
	counter-increment: hg-menu;
}

.hg-menu__nav .wp-block-navigation-item::before {
	content: counter(hg-menu, decimal-leading-zero) ".";
	position: absolute;
	left: -58px;
	bottom: 6px;
	color: var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.hg-menu__nav .wp-block-navigation-item__content {
	padding: 0 !important;
	color: #181818;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: clamp(30px, 2.5vw, 47.94px);
	font-weight: 200;
	line-height: 1.02;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.4s ease, letter-spacing 0.6s var(--hg-ease);
}

.hg-menu__nav .wp-block-navigation-item__content:hover {
	color: var(--hg-gold-dark);
	letter-spacing: 0.02em;
}

.hg-menu__contact {
	margin-top: auto !important;
	padding-top: 60px;
	line-height: 1.45;
}

.hg-menu__contact a {
	color: inherit;
	text-decoration: none;
}

.hg-menu__social {
	gap: 22px !important;
	margin-top: 16px !important;
}

.hg-menu__social .wp-social-link {
	color: #181818 !important;
	background: none !important;
}

.hg-menu__social .wp-social-link svg {
	width: 17px;
	height: 17px;
}

/* Entrada escalonada de los enlaces al abrir. */
.hg-menu__inner > *,
.hg-menu__nav .wp-block-navigation-item {
	opacity: 0;
	transform: translateX(-24px);
	transition: opacity 0.6s var(--hg-ease), transform 0.8s var(--hg-ease);
}

.hg-menu.is-open .hg-menu__inner > *,
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item {
	opacity: 1;
	transform: none;
}

.hg-menu.is-open .hg-menu__nav {
	transition-delay: 0.25s;
}

.hg-menu.is-open .hg-menu__logo {
	transition-delay: 0.2s;
}

.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(1) { transition-delay: 0.3s; }
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(2) { transition-delay: 0.36s; }
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(3) { transition-delay: 0.42s; }
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(4) { transition-delay: 0.48s; }
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(5) { transition-delay: 0.54s; }
.hg-menu.is-open .hg-menu__nav .wp-block-navigation-item:nth-child(6) { transition-delay: 0.6s; }

.hg-menu.is-open .hg-menu__contact,
.hg-menu.is-open .hg-menu__social {
	transition-delay: 0.65s;
}

@media (max-width: 781px) {
	.hg-menu__panel {
		width: 100%;
		padding-left: 70px;
	}

	.hg-menu__close {
		top: 26px;
		left: 22px;
		width: 56px;
		height: 16px;
	}

	.hg-menu__logo {
		padding-left: 30px;
	}

	.hg-menu__nav .wp-block-navigation-item::before {
		left: -40px;
	}
}



/* ---------- Cabecera clara (páginas con fondo blanco) ---------- */
.site-header--light {
	background: var(--wp--preset--color--base);
	border-bottom-color: rgb(24 24 24 / 0.35);
}

.site-header__logo a {
	display: block;
}

/* ---------- Listado Comprar / Alquilar (Figma "Comprar", 1920) ---------- */
.hg-listing {
	--hg-card-w: calc(500 * var(--hg-u));
	--hg-cut: calc(22 * var(--hg-u));
	position: relative;
	margin: 0 !important;
	padding: calc(52 * var(--hg-u)) calc(59 * var(--hg-u)) 0 calc(280 * var(--hg-u));
}

.hg-listing > * {
	margin-block: 0;
}

.hg-listing__title {
	margin: 0 0 calc(44 * var(--hg-u)) calc(30 * var(--hg-u)) !important;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 15px;
	text-transform: uppercase;
}

.hg-listing__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: calc(150 * var(--hg-u)) calc(41 * var(--hg-u));
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.hg-listing__grid > li {
	margin: 0 !important;
}

.hg-listing .hg-card__title {
	margin-top: calc(40 * var(--hg-u)) !important;
	min-height: 0;
}

.hg-listing .hg-card__title a {
	color: inherit;
	text-decoration: none;
}

.hg-card__price {
	margin-top: calc(12 * var(--hg-u)) !important;
	font-weight: 600;
}

.hg-listing .hg-card__specs {
	margin-top: calc(22 * var(--hg-u)) !important;
}

/* Etiqueta vertical a la izquierda, fija mientras se recorre el listado. */
.hg-side-label {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(79 * var(--hg-u));
	width: 15px;
	margin: 0 !important;
}

.hg-side-label__inner {
	position: sticky;
	top: calc(100vh - 440px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

/* Línea vertical encima del texto. */
.hg-side-label__inner::before {
	content: "";
	width: 1px;
	height: 233px;
	background: #181818;
}

/* Texto en vertical, leyéndose de abajo arriba. */
.hg-side-label span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 15px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Llamada final: texto 888, línea 96, botón oscuro 271 x 71. */
.hg-cta {
	padding: calc(240 * var(--hg-u)) 0 calc(260 * var(--hg-u));
	margin-left: calc(-220 * var(--hg-u)) !important;
}

.hg-cta > * {
	margin-block: 0;
}

.hg-cta__text {
	max-width: 888px;
	margin-inline: auto !important;
	line-height: 1.25;
}

.hg-cta__line {
	width: 1px;
	height: 96px !important;
	margin: 42px auto 0 !important;
	background: #181818;
}

.hg-cta .wp-block-buttons {
	margin-top: 40px !important;
}

.hg-btn-dark .wp-block-button__link {
	min-width: 271px;
	background-color: #181818;
	color: var(--wp--preset--color--base);
}

@media (max-width: 1100px) {
	.hg-listing {
		--hg-card-w: 42vw;
		padding-left: calc(140 * var(--hg-u));
	}

	.hg-listing__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 4rem 1.5rem;
	}
}

@media (max-width: 781px) {
	.hg-listing {
		--hg-card-w: 100%;
		--hg-cut: 14px;
		padding: 2rem var(--wp--preset--spacing--40) 0;
	}

	.hg-listing__title {
		margin: 0 0 1.5rem !important;
	}

	.hg-listing__grid {
		grid-template-columns: 1fr;
		gap: 3.5rem;
	}

	.hg-listing .hg-card__title {
		margin-top: 1.25rem !important;
	}

	.hg-side-label {
		display: none;
	}

	.hg-cta {
		margin-left: 0 !important;
		padding: 5rem 0;
	}
}

/* Hover del menú de la cabecera: línea dorada que crece desde el centro y letras que se abren. */
.site-header__nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 6px;
	transition: color 0.4s ease, letter-spacing 0.5s var(--hg-ease);
}

.site-header__nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--hg-gold-dark);
	transform: scaleX(0);
	transition: transform 0.5s var(--hg-ease);
}

.site-header__nav .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: var(--hg-gold-dark);
	letter-spacing: 0.1em;
}

.site-header__nav .wp-block-navigation-item__content:hover::after,
.site-header__nav .wp-block-navigation-item__content:focus-visible::after,
.site-header__nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* ---------- Contacto (Figma "Contacto", 1920) ---------- */
.page-template-default .wp-site-blocks > main,
.hg-contact-hero,
.hg-contact-info,
.hg-map {
	margin-block: 0 !important;
}

/* Imagen hasta y = 1362 con borde inferior curvo (blanco que sube hasta y = 1237). */
.hg-contact-hero {
	min-height: calc(1284 * var(--hg-u)) !important;
	padding: calc(63 * var(--hg-u)) var(--wp--preset--spacing--40) 0 !important;
	overflow: hidden;
}

.hg-contact-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: calc(1159 * var(--hg-u));
	left: 50%;
	width: calc(3547 * var(--hg-u));
	height: calc(1572 * var(--hg-u));
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	transform: translateX(-50%);
}

.hg-contact-hero .wp-block-cover__inner-container {
	z-index: 2;
}

/* Caja blanca 888 x 973. */
.hg-contact-box {
	box-sizing: border-box;
	width: min(888px, 100%);
	margin: 0 auto !important;
	padding: 72px 84px 71px;
	background: var(--wp--preset--color--base);
	color: #181818;
}

.hg-contact-box > * {
	margin-block: 0;
}

.hg-contact-box__title {
	max-width: 720px;
	margin-inline: auto !important;
	font-size: clamp(40px, 4.2vw, 80.85px);
	line-height: 0.861;
	text-transform: uppercase;
}

.hg-contact-box__text {
	max-width: 331px;
	margin: 53px auto 0 !important;
}

.hg-contact-box .hg-form {
	margin-top: 63px;
	gap: 27px 17px;
}

.hg-contact-box .hg-form__submit {
	margin-top: -6px;
}

/* Datos de contacto: tres columnas en 1174 px. */
.hg-contact-info {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
	width: min(1174px, 100% - 2 * var(--wp--preset--spacing--40));
	margin: calc(28 * var(--hg-u)) auto 0 !important;
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 21px;
	text-align: center;
	text-transform: uppercase;
}

.hg-contact-info > * {
	margin: 0 !important;
}

.hg-contact-info__col {
	min-width: 196px;
}

.hg-contact-info__col > * {
	margin: 0 !important;
}

.hg-contact-info a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.hg-contact-info a:hover {
	color: var(--hg-gold-dark);
}

.hg-contact-info__label {
	margin-bottom: 13px !important;
	color: var(--hg-gold-dark);
	font-weight: 500;
	line-height: 15px;
}

.hg-contact-info__label::after {
	content: "";
	display: block;
	width: 13px;
	height: 1px;
	margin: 6px auto 0;
	background: currentColor;
}

/* Mapa 1226 x 631 que se funde con el blanco. */
.hg-map {
	position: relative;
	z-index: 1;
	width: min(1226px, 100%);
	height: calc(631 * var(--hg-u) + 120px);
	max-height: 631px;
	margin: calc(82 * var(--hg-u)) auto calc(80 * var(--hg-u)) !important;
	background: var(--wp--preset--color--base);
}

/* Degradado radial del Figma (blanco 0 % hasta el 42 %, blanco 100 % en el borde):
 * va sobre el mapa pero por debajo de las chinchetas, que se ven siempre enteras. */
.hg-map__fade {
	position: absolute;
	pointer-events: none;
	background: radial-gradient(closest-side, rgb(255 255 255 / 0) 42%, #fff 100%);
}

.hg-map .leaflet-tile-pane {
	filter: grayscale(1) contrast(0.85) brightness(1.08);
	opacity: 0.42;
}

.hg-map .leaflet-control-attribution {
	font-size: 9px;
	background: transparent;
}

.hg-map-pin span {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 9.5'%3E%3Cpath d='M1.5 8.2 8.75 1.8 16 8.2' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / 17.5px 9.5px, var(--hg-gold-dark);
	transition: transform 0.4s var(--hg-ease);
}

.hg-map-pin:hover span {
	transform: scale(1.12);
}

.hg-map__popup .leaflet-popup-content-wrapper {
	border-radius: 0;
	background: #181818;
	box-shadow: none;
	color: #fff;
}

.hg-map__popup .leaflet-popup-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 107px !important;
	margin: 13px 19px 15px;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 9.47px;
	letter-spacing: 0.05em;
	line-height: 1.15;
	text-transform: uppercase;
}

.hg-map__popup .leaflet-popup-tip {
	background: #181818;
	box-shadow: none;
}

@media (max-width: 781px) {
	.hg-contact-hero {
		min-height: 0 !important;
		padding: 2rem 1rem 6rem !important;
	}

	.hg-contact-hero::after {
		top: auto;
		bottom: -1460px;
		width: 300%;
		height: 1500px;
	}

	.hg-contact-box {
		padding: 2.5rem 1.25rem;
	}

	.hg-contact-box__text {
		margin-top: 1.5rem !important;
	}

	.hg-contact-box .hg-form {
		margin-top: 2rem;
	}

	.hg-contact-info {
		flex-direction: column;
		gap: 2rem;
		margin-top: 2rem !important;
	}

	.hg-map {
		height: 420px;
		margin-block: 2rem 3rem !important;
	}
}

/* ---------- Sobre nosotros (Figma "Quiénes somos", 1920) ---------- */
.hg-page > * + * {
	margin-block-start: 0 !important;
}

.hg-about-hero {
	position: relative;
	height: calc(1205 * var(--hg-u));
	margin: 0 !important;
}

.hg-about-hero > * {
	margin: 0 !important;
}

.hg-about-hero__img {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: calc(996 * var(--hg-u));
	overflow: hidden;
}

.hg-about-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* "Casi una DÉCADA / de CONFIANZA / INMOBILIARIA" (Pangaia 153.69). */
.hg-about-hero__title {
	position: absolute;
	z-index: 2;
	top: calc(202 * var(--hg-u));
	left: 0;
	font-size: calc(153.69 * var(--hg-u));
	line-height: 0.93;
	text-transform: uppercase;
	white-space: nowrap;
}

.hg-about-hero__title > span {
	position: relative;
	display: block;
}

.hg-l1 { padding-left: calc(125 * var(--hg-u)); }
.hg-l2 { padding-left: calc(286 * var(--hg-u)); }
.hg-l3 { padding-left: calc(60 * var(--hg-u)); }

.hg-about-hero__title small {
	position: absolute;
	top: 0.22em;
	width: 2.6em;
	margin-left: calc(-2.6em - 0.22em);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: max(9px, calc(12 * var(--hg-u)));
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
}

.hg-l1 small {
	top: calc(20 * var(--hg-u));
	margin-left: calc(-59 * var(--hg-u));
	width: calc(31 * var(--hg-u));
	font-size: max(9px, calc(12 * var(--hg-u)));
}

.hg-l2 small {
	top: calc(12 * var(--hg-u));
	margin-left: calc(-45 * var(--hg-u));
	width: calc(18 * var(--hg-u));
}

.hg-about-hero__text {
	position: absolute;
	top: calc(895 * var(--hg-u));
	left: calc(618 * var(--hg-u));
	width: 342px;
	max-width: calc(342 * var(--hg-u) + 40px);
	line-height: 1.25;
}

/* Patrimonio familiar */
.hg-family {
	margin: 0 !important;
	padding-top: calc(197 * var(--hg-u));
}

.hg-family > * {
	margin-block: 0;
}

.hg-family__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: max(52px, calc(122.12 * var(--hg-u)));
	line-height: 0.934;
	text-transform: uppercase;
}

.hg-family__script {
	margin-bottom: -0.32em;
	/* La caligrafía se inclina a la derecha: se desplaza a la izquierda para centrarla sobre FAMILIAR. */
	padding-left: 0;
	translate: -0.04em 0;
	color: #181818;
	font-family: var(--wp--preset--font-family--altesse);
	font-size: 1.089em;
	font-weight: 400;
	line-height: 1.37;
	text-transform: none;
}

.hg-founders {
	display: grid;
	grid-template-columns: calc(231 * var(--hg-u)) calc(502 * var(--hg-u)) calc(502 * var(--hg-u)) calc(231 * var(--hg-u));
	justify-content: center;
	gap: calc(38 * var(--hg-u)) calc(30 * var(--hg-u));
	margin-top: calc(32 * var(--hg-u)) !important;
	padding-left: calc(-40 * var(--hg-u));
}

.hg-founders > * {
	margin: 0 !important;
}

.hg-founder__photo {
	aspect-ratio: 502 / 629;
	overflow: hidden;
}

.hg-founder__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-founder__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: calc(72 * var(--hg-u));
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

.hg-founder__info > * {
	margin: 0 !important;
}

.hg-founder__name {
	font-weight: 600;
}

/* Noticias: imagen nítida apaisada, cortes solo en dos esquinas y fecha dorada. */
.hg-news-section {
	--hg-cut: calc(22 * var(--hg-u));
	margin: 0 !important;
	padding: calc(240 * var(--hg-u)) calc(150 * var(--hg-u)) calc(200 * var(--hg-u));
}

.hg-news-section > * {
	margin-block: 0;
}

.hg-news-section__title {
	margin-top: 14px !important;
	font-size: max(40px, calc(80 * var(--hg-u)));
	line-height: 1;
	text-transform: uppercase;
}

.hg-news-section__title::after {
	content: "";
	display: block;
	width: 1px;
	height: 64px;
	margin: 32px auto 0;
	background: var(--hg-gold-dark);
}

.hg-news-query {
	margin-top: calc(70 * var(--hg-u)) !important;
}

.hg-news-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: calc(90 * var(--hg-u)) calc(48 * var(--hg-u));
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.hg-news-grid > li {
	margin: 0 !important;
}

.hg-news-card > * {
	margin-block: 0;
}

.hg-news-card__media {
	position: relative;
	aspect-ratio: 500 / 380;
	clip-path: polygon(0 0, calc(100% - var(--hg-cut)) 0, 100% var(--hg-cut), 100% 100%, var(--hg-cut) 100%, 0 calc(100% - var(--hg-cut)));
	background: #eee;
}

.hg-news-card__img {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	overflow: hidden;
}

.hg-news-card__img a,
.hg-news-card__img img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.hg-news-card__img img {
	transition: transform 1.2s var(--hg-ease);
}

.hg-news-card:hover .hg-news-card__img img {
	transform: scale(1.06);
}

.hg-news-card__date {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 8px 14px;
	background: var(--hg-gold-dark);
	color: #fff;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hg-news-card__title {
	margin-top: calc(34 * var(--hg-u)) !important;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(22px, calc(30.94 * var(--hg-u)));
	font-weight: 200;
	line-height: 1.067;
	text-transform: uppercase;
}

.hg-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.hg-news-card__excerpt {
	margin-top: 14px !important;
	font-size: 14px;
	line-height: 1.55;
	color: rgb(24 24 24 / 0.75);
}

.hg-news-card__excerpt p {
	margin: 0;
}

.hg-news-card__more {
	display: inline-flex;
	gap: 0.6em;
	margin-top: 16px !important;
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid var(--hg-gold-dark);
	padding-bottom: 3px;
	transition: gap 0.4s var(--hg-ease), color 0.3s ease;
}

.hg-news-card__more::after {
	content: "→";
	color: var(--hg-gold-dark);
}

/* El "Leer noticia" reacciona al pasar por cualquier parte de la ficha. */
.hg-news-card:hover .hg-news-card__more,
.hg-news-card__more:focus-visible {
	gap: 1.1em;
	color: var(--hg-gold-dark);
}

.hg-news-card {
	cursor: pointer;
}

.hg-news-card__title a {
	transition: color 0.3s ease;
}

.hg-news-section .wp-block-buttons {
	margin-top: calc(90 * var(--hg-u)) !important;
}

.hg-news-archive {
	padding-top: calc(120 * var(--hg-u));
}

/* Artículo */
.hg-article {
	margin: 0 !important;
	padding: calc(120 * var(--hg-u)) var(--wp--preset--spacing--40) calc(180 * var(--hg-u));
}

.hg-article__title {
	margin-top: 14px !important;
	font-size: max(36px, calc(70 * var(--hg-u)));
	line-height: 1;
	text-transform: uppercase;
}

.hg-article__img {
	margin-top: calc(70 * var(--hg-u)) !important;
}

.hg-article__content {
	margin-top: calc(60 * var(--hg-u)) !important;
	font-size: 17px;
	line-height: 1.7;
}

.hg-article .wp-block-buttons {
	margin-top: calc(80 * var(--hg-u)) !important;
}

/* Marquesina automática de imágenes (alto 693). */
.hg-marquee {
	margin: 0 !important;
	overflow: hidden;
}

.hg-marquee__track {
	gap: calc(23 * var(--hg-u)) !important;
	width: max-content;
	height: max(260px, calc(693 * var(--hg-u)));
	margin: 0 !important;
}

.hg-marquee__track.is-running {
	animation: hg-marquee 70s linear infinite;
}

.hg-marquee__item {
	flex: none;
	height: 100%;
	margin: 0 !important;
}

.hg-marquee__item img {
	width: auto;
	height: 100%;
	object-fit: cover;
}

@keyframes hg-marquee {
	to {
		transform: translateX(calc(-50% - var(--hg-u) * 11.5));
	}
}

@media (max-width: 781px) {
	.hg-about-hero {
		height: auto;
		display: flex;
		flex-direction: column;
	}

	.hg-about-hero__img {
		position: relative !important;
		order: 3;
		left: 0;
		aspect-ratio: 4 / 5;
		margin-top: 2rem !important;
	}

	.hg-about-hero__title {
		position: relative;
		top: 0;
		margin-top: 3rem !important;
		padding-inline: var(--wp--preset--spacing--40);
		font-size: 15vw;
	}

	.hg-l1, .hg-l2, .hg-l3 {
		padding-left: 0;
	}

	.hg-about-hero__title small {
		position: static;
		display: block;
		width: auto;
		margin: 0 0 0.3em;
		text-align: left;
	}

	.hg-about-hero__text {
		position: static;
		width: auto;
		max-width: none;
		margin: 1.5rem var(--wp--preset--spacing--40) 0 !important;
		text-align: left !important;
	}

	.hg-family {
		padding-top: 4rem;
	}

	.hg-founders {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
		padding-inline: var(--wp--preset--spacing--40);
	}

	.hg-founder__info {
		padding-top: 0;
		gap: 0.75rem;
		justify-content: flex-start;
	}

	.hg-founder__info--left {
		order: 2;
	}

	.hg-founder__info--left p,
	.hg-founder__info p {
		text-align: left !important;
	}

	.hg-founder__photo:nth-of-type(1) { order: 1; }
	.hg-founder__photo:nth-of-type(2) { order: 3; }
	.hg-founders > :last-child { order: 4; }

	.hg-news-section {
		--hg-cut: 14px;
		padding: 5rem var(--wp--preset--spacing--40);
	}

	.hg-news-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-marquee__track.is-running {
		animation: none;
	}
}

/* Zona de clic más grande en las X de cerrar (pop up y menú), sin cambiar su aspecto. */
.hg-modal__close::before,
.hg-menu__close::before {
	content: "";
	position: absolute;
	inset: -10px;
}

/* ---------- Vender viviendas (Figma "Soy propietario", 1920) ---------- */
.hg-sell-hero {
	/* Escala del contenido: el menor entre ancho y alto, para que se vea entero en la primera pantalla. */
	--hg-f: min(calc(100vw / 1920), calc(100vh / 1130), 1px);
	min-height: calc(1390 * var(--hg-u)) !important;
	padding: calc(242 * var(--hg-f)) var(--wp--preset--spacing--40) 0 !important;
	/* clip (no hidden) para que el sticky del contenido funcione. */
	overflow: clip;
	color: #fff;
}

/* Curva blanca: elipse 3546.89 x 1107 con el vértice en y = 1280. */
.hg-sell-hero::after {
	content: "";
	position: absolute;
	/* Por encima del contenido fijo: al bajar, el texto pasa por detrás de la curva. */
	z-index: 3;
	top: calc(1280 * var(--hg-u));
	left: 50%;
	width: calc(3547 * var(--hg-u));
	height: calc(1107 * var(--hg-u));
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	transform: translateX(-50%);
}

.hg-sell-hero .wp-block-cover__inner-container {
	z-index: 2;
}

.hg-sell-hero .wp-block-cover__inner-container > * {
	margin-block: 0;
	max-width: none;
}

.hg-sell-hero__title {
	font-size: max(22px, calc(59.43 * var(--hg-f)));
	line-height: 1.06;
	text-transform: uppercase;
}

.hg-sell-hero__title small {
	display: inline-block;
	margin: 0 0.3em;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: max(9px, calc(12 * var(--hg-f)));
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	/* Como en el Figma: arriba alineado 8 px por debajo del inicio del titular. */
	vertical-align: top;
	margin-top: calc(11.5 * var(--hg-f));
}

.hg-sell-hero__text {
	max-width: max(420px, calc(577 * var(--hg-f))) !important;
	font-size: max(10px, calc(12 * var(--hg-f)));
	margin: calc(80 * var(--hg-f)) auto 0 !important;
	line-height: 1.25;
}

.hg-sell-hero .wp-block-buttons {
	margin-top: calc(160 * var(--hg-f)) !important;
	position: relative;
	z-index: 1;
}

/* Botón circular con borde dorado de 0.5 px. */
.hg-ring .wp-block-button__link {
	font-size: max(10px, calc(12 * var(--hg-f)));
	display: flex;
	align-items: center;
	justify-content: center;
	width: max(80px, calc(138 * var(--hg-f)));
	height: max(80px, calc(138 * var(--hg-f)));
	padding: 0;
	border: 0.5px solid var(--hg-gold-dark);
	border-radius: 50%;
	background: transparent !important;
	background-image: none !important;
	color: #fff !important;
	letter-spacing: 0.05em !important;
	line-height: 1.25;
	transition: background-color 0.5s var(--hg-ease), transform 0.5s var(--hg-ease) !important;
}

/* Hover: el dorado se expande en círculo desde el punto por donde entra el cursor
 * (--hg-x / --hg-y los pone el JS) y después cruza el mismo destello que en los botones rectangulares. */
.hg-ring .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hg-ring .wp-block-button__link::before {
	content: "";
	position: absolute;
	z-index: -2;
	top: var(--hg-y, 50%);
	left: var(--hg-x, 50%);
	width: 220%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--hg-gold-dark);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.45s cubic-bezier(0.33, 0, 0.2, 1);
	pointer-events: none;
}

.hg-ring .wp-block-button__link::after {
	display: block !important;
	z-index: -1 !important;
}

.hg-ring .wp-block-button__link:hover::after {
	/* El destello cruza cuando el relleno ya ha terminado. */
	transition: left 0.7s ease 0.2s !important;
}

.hg-ring .wp-block-button__link:hover::before,
.hg-ring .wp-block-button__link:focus-visible::before {
	transform: translate(-50%, -50%) scale(1);
}

.hg-sell-hero__script {
	margin-top: calc(-171 * var(--hg-f)) !important;
	font-family: var(--wp--preset--font-family--altesse);
	font-size: calc(362.54 * var(--hg-f));
	line-height: 1.37;
	white-space: nowrap;
	pointer-events: none;
}

/* Por qué Housingo */
.hg-why {
	position: relative;
	margin: 0 !important;
	padding: calc(5 * var(--hg-u)) calc(56 * var(--hg-u)) calc(150 * var(--hg-u)) calc(57 * var(--hg-u));
}

.hg-why > * {
	margin-block: 0;
}

.hg-why__title {
	margin-top: calc(130 * var(--hg-u)) !important;
	font-size: calc(118.98 * var(--hg-u));
	line-height: 0.97;
	text-transform: uppercase;
}

.hg-why__title span {
	display: block;
	padding-left: calc(483 * var(--hg-u));
}

.hg-why__cta {
	position: absolute;
	right: calc(56 * var(--hg-u));
	bottom: calc(220 * var(--hg-u));
}

/* Ventajas escalonadas con imagen a la derecha (lienzo 1920 x 1204). */
.hg-features {
	position: relative;
	height: calc(1204 * var(--hg-u));
	margin: 0 !important;
}

.hg-features > * {
	margin: 0 !important;
}

.hg-features__img {
	position: absolute !important;
	top: 0;
	right: 0;
	width: calc(925 * var(--hg-u));
	height: 100%;
	overflow: hidden;
}

.hg-features__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-feature {
	position: absolute;
	width: 230px;
	padding-left: 19px;
	border-left: 0.5px solid var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

.hg-feature > * {
	margin: 0 !important;
}

.hg-feature__title {
	margin-bottom: 12px !important;
	font-weight: 600;
}

.hg-feature--1 { top: calc(81 * var(--hg-u)); left: calc(57 * var(--hg-u)); }
.hg-feature--2 { top: calc(301 * var(--hg-u)); left: calc(364 * var(--hg-u)); }
.hg-feature--3 { top: calc(501 * var(--hg-u)); left: calc(680 * var(--hg-u)); }

.hg-features__quote {
	position: absolute;
	top: calc(878 * var(--hg-u));
	left: calc(61 * var(--hg-u));
	width: calc(575 * var(--hg-u));
	font-size: max(26px, calc(59.43 * var(--hg-u)));
	line-height: 0.934;
	text-transform: uppercase;
}

.hg-features__quote em {
	font-style: italic;
}

/* Formulario de valoración (857 de ancho, campos de 94). */
.hg-valuation {
	margin: 0 !important;
	padding: calc(275 * var(--hg-u)) var(--wp--preset--spacing--40) calc(200 * var(--hg-u));
}

.hg-valuation > * {
	margin-block: 0;
}

.hg-valuation__text {
	max-width: 790px;
	margin-inline: auto !important;
	line-height: 1.25;
}

.hg-valuation__line {
	width: 1px;
	height: 165px !important;
	margin: 77px auto 0 !important;
	background: var(--hg-gold-dark);
}

.hg-valuation .hg-form {
	max-width: 720px;
	margin: 60px auto 0;
	gap: 26px 18px;
}

.hg-valuation .hg-field textarea {
	height: 213px;
}

.hg-valuation .hg-form__submit {
	margin-top: -7px;
}

.hg-field select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 66px;
	margin: 0;
	padding: 6px 70px 0 23px;
	border: 1px solid #181818;
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23181818'/%3E%3Cpath d='M14 8v12M8 14h12' stroke='%23fff'/%3E%3C/svg%3E") no-repeat right 23px center / 28px;
	color: rgb(24 24 24 / 0.5);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	appearance: none;
	cursor: pointer;
	outline: 0;
}

.hg-field select:focus {
	border-color: var(--hg-gold-dark);
	color: #181818;
}

/* Pasos 01 · 02 · 03 */
.hg-ssteps {
	display: grid;
	grid-template-columns: repeat(3, calc(630 * var(--hg-u)));
	justify-content: center;
	margin-top: calc(50 * var(--hg-u)) !important;
}

.hg-ssteps > *,
.hg-sstep > * {
	margin: 0 !important;
}

.hg-sstep__num {
	height: calc(206 * var(--hg-u));
	color: rgb(200 138 2 / 0.57);
	font-family: var(--wp--preset--font-family--carta-nueva);
	/* Cifras de caja alta, como en el Figma (las de por defecto son más pequeñas). */
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
	font-size: calc(280.97 * var(--hg-u));
	line-height: 1.26;
	overflow: visible;
	/* La parte baja de la cifra queda detrás del título, como en el Figma. */
	/* La cifra cursiva se inclina a la derecha: se compensa para que quede centrada sobre el título. */
	translate: calc(-48 * var(--hg-u)) calc(-5 * var(--hg-u));
}

.hg-sstep__title {
	position: relative;
	font-size: max(26px, calc(59.43 * var(--hg-u)));
	line-height: 0.934;
	text-transform: uppercase;
}

.hg-sstep__text {
	max-width: 301px;
	margin: calc(15 * var(--hg-u)) auto 0 !important;
	line-height: 1.25;
}

@media (max-width: 781px) {
	.hg-sell-hero {
		min-height: 100svh !important;
		padding-top: 9rem !important;
	}

	.hg-sell-hero__title small {
		margin-top: 0.35em;
	}

	.hg-sell-hero__text {
		margin-top: 2rem !important;
	}

	.hg-sell-hero .wp-block-buttons {
		margin-top: 2.5rem !important;
	}

	.hg-sell-hero__script {
		margin-top: 0 !important;
		font-size: 20vw;
	}

	.hg-why {
		padding: 3rem var(--wp--preset--spacing--40) 4rem;
	}

	.hg-why__title {
		margin-top: 2rem !important;
		font-size: 11vw;
	}

	.hg-why__title span {
		padding-left: 0;
	}

	.hg-why__cta {
		position: static;
		margin-top: 2rem !important;
	}

	.hg-features {
		display: flex;
		flex-direction: column;
		gap: 2rem;
		height: auto;
		padding: 0 var(--wp--preset--spacing--40) 3rem;
	}

	.hg-features__img,
	.hg-feature,
	.hg-features__quote {
		position: static !important;
		width: auto;
	}

	.hg-features__img {
		aspect-ratio: 4 / 5;
		order: 5;
		margin-inline: calc(-1 * var(--wp--preset--spacing--40)) !important;
	}

	.hg-valuation {
		padding-top: 4rem;
	}

	.hg-valuation .hg-form {
		margin-top: 3rem;
		gap: 1.5rem;
	}

	.hg-valuation .hg-field textarea {
		height: 180px;
	}

	.hg-ssteps {
		grid-template-columns: 1fr;
		gap: 3rem;
		margin-top: 4rem !important;
	}

	.hg-sstep__num {
		height: 90px;
		font-size: 120px;
	}
}

.hg-reveal-ready .hg-sell-hero__script[data-reveal="hero"] {
	transition-delay: 150ms;
}

/* ---------- Acceso privado ---------- */
/* Enlace "Acceder" de la cabecera: punto dorado cuando hay acceso activo. */
.hg-has-access .hg-nav-acceder .wp-block-navigation-item__content::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--hg-gold-dark);
	vertical-align: 1px;
}

/* Pop up oscuro: mismo corte de esquinas, borde dorado y fondo #181818. */
.hg-modal--dark {
	width: min(640px, calc(100vw - 2rem));
	color: #f2ede4;
}

.hg-modal--dark .hg-modal__box {
	padding: 62px 84px 70px;
	background: var(--hg-gold-dark);
}

.hg-modal--dark .hg-modal__box::before {
	background: radial-gradient(120% 80% at 50% 0%, #26241f 0%, #181818 60%);
}

.hg-modal--dark .hg-modal__close {
	right: 40px;
	width: 70px;
	height: 19px;
	background: var(--hg-gold-dark);
	-webkit-mask: url("../images/icons/cerrar.svg") no-repeat center / contain;
	mask: url("../images/icons/cerrar.svg") no-repeat center / contain;
}

.hg-modal--dark .hg-modal__head {
	margin-bottom: 30px !important;
}

.hg-modal--dark .hg-modal__title {
	color: var(--hg-gold-dark);
	font-size: 112px;
	line-height: 130px;
}

.hg-modal--dark .hg-modal__eyebrow {
	top: 58px;
	margin-left: 0 !important;
	color: #f2ede4;
}

.hg-acc__intro {
	max-width: 380px;
	margin: 0 auto 34px !important;
	color: rgb(242 237 228 / 0.75);
	line-height: 1.45;
}

.hg-form--clave {
	grid-template-columns: 1fr;
	gap: 18px;
}

.hg-modal--dark .hg-field > span {
	background: #1b1a18;
	color: var(--hg-gold-dark);
}

.hg-modal--dark .hg-field input {
	border-color: rgb(200 138 2 / 0.55);
	background: transparent;
	color: #f2ede4;
	font-size: 18px;
	letter-spacing: 0.28em;
	text-align: center;
	text-transform: uppercase;
}

.hg-modal--dark .hg-field input::placeholder {
	color: rgb(242 237 228 / 0.25);
}

.hg-acc__note {
	margin: 0;
	padding-left: 14px;
	border-left: 1px solid var(--hg-gold-dark);
	color: rgb(242 237 228 / 0.88);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.55;
	text-transform: uppercase;
}

.hg-modal--dark .hg-form__submit {
	margin-top: 6px;
	background-color: var(--hg-gold-dark);
	background-image: linear-gradient(#f2ede4, #f2ede4);
	color: #181818;
}

.hg-modal--dark .hg-form__submit:hover,
.hg-modal--dark .hg-form__submit:focus-visible {
	color: #181818 !important;
}

.hg-modal--dark .hg-form__status {
	color: #e8b04a;
}

.hg-acc__ok {
	display: none;
	text-align: center;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hg-acc__ok p {
	margin: 0 0 22px;
}

.hg-acc__logout {
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid var(--hg-gold-dark);
	background: none;
	color: var(--hg-gold-dark);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.hg-has-access .hg-modal--dark:not(.is-granted) .hg-form--clave,
.hg-has-access .hg-modal--dark:not(.is-granted) .hg-acc__intro {
	display: none;
}

.hg-has-access .hg-modal--dark:not(.is-granted) .hg-acc__ok {
	display: block;
}

/* ---------- Animación al validar la clave ---------- */
.hg-modal--dark {
	transition: filter 0.8s ease, opacity 0.45s ease, transform 0.5s var(--hg-ease);
}

/* Comprobando: el botón late suavemente. */
.hg-modal--dark .hg-form__submit.is-loading {
	animation: hg-pulse 0.9s ease-in-out infinite alternate;
	cursor: wait;
}

@keyframes hg-pulse {
	to {
		opacity: 0.55;
	}
}

/* Clave incorrecta: la caja tiembla. */
.hg-modal__box.is-error {
	animation: hg-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes hg-shake {
	20%, 60% { transform: translateX(-8px); }
	40%, 80% { transform: translateX(8px); }
}

/* Concedido: el contenido se desvanece hacia arriba… */
.hg-modal--dark .hg-modal__head,
.hg-modal--dark .hg-acc__intro,
.hg-modal--dark .hg-form--clave,
.hg-modal--dark .hg-modal__close {
	transition: opacity 0.5s ease, transform 0.6s var(--hg-ease), filter 0.5s ease;
}

.hg-modal--dark.is-granted .hg-modal__head,
.hg-modal--dark.is-granted .hg-acc__intro,
.hg-modal--dark.is-granted .hg-form--clave,
.hg-modal--dark.is-granted .hg-modal__close {
	opacity: 0;
	filter: blur(6px);
	transform: translateY(-14px);
	pointer-events: none;
}

/* …la caja se ilumina en dorado… */
.hg-modal--dark.is-granted {
	filter: drop-shadow(0 0 40px rgb(200 138 2 / 0.35));
}

.hg-modal--dark .hg-modal__box::before {
	transition: background 0.8s ease;
}

.hg-modal--dark.is-granted .hg-modal__box::before {
	background: radial-gradient(90% 70% at 50% 50%, #3a2f17 0%, #181818 75%);
}

/* …y aparece el candado dorado que se abre, con dos ondas y la bienvenida. */
.hg-acc__granted {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease 0.35s;
}

.hg-modal--dark.is-granted .hg-acc__granted {
	opacity: 1;
}

.hg-acc__badge {
	position: relative;
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	margin-bottom: 34px;
}

.hg-acc__lock {
	position: relative;
	z-index: 1;
	width: 52px;
	height: 58px;
	overflow: visible;
	stroke: var(--hg-gold-dark);
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.5s ease 0.35s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}

.hg-acc__arc {
	transform-box: view-box;
	transform-origin: 19.5px 11.5px;
	transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}

.hg-modal--dark.is-granted .hg-acc__lock {
	opacity: 1;
	transform: none;
}

.hg-modal--dark.is-granted .hg-acc__arc {
	transform: translateY(-3px) rotate(30deg);
}

/* Ondas centradas en el candado: salen cuando se abre, sin verse antes. */
.hg-acc__ring {
	position: absolute;
	inset: 0;
	border: 1px solid var(--hg-gold-dark);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.hg-modal--dark.is-granted .hg-acc__ring {
	animation: hg-ring 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.15s backwards;
}

.hg-modal--dark.is-granted .hg-acc__ring--2 {
	animation-delay: 1.4s;
}

@keyframes hg-ring {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}

	15% {
		opacity: 0.8;
	}

	100% {
		opacity: 0;
		transform: scale(1.7);
	}
}

.hg-acc__granted-eyebrow,
.hg-acc__granted-title {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.7s ease, transform 0.8s var(--hg-ease);
}

.hg-acc__granted-eyebrow {
	color: #f2ede4;
	transition-delay: 2.05s;
}

.hg-acc__granted-title {
	color: var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--altesse);
	font-size: 88px;
	line-height: 1.1;
	transition-delay: 2.25s;
}

.hg-modal--dark.is-granted .hg-acc__granted-eyebrow,
.hg-modal--dark.is-granted .hg-acc__granted-title {
	opacity: 1;
	transform: none;
}

/* Salida: la caja crece un poco y se desvanece antes de recargar. */
.hg-modal--dark.is-leaving {
	opacity: 0;
	transform: scale(1.04);
}

.hg-modal--dark.is-leaving::backdrop {
	background: rgb(24 24 24 / 0.85);
}

@media (max-width: 781px) {
	.hg-modal--dark .hg-modal__box {
		padding: 72px 1.25rem 2.5rem;
	}

	.hg-modal--dark .hg-modal__title {
		font-size: 80px;
		line-height: 96px;
	}

	.hg-modal--dark .hg-modal__eyebrow {
		top: 40px;
	}
}

/* Candado de las fichas y desbloqueo escalonado: se abre el candado, salen el botón y la etiqueta,
 * y la imagen se aclara. */
.hg-card__overlay.has-lock::before {
	display: none;
}

.hg-lock {
	display: block;
	width: 25.14px;
	height: 28.43px;
	margin-bottom: 11px;
}

.hg-lock svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hg-lock__arc {
	transform-box: view-box;
	transform-origin: 19.5px 11.5px;
	transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hg-card.is-unlocking .hg-lock__arc {
	transform: translateY(-3px) rotate(28deg);
	transition-delay: var(--hg-u-delay, 0ms);
}

.hg-card.is-unlocking .hg-lock {
	opacity: 0;
	transform: translateY(-10px) scale(0.9);
	transition: opacity 0.5s ease, transform 0.6s var(--hg-ease);
	transition-delay: calc(var(--hg-u-delay, 0ms) + 0.75s);
}

.hg-card.is-unlocking .hg-card__cta {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease, transform 0.6s var(--hg-ease);
	transition-delay: calc(var(--hg-u-delay, 0ms) + 1.05s);
	pointer-events: none;
}

.hg-card.is-unlocking .hg-card__tag {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease, transform 0.6s var(--hg-ease);
	transition-delay: calc(var(--hg-u-delay, 0ms) + 1.3s);
}

.hg-card.is-unlocking .hg-card__img img,
.hg-card.is-unlocking:hover .hg-card__img img {
	filter: none;
	transform: none;
	transition: filter 1.2s ease, transform 1.4s var(--hg-ease);
	transition-delay: calc(var(--hg-u-delay, 0ms) + 1.4s);
}

.hg-card.is-unlocking .hg-card__img::after,
.hg-card.is-unlocking:hover .hg-card__img::after {
	background: rgb(0 0 0 / 0);
	transition: background 1.2s ease;
	transition-delay: calc(var(--hg-u-delay, 0ms) + 1.4s);
}

.hg-card.is-unlocked .hg-card__overlay {
	pointer-events: none;
}

.hg-card.is-unlocked .hg-card__media,
.hg-card.is-unlocked .hg-card__title {
	cursor: pointer;
}

/* Ya desbloqueada: zoom suave al entrar y al salir, sin el retardo del desbloqueo. */
.hg-card.is-unlocked .hg-card__img img,
.hg-card.is-unlocked:hover .hg-card__img img {
	filter: none;
	transition: transform 1.2s var(--hg-ease);
	transition-delay: 0s;
	will-change: transform;
	backface-visibility: hidden;
}

.hg-card.is-unlocked .hg-card__img::after {
	transition: none;
}

.hg-card.is-unlocked:hover .hg-card__img img {
	transform: scale(1.08);
}

.hg-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Miniatura reducida (sin acceso): desenfoque moderado que baja al pasar el cursor, con zoom. */
.hg-card .hg-card__img .hg-blur-img {
	/* Figma: Layer blur 15 (equivale a blur(7.5px) en CSS). */
	filter: blur(7.5px);
	transform: scale(1.06);
	transition: filter 1.2s var(--hg-ease), transform 1.2s var(--hg-ease);
	will-change: transform, filter;
}

.hg-card:hover .hg-card__img .hg-blur-img {
	/* Al pasar el cursor, como en el Figma: Layer blur 7. */
	filter: blur(3.5px);
	transform: scale(1.13);
}

/* "Conoce Housingo": se escribe de izquierda a derecha como la firma del hero. */
.hg-reveal-ready [data-reveal="script"] {
	-webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	-webkit-mask-size: 250% 100%;
	mask-size: 250% 100%;
	-webkit-mask-position: 100% 0;
	mask-position: 100% 0;
}

.hg-reveal-ready [data-reveal="script"].is-in {
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
	transition: -webkit-mask-position 2.4s cubic-bezier(0.45, 0, 0.25, 1), mask-position 2.4s cubic-bezier(0.45, 0, 0.25, 1);
	transition-delay: 150ms;
}

/* Con acceso privado activo desaparecen las llamadas a solicitar acceso
 * (las de las fichas se van con su animación de desbloqueo). */
.hg-has-access .wp-block-buttons:has(> .wp-block-button > a[href$="#solicitar-acceso"]):not(.hg-card .wp-block-buttons),
.hg-has-access .hg-cta {
	display: none !important;
}

/* Hero: con acceso, "Solicitar acceso" se sustituye por Comprar / Alquilar viviendas. */
body:not(.hg-has-access) .hg-hero__member {
	display: none !important;
}

.hg-hero__member {
	gap: 18px !important;
}

/* ---------- Ficha de vivienda (Figma "Individual casa", 1920) ---------- */
.hg-ficha > * {
	margin-block: 0 !important;
}

/* Hero con slider: imagen a sangre, degradado negro al 90 % hacia abajo. */
.hg-fh {
	position: relative;
	height: max(560px, min(calc(1017 * var(--hg-u)), calc(100vh - 78px)));
	overflow: hidden;
	background: #181818;
	color: #fff;
}

.hg-fh__slides,
.hg-fh__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hg-fh__slide {
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.1s ease, transform 6s var(--hg-ease);
}

.hg-fh__slide.is-active {
	opacity: 1;
	transform: none;
}

.hg-fh::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.9));
}

.hg-fh__arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--hg-gold-dark);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.4s var(--hg-ease), background 0.3s ease, color 0.3s ease;
}

.hg-fh__arrow svg {
	width: 16px;
	height: 8px;
}

.hg-fh__arrow--prev {
	left: calc(57 * var(--hg-u));
}

.hg-fh__arrow--next svg {
	/* La flecha del Figma apunta a la izquierda: la de "siguiente" se gira. */
	transform: rotate(180deg);
}

.hg-fh__arrow--next {
	right: calc(57 * var(--hg-u));
}

.hg-fh__arrow:hover {
	background: var(--hg-gold-dark);
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.hg-fh__info {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: calc(106 * var(--hg-u) + 10px);
	width: min(calc(760 * var(--hg-u) + 120px), 92vw);
	text-align: center;
	transform: translateX(-50%);
}

.hg-fh__info > * {
	margin: 0;
}

.hg-fh__title {
	margin-top: calc(23 * var(--hg-u)) !important;
	font-size: max(34px, calc(80.85 * var(--hg-u)));
	line-height: 0.861;
	text-transform: uppercase;
}

.hg-fh__price {
	display: inline-block;
	margin-top: calc(28 * var(--hg-u)) !important;
	padding: 10px 16px;
	background: var(--hg-gold-dark);
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: max(14px, calc(16.97 * var(--hg-u)));
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.hg-fh__gallery {
	position: absolute;
	z-index: 3;
	left: calc(57 * var(--hg-u));
	bottom: calc(72 * var(--hg-u) + 4px);
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

.hg-fh__gallery svg {
	width: 19px;
	height: 19px;
	transition: transform 0.5s var(--hg-ease);
}

.hg-fh__gallery:hover svg {
	transform: scale(1.2);
}

/* Contenido: descripción a la izquierda, datos a la derecha separados por una línea. */
.hg-fc {
	display: grid;
	grid-template-columns: calc(955 * var(--hg-u)) 1fr;
	column-gap: calc(163 * var(--hg-u));
	padding: calc(164 * var(--hg-u)) calc(57 * var(--hg-u)) 0;
}

.hg-tools {
	display: flex;
	gap: 6px;
}

.hg-tool {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f5f5f5;
	color: #181818;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.hg-tool svg {
	width: 17px;
	height: 17px;
}

.hg-tool:hover,
.hg-tool:focus-visible {
	background: #181818;
	color: var(--hg-gold-dark);
}

/* Etiqueta negra con triángulo, como "FOTOS" en el Figma. */
.hg-tool::after,
.hg-tool::before {
	position: absolute;
	left: 50%;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.3s ease, transform 0.4s var(--hg-ease);
}

.hg-tool::after {
	content: attr(data-tip);
	bottom: calc(100% + 10px);
	padding: 5px 12px;
	background: #181818;
	color: #fff;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hg-tool::before {
	content: "";
	bottom: calc(100% + 4px);
	border: 5px solid transparent;
	border-top-color: #181818;
	border-bottom: 0;
}

.hg-tool:hover::after,
.hg-tool:hover::before,
.hg-tool:focus-visible::after,
.hg-tool:focus-visible::before {
	opacity: 1;
	transform: translate(-50%, 0);
}



.hg-fc__desc {
	margin-top: 48px;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 15px;
	line-height: 19px;
}

.hg-fc__desc > * {
	margin: 0 0 24px;
}

.hg-fc__data {
	padding-left: calc(90 * var(--hg-u));
	border-left: 1px solid #181818;
}

.hg-stats {
	margin: 0;
}

.hg-stat {
	margin-bottom: 21px;
}

.hg-stat dt {
	margin-bottom: 4px;
}

.hg-stat dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(34px, calc(48.88 * var(--hg-u)));
	font-weight: 200;
	line-height: 0.964;
	text-transform: uppercase;
}

.hg-stats--more .hg-stat dd {
	font-size: max(24px, calc(32 * var(--hg-u)));
}

.hg-more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #181818;
	cursor: pointer;
}

.hg-more span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hg-more i {
	position: relative;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--hg-gold-dark);
	transition: transform 0.5s var(--hg-ease);
}

.hg-more i::before,
.hg-more i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 1px;
	background: #fff;
	transform: translate(-50%, -50%);
}

.hg-more i::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.hg-more[aria-expanded="true"] i {
	transform: rotate(45deg);
}

.hg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 9px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.hg-tags li {
	padding: 7px 9px;
	background: var(--hg-gold-dark);
	color: #181818;
	line-height: 15px;
}

/* Conoce más sobre la firma */
.hg-firma {
	min-height: calc(643 * var(--hg-u)) !important;
	margin-top: calc(180 * var(--hg-u)) !important;
	padding: 0 calc(121 * var(--hg-u)) calc(48 * var(--hg-u)) calc(57 * var(--hg-u)) !important;
	color: #fff;
}

.hg-firma::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.9));
}

.hg-firma .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hg-firma .wp-block-cover__inner-container > * {
	margin: 0;
}

.hg-firma__title {
	font-size: max(36px, calc(80.85 * var(--hg-u)));
	line-height: 0.861;
	text-transform: uppercase;
}

.hg-firma__text {
	max-width: 528px;
	margin-top: calc(44 * var(--hg-u)) !important;
	line-height: 1.25;
}

.hg-firma__link {
	position: absolute;
	right: 0;
	bottom: 0;
}

.hg-firma__link a {
	color: #fff;
	text-underline-offset: 3px;
	transition: color 0.3s ease;
}

.hg-firma__link a:hover {
	color: var(--hg-gold-dark);
}

/* ¿Necesita más información? */
.hg-fform {
	padding: calc(219 * var(--hg-u)) var(--wp--preset--spacing--40) calc(200 * var(--hg-u));
}

.hg-fform > * {
	margin-block: 0;
}

.hg-fform__title {
	max-width: 965px;
	margin-inline: auto !important;
	font-size: max(34px, calc(80.85 * var(--hg-u)));
	line-height: 0.861;
	text-transform: uppercase;
}

.hg-fform__text {
	max-width: 574px;
	margin: 40px auto 0 !important;
	line-height: 1.25;
}

.hg-fform .hg-form {
	max-width: 720px;
	margin: 60px auto 0;
}

/* Galería / plano a pantalla completa */
.hg-lightbox,
.hg-mapmodal {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #181818;
	color: #fff;
}

.hg-lightbox[open],
.hg-mapmodal[open] {
	animation: hg-modal-in 0.4s ease;
}

.hg-lightbox::backdrop,
.hg-mapmodal::backdrop {
	background: transparent;
}

.hg-lightbox__close {
	position: absolute;
	z-index: 3;
	top: 30px;
	right: 40px;
	width: 70px;
	height: 19px;
	padding: 0;
	border: 0;
	background: var(--hg-gold-dark);
	-webkit-mask: url("../images/icons/cerrar.svg") no-repeat center / contain;
	mask: url("../images/icons/cerrar.svg") no-repeat center / contain;
	cursor: pointer;
}

.hg-lightbox__close::before {
	content: "";
	position: absolute;
	inset: -10px;
}

.hg-lightbox__count {
	position: absolute;
	top: 32px;
	left: 40px;
	margin: 0;
}

.hg-lightbox__stage {
	position: absolute;
	inset: 90px 120px 130px;
	display: grid;
	place-items: center;
	margin: 0;
}

.hg-lightbox__stage img {
	max-width: 100%;
	max-height: calc(100dvh - 220px);
	object-fit: contain;
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.5s ease, transform 0.6s var(--hg-ease);
}

.hg-lightbox__stage img.is-in {
	opacity: 1;
	transform: none;
}

.hg-lightbox .hg-fh__arrow--prev {
	left: 40px;
}

.hg-lightbox .hg-fh__arrow--next {
	right: 40px;
}

.hg-lightbox.is-single .hg-fh__arrow,
.hg-lightbox.is-single .hg-lightbox__thumbs {
	display: none;
}

.hg-lightbox__thumbs {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	display: flex;
	justify-content: center;
	gap: 8px;
	overflow-x: auto;
	padding: 0 40px;
	scrollbar-width: none;
}

.hg-lightbox__thumbs button {
	flex: none;
	width: 84px;
	height: 60px;
	padding: 0;
	border: 1px solid transparent;
	background: none;
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.3s ease, border-color 0.3s ease;
}

.hg-lightbox__thumbs button.is-active,
.hg-lightbox__thumbs button:hover {
	border-color: var(--hg-gold-dark);
	opacity: 1;
}

.hg-lightbox__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-mapmodal__map {
	position: absolute;
	inset: 80px 40px 40px;
}

.hg-mapmodal__map .leaflet-tile-pane {
	filter: grayscale(1) contrast(0.9) brightness(1.05);
}

.hg-toast {
	position: fixed;
	z-index: 200;
	left: 50%;
	bottom: 30px;
	padding: 12px 22px;
	background: #181818;
	color: #fff;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.4s ease, transform 0.5s var(--hg-ease);
}

.hg-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 781px) {
	.hg-fh {
		height: max(520px, 82svh);
	}

	.hg-fh__arrow--prev {
		left: 14px;
	}

	.hg-fh__arrow--next {
		right: 14px;
	}

	.hg-fh__info {
		bottom: 80px;
	}

	.hg-fh__gallery {
		left: 50%;
		bottom: 26px;
		transform: translateX(-50%);
	}

	.hg-fc {
		grid-template-columns: 1fr;
		row-gap: 3rem;
		padding: 3rem var(--wp--preset--spacing--40) 0;
	}

	.hg-fc__desc {
		font-size: 14px;
	}

	.hg-fc__data {
		padding: 2rem 0 0;
		border-left: 0;
		border-top: 1px solid #181818;
	}

	.hg-firma {
		min-height: 520px !important;
		margin-top: 4rem !important;
		padding: 0 var(--wp--preset--spacing--40) 2rem !important;
	}

	.hg-firma__link {
		position: static;
		margin-top: 1.5rem !important;
	}

	.hg-fform {
		padding: 4rem var(--wp--preset--spacing--40);
	}

	.hg-lightbox__stage {
		inset: 70px 12px 110px;
	}

	.hg-lightbox .hg-fh__arrow {
		top: auto;
		bottom: 104px;
	}

	.hg-lightbox__close {
		right: 18px;
	}

	.hg-lightbox__count {
		left: 18px;
	}

	.hg-mapmodal__map {
		inset: 70px 0 0;
	}
}

/* Con un pop up abierto al cargar, la imagen del hero espera también a que se cierre. */
.hg-hold-reveal .hg-hero .wp-block-cover__image-background {
	animation-play-state: paused !important;
}

/* =====================================================================
 * Ajustes responsive (auditoría en 360, 390, 768, 1024, 1366, 1440 y 1920)
 * ===================================================================== */

/* Teléfonos nunca partidos por la mitad. */
.hg-band a,
.site-footer a[href^="tel"],
.hg-menu__contact a[href^="tel"] {
	white-space: nowrap;
}

/* Vender: la curva blanca se coloca desde abajo, así nunca tapa el contenido del hero. */
.hg-sell-hero::after {
	top: auto;
	bottom: calc(-997 * var(--hg-u));
}

/* Ficha: "Conócenos" a la derecha del texto, sin superponerse. */
.hg-firma .wp-block-cover__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 2rem;
}

.hg-firma__title {
	grid-column: 1 / -1;
}

.hg-firma__link {
	position: static;
	white-space: nowrap;
}

/* Portátil pequeño y tablet horizontal (782–1279): las ventajas de Vender dejan de ir
 * en posiciones fijas y se apilan escalonadas junto a la imagen. */
@media (min-width: 782px) and (max-width: 1279px) {
	.hg-features {
		display: flex;
		flex-direction: column;
		gap: 2.25rem;
		height: auto;
		min-height: calc(1204 * var(--hg-u));
		padding: 3rem calc(925 * var(--hg-u) + 3rem) 3rem calc(57 * var(--hg-u));
		box-sizing: border-box;
	}

	.hg-feature,
	.hg-features__quote {
		position: static !important;
		width: auto;
		max-width: 340px;
	}

	.hg-feature--2 { margin-left: 8% !important; }
	.hg-feature--3 { margin-left: 16% !important; }

	.hg-features__quote {
		max-width: 420px;
		margin-top: auto !important;
		font-size: 30px;
	}

	.hg-why__cta {
		position: static;
		margin-top: 2rem !important;
	}
}

/* Ventana / Private Collection por debajo de 1280: la llave no pisa el titular
 * y el texto cabe dentro del hueco blanco de la ventana. */
@media (max-width: 1279px) {
	.hg-window__title {
		margin-top: 0.75rem !important;
	}

	.hg-window__text {
		max-width: min(520px, 31vw);
	}
}

@media (max-width: 781px) {
	.hg-window figure.hg-window__key {
		width: 150px;
		height: 98px;
	}

	.hg-window__title {
		font-size: 26px;
	}

	.hg-window__text {
		max-width: 300px;
	}
}

/* Sobre nosotros en móvil: fundadores en una sola columna (foto y debajo su texto). */
@media (max-width: 781px) {
	.hg-founders {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.hg-founder__photo {
		max-width: 420px;
		width: 100%;
	}

	.hg-founder__photo:nth-of-type(1) { order: 1; }
	.hg-founder__info--left { order: 2; margin-bottom: 2rem !important; }
	.hg-founder__photo:nth-of-type(2) { order: 3; }
	.hg-founders > :last-child { order: 4; }
}

/* Comprar / Alquilar y noticias: 2 columnas en tablet vertical, 1 solo en móvil. */
@media (min-width: 560px) and (max-width: 781px) {
	.hg-listing {
		--hg-card-w: 100%;
	}

	.hg-listing__grid,
	.hg-news-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem 1.25rem;
	}
}

/* Vender en móvil: el hero crece con su contenido y la curva queda siempre debajo. */
@media (max-width: 781px) {
	.hg-sell-hero {
		padding-bottom: 5rem !important;
	}

	.hg-sell-hero::after {
		width: 260%;
		height: 600px;
		bottom: -560px;
	}
}

/* El texto de la ventana siempre dentro del hueco blanco. */
@media (min-width: 1280px) {
	.hg-window__text {
		max-width: min(520px, 30vw);
	}
}

/* ---------- Candado de acceso en la cabecera (móvil) ---------- */
.hg-lock-btn {
	display: none;
	width: 40px;
	height: 40px;
	padding: 9px 10px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.hg-lock-btn svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hg-lock-btn__arc {
	transform-box: view-box;
	transform-origin: 19.5px 11.5px;
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Con acceso activo el candado queda abierto y en dorado. */
.hg-has-access .hg-lock-btn {
	color: var(--hg-gold-dark);
}

.hg-has-access .hg-lock-btn__arc {
	transform: translateY(-3px) rotate(30deg);
}

@media (max-width: 781px) {
	/* Cabecera móvil: logo a la izquierda; candado y menú a la derecha. */
	.site-header__brand {
		flex: 1;
		gap: 4px !important;
	}

	.site-header__logo {
		order: 1;
		margin-right: auto !important;
	}

	.hg-lock-btn {
		display: block;
		order: 2;
	}

	.hg-menu-toggle {
		order: 3;
		width: 46px;
		height: 40px;
	}

	/* Menú lateral desde la derecha. */
	.hg-menu__panel {
		inset: 0 0 0 auto;
		border-right: 0;
		border-left: 1px solid #000;
		transform: translateX(100%);
		padding-left: 40px;
	}

	.hg-menu__close {
		left: auto;
		right: 22px;
	}

	.hg-menu__logo {
		padding-left: 0;
	}

	.hg-menu__nav {
		padding-left: 30px;
	}

	.hg-menu__inner > *,
	.hg-menu__nav .wp-block-navigation-item {
		transform: translateX(24px);
	}

	/* Hero sin saltos: en móvil la entrada no cambia el espacio entre letras
	 * (al ser tan grande, el titular cambiaba de ancho y movía todo). */
	.hg-reveal-ready .hg-hero__title[data-reveal="hero"] {
		letter-spacing: 0 !important;
		transition-property: opacity, filter, transform;
	}

	.hg-hero__title {
		white-space: nowrap;
	}
}

@media (max-width: 781px) {
	/* Candado y menú pegados al margen derecho (mismo que el logo a la izquierda). */
	.site-header > .site-header__brand {
		flex: 1 1 100%;
		max-width: none;
		margin-right: 0 !important;
	}

	.site-header .wp-block-navigation.site-header__nav {
		display: none !important;
	}

	.hg-lock-btn {
		margin-right: 14px !important;
		padding: 9px 10px;
	}
}

/* ---------- Pop ups en móvil con el teclado abierto ----------
 * El dialog ocupa toda la pantalla y es él quien hace scroll; la caja va arriba y no se recalcula
 * al cambiar la altura visible cuando sube el teclado. Sin desenfoques caros que se repintan. */
@media (max-width: 781px) {
	.hg-modal {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 16px 16px 40vh;
		box-sizing: border-box;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.hg-modal .hg-modal__box {
		width: 100%;
		max-width: 520px;
		max-height: none;
		margin: 0 auto;
		overflow: visible;
	}

	.hg-modal::backdrop {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgb(24 24 24 / 0.82);
	}

	.hg-modal--dark.is-granted {
		filter: none;
	}

	.hg-modal[open] {
		animation: hg-modal-in-m 0.35s ease;
	}

	/* 16 px en los campos: evita que iOS haga zoom al tocarlos. */
	.hg-field input,
	.hg-field textarea,
	.hg-field select {
		font-size: 16px !important;
	}

	.hg-modal--dark .hg-field input {
		letter-spacing: 0.18em;
	}
}

@keyframes hg-modal-in-m {
	from {
		opacity: 0;
	}
}

/* Iconos de la ficha (Phosphor Thin del Figma): círculo #F5F5F5 de 36, icono de 16;
 * al pasar el cursor, círculo #181818 e icono dorado con la etiqueta de 73 x 21 encima. */
.hg-tools {
	gap: 6px;
}

.hg-tool svg {
	width: 16px;
	height: 16px;
}

.hg-tool::after {
	box-sizing: border-box;
	min-width: 73px;
	height: 21px;
	padding: 0 12px;
	line-height: 21px;
	text-align: center;
}

.hg-fh__gallery svg {
	width: 19px;
	height: 19px;
}

.hg-tool svg,
.hg-fh__arrow svg,
.hg-fh__gallery svg {
	display: block;
}

.hg-tool,
.hg-fh__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Etiquetas de características: bloque más estrecho, como en el Figma (≈490 px a 1920). */
.hg-tags {
	max-width: max(300px, calc(490 * var(--hg-u)));
}

@media (max-width: 781px) {
	.hg-tags {
		max-width: none;
	}
}

/* "Ver más": los datos extra se despliegan hacia abajo y se recogen con "Ver menos". */
.hg-more-wrap {
	height: 0;
	overflow: hidden;
	transition: height 0.7s var(--hg-ease);
}

.hg-more-wrap .hg-stat {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.4s ease, transform 0.6s var(--hg-ease);
}

.hg-more-wrap.is-open .hg-stat {
	opacity: 1;
	transform: none;
}

.hg-more-wrap.is-open .hg-stat:nth-child(2) { transition-delay: 0.06s; }
.hg-more-wrap.is-open .hg-stat:nth-child(3) { transition-delay: 0.12s; }
.hg-more-wrap.is-open .hg-stat:nth-child(4) { transition-delay: 0.18s; }
.hg-more-wrap.is-open .hg-stat:nth-child(5) { transition-delay: 0.24s; }
.hg-more-wrap.is-open .hg-stat:nth-child(6) { transition-delay: 0.3s; }
.hg-more-wrap.is-open .hg-stat:nth-child(7) { transition-delay: 0.36s; }

/* "Conócenos" pegado al margen derecho (WordPress ponía width:auto al contenido del cover). */
.hg-firma.has-custom-content-position .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: none !important;
}

.hg-firma__link {
	justify-self: end;
}

@media (max-width: 781px) {
	.hg-firma .wp-block-cover__inner-container {
		grid-template-columns: 1fr;
	}

	.hg-firma__link {
		justify-self: start;
	}
}

/* Precio en el carrusel de la portada: solo con acceso (sin acceso el diseño no lo lleva). */
.hg-carousel .hg-card__price {
	display: none;
}

.hg-has-access .hg-carousel .hg-card__price {
	display: block;
}

.hg-has-access .hg-card__price {
	color: var(--hg-gold-dark);
	font-size: 14px;
	font-weight: 600;
}

/* Titular que se rellena letra a letra al hacer scroll. */
.hg-fill__word {
	display: inline-block;
	white-space: nowrap;
}

.hg-fill__char {
	color: rgb(24 24 24 / 0.17);
	transition: color 0.35s ease;
}

.hg-fill__char.is-on {
	color: #181818;
}

/* Llave que baja con el scroll: crece desde arriba, por encima del resto. */
.hg-key-scroll {
	position: relative;
	z-index: 3;
	transform-origin: 50% 50%;
	will-change: translate, scale;
}

/* Menú lateral: la V cambia de forma mientras hay espaciado entre letras (el navegador desactiva
 * las ligaduras). Al salir, el espaciado vuelve rápido para que la V original reaparezca enseguida. */
.hg-menu__nav .wp-block-navigation-item__content {
	transition: color 0.4s ease, letter-spacing 0.18s ease-out;
}

.hg-menu__nav .wp-block-navigation-item__content:hover {
	transition: color 0.4s ease, letter-spacing 0.6s var(--hg-ease);
}

.hg-window-wrap {
	position: relative;
	z-index: 2;
}

.hg-key-ghost img {
	visibility: hidden;
}

.hg-key-fly {
	position: absolute;
	z-index: 5;
	object-fit: contain;
	pointer-events: none;
	transform-origin: 50% 50%;
	will-change: translate, scale;
}

/* ---------- Páginas legales ---------- */
.hg-legal {
	margin: 0 !important;
	padding: calc(140 * var(--hg-u) + 40px) var(--wp--preset--spacing--40) calc(180 * var(--hg-u) + 40px);
	color: #181818;
}

.hg-legal > * {
	margin-block: 0;
}

.hg-legal__title {
	margin-top: 14px !important;
	font-size: max(36px, calc(80.85 * var(--hg-u)));
	line-height: 0.92;
	text-transform: uppercase;
}

.hg-legal__title::after {
	content: "";
	display: block;
	width: 1px;
	height: 64px;
	margin: 36px auto 0;
	background: var(--hg-gold-dark);
}

.hg-legal__content {
	margin-top: 56px !important;
	font-size: 15px;
	line-height: 1.7;
}

.hg-legal__content > * {
	margin-block: 0 0 1.1em;
}

.hg-legal__content h2 {
	margin: 2.6em 0 0.9em;
	padding-top: 1.4em;
	border-top: 1px solid rgb(24 24 24 / 0.12);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hg-legal__content h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.hg-legal__content h3 {
	margin: 1.8em 0 0.6em;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: 24px;
	font-weight: 200;
	line-height: 1.15;
	text-transform: uppercase;
}

.hg-legal__content ul {
	padding-left: 1.2em;
}

.hg-legal__content li {
	margin-bottom: 0.45em;
}

.hg-legal__content li::marker {
	color: var(--hg-gold-dark);
}

.hg-legal__content a {
	color: inherit;
	text-decoration-color: var(--hg-gold-dark);
	text-underline-offset: 3px;
	word-break: break-word;
}

.hg-legal__content a:hover {
	color: var(--hg-gold-dark);
}

.hg-legal__content strong {
	font-weight: 600;
}

.hg-legal__content .wp-block-table {
	overflow-x: auto;
}

.hg-legal__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.45;
}

.hg-legal__content th,
.hg-legal__content td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid rgb(24 24 24 / 0.12);
	text-align: left;
	vertical-align: top;
}

.hg-legal__content thead th {
	border-bottom: 1px solid var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hg-legal__date {
	margin-top: 64px !important;
	color: rgb(24 24 24 / 0.55);
}

@media (max-width: 781px) {
	.hg-legal__content {
		margin-top: 40px !important;
		font-size: 14px;
	}

	.hg-legal__content table {
		min-width: 560px;
	}
}

/* Ficha de vivienda: el formulario va antes del banner "Conoce más sobre la firma". */
.hg-fform + .hg-firma {
	margin-top: 0 !important;
}

.hg-fc + .hg-fform {
	padding-top: calc(200 * var(--hg-u) + 20px);
}

/* Texto + dato de Housingo en la misma línea (franjas). */
.hg-inline {
	gap: 0.45em !important;
}

.hg-inline > * {
	margin: 0 !important;
}

.hg-band .hg-dato a {
	margin-left: 0;
}

.hg-dato--redes .wp-block-social-links {
	margin: 0;
}

.site-footer__social.hg-dato .wp-block-social-links {
	justify-content: center;
	gap: 19px;
}

.hg-menu__social.hg-dato .wp-block-social-links {
	gap: 22px;
}

.hg-dato .wp-social-link {
	color: #181818 !important;
	background: none !important;
}

.hg-dato .wp-social-link svg {
	width: 19px;
	height: 19px;
}

/* Más aire entre los datos de contacto y el mapa (sobre todo en portátiles). */
.hg-dato--mapa.hg-dato {
	margin-top: clamp(90px, 9vw, 150px) !important;
}

.hg-dato--mapa .hg-map {
	margin-top: 0 !important;
}

.hg-map .leaflet-control-attribution {
	opacity: 0.6;
}

@media (max-width: 781px) {
	.hg-dato--mapa.hg-dato {
		margin-top: 3rem !important;
	}
}

/* ---------- Contacto: entrada y parallax ---------- */
/* La foto se asienta al cargar. */
.hg-contact-hero .wp-block-cover__image-background {
	animation: hg-settle 3.2s var(--hg-ease) both;
}

/* La caja blanca sube y se despliega de abajo arriba. */
.hg-reveal-ready [data-reveal="rise"] {
	opacity: 0;
	transform: translateY(70px);
	clip-path: inset(18% 0 0 0);
	transition: opacity 1.2s var(--hg-ease), transform 1.6s var(--hg-ease), clip-path 1.6s var(--hg-ease);
}

.hg-reveal-ready [data-reveal="rise"].is-in {
	clip-path: inset(0);
}

.hg-contact-box .hg-field[data-reveal],
.hg-contact-box .hg-form__submit[data-reveal] {
	transition-duration: 0.8s;
}

.hg-contact-box .hg-field[data-reveal],
.hg-contact-box .hg-form__submit[data-reveal] {
	--hg-delay-base: 500ms;
}

.hg-reveal-ready .hg-contact-box__title[data-reveal].is-in,
.hg-reveal-ready .hg-contact-box__text[data-reveal].is-in {
	transition-delay: calc(var(--hg-delay, 0ms) + 450ms);
}

/* Campos: al enfocar, la etiqueta se pone dorada y el borde se dibuja. */
.hg-field > span {
	transition: color 0.4s ease;
}

.hg-field:focus-within > span {
	color: var(--hg-gold-dark);
}

.hg-field input,
.hg-field textarea,
.hg-field select {
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Crédito de OpenStreetMap (obligatorio por su licencia): visible y legible, pero lo más discreto posible. */
.leaflet-container .leaflet-control-attribution {
	margin: 0 6px 4px 0 !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: rgb(24 24 24 / 0.38);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 8px !important;
	letter-spacing: 0.04em;
	line-height: 1;
	opacity: 1 !important;
}

.leaflet-container .leaflet-control-attribution a {
	color: inherit !important;
	text-decoration: none !important;
}

.hg-mapmodal .leaflet-control-attribution {
	color: rgb(24 24 24 / 0.45);
}



/* Hero: el primer pintado no espera a la animación (opacidad mínima en lugar de 0). */
.hg-reveal-ready .hg-hero [data-reveal="hero"]:not(.is-in) {
	opacity: 0.01;
}

/* ---------- Ajustes táctiles en móvil y tablet (zonas de pulsación ≥ 40 px) ---------- */
@media (max-width: 1024px) {
	.hg-dato .wp-social-link a,
	.site-footer__social .wp-social-link a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.hg-dato .wp-block-social-links,
	.site-footer__social.hg-dato .wp-block-social-links,
	.hg-menu__social.hg-dato .wp-block-social-links {
		gap: 4px !important;
	}

	.site-footer__cols a,
	.hg-menu__contact a,
	.hg-contact-info a,
	.hg-band .hg-dato a,
	.hg-news .hg-dato a {
		display: inline-block;
		padding-block: 8px;
	}

	.hg-news-card__more,
	.hg-more,
	.hg-firma__link a,
	.hg-gallery__link a {
		padding-block: 10px !important;
	}

	.hg-tool {
		width: 42px;
		height: 42px;
	}

	.hg-tools {
		gap: 8px;
	}
}


/* "Vender viviendas": nunca más ancho que la pantalla (móvil y tablet). */
@media (max-width: 1100px) {
	.hg-sell-hero__script {
		font-size: min(calc(150 * var(--hg-f)), 7.4vw) !important;
	}
}

/* ---------- Aviso de cookies: barra fina abajo ----------
 * Discreta: no tapa contenido importante, con línea dorada que se dibuja al aparecer. */
.hg-ck {
	position: fixed;
	z-index: 90;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgb(255 255 255 / 0.97);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 -10px 30px rgb(24 24 24 / 0.08);
	color: #181818;
	transform: translateY(100%);
	transition: transform 0.9s var(--hg-ease), opacity 0.5s ease;
}

.hg-ck::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--hg-gold-dark);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.5s;
}

.hg-ck.is-in {
	transform: none;
}

.hg-ck.is-in::before {
	transform: none;
}

.hg-ck.is-out {
	opacity: 0;
	transform: translateY(100%);
}

.hg-ck__bar {
	display: flex;
	align-items: center;
	gap: 20px 32px;
	max-width: 1806px;
	margin: 0 auto;
	padding: 14px calc(57 * var(--hg-u) + 16px);
}

.hg-ck__word {
	flex: none;
	color: var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--altesse);
	font-size: 38px;
	line-height: 1.1;
	padding: 4px 6px 0 2px;
}

.hg-ck__word::before {
	content: "Cookies";
}

.hg-ck__msg {
	flex: 1;
	min-width: 0;
}

.hg-ck__msg > * {
	margin: 0;
}

.hg-ck__text {
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 1.5;
	text-transform: uppercase;
}

.hg-ck__text a {
	color: inherit;
}

.hg-ck__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px 22px;
}

.hg-ck__link {
	padding: 10px 0;
	border: 0;
	background: none;
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-decoration: underline;
	text-decoration-color: rgb(24 24 24 / 0.3);
	text-underline-offset: 4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.hg-ck__link:hover,
.hg-ck__link[aria-expanded="true"] {
	color: var(--hg-gold-dark);
	text-decoration-color: currentColor;
}

.hg-ck__btn {
	min-width: 120px;
	padding: 12px 22px;
	border: 1px solid #181818;
	background: #181818;
	color: #fff;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.hg-ck__btn:hover,
.hg-ck__btn:focus-visible {
	border-color: var(--hg-gold-dark);
	background: var(--hg-gold-dark);
	color: #fff;
}

.hg-ck__btn--ghost {
	background: transparent;
	color: #181818;
}

/* Preferencias (Configurar). */
.hg-ck__prefs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	align-items: center;
	gap: 14px 32px;
	max-width: 1806px;
	margin: 0 auto;
	padding: 4px calc(57 * var(--hg-u) + 16px) 18px;
	border-top: 1px solid rgb(24 24 24 / 0.08);
	padding-top: 16px;
}

.hg-ck__prefs[hidden] {
	display: none;
}

.hg-ck__opt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
}

.hg-ck__opt.is-locked {
	cursor: default;
	opacity: 0.7;
}

.hg-ck__opt input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--hg-gold-dark);
}

.hg-ck__opt strong {
	font-weight: 600;
}

@media (max-width: 1024px) {
	.hg-ck__bar {
		flex-wrap: wrap;
		padding: 14px 20px;
	}

	.hg-ck__word {
		display: none;
	}

	.hg-ck__msg {
		flex-basis: 100%;
	}

	.hg-ck__actions {
		flex-wrap: wrap;
		width: 100%;
		justify-content: space-between;
	}

	.hg-ck__prefs {
		grid-template-columns: 1fr;
		padding: 14px 20px 18px;
	}
}

@media (max-width: 560px) {
	.hg-ck__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 10px;
	}

	.hg-ck__btn {
		min-width: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-ck,
	.hg-ck::before {
		transition: opacity 0.3s ease !important;
		transform: none !important;
	}
}

/* Aviso de cookies: la palabra «Cookies» (caligráfica) alineada visualmente con el texto y los botones */
.hg-ck__word { padding: 0 6px 0 2px; line-height: 1; transform: translateY(-5px); }

/* Hero: «by David de Gea» por debajo de HOUSINGO, sin cruzar sus letras (legible) */
.hg-hero__signature { margin-top: -0.24em !important; }

/* ---------- Pie sobrio: degradado oscuro sobre la imagen y el dorado solo como detalle ---------- */
.site-footer {
	background: linear-gradient(rgb(24 24 24 / 0), rgb(24 24 24 / 0.72) 45%, #181818 82%);
	color: rgb(255 255 255 / 0.82);
}
.site-footer a { transition: color 0.3s ease; }
.site-footer a:hover { color: var(--hg-gold-dark); text-decoration: none; }
.site-footer__social .wp-social-link { color: #fff !important; transition: color 0.3s ease; }
.site-footer__social .wp-social-link:hover { color: var(--hg-gold-dark) !important; }
/* Detalle dorado: línea fina sobre las columnas */
.site-footer__cols { position: relative; padding-top: calc(36 * var(--hg-u) + 12px); }
.site-footer__cols::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hg-gold-dark) 20%, var(--hg-gold-dark) 80%, transparent); opacity: 0.7; }

/* Botón de menú más reconocible: icono de tres líneas + palabra «Menú» (en móvil, solo el icono) */
.hg-menu-toggle { width: auto; height: 40px; gap: 14px; }
.hg-menu-toggle span { position: relative; flex: none; width: 30px; height: 13px; border-block: 1px solid currentColor; transition: width 0.4s var(--hg-ease, ease); }
.hg-menu-toggle span::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; margin-top: -0.5px; background: currentColor; transition: width 0.4s var(--hg-ease, ease); }
.hg-menu-toggle::after { content: "Menú"; font-family: var(--wp--preset--font-family--maison-neue-extended); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.hg-menu-toggle:hover span { height: 13px; }
.hg-menu-toggle:hover span::after { width: 62%; }
@media (max-width: 781px) {
	.hg-menu-toggle { width: 46px; justify-content: center; }
	.hg-menu-toggle::after { display: none; }
}
/* Redes del pie: el cambio a dorado al pasar el ratón es inmediato (antes tardaba) */
.site-footer__social .wp-social-link, .site-footer__social .wp-social-link a, .site-footer__social .wp-social-link svg { transition: color 0.12s ease, fill 0.12s ease !important; }
.site-footer__social .wp-social-link:hover { color: var(--hg-gold-dark) !important; }
/* Redes del pie: sin efecto al pasar el ratón (ni cambio de color ni aumento) */
.site-footer__social .wp-social-link, .site-footer__social .wp-social-link:hover { color: #fff !important; transform: none !important; transition: none !important; }
/* Redes del pie: cambian a dorado al pasar el ratón (rápido y sin aumento) */
.site-footer__social .wp-social-link { transition: color 0.12s ease !important; }
.site-footer__social .wp-social-link:hover { color: var(--hg-gold-dark) !important; }
/* Redes del pie: además del dorado, crecen un poco al pasar el ratón */
.site-footer__social .wp-social-link { transition: color 0.12s ease, transform 0.25s ease !important; }
.site-footer__social .wp-social-link:hover { transform: scale(1.1) !important; }
/* Pie: las cuatro columnas terminan exactamente a la misma altura */
.site-footer__cols > .wp-block-column { display: flex; flex-direction: column; justify-content: flex-end; }
.site-footer__cols p, .site-footer__cols .hg-dato { margin: 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.5 !important; }

/* ---------- Accesos circulares (rediseño): círculo fino con flecha y texto recto debajo ---------- */
.hg-orbit .wp-block-button__link { width: auto; min-width: 150px; height: auto; gap: 22px; justify-content: flex-start; }
.hg-orbit .wp-block-button__link::after { display: none; }
.hg-orbit__dot { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid #1D1D1B; border-radius: 50%; color: var(--hg-gold-dark); overflow: hidden; isolation: isolate; transition: border-color 0.4s ease, color 0.4s ease; }
.hg-orbit__dot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--hg-gold-dark); transform: scale(0); transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.hg-orbit__dot svg { width: 20px; height: 20px; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.hg-orbit__label { font-family: var(--wp--preset--font-family--maison-neue-extended); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; text-align: center; transition: color 0.3s ease; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot { border-color: var(--hg-gold-dark); color: #fff; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::before { transform: scale(1); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot svg { transform: rotate(45deg); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__label { color: var(--hg-gold-dark); }
@media (max-width: 781px) {
	.hg-orbit .wp-block-button__link { min-width: 0; width: 104px; gap: 14px; }
	.hg-orbit__dot { width: 64px; height: 64px; }
	.hg-orbit__label { font-size: 10px; }
}

/* ---------- Accesos de perfil (v2): texto recto arriba, línea dorada vertical y caja cuadrada con flecha ---------- */
.hg-orbit .wp-block-button__link { gap: 0; }
.hg-orbit__label { order: 0; }
.hg-orbit__dot { order: 1; position: relative; width: 64px; height: 64px; margin-top: 54px; border-radius: 0; border-color: rgb(29 29 27 / 0.35); overflow: visible; }
.hg-orbit__dot::before { border-radius: 0; transform: scaleY(0); transform-origin: bottom; }
.hg-orbit__dot::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 1px); width: 1px; height: 38px; background: var(--hg-gold-dark); transform-origin: top; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.hg-orbit__dot svg { width: 18px; height: 18px; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::before { transform: scaleY(1); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::after { transform: scaleY(0.55); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot svg { transform: translate(2px, -2px); }
@media (max-width: 781px) {
	.hg-orbit__dot { width: 52px; height: 52px; margin-top: 40px; }
	.hg-orbit__dot::after { height: 28px; }
}

/* ---------- Accesos de perfil (v3): rectángulo; al pasar el ratón se dibujan línea, marco y flecha en dorado
   y el texto se rellena de dorado de abajo arriba ---------- */
.hg-orbit__dot { width: 120px; height: 56px; margin-top: 54px; border: 0; background: none; overflow: visible; color: var(--hg-gold-dark); }
.hg-orbit__dot::before, .hg-orbit__dot::after { display: none; }
.hg-orbit__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hg-orbit__frame path, .hg-orbit__frame rect { vector-effect: non-scaling-stroke; stroke-width: 1; }
.hg-orbit__rect--base { stroke: rgb(29 29 27 / 0.3); }
.hg-orbit__line { stroke: var(--hg-gold-dark); }
.hg-orbit__rect--draw { stroke: var(--hg-gold-dark); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
.hg-orbit__line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hg-orbit__arrow { position: relative; width: 18px; height: 18px; }
.hg-orbit__arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot { color: var(--hg-gold-dark); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot svg.hg-orbit__arrow { transform: none; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__line { animation: orbit-draw 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__rect--draw { stroke-dashoffset: 0; }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__arrow path { animation: orbit-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.5s backwards; }
@keyframes orbit-draw { from { stroke-dashoffset: 1; } }
/* Texto: se rellena de dorado de abajo arriba */
.hg-orbit__label { background: linear-gradient(to top, var(--hg-gold-dark) 50%, currentColor 50%); background-size: 100% 200%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__label { color: var(--wp--preset--color--contrast); background-position: 0 100%; }
@media (max-width: 781px) {
	.hg-orbit__dot { width: 92px; height: 46px; margin-top: 40px; }
	.hg-orbit__line { transform: scaleY(0.7); transform-origin: 50% 0; }
}
.hg-orbit__dot { display: grid; place-items: center; }
.hg-orbit__dot svg.hg-orbit__frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform: none !important; }
.hg-orbit__dot svg.hg-orbit__arrow { grid-area: 1 / 1; width: 18px; height: 18px; }
/* Accesos de perfil: línea dorada del mismo grosor que el marco (1px nítido), más cerca del texto,
   y se dibuja al aparecer (junto con el marco) */
.hg-orbit__dot { margin-top: 36px; }
.hg-orbit__line { stroke-width: 1 !important; shape-rendering: crispEdges; transform: translateX(0.5px); }
.hg-orbit__rect--base { shape-rendering: crispEdges; }
.hg-reveal-ready .hg-orbit:not(.is-in) .hg-orbit__line,
.hg-reveal-ready .hg-orbit:not(.is-in) .hg-orbit__rect--base,
.hg-reveal-ready .hg-orbit:not(.is-in) .hg-orbit__arrow path { stroke-dashoffset: 1; }
.hg-orbit__rect--base { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hg-reveal-ready .hg-orbit.is-in .hg-orbit__line { animation: orbit-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--hg-delay, 0ms) + 0.3s) backwards; }
.hg-reveal-ready .hg-orbit.is-in .hg-orbit__rect--base { animation: orbit-draw 1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--hg-delay, 0ms) + 0.8s) backwards; }
.hg-reveal-ready .hg-orbit.is-in .hg-orbit__arrow path { animation: orbit-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--hg-delay, 0ms) + 1.6s) backwards; }
@media (max-width: 781px) { .hg-orbit__dot { margin-top: 30px; } }

/* Franja dorada: botones para llamar o escribir por WhatsApp. */
.hg-band {
	flex-wrap: wrap;
	gap: 10px 28px;
}

.hg-band__actions {
	display: flex;
	gap: 10px;
	margin: 0 !important;
}

.hg-cta-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid #181818;
	color: #181818;
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.35s ease, color 0.35s ease;
}

.hg-band .hg-cta-pill {
	margin: 0;
	color: #181818;
}

.hg-cta-pill svg {
	width: 15px;
	height: 15px;
}

.hg-cta-pill:hover,
.hg-cta-pill:focus-visible {
	background: #181818;
	color: #fff !important;
}

@media (max-width: 781px) {
	.hg-band {
		flex-direction: column;
		padding-block: 16px;
	}

	.hg-cta-pill {
		padding: 11px 18px;
	}
}

.hg-band > .hg-inline {
	flex: none;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

.hg-band .hg-dato a.hg-cta-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
}

@media (max-width: 781px) {
	.hg-band .hg-dato a.hg-cta-pill {
		padding: 11px 18px;
	}
}

/* "Ir a housingo.es": CTA más grande y visible, en el hueco oscuro junto a la galería. */
.hg-gallery__link {
	top: calc(120 * var(--hg-u)) !important;
	left: calc(1640 * var(--hg-u)) !important;
	width: calc(250 * var(--hg-u)) !important;
	min-width: 190px;
}

.hg-gallery__link a {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	color: #fff;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(24px, calc(38 * var(--hg-u)));
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
	transition: color 0.4s ease;
}

.hg-gallery__link a::after {
	content: "";
	display: block;
	order: 2;
	width: 58px;
	height: 58px;
	margin: 0;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / 20px, var(--hg-gold-dark);
	transition: transform 0.5s var(--hg-ease);
}

.hg-gallery__link a:hover {
	color: var(--hg-gold-dark);
}

.hg-gallery__link a:hover::after {
	transform: translateX(8px);
}

@media (max-width: 781px) {
	.hg-gallery__link {
		width: auto !important;
		margin-top: 1.5rem !important;
	}

	.hg-gallery__link a {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		font-size: 26px;
	}

	.hg-gallery__link a::after {
		width: 50px;
		height: 50px;
	}
}

/* ---------- Pantalla de gracias tras enviar un formulario ---------- */
.hg-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 0 10px;
	text-align: center;
	color: #181818;
	outline: 0;
}

.hg-thanks[hidden] {
	display: none;
}

.hg-thanks > * {
	margin: 0;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.8s ease, transform 1s var(--hg-ease);
}

.hg-thanks.is-in > * {
	opacity: 1;
	transform: none;
}

.hg-thanks.is-in > :nth-child(2) { transition-delay: 0.55s; }
.hg-thanks.is-in > :nth-child(3) { transition-delay: 0.7s; }
.hg-thanks.is-in > :nth-child(4) { transition-delay: 0.9s; }
.hg-thanks.is-in > :nth-child(5) { transition-delay: 1.05s; }
.hg-thanks.is-in > :nth-child(6) { transition-delay: 1.2s; }

.hg-thanks__ring {
	width: 64px;
	height: 64px;
	margin-bottom: 26px !important;
}

.hg-thanks__ring svg {
	width: 100%;
	height: 100%;
	stroke: var(--hg-gold-dark);
	stroke-width: 1;
}

.hg-thanks__ring circle {
	stroke-dasharray: 158;
	stroke-dashoffset: 158;
	transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.hg-thanks__ring path {
	stroke-width: 1.4;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	transition: stroke-dashoffset 0.6s ease 0.9s;
}

.hg-thanks.is-in .hg-thanks__ring circle,
.hg-thanks.is-in .hg-thanks__ring path {
	stroke-dashoffset: 0;
}

.hg-thanks__eyebrow {
	color: var(--hg-gold-dark);
}

.hg-thanks__title {
	margin-top: 4px !important;
	font-family: var(--wp--preset--font-family--altesse);
	font-size: clamp(64px, 7vw, 110px);
	line-height: 1.15;
}

.hg-thanks__line {
	display: block;
	width: 1px;
	height: 56px;
	margin: 18px 0 22px !important;
	background: var(--hg-gold-dark);
}

.hg-thanks__text {
	max-width: 420px;
	line-height: 1.45;
}

.hg-thanks__btn {
	margin-top: 30px !important;
	padding: 6px 2px;
	border: 0;
	border-bottom: 1px solid var(--hg-gold-dark);
	background: none;
	color: #181818;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: 20px;
	font-style: italic;
	font-weight: 200;
	cursor: pointer;
	transition: color 0.3s ease;
}

.hg-thanks__btn:hover {
	color: var(--hg-gold-dark);
}

.hg-form__submit.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.hg-form[hidden] {
	display: none !important;
}

/* En el pop up, al dar las gracias también se oculta el titular "Solicita acceso". */
.hg-modal__box:has(.hg-thanks:not([hidden])) .hg-modal__head {
	display: none;
}

/* "¿Cómo procedemos?" sobre los cuatro pasos. */
.hg-manifesto .hg-steps__title {
	position: relative;
	z-index: 1;
	margin: calc(200 * var(--hg-u)) auto 0 !important;
	font-size: max(26px, calc(48 * var(--hg-u)));
	line-height: 1;
	text-transform: uppercase;
}

.hg-manifesto .hg-steps__title::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	margin: 22px auto 0;
	background: var(--hg-gold-dark);
}

.hg-steps__title + .hg-steps {
	margin-top: calc(60 * var(--hg-u)) !important;
}

@media (max-width: 781px) {
	.hg-manifesto .hg-steps__title {
		margin-top: 3rem !important;
	}

	.hg-steps__title + .hg-steps {
		margin-top: 2rem !important;
	}
}

/* Enlaces de acción bajo los pasos 1 y 2. */
.hg-step .hg-step__link {
	margin-top: 14px !important;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: 19px;
	font-style: italic;
	font-weight: 200;
	line-height: 1;
}

.hg-step__link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--hg-gold-dark);
	color: #181818;
	text-decoration: none;
	transition: color 0.3s ease, gap 0.4s var(--hg-ease);
}

.hg-step__link a::after {
	content: "→";
	color: var(--hg-gold-dark);
	font-style: normal;
	font-size: 14px;
}

.hg-step__link a:hover {
	gap: 14px;
	color: var(--hg-gold-dark);
}

/* Con acceso ya concedido no tiene sentido pedir el formulario. */
.hg-has-access .hg-step__link--form {
	visibility: hidden;
}

/* Los enlaces van debajo del punto dorado, por fuera del arco, sin mover los puntos. */
.hg-step::after {
	order: 2;
}

.hg-step .hg-step__link {
	order: 3;
	margin-top: calc(33 * var(--hg-u) - 10px) !important;
}

/* Si el paso tiene botón, el botón ocupa el lugar del punto (todos a la misma altura). */
.hg-step:has(.hg-step__link)::after {
	display: none;
}

.hg-has-access .hg-step:has(.hg-step__link--form)::after {
	display: block;
}

.hg-has-access .hg-step__link--form {
	display: none;
}

/* Botones: aparecen solo con fundido (sin desplazarse), para que la zona clicable coincida
 * siempre con el botón que se ve; y no se pueden pulsar hasta que han aparecido. */
.hg-reveal-ready .wp-block-buttons[data-reveal] {
	transform: none !important;
	filter: none !important;
}

.hg-reveal-ready [data-reveal]:not(.is-in) a,
.hg-reveal-ready [data-reveal]:not(.is-in) button {
	pointer-events: none;
}

/* Menos separación entre "Conócenos más" y la galería. */
.hg-gallery {
	margin-top: calc(130 * var(--hg-u)) !important;
}

@media (max-width: 781px) {
	.hg-gallery {
		margin-top: 2.5rem !important;
	}
}

/* Texto que se escribe en los campos (y sus ejemplos): 14 px. En móvil sigue a 16 px para evitar el zoom de iOS. */
@media (min-width: 782px) {
	.hg-field input,
	.hg-field textarea,
	.hg-field select {
		font-size: 14px !important;
	}

	.hg-modal--dark .hg-field input {
		font-size: 18px !important;
	}
}

/* Pie: las oficinas en una línea horizontal, debajo de las columnas. */
.site-footer__offices {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 22px;
	margin-top: calc(46 * var(--hg-u) + 14px) !important;
	padding-top: calc(26 * var(--hg-u) + 10px);
	border-top: 1px solid rgb(24 24 24 / 0.25);
	text-align: center;
}

.site-footer__offices .hg-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #181818;
	opacity: 0.6;
}

@media (max-width: 781px) {
	.site-footer__offices {
		flex-direction: column;
		gap: 4px;
	}

	.site-footer__offices .hg-dot {
		display: none;
	}
}

/* Fila de oficinas adaptada al pie oscuro: separadores dorados y línea tenue. */
.site-footer__offices {
	border-top-color: rgb(255 255 255 / 0.14);
	color: rgb(255 255 255 / 0.82);
	font-size: 12px !important;
	letter-spacing: 0.05em;
}

.site-footer__offices .hg-dot {
	background: var(--hg-gold-dark);
	opacity: 1;
}

/* Pie: tres columnas repartidas a todo el ancho y las oficinas en una fila debajo, compacta. */
@media (min-width: 782px) {
	.site-footer__cols {
		justify-content: space-between !important;
	}

	.site-footer__cols > .wp-block-column {
		flex: 0 0 auto !important;
		width: auto !important;
	}
}

.site-footer:has(.site-footer__offices) {
	padding-bottom: calc(8 * var(--hg-u) + 8px) !important;
}

.site-footer__offices {
	margin-top: calc(28 * var(--hg-u) + 10px) !important;
	padding-top: calc(18 * var(--hg-u) + 8px) !important;
}

/* En portátiles, si no caben, las oficinas pasan a dos líneas centradas. */
@media (min-width: 782px) and (max-width: 1199px) {
	.site-footer__offices {
		gap: 4px 16px;
	}
}

/* "Ir a housingo.es" pegado a la foto de abajo (que empieza a 432 px de la galería). */
@media (min-width: 782px) {
	.hg-gallery__link {
		top: auto !important;
		/* El círculo termina a la altura del borde inferior de la foto del stand (397 px). */
		bottom: calc(807 * var(--hg-u));
	}
}

/* Oficinas del pie: enlazan a Google Maps. */
.site-footer__offices a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(var(--hg-gold-dark), var(--hg-gold-dark)) left bottom / 0 1px no-repeat;
	padding-bottom: 2px;
	transition: color 0.3s ease, background-size 0.5s var(--hg-ease);
}

.site-footer__offices a:hover,
.site-footer__offices a:focus-visible {
	color: var(--hg-gold-dark);
	background-size: 100% 1px;
}

/* Perfiles: botones más achatados con fondo negro; el negro aparece tras dibujarse la línea
 * y al pasar el ratón se traza el marco dorado. */
.hg-orbit__dot {
	width: 132px;
	height: 40px;
	background-color: #181818;
	transition: background-color 0.8s ease calc(var(--hg-delay, 0ms) + 0.8s);
}

.hg-reveal-ready .hg-orbit:not(.is-in) .hg-orbit__dot {
	background-color: transparent;
	transition-delay: 0s;
}

.hg-orbit__rect--base {
	stroke: #181818;
}

.hg-orbit__arrow {
	width: 16px !important;
	height: 16px !important;
	transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot svg.hg-orbit__arrow {
	transform: translate(3px, -3px);
}

/* Al achatar el botón la línea del SVG se acorta: se alarga para que vuelva a llegar cerca del texto. */
.hg-orbit__line {
	transform: translateX(0.5px) scaleY(1.4) !important;
	transform-origin: 50% 0;
	transform-box: view-box;
}

@media (max-width: 781px) {
	.hg-orbit__dot {
		width: 96px;
		height: 34px;
	}

	.hg-orbit__line {
		transform: translateX(0.5px) scaleY(1.3) !important;
	}
}

/* Mientras suben al aparecer (36px), los botones no deben salirse de su sección: el carrusel, con
 * fondo blanco, los cortaba. Se da ese hueco abajo y se le resta al carrusel (el resultado no cambia). */
.hg-perfiles {
	padding-bottom: 40px !important;
}

.hg-perfiles + .hg-carousel {
	padding-top: max(0px, max(2.5rem, calc(93 * var(--hg-u))) - 40px) !important;
}

/* La flecha aparece antes: casi a la vez que el fondo negro. */
.hg-reveal-ready .hg-orbit.is-in .hg-orbit__arrow path {
	animation-duration: 0.5s;
	animation-delay: calc(var(--hg-delay, 0ms) + 0.6s);
}

.hg-orbit__dot {
	transition-delay: calc(var(--hg-delay, 0ms) + 0.35s);
}

/* Perfiles: el mismo brillo que cruza los demás botones al pasar el cursor
 * (se pinta dentro del propio botón para no recortar la línea dorada de arriba). */
.hg-orbit__dot::before {
	content: "";
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 0;
	background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.28) 50%, transparent 60%) no-repeat;
	background-size: 250% 100%;
	background-position: 130% 0;
	transform: none !important;
	pointer-events: none;
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::before {
	background-position: -30% 0;
	transition: background-position 0.9s ease 0.1s;
}

.hg-orbit__dot svg.hg-orbit__arrow {
	position: relative;
	z-index: 1;
}

/* Perfiles, entrada: línea (0,1–0,5 s) → contorno (0,45–1,1 s) → fondo negro → flecha. */
.hg-reveal-ready .hg-orbit.is-in .hg-orbit__line {
	animation-duration: 0.4s;
	animation-delay: calc(var(--hg-delay, 0ms) + 0.1s);
}

.hg-reveal-ready .hg-orbit.is-in .hg-orbit__rect--base {
	animation-duration: 0.65s;
	animation-delay: calc(var(--hg-delay, 0ms) + 0.45s);
}

.hg-orbit__dot {
	transition: background-color 0.6s ease calc(var(--hg-delay, 0ms) + 1.1s);
}

.hg-reveal-ready .hg-orbit.is-in .hg-orbit__arrow path {
	animation-duration: 0.5s;
	animation-delay: calc(var(--hg-delay, 0ms) + 1.3s);
}

/* Orden del hero: frase, HOUSINGO, firma; y después el texto, la línea y el botón. */
.hg-reveal-ready .hg-hero :is(.hg-hero__text, .hg-vline, .hg-hero__actions)[data-reveal="hero"] {
	transition-delay: calc(var(--hg-delay) + 450ms);
}

/* Hero más ágil: todo está en pantalla en ~2 s (la firma termina de escribirse poco después). */
.hg-reveal-ready .hg-hero .hg-hero__eyebrow[data-reveal="hero"] {
	transition-duration: 1.1s;
	transition-delay: 0ms;
}

.hg-reveal-ready .hg-hero .hg-hero__title[data-reveal="hero"] {
	transition-duration: 1.4s;
	transition-delay: 120ms;
}

.hg-reveal-ready .hg-hero .hg-hero__signature[data-reveal="hero"] {
	transition-duration: 2.6s;
	transition-delay: 450ms;
}

.hg-reveal-ready .hg-hero :is(.hg-hero__text, .hg-vline, .hg-hero__actions)[data-reveal="hero"] {
	transition-duration: 1.1s;
}

.hg-reveal-ready .hg-hero .hg-hero__text[data-reveal="hero"] {
	transition-delay: 650ms;
}

.hg-reveal-ready .hg-hero .hg-vline[data-reveal="hero"] {
	transition-delay: 800ms;
}

.hg-reveal-ready .hg-hero .hg-hero__actions[data-reveal="hero"] {
	transition-delay: 950ms;
}

/* HOUSINGO: el desenfoque termina en blur(0) (no en "none") y la capa se mantiene, para que el paso
 * a nítido sea continuo; quitar el filtro al final hacía que el navegador repintase de golpe. */
.hg-reveal-ready .hg-hero .hg-hero__title[data-reveal="hero"] {
	will-change: opacity, filter, transform;
	transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hg-reveal-ready .hg-hero .hg-hero__title[data-reveal="hero"].is-in {
	filter: blur(0);
}

/* Vender: velo en degradado sobre la foto (oscuro arriba, tras el titular, y abajo) para que el texto
 * blanco destaque sea cual sea la imagen que ponga el cliente. Sustituye al color plano del bloque. */
.hg-sell-hero > .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg,
		rgb(24 24 24 / 0.62) 0%,
		rgb(24 24 24 / 0.38) 30%,
		rgb(24 24 24 / 0.3) 55%,
		rgb(24 24 24 / 0.6) 100%) !important;
}

/* Vender: el título va en la tipografía de titulares (no en cursiva), como HOUSINGO en la portada. */
.hg-sell-hero__script {
	margin-top: calc(70 * var(--hg-f)) !important;
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: calc(150 * var(--hg-f));
	font-style: normal;
	font-weight: 200;
	line-height: 1;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.hg-sell-hero__script {
		margin-top: 2rem !important;
		font-size: 14vw !important;
		white-space: normal;
	}
}

/* Vender, "¿Por qué HousinGo?": titular centrado y el botón debajo, también centrado. */
.hg-why__title {
	text-align: center;
}

.hg-why__title span {
	padding-left: 0 !important;
}

.hg-why__cta {
	position: static !important;
	justify-content: center !important;
	margin-top: max(2rem, calc(64 * var(--hg-u))) !important;
}

/* Vender: "VENDER VIVIENDAS" (hero) es el texto grande y "Vender al nivel…" queda por debajo de él. */
.hg-sell-hero__script {
	font-size: min(calc(150 * var(--hg-u)), 7.4vw) !important;
}

.hg-why__title {
	margin-top: max(1.5rem, calc(56 * var(--hg-u))) !important;
	font-size: max(28px, calc(88 * var(--hg-u)));
	line-height: 1;
}

@media (max-width: 781px) {
	.hg-sell-hero__script {
		font-size: 14vw !important;
	}

	.hg-why__title {
		font-size: 9vw;
	}
}

/* Vender, ventajas (comentario de Valentina: demasiado salto entre el titular y los textos, poco limpio).
 * Columna ordenada a la izquierda de la imagen: tres puntos numerados, alineados, con un título
 * intermedio en la tipografía de titulares y el texto más legible; la frase final cierra abajo. */
@media (min-width: 782px) {
	.hg-features {
		counter-reset: hg-feature;
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: calc(1204 * var(--hg-u));
		padding: calc(70 * var(--hg-u)) calc(925 * var(--hg-u) + 110 * var(--hg-u)) calc(70 * var(--hg-u)) calc(57 * var(--hg-u)) !important;
		box-sizing: border-box;
	}

	.hg-feature {
		counter-increment: hg-feature;
		position: static !important;
		display: grid;
		grid-template-columns: calc(70 * var(--hg-u) + 20px) 1fr;
		width: auto;
		max-width: none;
		margin: 0 !important;
		padding: calc(34 * var(--hg-u) + 10px) 0;
		border-left: 0;
		border-top: 1px solid rgb(200 138 2 / 0.3);
		text-transform: none;
	}

	.hg-feature:last-of-type {
		border-bottom: 1px solid rgb(200 138 2 / 0.3);
	}

	.hg-feature::before {
		content: counter(hg-feature, decimal-leading-zero);
		grid-row: span 2;
		color: var(--hg-gold-dark);
		font-family: var(--wp--preset--font-family--pangaia);
		font-size: max(15px, calc(20 * var(--hg-u)));
		font-style: italic;
		font-weight: 200;
		letter-spacing: 0;
		line-height: 1.2;
	}

	.hg-feature--2,
	.hg-feature--3 {
		margin-left: 0 !important;
	}

	.hg-feature__title {
		margin-bottom: 10px !important;
		font-family: var(--wp--preset--font-family--pangaia);
		font-size: max(22px, calc(34 * var(--hg-u)));
		font-weight: 200;
		letter-spacing: 0;
		line-height: 1.05;
		text-transform: uppercase;
	}

	.hg-feature__text {
		max-width: 470px;
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0.02em;
		line-height: 1.6;
	}

	.hg-features__quote {
		position: static !important;
		width: auto;
		max-width: calc(640 * var(--hg-u) + 80px);
		margin-top: auto !important;
		padding-top: calc(80 * var(--hg-u)) !important;
		font-size: max(26px, calc(52 * var(--hg-u)));
	}
}

/* Vender, ventajas: la lista se queda fija bajo la cabecera hasta llegar a la frase final. */
@media (min-width: 782px) {
	.hg-features__track {
		flex: 1 1 auto;
		margin: 0 !important;
	}

	/* Recorrido durante el que la lista se queda fija mientras sube la frase final
	 * (un bloque dentro del contenedor: el relleno no cuenta para el sticky). */
	.hg-features__track::after {
		content: "";
		display: block;
		height: 45vh;
	}

	.hg-features__list {
		position: sticky;
		top: calc(110 * var(--hg-u) + 40px);
	}
}

/* Vender, pasos: el texto bajo cada título a 14px. */
.hg-sstep .hg-sstep__text {
	max-width: 360px;
	font-size: 14px !important;
}

/* Vender, pasos (comentario de Valentina: no gustan los números grandes detrás del título).
 * Número pequeño en cursiva dorada sobre el título, unido a él por una línea vertical fina. */
.hg-sstep__num {
	height: auto;
	color: var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(24px, calc(40 * var(--hg-u)));
	font-style: italic;
	font-weight: 200;
	line-height: 1;
	translate: none;
}

.hg-sstep__num::after {
	content: "";
	display: block;
	width: 1px;
	height: max(36px, calc(56 * var(--hg-u)));
	margin: calc(18 * var(--hg-u) + 6px) auto calc(22 * var(--hg-u) + 8px);
	background: var(--hg-gold-dark);
	opacity: 0.6;
}

/* Sin las cifras grandes, los pasos necesitan aire propio respecto al formulario. */
.hg-ssteps {
	margin-top: max(4rem, calc(190 * var(--hg-u))) !important;
}

@media (max-width: 781px) {
	.hg-sstep__num {
		height: auto;
		font-size: 26px;
	}
}

/* Vender, pasos: entrada escalonada de cada paso. El número aparece desde el desenfoque, la línea baja
 * hasta el título, el título sube y por último el texto. Se repite al volver a la sección. */
.hg-reveal-ready .hg-sstep[data-reveal] {
	opacity: 1;
	transform: none;
	filter: none;
}

.hg-reveal-ready .hg-sstep :is(.hg-sstep__num, .hg-sstep__title, .hg-sstep__text) {
	transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease, letter-spacing 0.4s ease;
}

.hg-reveal-ready .hg-sstep:not(.is-in) .hg-sstep__num {
	opacity: 0;
	filter: blur(8px);
	letter-spacing: 0.3em;
	transform: translateY(-8px);
}

.hg-reveal-ready .hg-sstep:not(.is-in) .hg-sstep__num::after {
	transform: scaleY(0);
}

.hg-reveal-ready .hg-sstep:not(.is-in) .hg-sstep__title {
	opacity: 0;
	filter: blur(6px);
	transform: translateY(26px);
}

.hg-reveal-ready .hg-sstep:not(.is-in) .hg-sstep__text {
	opacity: 0;
	transform: translateY(14px);
}

.hg-sstep__num::after {
	transform-origin: top center;
	transition: transform 0.3s ease;
}

.hg-reveal-ready .hg-sstep.is-in .hg-sstep__num {
	transition: opacity 1.2s ease var(--hg-delay, 0ms), filter 1.2s ease var(--hg-delay, 0ms),
		letter-spacing 1.4s cubic-bezier(0.22, 1, 0.36, 1) var(--hg-delay, 0ms), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--hg-delay, 0ms);
}

.hg-reveal-ready .hg-sstep.is-in .hg-sstep__num::after {
	transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--hg-delay, 0ms) + 0.55s);
}

.hg-reveal-ready .hg-sstep.is-in .hg-sstep__title {
	transition: opacity 1.2s ease calc(var(--hg-delay, 0ms) + 1.05s), filter 1.2s ease calc(var(--hg-delay, 0ms) + 1.05s),
		transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hg-delay, 0ms) + 1.05s);
}

.hg-reveal-ready .hg-sstep.is-in .hg-sstep__text {
	transition: opacity 1s ease calc(var(--hg-delay, 0ms) + 1.4s), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hg-delay, 0ms) + 1.4s);
}

/* Sobre nosotros (comentario de Valentina: nombre y descripción no deben ir con el mismo tamaño y fuente).
 * El nombre pasa a la tipografía de titulares, más grande; la descripción queda en Maison. */
.hg-founder__name {
	font-family: var(--wp--preset--font-family--pangaia);
	font-size: max(22px, calc(30 * var(--hg-u)));
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
}

/* Sobre nosotros (comentario de Valentina): el titular no pisa la foto; todas sus líneas acaban dentro
 * del marco blanco (la foto empieza en x = 996). */
@media (min-width: 782px) {
	.hg-about-hero__title {
		font-size: calc(141.4 * var(--hg-u));
	}

	.hg-l2 {
		padding-left: calc(190 * var(--hg-u));
	}
}

/* Pie: donde la imagen final no llega (en móvil es más baja que el degradado del pie), el fondo es
 * oscuro; antes asomaba el blanco de la página y el logo blanco apenas se leía. */
.hg-tail {
	background: #181818;
}

@media (max-width: 781px) {
	/* Pie en móvil: el logo queda más arriba, así que el degradado oscurece antes para que se lea. */
	.site-footer {
		background: linear-gradient(rgb(24 24 24 / 0), rgb(24 24 24 / 0.78) 12%, #181818 34%);
	}

	/* Vender, ventajas en móvil: el mismo estilo que en ordenador (numeradas y separadas). */
	.hg-features {
		counter-reset: hg-feature;
	}

	.hg-feature {
		counter-increment: hg-feature;
		display: grid;
		grid-template-columns: 38px 1fr;
		width: auto;
		max-width: none;
		margin: 0 !important;
		padding: 22px 0;
		border-left: 0;
		border-top: 1px solid rgb(200 138 2 / 0.3);
		text-transform: none;
	}

	.hg-feature--3 {
		border-bottom: 1px solid rgb(200 138 2 / 0.3);
	}

	.hg-feature::before {
		content: counter(hg-feature, decimal-leading-zero);
		grid-row: span 2;
		color: var(--hg-gold-dark);
		font-family: var(--wp--preset--font-family--pangaia);
		font-size: 15px;
		font-style: italic;
		font-weight: 200;
		line-height: 1.4;
	}

	.hg-feature__title {
		margin-bottom: 8px !important;
		font-family: var(--wp--preset--font-family--pangaia);
		font-size: 22px;
		font-weight: 200;
		letter-spacing: 0;
		line-height: 1.05;
		text-transform: uppercase;
	}

	.hg-feature__text {
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0.02em;
		line-height: 1.6;
	}
}

@media (max-width: 781px) {
	.hg-sstep .hg-sstep__text {
		margin-top: 12px !important;
	}
}

/* Sobre nosotros, móvil: "INMOBILIARIA" respeta el margen lateral. */
@media (max-width: 781px) {
	.hg-about-hero__title {
		font-size: 13.4vw !important;
	}
}

/* Sobre nosotros en tablet vertical: cada fundador en una fila (foto a la izquierda, texto a la derecha),
 * en lugar de una foto estrecha con un hueco vacío al lado. */
@media (min-width: 600px) and (max-width: 781px) {
	.hg-founders {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem 1.75rem;
		align-items: center;
	}

	.hg-founder__photo {
		max-width: none;
	}

	.hg-founder__info--left {
		margin-bottom: 0 !important;
	}
}

/* Comprar / Alquilar: la llamada final siempre centrada en la pantalla (compensa el margen izquierdo
 * extra de la lista, que en pantallas medianas es menor que en grande). */
@media (min-width: 782px) and (max-width: 1100px) {
	.hg-cta {
		margin-left: calc((59 - 140) * var(--hg-u)) !important;
	}
}

/* Menú (comentario de Valentina): teléfonos, email e iconos de redes más grandes. */
.hg-menu__contact,
.hg-menu__contact a {
	font-size: 15px !important;
	letter-spacing: 0.04em;
	line-height: 1.6 !important;
}

.hg-menu__social.hg-dato .wp-block-social-links {
	gap: 26px !important;
}

.hg-menu__social .wp-social-link svg {
	width: 23px !important;
	height: 23px !important;
}

@media (max-width: 781px) {
	.hg-menu__contact,
	.hg-menu__contact a {
		font-size: 14px !important;
	}

	.hg-menu__social.hg-dato .wp-block-social-links {
		gap: 20px !important;
	}

	.hg-menu__social .wp-social-link svg {
		width: 21px !important;
		height: 21px !important;
	}
}

/* Perfiles: al pasar el cursor el botón se vuelve blanco (fondo blanco, flecha negra).
 * Al entrar, el negro sigue esperando a que se dibuje el contorno (y la flecha). */
.hg-orbit__dot {
	transition: background-color 0.6s ease calc(var(--hg-delay, 0ms) + 1.1s), color 0.45s ease;
}

.hg-reveal-ready .hg-orbit:not(.is-in) .hg-orbit__dot {
	transition: none;
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot {
	background-color: #fff !important;
	color: #181818 !important;
	transition-delay: 0s;
}

/* Icono de menú (sin la palabra «Menú»): círculo fino con dos líneas, la de abajo más corta y dorada.
 * Al pasar el cursor, el círculo se vuelve dorado y las líneas se igualan. */
.hg-menu-toggle {
	position: relative;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	width: 50px !important;
	height: 50px !important;
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	border-radius: 50%;
	transition: border-color 0.4s ease, background-color 0.4s ease;
}

.hg-menu-toggle::after {
	content: none !important;
}

.hg-menu-toggle span {
	width: 20px !important;
	height: 0 !important;
	border: 0 !important;
	border-top: 1.5px solid currentColor !important;
	transform: translateX(-2px);
	transition: transform 0.4s var(--hg-ease, ease);
}

.hg-menu-toggle span::after {
	content: "";
	position: absolute;
	top: 5px;
	left: auto;
	right: 0;
	width: 12px;
	height: 0;
	margin: 0;
	border-top: 1.5px solid var(--hg-gold-dark);
	background: none;
	transition: width 0.4s var(--hg-ease, ease);
}

.hg-menu-toggle span {
	position: relative;
	top: -3px;
}

.hg-menu-toggle:is(:hover, :focus-visible) {
	border-color: var(--hg-gold-dark);
}

.hg-menu-toggle:is(:hover, :focus-visible) span {
	transform: none;
}

.hg-menu-toggle:is(:hover, :focus-visible) span::after {
	width: 20px;
}

@media (max-width: 781px) {
	.hg-menu-toggle {
		width: 44px !important;
		height: 44px !important;
	}
}

.hg-menu-toggle {
	gap: 0;
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.hg-menu-toggle span {
	width: 22px !important;
	top: -4px;
	border-top-width: 2px !important;
}

.hg-menu-toggle span::after {
	top: 6px;
	width: 13px;
	border-top-width: 2px;
}

.hg-menu-toggle:is(:hover, :focus-visible) span::after {
	width: 22px;
}

/* Perfiles, cursor: el blanco entra deslizándose desde abajo dentro del botón (no de golpe). */
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot {
	background-color: #181818 !important;
}

.hg-orbit__dot::after {
	content: "";
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: 0;
	width: auto;
	height: auto;
	margin: 0;
	border: 0;
	background: #fff;
	clip-path: inset(100% 0 0 0);
	transform: none !important;
	transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
	pointer-events: none;
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::after {
	clip-path: inset(0 0 0 0);
}

.hg-orbit__dot svg.hg-orbit__frame {
	z-index: 1;
}

.hg-orbit__dot svg.hg-orbit__arrow {
	z-index: 2;
	transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s ease 0.15s;
}

.hg-orbit__rect--base {
	transition: stroke 0.3s ease;
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__rect--base {
	stroke: var(--hg-gold-dark);
}

/* Perfiles, cursor (v2): barrido blanco de izquierda a derecha con un borde brillante delante.
 * Una sola capa que se desplaza (sin recortes ni brillo aparte), para que no parpadee. */
.hg-orbit__dot::before {
	display: none !important;
}

.hg-orbit__dot {
	overflow: hidden;
}

.hg-orbit__dot::after {
	clip-path: none !important;
	background: linear-gradient(100deg,
		#fff 0%, #fff 40%,
		rgb(255 255 255 / 0.95) 44%, rgb(255 236 190 / 0.9) 47%,
		rgb(255 255 255 / 0.35) 52%, rgb(255 255 255 / 0) 58%) no-repeat;
	background-size: 260% 100%;
	background-position: 100% 0;
	will-change: background-position;
	transition: background-position 0.75s cubic-bezier(0.55, 0, 0.3, 1);
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::after {
	background-position: 0 0;
}

.hg-orbit__dot svg.hg-orbit__arrow {
	transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.25s ease 0.2s;
}

/* La línea de arriba ya no se redibuja al pasar el cursor (desaparecía un instante y parpadeaba). */
.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__line {
	animation: none !important;
	stroke-dashoffset: 0 !important;
}

.hg-orbit__dot::after {
	background-size: 220% 100%;
	transition: background-position 1s cubic-bezier(0.45, 0, 0.25, 1);
}

.hg-orbit__dot {
	overflow: visible;
}

.hg-orbit__dot::after {
	transition: background-position 1.1s cubic-bezier(0.4, 0, 0.3, 1);
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::after {
	background-position: -14% 0;
}

/* Capa de 3 anchos: el primer tercio es blanco, el borde brillante va en medio y el último tercio es
 * transparente; así empieza invisible y acaba completamente blanca. */
.hg-orbit__dot::after {
	background: linear-gradient(100deg,
		#fff 0%, #fff 46%,
		rgb(255 240 205 / 0.95) 50%, rgb(255 255 255 / 0.55) 55%,
		rgb(255 255 255 / 0) 62%) no-repeat;
	background-size: 300% 100%;
	background-position: 100% 0;
}

.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot::after {
	background-position: 0 0;
}

/* Telas: flotan solas aunque no se haga scroll (deriva lenta, con un ligero giro y vaivén).
 * Va en la imagen; el contenedor sigue con el parallax del scroll. */
.hg-silk.is-in img {
	animation: hg-float-l 14s ease-in-out infinite;
	transform-origin: 55% 50%;
	will-change: transform;
}

.hg-silk--right.is-in img {
	animation: hg-float-r 17s ease-in-out infinite;
	animation-delay: -6s;
	transform-origin: 40% 45%;
}

@keyframes hg-float-l {
	0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
	25% { transform: translate(18px, -26px) rotate(2.2deg) scale(1.015); }
	50% { transform: translate(6px, -40px) rotate(0.6deg) scale(1.025); }
	75% { transform: translate(-14px, -18px) rotate(-1.8deg) scale(1.01); }
}

@keyframes hg-float-r {
	0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
	30% { transform: translate(-20px, 24px) rotate(-2.4deg) scale(1.02); }
	55% { transform: translate(-8px, 38px) rotate(-0.8deg) scale(1.03); }
	80% { transform: translate(14px, 14px) rotate(1.6deg) scale(1.01); }
}

@media (max-width: 781px) {
	@keyframes hg-float-l {
		0%, 100% { transform: translate(0, 0) rotate(0deg); }
		50% { transform: translate(6px, -14px) rotate(1.4deg); }
	}

	@keyframes hg-float-r {
		0%, 100% { transform: translate(0, 0) rotate(0deg); }
		50% { transform: translate(-6px, 14px) rotate(-1.4deg); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-silk.is-in img {
		animation: none;
	}
}

/* ======================================================================
 * Revisión móvil (iPhone, 29/10): legibilidad, cabeceras que caben con las barras del navegador,
 * menú, pop up, mapa y avisos de privacidad.
 * ====================================================================== */

/* Aviso de privacidad bajo el botón de todos los formularios (primera capa RGPD). */
.hg-form__privacy {
	grid-column: 1 / -1;
	margin: 4px 0 0 !important;
	font-family: var(--wp--preset--font-family--maison-neue);
	font-size: 11px;
	letter-spacing: 0.01em;
	line-height: 1.5;
	text-transform: none;
	opacity: 0.75;
}

.hg-form__privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hg-modal--dark .hg-form__privacy {
	color: #fff;
}

/* Franja dorada: texto en negro (el blanco sobre #C88A02 no llega al contraste mínimo). */
.hg-band,
.hg-band .hg-eyebrow {
	color: #181818;
}

/* X de cerrar (menú y pop ups): círculo fino con aspa marcada, a juego con el botón de menú. */
.hg-menu__close,
.hg-modal__close {
	width: 50px !important;
	height: 50px !important;
	border: 1px solid rgb(24 24 24 / 0.45) !important;
	border-radius: 50%;
	background: none !important;
	-webkit-mask: none !important;
	mask: none !important;
	color: #181818;
	transition: border-color 0.4s ease, transform 0.5s var(--hg-ease);
}

.hg-menu__close::after,
.hg-modal__close::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(45deg, transparent calc(50% - 0.9px), currentColor calc(50% - 0.9px), currentColor calc(50% + 0.9px), transparent calc(50% + 0.9px)) center / 18px 18px no-repeat,
		linear-gradient(-45deg, transparent calc(50% - 0.9px), currentColor calc(50% - 0.9px), currentColor calc(50% + 0.9px), transparent calc(50% + 0.9px)) center / 18px 18px no-repeat;
}

.hg-menu__close:hover,
.hg-modal__close:hover {
	border-color: var(--hg-gold-dark) !important;
	transform: rotate(90deg);
}

.hg-modal--dark .hg-modal__close {
	border-color: rgb(255 255 255 / 0.45) !important;
	color: var(--hg-gold-dark);
}

@media (max-width: 781px) {
	/* --- Textos largos: en minúsculas, más grandes y con aire (antes mayúsculas a 12 px). --- */
	:is(.hg-sell-hero__text, .hg-valuation__text, .hg-conoce__text, .hg-cta__text, .hg-about-hero__text, .hg-founder__bio, .hg-window__text) {
		font-size: 15px !important;
		font-weight: 400 !important;
		letter-spacing: 0.01em !important;
		line-height: 1.6 !important;
		text-transform: none !important;
	}

	/* --- Portada: cabe entera con las barras del navegador. Se queda solo la frase de arriba. --- */
	.hg-hero {
		min-height: 100svh !important;
	}

	.hg-hero__text {
		display: none !important;
	}

	.hg-hero .hg-vline {
		height: 44px !important;
		margin-top: 22px !important;
	}

	.hg-hero__actions {
		margin-top: 22px !important;
	}

	/* Candado con su nombre. */
	.hg-lock-btn {
		display: flex !important;
		align-items: center;
		gap: 7px;
		width: auto !important;
		padding: 9px 4px !important;
	}

	.hg-lock-btn svg {
		width: 18px !important;
		height: 20px !important;
		flex: none;
	}

	.hg-lock-btn::after {
		content: "Acceso";
		font-family: var(--wp--preset--font-family--maison-neue-extended);
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	/* Accesos «Quiero comprar…»: botones de verdad, con el texto dentro, uno debajo de otro. */
	.hg-orbits {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
		width: 100%;
		max-width: 340px;
		margin-inline: auto !important;
	}

	.hg-orbit {
		width: 100%;
	}

	.hg-orbit .wp-block-button__link {
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 12px !important;
		width: 100% !important;
		min-width: 0 !important;
		height: 56px !important;
		padding: 0 0 0 22px !important;
		background: #181818 !important;
	}

	.hg-orbit__label {
		order: 0 !important;
		background: none !important;
		-webkit-text-fill-color: currentColor !important;
		color: #fff !important;
		font-size: 12px !important;
		text-align: left !important;
	}

	.hg-orbit__label br {
		display: none;
	}

	.hg-orbit__dot {
		order: 1 !important;
		width: 56px !important;
		height: 56px !important;
		margin: 0 !important;
		border-left: 1px solid rgb(255 255 255 / 0.14) !important;
		background: transparent !important;
		color: var(--hg-gold-dark) !important;
	}

	.hg-orbit__dot svg.hg-orbit__frame,
	.hg-orbit__dot::after {
		display: none !important;
	}

	/* «Conoce Housingo»: el texto, con más separación del título manuscrito. */
	.hg-conoce__text {
		margin-top: 1.75rem !important;
	}

	/* Ventana / llave: el titular se lee como una frase y el texto no toca el marco. */
	.hg-window .wp-block-cover__inner-container {
		padding-inline: 13vw;
		box-sizing: border-box;
	}

	.hg-window__title {
		font-size: 24px !important;
		line-height: 1.08 !important;
	}

	.hg-window__title .hg-aside {
		display: inline !important;
		width: auto !important;
		margin: 0 !important;
		font: inherit !important;
		letter-spacing: inherit !important;
		text-align: inherit !important;
		vertical-align: baseline !important;
		word-spacing: normal !important;
	}

	.hg-window__text {
		max-width: none !important;
		font-size: 14px !important;
	}

	.hg-window__actions .hg-plus .wp-block-button__link {
		padding: 6px 6px 6px 18px !important;
		border-radius: 40px;
		background: rgb(255 255 255 / 0.94) !important;
		box-shadow: 0 6px 24px rgb(24 24 24 / 0.14);
	}

	/* Pie: la franja de Instagram ya no se queda fija sobre el logo. */
	.hg-news,
	.hg-villa {
		position: relative !important;
		top: auto !important;
	}

	/* --- Menú: alto real de la pantalla (con barras), opciones arriba y redes visibles. --- */
	.hg-menu {
		height: 100dvh;
		bottom: auto;
	}

	.hg-menu__panel {
		height: 100dvh;
	}

	.hg-menu__inner {
		padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
	}

	.hg-menu__nav {
		margin-top: clamp(36px, 8dvh, 80px) !important;
	}

	.hg-menu__contact {
		padding-top: 36px !important;
	}

	.hg-menu__close,
	.hg-modal__close {
		width: 44px !important;
		height: 44px !important;
		top: 18px !important;
	}

	/* --- Pop up «Solicita acceso»: cabe con las barras y «Solicita» no pisa «Acceso». --- */
	.hg-modal {
		max-height: calc(100dvh - 1.5rem) !important;
	}

	/* La caja crece con su contenido (el recorte de esquinas ocultaba el final del aviso de privacidad);
	 * si no cabe, desliza el pop up entero. */
	.hg-modal__box {
		max-height: none !important;
	}

	.hg-modal__box {
		padding: 70px 1.25rem 1.5rem !important;
	}

	.hg-modal__head {
		margin-bottom: 1.25rem !important;
		text-align: center;
	}

	.hg-modal__eyebrow {
		position: static !important;
		margin: 0 0 -6px !important;
	}

	.hg-modal__title {
		font-size: 64px !important;
		line-height: 1.15 !important;
	}

	.hg-modal .hg-form {
		gap: 16px !important;
	}

	.hg-modal .hg-field textarea {
		height: 84px !important;
	}

	/* --- Vender --- */
	/* Titular de una pieza: «Su» y «No necesita» al mismo tamaño que el resto. */
	.hg-sell-hero__title small {
		display: inline !important;
		width: auto !important;
		margin: 0 !important;
		font: inherit !important;
		letter-spacing: inherit !important;
		vertical-align: baseline !important;
	}

	.hg-sell-hero__title small br {
		display: none;
	}

	/* Solo un título en la cabecera (la explicación baja a la sección siguiente). */
	.hg-sell-hero__script {
		display: none !important;
	}

	.hg-sell-hero__text.is-moved {
		max-width: 34em;
		margin: 0 auto 2.5rem !important;
		color: #181818;
		text-align: center;
	}

	/* «Agendar llamada»: círculo dorado relleno y letra más grande. */
	.hg-ring .wp-block-button__link {
		width: 112px !important;
		height: 112px !important;
		border: 0 !important;
		background: var(--hg-gold-dark) !important;
		color: #181818 !important;
		font-size: 12px !important;
		font-weight: 600 !important;
	}

	.hg-feature__text {
		font-size: 15px !important;
	}

	.hg-features__quote {
		line-height: 1.12 !important;
	}

	.hg-valuation__line {
		height: 64px !important;
		margin-top: 32px !important;
	}

	.hg-valuation .hg-form {
		margin-top: 32px !important;
	}

	/* --- Comprar / Alquilar: la ficha con su nombre cabe en la pantalla. --- */
	.hg-listing .hg-card__media,
	.hg-carousel .hg-card__media {
		aspect-ratio: 1 / 0.86;
	}

	/* --- Sobre nosotros: «Casi una» y «de» legibles. --- */
	.hg-about-hero__title small {
		font-size: 12px !important;
	}

	/* --- Mapa de contacto: chinchetas más pequeñas. --- */
	.hg-map-pin span {
		width: 28px;
		height: 28px;
		background-size: 12px 6.5px, auto;
	}
}

@media (max-width: 781px) {
	/* Pop up: «Solicita» encima de «Acceso» (en el HTML va detrás). */
	.hg-modal__head {
		display: flex;
		flex-direction: column;
	}

	.hg-modal__eyebrow {
		order: -1;
		margin: 0 0 -4px !important;
	}

	.hg-modal__box {
		padding-top: 62px !important;
	}

	.hg-modal__title {
		font-size: 58px !important;
	}

	/* Sobre nosotros: «Casi una» sin rozar la tilde de «Década». */
	.hg-l1 small {
		translate: 0 -6px;
	}
}

/* Mapa en móvil: el fundido blanco se ajusta al mapa estrecho (antes lo tapaba casi entero) y el plano
 * se ve algo más marcado, para que no parezca borroso. */
@media (max-width: 781px) {
	.hg-map__fade {
		background: radial-gradient(farthest-side, rgb(255 255 255 / 0) 62%, #fff 100%);
	}

	.hg-map .leaflet-tile-pane {
		filter: grayscale(1) contrast(0.95) brightness(1.04);
		opacity: 0.6;
	}
}

/* Vender en móvil: titular de la cabecera más grande. */
@media (max-width: 781px) {
	.hg-sell-hero__title {
		font-size: min(8.2vw, 40px) !important;
		line-height: 1.08 !important;
	}
}

/* Accesos en móvil: la flecha aparece enseguida (no espera al contorno, que en móvil no se dibuja). */
@media (max-width: 781px) {
	.hg-reveal-ready .hg-orbit.is-in .hg-orbit__arrow path {
		animation-duration: 0.45s !important;
		animation-delay: calc(var(--hg-delay, 0ms) + 0.25s) !important;
	}
}

/* Inicio, galería de «Conoce Housingo» (petición de la clienta): dos fotos altas, una junto a otra.
 * «Ir a housingo.es» queda a la derecha, con el círculo a la altura del borde inferior de la segunda. */
@media (min-width: 782px) {
	.hg-gallery__b {
		height: 100% !important;
	}

	.hg-gallery__link {
		top: auto !important;
		bottom: 0 !important;
	}
}

.hg-gallery__b img {
	object-position: 50% 40%;
}

/* Franja de Instagram: tejados de la Gran Vía con la cúpula del Metrópolis a la vista. */
.hg-villa img {
	object-position: 50% 32%;
}

/* Contacto: edificio en esquina, con el cielo arriba para que el formulario se lea bien. */
.hg-contact-hero .wp-block-cover__image-background {
	object-position: 50% 12% !important;
}

/* Vender en móvil: salón en penumbra con ventanales (foto vertical; en ordenador, recortada a lo ancho,
 * solo se veían los marcos, así que ahí se mantiene la foto que ponga el cliente en la página). */
@media (max-width: 781px) {
	.hg-sell-hero .wp-block-cover__image-background {
		content: url("../images/interiores/salon-penumbra-ventanales.webp");
		object-position: 40% 45% !important;
	}
}

/* ======================================================================
 * Revisión móvil del 3 de noviembre (clienta).
 * ====================================================================== */

/* --- Pie: logo nítido, redes en círculos dorados, enlaces en dos grupos, contacto y línea legal. --- */
.site-footer__social.hg-dato .wp-block-social-links {
	gap: 14px !important;
}

.site-footer__social .wp-social-link {
	width: 46px;
	height: 46px;
	border: 1px solid rgb(200 138 2 / 0.7) !important;
	border-radius: 50% !important;
	transition: border-color 0.3s ease, color 0.2s ease, transform 0.25s ease !important;
}

.site-footer__social .wp-social-link a {
	display: grid !important;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
}

.site-footer__social .wp-social-link svg {
	width: 22px !important;
	height: 22px !important;
}

.site-footer__social .wp-social-link:hover {
	border-color: var(--hg-gold-dark) !important;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: space-between;
	gap: 28px 40px;
	max-width: 880px;
	margin: calc(40 * var(--hg-u) + 22px) auto 0 !important;
	padding-top: calc(30 * var(--hg-u) + 14px);
	border-top: 1px solid rgb(200 138 2 / 0.45);
}

.site-footer__grid > *,
.site-footer__col > * {
	margin: 0 !important;
}

.site-footer__head {
	margin-bottom: 12px !important;
	color: var(--hg-gold-dark);
	font-size: 11px !important;
	letter-spacing: 0.14em !important;
}

.site-footer__links,
.site-footer__links a {
	color: #fff;
	font-size: 13px !important;
	line-height: 2 !important;
	text-decoration: none;
}

.site-footer__links a:hover {
	color: var(--hg-gold-dark);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 22px 0 0 !important;
	padding-top: 16px;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer__legal a {
	color: rgb(255 255 255 / 0.55);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.site-footer__legal a:hover {
	color: var(--hg-gold-dark);
}

@media (max-width: 781px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		justify-content: stretch;
		gap: 26px 18px;
		text-align: left;
	}

	.site-footer__col--contact {
		grid-column: 1 / -1;
	}

	.site-footer__offices {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 2px !important;
		border-top: 0 !important;
		margin-top: 18px !important;
		padding-top: 0 !important;
		font-size: 13px !important;
		line-height: 2;
	}
}

/* --- Franja de Instagram: el texto y la cuenta más juntos. --- */
@media (max-width: 781px) {
	.hg-news .hg-inline {
		gap: 2px !important;
	}

	.hg-news {
		height: auto !important;
		padding-block: 14px !important;
	}
}

/* --- Llamar / WhatsApp: rellenos, más altos y con iconos de 20 px. --- */
.hg-band .hg-dato a.hg-cta-pill,
.hg-cta-pill {
	gap: 10px;
	min-height: 48px;
	padding: 0 22px !important;
	border: 0;
	font-size: 12px;
}

.hg-band .hg-dato a.hg-cta-pill[href^="tel"],
.hg-cta-pill[href^="tel"] {
	background: #181818;
	color: #fff !important;
}

.hg-band .hg-dato a.hg-cta-pill[href*="wa.me"],
.hg-cta-pill[href*="wa.me"] {
	background: #fff;
	color: #181818 !important;
}

.hg-cta-pill[href*="wa.me"] svg {
	color: #25d366;
}

.hg-cta-pill svg {
	width: 20px;
	height: 20px;
}

.hg-band .hg-dato a.hg-cta-pill:hover,
.hg-cta-pill:hover,
.hg-cta-pill:focus-visible {
	background: #fff;
	color: #181818 !important;
	box-shadow: inset 0 0 0 1px #181818;
}

.hg-band .hg-dato a.hg-cta-pill[href*="wa.me"]:hover,
.hg-cta-pill[href*="wa.me"]:hover {
	background: #181818;
	color: #fff !important;
}

@media (max-width: 781px) {
	/* --- Más aire entre el texto de «Conoce Housingo» y su botón. --- */
	.hg-conoce__line {
		margin-top: 1.75rem !important;
		margin-bottom: 0.5rem !important;
	}

	/* --- La firma de David bajo «No publicamos…» se quita en móvil. --- */
	.hg-manifesto__sign,
	.hg-write-box:has(.hg-manifesto__sign) {
		display: none !important;
	}

	/* --- «¿Cómo procedemos?»: tarjetas que se apilan al bajar, como una baraja. --- */
	.hg-steps__title::after {
		height: 32px !important;
	}

	.hg-manifesto .hg-steps {
		display: block !important;
		margin-top: 2rem !important;
		padding-bottom: 2rem;
	}

	.hg-steps > .hg-step {
		position: sticky;
		top: calc(16px + var(--hg-i, 0) * 11px);
		display: block !important;
		box-sizing: border-box;
		min-height: 190px;
		margin: 0 0 22vh !important;
		padding: 24px 24px 26px !important;
		border: 1px solid rgb(200 138 2 / 0.45);
		background: #fff;
		box-shadow: 0 -10px 24px rgb(24 24 24 / 0.05);
		text-align: left !important;
		translate: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}

	.hg-steps > .hg-step:last-child {
		margin-bottom: 0 !important;
	}

	.hg-steps > .hg-step:nth-child(1) { --hg-i: 0; }
	.hg-steps > .hg-step:nth-child(2) { --hg-i: 1; }
	.hg-steps > .hg-step:nth-child(3) { --hg-i: 2; }
	.hg-steps > .hg-step:nth-child(4) { --hg-i: 3; }

	.hg-steps > .hg-step::before {
		display: block;
		margin-bottom: 10px;
		color: var(--hg-gold-dark);
		font-family: var(--wp--preset--font-family--maison-neue-extended);
		font-size: 10px;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	.hg-steps > .hg-step:nth-child(1)::before { content: "Primer paso"; }
	.hg-steps > .hg-step:nth-child(2)::before { content: "Después"; }
	.hg-steps > .hg-step:nth-child(3)::before { content: "Luego"; }
	.hg-steps > .hg-step:nth-child(4)::before { content: "Por último"; }

	/* Sin los puntos de la línea; la última lleva el candado. */
	.hg-steps > .hg-step::after {
		display: none !important;
	}

	.hg-steps > .hg-step:last-child::after {
		content: "" !important;
		display: block !important;
		position: absolute;
		top: 22px;
		right: 22px;
		width: 16px;
		height: 18px;
		margin: 0;
		border-radius: 0;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 28' fill='none' stroke='%23C88A02' stroke-width='1.4'%3E%3Cpath d='M5.5 11.5V7a7 7 0 0 1 14 0v4.5'/%3E%3Crect x='0.5' y='11.5' width='24' height='16'/%3E%3Cpath d='M12.5 18v4'/%3E%3C/svg%3E") no-repeat center / contain;
		transform: none !important;
	}

	.hg-step .hg-step__title {
		max-width: none;
		font-family: var(--wp--preset--font-family--pangaia) !important;
		font-size: 26px !important;
		font-weight: 200 !important;
		letter-spacing: 0 !important;
		line-height: 1.1 !important;
		text-align: left !important;
		text-transform: none !important;
	}

	.hg-step .hg-step__text {
		max-width: none;
		margin-top: 10px !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		letter-spacing: 0.01em !important;
		line-height: 1.55 !important;
		text-align: left !important;
		text-transform: none !important;
	}

	.hg-step .hg-step__link {
		margin-top: 18px !important;
		font-family: var(--wp--preset--font-family--maison-neue-extended) !important;
		font-size: 10px !important;
		font-style: normal !important;
		font-weight: 600 !important;
		letter-spacing: 0.16em !important;
		text-align: left !important;
		text-transform: uppercase;
	}

	.hg-step__link a {
		gap: 12px !important;
		padding: 2px 0 !important;
		border-bottom: 0 !important;
	}

	.hg-step__link a::after {
		content: "" !important;
		width: 28px;
		height: 8px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8' fill='none' stroke='%23C88A02'%3E%3Cpath d='M0 4h27M23.5 0.5 27 4l-3.5 3.5'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	.hg-has-access .hg-step:has(.hg-step__link--form)::after {
		display: none !important;
	}
}

/* --- Ficha: precio arriba, solo y grande; superficie, dormitorios, baños y planta en dos columnas
 * separadas por líneas finas doradas. --- */
.hg-stats--price .hg-stat {
	margin-bottom: 18px;
}

.hg-stats--price .hg-stat dd {
	font-size: max(40px, calc(60 * var(--hg-u)));
}

.hg-stats--key {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 18px;
	border-top: 1px solid rgb(200 138 2 / 0.45);
}

.hg-stats--key .hg-stat {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid rgb(200 138 2 / 0.45);
}

.hg-stats--key .hg-stat:nth-child(odd) {
	padding-right: 14px;
	border-right: 1px solid rgb(200 138 2 / 0.45);
}

.hg-stats--key .hg-stat:nth-child(even) {
	padding-left: 18px;
}

.hg-stats--key .hg-stat dd {
	font-size: max(28px, calc(38 * var(--hg-u)));
	text-transform: none;
}

@media (max-width: 781px) {
	/* --- Vender: un solo botón en la página, con el estilo del resto de la web (texto + círculo con «+»). --- */
	.hg-ring .wp-block-button__link {
		flex-direction: row !important;
		gap: 14px !important;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: none !important;
		color: #fff !important;
		font-size: 11px !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
		text-align: right;
		overflow: visible !important;
	}

	.hg-ring .wp-block-button__link::before {
		display: none !important;
	}

	.hg-ring .wp-block-button__link::after {
		content: "" !important;
		display: block !important;
		position: static !important;
		flex: none;
		width: 54px !important;
		height: 54px !important;
		border-radius: 50%;
		background:
			linear-gradient(#181818, #181818) center / 16px 1.4px no-repeat,
			linear-gradient(#181818, #181818) center / 1.4px 16px no-repeat,
			#fff !important;
		transform: none !important;
	}

	.hg-why__cta {
		display: none !important;
	}

	/* «Representamos la venta…» sube, pegado a la portada. */
	.hg-why {
		padding-top: 0.75rem !important;
	}

	.hg-sell-hero__text.is-moved {
		margin-bottom: 2rem !important;
	}

	/* «¿Por qué Private Collection?»: etiqueta pequeña en dorado, con la letra del texto. */
	.hg-why__eyebrow {
		color: var(--hg-gold-dark) !important;
		font-size: 11px !important;
		letter-spacing: 0.14em !important;
	}

	/* Antes del formulario: la mitad de hueco. */
	.hg-valuation {
		padding-top: 2.5rem !important;
	}

	/* Pasos 01-02-03: descripción en minúscula, sin negrita, a 15 px. */
	.hg-sstep .hg-sstep__text {
		font-size: 15px !important;
		font-weight: 400 !important;
		letter-spacing: 0.01em !important;
		line-height: 1.6 !important;
		text-transform: none !important;
	}

	/* --- Sobre nosotros: «CASI UNA» arriba, «DÉCADA de» en una línea con «década» en dorado. --- */
	.hg-l1 {
		color: var(--hg-gold-dark);
	}

	.hg-about-hero__title small {
		color: #181818;
	}

	.hg-l1 > small:first-child {
		position: static !important;
		display: block !important;
		width: auto !important;
		margin: 0 0 4px !important;
		translate: none !important;
		text-align: left !important;
	}

	.hg-l1 > small.hg-de {
		position: static !important;
		display: inline !important;
		width: auto !important;
		margin: 0 0 0 0.3em !important;
		vertical-align: baseline;
	}

	/* --- Contacto: «Dónde estamos» y «Háblanos» en dos columnas; direcciones sin «Calle» ni «Madrid». --- */
	.hg-contact-info {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1rem !important;
	}

	.hg-contact-info__col:first-child {
		grid-column: 1 / -1;
	}

	.hg-contact-info .hg-dir-x {
		display: none;
	}

	.hg-contact-info .hg-dato--telefonos_lineas a,
	.hg-contact-info .hg-dato--telefonos_lineas {
		margin: 0 !important;
		line-height: 1.9 !important;
	}

	.hg-contact-info .hg-dato--telefonos_lineas br + br {
		display: none;
	}
}

@media (max-width: 781px) {
	.site-footer__offices {
		max-width: 880px;
		margin-inline: auto !important;
		padding-inline: 0 !important;
	}

	.site-footer__grid,
	.site-footer__offices {
		width: 100%;
		box-sizing: border-box;
	}

	/* Foto de David: encuadre desde arriba para que no se corte la cabeza. */
	.hg-gallery__a img {
		object-position: 50% 12%;
	}
}

/* Galería de Inicio en escritorio con dos fotos: más baja (antes 1204 px, pensada para tres) para que las
 * fotos no se vean gigantes; las dos a la misma altura y «Ir a housingo.es» a la derecha, abajo. */
@media (min-width: 782px) {
	.hg-gallery {
		height: calc(780 * var(--hg-u)) !important;
	}

	.hg-gallery__a img {
		object-position: 50% 18%;
	}

	.hg-gallery__b img {
		object-position: 50% 30%;
	}
}

/* «Ir a housingo.es» arriba, junto al borde superior de la segunda foto: siempre sobre el fondo oscuro. */
@media (min-width: 782px) {
	.hg-gallery__link {
		top: 0 !important;
		bottom: auto !important;
	}
}

/* «Conoce Housingo»: las fotos quedan dentro del fondo oscuro (antes sobresalían sobre el blanco y
 * parecía un error). Fondo negro entero y aire bajo la galería. */
.hg-conoce {
	background: #181818 !important;
	padding-bottom: max(56px, calc(120 * var(--hg-u))) !important;
}

/* «Conoce Housingo»: bajo la galería, el mismo margen que a los lados (57 px en el lienzo de 1920). */
.hg-conoce {
	padding-bottom: calc(57 * var(--hg-u)) !important;
}

@media (max-width: 781px) {
	.hg-conoce {
		padding-bottom: var(--wp--preset--spacing--40) !important;
	}
}

/* «No publicamos…»: las telas bajan para no tocar el borde de la sección de arriba. */
@media (min-width: 782px) {
	.hg-silk--left {
		top: calc(283 * var(--hg-u));
	}

	.hg-silk--right {
		top: calc(180 * var(--hg-u));
	}
}

@media (max-width: 781px) {
	.hg-silk--left {
		top: 2rem;
	}

	.hg-silk--right {
		top: 2rem;
	}
}

/* «Ir a housingo.es» algo más abajo, sin despegarse de la parte alta de la foto. */
@media (min-width: 782px) {
	.hg-gallery__link {
		top: calc(110 * var(--hg-u)) !important;
	}
}

/* Pie (escritorio): el bloque de enlaces más ancho y con más aire entre columnas. */
@media (min-width: 782px) {
	.site-footer__grid {
		max-width: 1180px;
		gap: 28px 80px;
	}
}

@media (min-width: 782px) {
	.site-footer__grid {
		width: 100%;
		max-width: 1180px;
		grid-template-columns: repeat(3, 1fr);
		box-sizing: border-box;
	}

	.site-footer__col:nth-child(2) {
		justify-self: center;
	}

	.site-footer__col:nth-child(3) {
		justify-self: end;
	}
}

/* ======================================================================
 * 4 de noviembre (clienta): ordenador igual que móvil, tarjetas con la tipografía original y profundidad,
 * más aire en la ventana, redes del menú más grandes.
 * ====================================================================== */

/* --- Textos largos en minúscula en todos los tamaños. --- */
:is(.hg-sell-hero__text, .hg-valuation__text, .hg-conoce__text, .hg-cta__text, .hg-about-hero__text, .hg-founder__bio, .hg-window__text, .hg-sstep__text) {
	font-weight: 400 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.6 !important;
	text-transform: none !important;
}

@media (min-width: 782px) {
	:is(.hg-sell-hero__text, .hg-valuation__text, .hg-conoce__text, .hg-cta__text, .hg-about-hero__text, .hg-founder__bio, .hg-window__text, .hg-sstep__text) {
		font-size: 16px !important;
	}
}

/* --- Portada: solo la frase de arriba (sin el párrafo de debajo). --- */
.hg-hero__text {
	display: none !important;
}

/* --- La firma de David bajo «No publicamos…» se quita también en ordenador. --- */
.hg-manifesto__sign,
.hg-write-box:has(.hg-manifesto__sign) {
	display: none !important;
}

/* --- «¿Cómo procedemos?»: tarjetas apiladas en todos los tamaños (sin el arco del scroll). --- */
.hg-manifesto::after {
	display: none !important;
}

.hg-manifesto .hg-steps {
	display: block !important;
	max-width: 640px;
	margin: max(2rem, calc(60 * var(--hg-u))) auto 0 !important;
	padding-bottom: 2rem;
}

.hg-steps > .hg-step {
	position: sticky;
	top: calc(24px + var(--hg-i, 0) * 12px);
	display: block !important;
	box-sizing: border-box;
	min-height: 200px;
	margin: 0 0 30vh !important;
	padding: 28px 30px 30px !important;
	border: 1px solid rgb(200 138 2 / 0.45);
	background: #fff;
	box-shadow: 0 -10px 30px rgb(24 24 24 / 0.06);
	text-align: left !important;
	transform-origin: 50% 0;
	translate: none !important;
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

.hg-steps > .hg-step > * {
	opacity: calc(1 - var(--hg-cover, 0) * 0.55);
}

.hg-steps > .hg-step:last-child {
	margin-bottom: 0 !important;
}

.hg-steps > .hg-step:nth-child(1) { --hg-i: 0; }
.hg-steps > .hg-step:nth-child(2) { --hg-i: 1; }
.hg-steps > .hg-step:nth-child(3) { --hg-i: 2; }
.hg-steps > .hg-step:nth-child(4) { --hg-i: 3; }

.hg-steps > .hg-step::before {
	display: block;
	margin-bottom: 12px;
	color: var(--hg-gold-dark);
	font-family: var(--wp--preset--font-family--maison-neue-extended);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hg-steps > .hg-step:nth-child(1)::before { content: "Primer paso"; }
.hg-steps > .hg-step:nth-child(2)::before { content: "Después"; }
.hg-steps > .hg-step:nth-child(3)::before { content: "Luego"; }
.hg-steps > .hg-step:nth-child(4)::before { content: "Por último"; }

.hg-steps > .hg-step::after {
	display: none !important;
}

.hg-steps > .hg-step:last-child::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: 26px;
	right: 26px;
	width: 16px;
	height: 18px;
	margin: 0;
	border-radius: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 28' fill='none' stroke='%23C88A02' stroke-width='1.4'%3E%3Cpath d='M5.5 11.5V7a7 7 0 0 1 14 0v4.5'/%3E%3Crect x='0.5' y='11.5' width='24' height='16'/%3E%3Cpath d='M12.5 18v4'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: none !important;
}

/* Tipografía original de la sección: títulos en Maison Neue Extended, en mayúsculas. */
.hg-steps .hg-step .hg-step__title {
	max-width: none;
	font-family: var(--wp--preset--font-family--maison-neue-extended) !important;
	font-size: 15px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	line-height: 1.3 !important;
	text-align: left !important;
	text-transform: uppercase !important;
}

.hg-steps .hg-step .hg-step__text {
	max-width: none;
	margin-top: 10px !important;
	font-family: var(--wp--preset--font-family--maison-neue);
	font-size: 15px !important;
	font-weight: 400 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.6 !important;
	text-align: left !important;
	text-transform: none !important;
}

.hg-steps .hg-step .hg-step__link {
	margin-top: 20px !important;
	font-family: var(--wp--preset--font-family--maison-neue-extended) !important;
	font-size: 10px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-align: left !important;
	text-transform: uppercase;
	visibility: visible;
}

.hg-steps .hg-step__link a {
	gap: 12px !important;
	padding: 2px 0 !important;
	border-bottom: 0 !important;
}

.hg-steps .hg-step__link a::after {
	content: "" !important;
	width: 28px;
	height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8' fill='none' stroke='%23C88A02'%3E%3Cpath d='M0 4h27M23.5 0.5 27 4l-3.5 3.5'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 0.4s var(--hg-ease);
}

.hg-steps .hg-step__link a:hover::after {
	transform: translateX(5px);
}

.hg-has-access .hg-steps .hg-step__link--form {
	display: none;
}

@media (max-width: 781px) {
	.hg-steps > .hg-step {
		top: calc(16px + var(--hg-i, 0) * 11px);
		min-height: 190px;
		margin-bottom: 22vh !important;
		padding: 24px 24px 26px !important;
	}

	.hg-steps .hg-step .hg-step__title {
		font-size: 14px !important;
	}

	.hg-steps .hg-step .hg-step__text {
		font-size: 14px !important;
	}
}

/* --- Ventana / llave: titular como una frase, más aire hasta el texto y botón con fondo blanco. --- */
.hg-window__title .hg-aside {
	display: inline !important;
	width: auto !important;
	margin: 0 !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-align: inherit !important;
	vertical-align: baseline !important;
	word-spacing: normal !important;
}

.hg-window__text {
	margin-top: max(1.75rem, calc(56 * var(--hg-u))) !important;
}

.hg-window__actions .hg-plus .wp-block-button__link {
	padding: 6px 6px 6px 18px !important;
	border-radius: 40px;
	background: rgb(255 255 255 / 0.94) !important;
	box-shadow: 0 6px 24px rgb(24 24 24 / 0.14);
}

@media (min-width: 782px) {
	.hg-window__title {
		font-size: max(26px, calc(46 * var(--hg-u))) !important;
		line-height: 1.02 !important;
	}

	.hg-window__text {
		max-width: min(480px, 30vw) !important;
	}
}

/* --- Menú: iconos de redes más grandes. --- */
.hg-menu__social.hg-dato .wp-block-social-links {
	gap: 30px !important;
}

.hg-menu__social .wp-social-link svg {
	width: 28px !important;
	height: 28px !important;
}

@media (max-width: 781px) {
	.hg-menu__social.hg-dato .wp-block-social-links {
		gap: 24px !important;
	}

	.hg-menu__social .wp-social-link svg {
		width: 26px !important;
		height: 26px !important;
	}
}

/* --- Accesos «Quiero comprar…» en ordenador: botones con el texto dentro, como en móvil. --- */
@media (min-width: 782px) {
	.hg-orbits {
		flex-direction: row !important;
		align-items: stretch !important;
		gap: 14px !important;
	}

	.hg-orbit .wp-block-button__link {
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 16px !important;
		width: 300px !important;
		min-width: 0 !important;
		height: 62px !important;
		padding: 0 0 0 26px !important;
		background: #181818 linear-gradient(100deg, #fff 0%, #fff 46%, rgb(255 240 205 / 0.95) 50%, rgb(255 255 255 / 0.55) 55%, rgb(255 255 255 / 0) 62%) no-repeat !important;
		background-size: 300% 100% !important;
		background-position: 100% 0 !important;
		transition: background-position 1s cubic-bezier(0.4, 0, 0.3, 1) !important;
	}

	.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) {
		background-position: 0 0 !important;
	}

	.hg-orbit__label {
		order: 0 !important;
		background: none !important;
		-webkit-text-fill-color: currentColor !important;
		color: #fff !important;
		font-size: 12px !important;
		text-align: left !important;
		transition: color 0.3s ease 0.2s !important;
	}

	.hg-orbit__label br {
		display: none;
	}

	.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__label {
		color: #181818 !important;
	}

	.hg-orbit__dot {
		order: 1 !important;
		width: 62px !important;
		height: 62px !important;
		margin: 0 !important;
		border-left: 1px solid rgb(255 255 255 / 0.14) !important;
		background: transparent !important;
		color: var(--hg-gold-dark) !important;
		transition: border-color 0.3s ease 0.2s, color 0.3s ease 0.2s !important;
	}

	.hg-orbit .wp-block-button__link:is(:hover, :focus-visible) .hg-orbit__dot {
		border-left-color: rgb(24 24 24 / 0.15) !important;
		background-color: transparent !important;
		color: #181818 !important;
	}

	.hg-orbit__dot svg.hg-orbit__frame,
	.hg-orbit__dot::after,
	.hg-orbit__dot::before {
		display: none !important;
	}

	.hg-reveal-ready .hg-orbit.is-in .hg-orbit__arrow path {
		animation-duration: 0.45s !important;
		animation-delay: calc(var(--hg-delay, 0ms) + 0.4s) !important;
	}
}

/* --- Vender en ordenador, igual que en móvil. --- */
.hg-sell-hero__title small {
	display: inline !important;
	position: static !important;
	width: auto !important;
	margin: 0 !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	vertical-align: baseline !important;
}

.hg-sell-hero__title small br {
	display: none;
}

.hg-sell-hero__script,
.hg-why__cta {
	display: none !important;
}

.hg-sell-hero__text.is-moved {
	max-width: 40em;
	margin: 0 auto 2.5rem !important;
	color: #181818;
	text-align: center;
}

.hg-why__eyebrow {
	color: var(--hg-gold-dark) !important;
	font-size: 11px !important;
	letter-spacing: 0.14em !important;
}

/* Un solo botón: texto y círculo blanco con «+». */
.hg-ring .wp-block-button__link {
	flex-direction: row !important;
	gap: 16px !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: right;
	overflow: visible !important;
	transform: none !important;
}

.hg-ring .wp-block-button__link::before {
	display: none !important;
}

.hg-ring .wp-block-button__link::after {
	content: "" !important;
	display: block !important;
	position: static !important;
	flex: none;
	width: 60px !important;
	height: 60px !important;
	border-radius: 50%;
	background:
		linear-gradient(#181818, #181818) center / 16px 1.4px no-repeat,
		linear-gradient(#181818, #181818) center / 1.4px 16px no-repeat,
		#fff !important;
	transform: none !important;
	transition: transform 0.5s var(--hg-ease) !important;
}

.hg-ring .wp-block-button__link:hover::after {
	transform: rotate(90deg) !important;
}

@media (min-width: 782px) {
	.hg-why {
		padding-top: max(3rem, calc(90 * var(--hg-u))) !important;
	}

	.hg-valuation {
		padding-top: calc(137 * var(--hg-u)) !important;
	}
}

/* --- Sobre nosotros: «CASI UNA» arriba y «DÉCADA de» en una línea, con «década» en dorado. --- */
.hg-l1 {
	color: var(--hg-gold-dark);
}

.hg-about-hero__title small {
	color: #181818;
}

.hg-l1 > small:first-child {
	position: static !important;
	display: block !important;
	width: auto !important;
	margin: 0 0 6px !important;
	translate: none !important;
	text-align: left !important;
}

.hg-l1 > small.hg-de {
	position: static !important;
	display: inline !important;
	width: auto !important;
	margin: 0 0 0 0.3em !important;
	vertical-align: baseline;
}

/* --- Contacto: direcciones sin «Calle» ni «Madrid» y teléfonos juntos. --- */
.hg-contact-info .hg-dir-x {
	display: none;
}

.hg-contact-info .hg-dato--telefonos_lineas br + br {
	display: none;
}

/* --- Pop up: «Solicita» encima de «Acceso». --- */
.hg-modal__head {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.hg-modal__eyebrow {
	position: static !important;
	order: -1;
	margin: 0 0 -8px !important;
}

@media (min-width: 782px) {
	/* Ventana: el titular se reparte en dos líneas equilibradas dentro del hueco blanco. */
	.hg-window__title {
		max-width: calc(640 * var(--hg-u)) !important;
		margin-inline: auto !important;
		text-wrap: balance;
	}

	.hg-window__title br {
		display: none;
	}

	/* Sobre nosotros: el texto (ahora en minúscula, más largo) no entra en la foto. */
	.hg-about-hero__text {
		box-sizing: border-box;
		padding-right: 36px;
	}
}

/* ======================================================================
 * 5 de noviembre: repaso del PDF móvil (29/10) en ordenador.
 * ====================================================================== */
@media (min-width: 782px) {
	/* «¿Por qué HousinGo?»: descripciones legibles (antes 13 px) y pasos 01-02-03 al mismo tamaño. */
	.hg-feature__text,
	.hg-sstep .hg-sstep__text,
	.hg-sstep .hg-sstep__text * {
		font-size: 16px !important;
	}

	/* Frase destacada: más aire entre líneas (antes 0,93). */
	.hg-features__quote {
		line-height: 1.12 !important;
	}
}

/* Sobre nosotros (ordenador): «casi una» y «de» más grandes. */
@media (min-width: 782px) {
	.hg-about-hero__title small,
	.hg-l1 > small:first-child,
	.hg-l1 > small.hg-de {
		font-size: max(15px, calc(24 * var(--hg-u))) !important;
		letter-spacing: 0.06em !important;
	}

	.hg-l1 > small:first-child {
		margin-bottom: 10px !important;
	}
}

/* ======================================================================
 * 24 de noviembre (clienta): pulido final.
 * ====================================================================== */

/* «Quiero comprar / alquilar / Soy propietario»: rejilla de columnas iguales, para que los tres
 * recuadros midan exactamente lo mismo en cualquier navegador (Safari encogía el último). */
.hg-orbits {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 300px));
	justify-content: center;
	gap: 14px !important;
}

.hg-orbit {
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
}

.hg-orbit .wp-block-button__link {
	width: 100% !important;
	box-sizing: border-box;
}

.hg-orbit__label {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.hg-orbits {
		grid-template-columns: minmax(0, 340px);
		gap: 10px !important;
	}
}

/* Carrusel: las fotos ya llegan desenfocadas del servidor; sin el desenfoque extra en CSS (muy costoso
 * de repintar al deslizar, sobre todo en iPhone) y con capa propia por tarjeta. */
.hg-card__img img.hg-blur-img,
.hg-card:hover .hg-card__img img.hg-blur-img {
	filter: none;
}

/* Sin acceso: la miniatura (260 px) se veía pixelada al quitarle el desenfoque. Vuelve un desenfoque
 * fuerte y fijo (no se anima: así el carrusel sigue fluido), como un cristal esmerilado que no deja ver.
 * Al pasar el cursor no cambia el desenfoque: se aclara el velo y la foto se acerca un poco. */
.hg-card .hg-card__img img.hg-blur-img,
.hg-card:hover .hg-card__img img.hg-blur-img {
	filter: blur(18px) saturate(1.05) !important;
	transition: transform 1.2s var(--hg-ease) !important;
	will-change: transform;
}

.hg-card .hg-card__img img.hg-blur-img {
	transform: scale(1.18) translateZ(0) !important;
}

.hg-card:hover .hg-card__img img.hg-blur-img {
	transform: scale(1.24) translateZ(0) !important;
}

.hg-card:has(.hg-blur-img) .hg-card__img::after {
	background: rgb(24 24 24 / 0.3);
	transition: background 0.8s var(--hg-ease);
}

.hg-card:has(.hg-blur-img):hover .hg-card__img::after {
	background: rgb(255 255 255 / 0.1);
}

.hg-carousel .hg-carousel__track {
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.hg-carousel .hg-carousel__track > li {
	transform: translateZ(0);
	backface-visibility: hidden;
}

@media (max-width: 781px) {
	.hg-carousel .hg-carousel__track {
		scroll-snap-type: x proximity;
	}

	.hg-carousel .hg-carousel__track > li {
		scroll-snap-align: center;
	}
}

/* «¿Cómo procedemos?»: tarjetas más seguidas. */
.hg-steps > .hg-step {
	margin-bottom: 72px !important;
}

.hg-steps > .hg-step:last-child {
	margin-bottom: 0 !important;
}

@media (max-width: 781px) {
	.hg-steps > .hg-step {
		margin-bottom: 44px !important;
	}
}

/* Pie: menos espacio entre la foto y el logo. */
.site-footer,
.hg-tail .site-footer {
	min-height: 0 !important;
	padding-top: max(56px, calc(110 * var(--hg-u))) !important;
}

.hg-tail .site-footer__logo {
	margin-top: 0 !important;
}

@media (min-width: 782px) {
	.site-footer {
		background: linear-gradient(rgb(24 24 24 / 0), rgb(24 24 24 / 0.8) 22%, #181818 48%) !important;
	}
}

@media (max-width: 781px) {
	.site-footer,
	.hg-tail .site-footer {
		padding-top: 48px !important;
	}
}

/* Pop up: el título de «Mensaje» corta el borde como en los demás campos (en Safari el área de texto
 * se pintaba por encima de la etiqueta). */
.hg-field > span {
	z-index: 2;
}

.hg-field textarea {
	position: relative;
	z-index: 0;
}

/* Sin franja blanca bajo el pie: lo que queda fuera de la página (rebote del scroll en iPhone,
 * pantallas más altas que la página) es oscuro, como el pie. */
html {
	background: #181818;
}

body {
	background-color: var(--wp--preset--color--base);
}

/* Franja de Instagram: la foto ocupa toda su franja (en móvil se quedaba en 151 de 260 px y dejaba un hueco oscuro). */
.hg-villa img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* 25 de noviembre: «¿Cómo procedemos?» con el contenido centrado en el alto de la tarjeta
   (alineado a la izquierda) y entrada de cada tarjeta. */
.hg-steps > .hg-step {
	display: flex !important;
	flex-direction: column;
	align-items: stretch !important;
	justify-content: center;
}

.hg-steps > .hg-step::before,
.hg-steps > .hg-step > * {
	align-self: stretch !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.hg-steps > .hg-step > * {
	margin-bottom: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
	/* La tarjeta sube despacio y su marco dorado se enciende; luego el contenido aparece en cascada. */
	.hg-reveal-ready .hg-steps > .hg-step {
		transition:
			opacity 1.1s var(--hg-ease),
			translate 1.3s var(--hg-ease),
			border-color 1.6s ease 0.25s,
			box-shadow 1.6s ease;
	}

	.hg-reveal-ready .hg-steps > .hg-step:not(.is-in) {
		opacity: 0 !important;
		translate: 0 56px !important;
		border-color: rgb(200 138 2 / 0) !important;
		box-shadow: none !important;
	}

	.hg-reveal-ready .hg-steps > .hg-step::before,
	.hg-reveal-ready .hg-steps > .hg-step > * {
		transition:
			opacity 0.9s var(--hg-ease) var(--hg-d, 0s),
			translate 1s var(--hg-ease) var(--hg-d, 0s),
			filter 1s var(--hg-ease) var(--hg-d, 0s),
			letter-spacing 1.4s var(--hg-ease) var(--hg-d, 0s);
	}

	.hg-steps > .hg-step::before { --hg-d: 0.35s; }
	.hg-steps > .hg-step > .hg-step__title { --hg-d: 0.5s; }
	.hg-steps > .hg-step > .hg-step__text { --hg-d: 0.65s; }
	.hg-steps > .hg-step > .hg-step__link { --hg-d: 0.8s; }

	.hg-reveal-ready .hg-steps > .hg-step:not(.is-in)::before,
	.hg-reveal-ready .hg-steps > .hg-step:not(.is-in) > * {
		opacity: 0 !important;
		translate: 0 14px;
		filter: blur(6px);
	}

	/* El antetítulo se abre un poco al entrar, como en el resto de títulos de la web. */
	.hg-reveal-ready .hg-steps > .hg-step:not(.is-in)::before {
		letter-spacing: 0.32em;
	}

	.hg-reveal-ready .hg-steps > .hg-step:last-child::after {
		transition: opacity 0.9s var(--hg-ease) 0.9s;
	}

	.hg-reveal-ready .hg-steps > .hg-step:last-child:not(.is-in)::after {
		opacity: 0;
	}
}

/* Cada paso con su icono dorado (antes solo el último llevaba el candado). */
.hg-steps > .hg-step::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: 26px;
	right: 26px;
	width: 18px;
	height: 18px;
	margin: 0;
	border-radius: 0;
	background: no-repeat center / contain;
	transform: none !important;
}

.hg-steps > .hg-step:nth-child(1)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C88A02' stroke-width='1.3'%3E%3Cpath d='M5 1.5h10l4 4v17H5z'/%3E%3Cpath d='M15 1.5v4h4M8.5 10.5h7M8.5 14h7M8.5 17.5h4'/%3E%3C/svg%3E");
}

.hg-steps > .hg-step:nth-child(2)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C88A02' stroke-width='1.3'%3E%3Cpath d='M1.5 3.5h21v13H10l-5 4.5v-4.5H1.5z'/%3E%3Cpath d='M6 8.5h12M6 12h8'/%3E%3C/svg%3E");
}

.hg-steps > .hg-step:nth-child(3)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C88A02' stroke-width='1.3'%3E%3Cpath d='M12 1.5l8.5 3.2v6.3c0 5.3-3.6 9.2-8.5 11-4.9-1.8-8.5-5.7-8.5-11V4.7z'/%3E%3Cpath d='M8.3 11.8l2.6 2.6 4.8-5'/%3E%3C/svg%3E");
}

.hg-steps > .hg-step:nth-child(4)::after {
	width: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 28' fill='none' stroke='%23C88A02' stroke-width='1.4'%3E%3Cpath d='M5.5 11.5V7a7 7 0 0 1 14 0v4.5'/%3E%3Crect x='0.5' y='11.5' width='24' height='16'/%3E%3Cpath d='M12.5 18v4'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
	.hg-reveal-ready .hg-steps > .hg-step::after {
		transition: opacity 0.9s var(--hg-ease) 0.9s;
	}

	.hg-reveal-ready .hg-steps > .hg-step:not(.is-in)::after {
		opacity: 0;
	}
}

/* Accesos «Quiero comprar…»: al ponerse blancos con el cursor, un filo negro los mantiene visibles sobre el fondo blanco. */
.hg-orbit .wp-block-button__link {
	box-shadow: inset 0 0 0 1px #181818 !important;
}

/* Vender: la frase «Representamos…» en un bloque estrecho, no a todo el ancho. */
.hg-why > .hg-sell-hero__text.is-moved {
	box-sizing: border-box;
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 16px;
	text-wrap: balance;
	line-height: 1.7 !important;
}

/* Pie en páginas sin foto: degradado corto del blanco al negro (sin velo gris largo).
 * (El degradado largo solo tiene sentido sobre la foto de la Gran Vía de Inicio.) */
.site-footer:not(.hg-tail .site-footer) {
	background: linear-gradient(rgb(24 24 24 / 0), rgb(24 24 24 / 0.9) max(70px, calc(110 * var(--hg-u))), #181818 max(120px, calc(190 * var(--hg-u)))) !important;
	padding-top: max(120px, calc(220 * var(--hg-u))) !important;
}

.site-footer:not(.hg-tail .site-footer)::before {
	display: none;
}

/* Vender: el titular y el botón quedan centrados en pantalla y acompañan al scroll; se detienen
 * cerca del final del hero, que es más alto para dar recorrido al efecto. */
.hg-sell-hero {
	align-items: flex-start !important;
	min-height: 165svh !important;
	padding-top: 50svh !important;
	padding-bottom: 0 !important;
	overflow: clip !important;
}

.hg-sell-hero > .wp-block-cover__inner-container {
	position: sticky !important;
	top: 50svh;
	translate: 0 -50%;
}

@media (max-width: 781px) {
	.hg-sell-hero {
		min-height: 150svh !important;
	}
}

/* Menús: la página actual queda marcada como en el hover. */
.site-header__nav .wp-block-navigation-item__content.is-current {
	color: var(--hg-gold-dark);
	letter-spacing: 0.1em;
}

.site-header__nav .wp-block-navigation-item__content.is-current::after {
	transform: scaleX(1);
}

.hg-menu__nav .wp-block-navigation-item__content.is-current {
	color: var(--hg-gold-dark);
	letter-spacing: 0.02em;
}

/* «Soy propietario» se veía más bajo: el carrusel (que sube 48 px con margen negativo) le tapaba
 * el borde inferior. Un poco más de aire bajo los accesos para que no se solapen. */
.hg-orbits {
	margin-bottom: 16px !important;
}

/* Botones: al pasar el cursor solo el relleno y el destello; nunca cambian de tamaño. */
.wp-element-button:hover,
.wp-element-button:focus-visible,
.hg-form__submit:hover,
.hg-form__submit:focus-visible {
	scale: none !important;
}

/* Viviendas sin acceso, con ratón: al pasar el cursor la foto se acerca más y el desenfoque baja
 * (sin llegar a dejar ver detalles). En pantallas táctiles no hay hover y no se anima el filtro. */
@media (hover: hover) {
	.hg-card .hg-card__img img.hg-blur-img {
		transition: transform 1.4s var(--hg-ease), filter 1s var(--hg-ease) !important;
	}

	.hg-card:hover .hg-card__img img.hg-blur-img {
		filter: blur(9px) saturate(1.08) !important;
		transform: scale(1.34) translateZ(0) !important;
	}
}

/* Vender, «Agendar llamada»: como «Ir a housingo.es» de Inicio. Al pasar el cursor el texto pasa a dorado
 * y el círculo se vuelve dorado, se desplaza un poco y la cruz gira (también al entrar, no solo al salir). */
.hg-ring .wp-block-button__link {
	transition: color 0.4s ease !important;
}

.hg-ring .wp-block-button__link::after {
	background:
		linear-gradient(var(--hg-plus, #181818), var(--hg-plus, #181818)) center / 16px 1.4px no-repeat,
		linear-gradient(var(--hg-plus, #181818), var(--hg-plus, #181818)) center / 1.4px 16px no-repeat,
		var(--hg-disc, #fff) !important;
	transition: transform 0.6s var(--hg-ease), background-color 0.4s ease !important;
}

.hg-ring .wp-block-button__link:is(:hover, :focus-visible) {
	color: var(--hg-gold-dark) !important;
}

.hg-ring .wp-block-button__link:is(:hover, :focus-visible)::after {
	--hg-plus: #fff;
	--hg-disc: var(--hg-gold-dark);
	transform: translateX(8px) rotate(90deg) !important;
	transition: transform 0.6s var(--hg-ease), background-color 0.4s ease !important;
}

.hg-ring a.wp-block-button__link.wp-element-button:is(:hover, :focus-visible) {
	color: var(--hg-gold-dark) !important;
}

/* «Agendar llamada»: los colores del círculo y de la cruz se funden poco a poco (propiedades de color
 * registradas, que sí se pueden animar dentro de los degradados). */
@property --hg-plus {
	syntax: "<color>";
	inherits: false;
	initial-value: #181818;
}

@property --hg-disc {
	syntax: "<color>";
	inherits: false;
	initial-value: #fff;
}

.hg-ring .wp-block-button__link::after,
.hg-ring .wp-block-button__link:is(:hover, :focus-visible)::after {
	transition: transform 0.6s var(--hg-ease), --hg-disc 0.5s ease, --hg-plus 0.5s ease !important;
}

/* Pie justo debajo de una foto: negro desde el primer píxel (lo marca el JS). */
.site-footer.site-footer--flush:not(.hg-tail .site-footer) {
	background: #181818 !important;
	padding-top: max(64px, calc(110 * var(--hg-u))) !important;
}

/* Pie en páginas que acaban en blanco: algo separado de la última sección; el degradado arranca enseguida
 * y se alarga hacia abajo (llega al negro pasado el logo), sin un corte marcado. */
.site-footer:not(.hg-tail .site-footer):not(.site-footer--flush) {
	--hg-fade: max(320px, calc(460 * var(--hg-u)));
	margin-top: max(24px, calc(40 * var(--hg-u))) !important;
	padding-top: max(120px, calc(200 * var(--hg-u))) !important;
	background: linear-gradient(
		rgb(24 24 24 / 0) 0,
		rgb(24 24 24 / 0.3) calc(var(--hg-fade) * 0.1),
		rgb(24 24 24 / 0.58) calc(var(--hg-fade) * 0.25),
		rgb(24 24 24 / 0.78) calc(var(--hg-fade) * 0.45),
		rgb(24 24 24 / 0.92) calc(var(--hg-fade) * 0.7),
		#181818 var(--hg-fade)
	) !important;
}
