html {
	overflow-x: clip;
}

body {
	margin: 0;
}

body.ns-nav-open {
	overflow: hidden;
}

.ns-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	background: #fff;
	padding: 0.5rem 0.75rem;
	z-index: 20;
}

.ns-skip:focus {
	top: 0.5rem;
}

.ns-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #fff;
}

.ns-bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	min-height: 74px;
	padding: 0 28px;
	background: #fff;
	border-bottom: 1px solid #ececec;
}

.ns-logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	background: transparent;
	border: 0;
	line-height: 0;
}

.ns-logo img {
	box-sizing: border-box;
	display: block;
	max-width: min(200px, 36vw);
	object-fit: contain;
	object-position: left center;
	opacity: 0.6;
	transition: opacity 1.2s ease;
}

.ns-logo:hover img,
.ns-logo:focus-visible img {
	opacity: 1;
}

.ns-logo .ns-logo-light,
.ns-logo .ns-logo-dark {
	width: 160px;
	height: 57px;
}

.ns-logo .ns-logo-dark {
	display: none;
}

.ns-toggle {
	display: none;
	box-sizing: border-box;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	border: 1px solid #ddd;
	background: #fff;
	color: #828282;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 8px 12px;
}

.ns-nav {
	flex: 0 1 auto;
}

.ns-menu,
.ns-social,
.ns-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ns-menu {
	display: flex;
	align-items: center;
	gap: 26px;
}

.ns-menu > li {
	position: relative;
}

.ns-menu > li > a,
.ns-menu > li > button,
.ns-social a {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #828282;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
}

.ns-menu > li > button {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.ns-menu > li.ns-menu-highlight > a {
	color: #c00;
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
}

.ns-menu > li.ns-menu-highlight > a:hover {
	color: #900;
}

.ns-menu-concreta-icon {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex: 0 0 auto;
}

.ns-social {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ns-social a {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	color: #929292;
	letter-spacing: 0;
}

.ns-social .ns-line {
	margin: 0;
	font-size: 18px;
	color: #929292;
}

.ns-theme {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8b8b8b;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
}

.ns-theme-side {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ns-theme-track {
	position: relative;
	box-sizing: border-box;
	display: block;
	width: 64px;
	height: 28px;
	border-radius: 999px;
	background: #e8e8e8;
	box-shadow:
		inset 4px 4px 8px rgba(163, 177, 198, 0.45),
		inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.ns-theme-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	box-sizing: border-box;
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f4f4f4;
	box-shadow:
		4px 4px 8px rgba(163, 177, 198, 0.4),
		-3px -3px 7px rgba(255, 255, 255, 0.95);
	transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.ns-theme:focus-visible {
	outline: 2px solid #1c1c1c;
	outline-offset: 3px;
}

html[data-theme="dark"] .ns-theme {
	color: #c5c5c5;
}

html[data-theme="dark"] .ns-theme-track {
	background: #2a2f38;
	box-shadow:
		inset 4px 4px 8px rgba(0, 0, 0, 0.45),
		inset -3px -3px 7px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .ns-theme-knob {
	transform: translateX(36px);
	background: #3a404a;
	box-shadow:
		4px 4px 8px rgba(0, 0, 0, 0.45),
		-2px -2px 5px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .ns-theme:focus-visible {
	outline-color: #fff;
}

.wp-block-post-title {
	font-family: "Josefin Sans", sans-serif;
	font-size: clamp(32px, 6vw, 48px);
	font-weight: 400;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.ns-has-sub > a span::after,
.ns-has-sub > button span::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 6px;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 4px solid currentColor;
	vertical-align: 1px;
}

.ns-sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 31;
	min-width: 220px;
	margin: 0;
	padding: 0;
	background: #3a3a3a;
	border-top: 3px solid #cda85c;
}

.ns-has-sub:hover > .ns-sub,
.ns-has-sub:focus-within > .ns-sub,
.ns-has-sub.is-open > .ns-sub {
	display: block;
}

.ns-sub li {
	border-bottom: 1px solid #111;
}

.ns-sub li:last-child {
	border-bottom: 0;
}

.ns-sub a {
	display: flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 14px;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 1.2;
	text-transform: uppercase;
}

.ns-sub a:hover,
.ns-sub a:focus {
	color: #fff;
	background: #111;
}

.ns-has-nested {
	position: relative;
}

.ns-has-nested > a {
	padding-right: 34px;
}

.ns-nested-toggle {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-height: 30px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.ns-nested-toggle::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
}

.ns-sub-nested {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 32;
	min-width: 240px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #2f2f2f;
	border-top: 3px solid #cda85c;
}

.ns-has-nested:hover > .ns-sub-nested,
.ns-has-nested:focus-within > .ns-sub-nested,
.ns-has-nested.is-open > .ns-sub-nested {
	display: block;
}

.ns-sub-nested li {
	border-bottom: 1px solid #111;
}

.ns-sub-nested li:last-child {
	border-bottom: 0;
}

.ns-sub-nested a {
	display: flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 14px;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 1.2;
	text-transform: uppercase;
}

.ns-sub-nested a:hover,
.ns-sub-nested a:focus {
	color: #fff;
	background: #111;
}

.ns-menu > li > a:hover,
.ns-menu > li > button:hover,
.ns-social a:hover {
	color: #111;
}

.ns-menu > li.ns-menu-highlight > a:hover {
	color: #900;
}

.ns-home .wp-site-blocks > * + * {
	margin-block-start: 0;
}

.ns-hero {
	position: relative;
	box-sizing: border-box;
	min-height: calc(100vh - 200px);
	min-height: calc(100svh - 200px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	background:
		linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
		url("hrc-fachada.jpg") center center / cover no-repeat;
	color: #fff;
	text-align: center;
}

.ns-hero-promo {
	position: absolute;
	z-index: 0;
	top: max(0.85rem, env(safe-area-inset-top));
	right: max(0.85rem, env(safe-area-inset-right));
	display: block;
	width: min(300px, 34vw);
	line-height: 0;
	border: 0;
	box-shadow: none;
	opacity: 0.4;
	transition: transform 1.2s ease, opacity 1.2s ease;
}

.ns-hero-promo img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
}

.ns-hero-promo:hover,
.ns-hero-promo:focus-visible {
	opacity: 1;
	transform: translateY(-2px);
}

.ns-hero-promo:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ns-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
}

.ns-hero h1 {
	margin: 0;
	font-family: "Josefin Sans", sans-serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.ns-hero p {
	margin: 30px 0;
	font-family: Montserrat, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.7;
	color: #bfbfbf;
}

.ns-hero p span {
	text-decoration: underline;
}

.ns-rule {
	width: 30%;
	margin: 0 auto;
	border-top: 1px dashed #fff;
}

.ns-more {
	margin: 20px 0 0;
	padding-top: 20px;
}

.ns-more a {
	display: inline-block;
	padding: 12px 35px;
	border: 1px solid #fff;
	border-radius: 2px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
}

.ns-more a:hover,
.ns-more a:focus {
	background: #1c1c1c;
	border-color: #000;
	color: #fff;
}

.ns-home-projects {
	box-sizing: border-box;
	width: min(1320px, calc(100% - 3rem));
	margin: 0 auto;
	padding: 3.5rem 0 4rem;
}

.ns-home-projects h2 {
	margin: 0 0 1.75rem;
	font-family: "Josefin Sans", sans-serif;
	font-size: 32px;
	font-weight: 400;
	color: #1c1c1c;
	text-align: left;
}

.ns-home-projects-query .ns-home-projects-grid,
.ns-home-projects-query .wp-block-post-template,
.ns-home-projects-query .wp-block-post-template.is-flex-container {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem 0.5rem !important;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.ns-home-projects-query .wp-block-post-template.is-flex-container > li {
	width: auto !important;
	margin: 0 !important;
}

.ns-home-projects-card {
	margin: 0;
	min-width: 0;
}

.ns-home-projects-card .wp-block-post-featured-image {
	margin: 0 auto 0.9rem;
	max-width: 82%;
}

.ns-home-projects-card .wp-block-post-featured-image a {
	display: block;
	overflow: hidden;
	width: 100%;
}

.ns-home-projects-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	background: #f4f4f4;
	transform: scale(1);
	transition: transform 1s ease;
}

@media (hover: hover) {
	.ns-home-projects-card:hover .wp-block-post-featured-image img,
	.ns-home-projects-card:focus-within .wp-block-post-featured-image img {
		transform: scale(1.1);
		transition-duration: 2s;
	}
}

.ns-home-projects-card .wp-block-post-title {
	margin: 0 auto;
	max-width: 82%;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
	text-align: left;
}

.ns-home-projects-card .wp-block-post-title a {
	color: #1c1c1c;
	text-decoration: none;
	font-weight: 400;
}

.ns-home-projects-card .wp-block-post-title a::after {
	content: " [...]";
	font-weight: 400;
	letter-spacing: 0.04em;
}

.ns-home-projects-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

.ns-home-projects-card .wp-block-post-excerpt {
	display: none;
}

@media (max-width: 800px) {
	.ns-home-projects-query .ns-home-projects-grid,
	.ns-home-projects-query .wp-block-post-template,
	.ns-home-projects-query .wp-block-post-template.is-flex-container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.ns-home-projects {
		width: calc(100% - 2rem);
		padding: 2.5rem 0 3rem;
	}

	.ns-home-projects-query .ns-home-projects-grid,
	.ns-home-projects-query .wp-block-post-template,
	.ns-home-projects-query .wp-block-post-template.is-flex-container {
		grid-template-columns: 1fr;
	}
}

.ns-footer {
	padding: 18px 28px;
	background: #f2f2f2;
	text-align: center;
}

.ns-footer p {
	margin: 0;
	color: #848484;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.ns-go-top {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 48px;
	color: #303030;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ns-go-top.is-visible {
	opacity: 0.85;
	visibility: visible;
	pointer-events: auto;
}

.ns-go-top:hover,
.ns-go-top:focus-visible {
	opacity: 1;
}

.ns-go-top-label {
	font-family: Montserrat, sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	margin-bottom: -2px;
	text-transform: uppercase;
}

.ns-go-top-icon {
	display: block;
	width: 40px;
	height: 40px;
}

body .wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

@media (max-width: 1080px) {
	.ns-toggle {
		display: inline-flex;
	}

	.ns-logo .ns-logo-light,
	.ns-logo .ns-logo-dark {
		width: 140px;
		height: 50px;
	}

	.ns-bar {
		box-sizing: border-box;
		position: relative;
		flex-wrap: wrap;
		height: auto;
		min-height: 64px;
		column-gap: 8px;
		row-gap: 8px;
		padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
	}

	.ns-social {
		margin-left: 0;
	}

	.ns-theme {
		margin-left: auto;
	}

	.ns-theme-track {
		width: 68px;
		height: 30px;
	}

	.ns-theme-knob {
		width: 24px;
		height: 24px;
	}

	html[data-theme="dark"] .ns-theme-knob {
		transform: translateX(38px);
	}

	.ns-nav {
		display: none;
	}

	.ns-bar.is-open .ns-nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100svh - 200px);
		overflow: auto;
		background: #fff;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
		padding: 8px 8px max(16px, env(safe-area-inset-bottom));
	}

	.ns-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 0;
	}

	.ns-menu > li > a,
	.ns-menu > li > button,
	.ns-sub a,
	.ns-sub-nested a {
		min-height: 36px;
		padding: 7px 14px;
	}

	.ns-has-sub:hover > .ns-sub,
	.ns-has-sub:focus-within > .ns-sub {
		display: none;
	}

	.ns-has-sub.is-open > .ns-sub,
	.ns-has-sub.is-open:hover > .ns-sub,
	.ns-has-sub.is-open:focus-within > .ns-sub {
		display: block;
	}

	.ns-sub {
		position: static;
		min-width: 0;
		margin: 0 8px 8px;
	}

	.ns-has-nested:hover > .ns-sub-nested,
	.ns-has-nested:focus-within > .ns-sub-nested {
		display: none;
	}

	.ns-has-nested.is-open > .ns-sub-nested,
	.ns-has-nested.is-open:hover > .ns-sub-nested,
	.ns-has-nested.is-open:focus-within > .ns-sub-nested {
		display: block;
	}

	.ns-sub-nested {
		position: static;
		min-width: 0;
		margin: 0 0 0 12px;
		border-top: 0;
		background: #2a2a2a;
	}

	.ns-nested-toggle::before {
		border-left: 3px solid transparent;
		border-right: 3px solid transparent;
		border-top: 5px solid currentColor;
		border-bottom: 0;
	}

	.ns-has-nested.is-open > .ns-nested-toggle::before {
		transform: rotate(180deg);
	}

	.ns-hero {
		box-sizing: border-box;
		min-height: calc(100svh - 190px);
		padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
		background-attachment: scroll;
	}

	.ns-hero-promo {
		width: min(200px, 48vw);
		top: max(0.65rem, env(safe-area-inset-top));
		right: max(0.65rem, env(safe-area-inset-right));
	}

	.ns-hero h1 {
		font-size: 22px;
	}

	.ns-hero p {
		margin: 18px 0;
		font-size: 15px;
	}

	.ns-more a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
	}
}

/* CookieAdmin re-consent float (bottom-left): hide on phones */
@media (max-width: 767px) {
	.cookieadmin_reconsent_wrap,
	button.cookieadmin_re_consent,
	body .cookieadmin_reconsent_wrap button.cookieadmin_re_consent {
		display: none !important;
	}
}

@media (max-width: 640px) {
	.ns-toggle {
		order: 1;
	}

	.ns-logo {
		order: 2;
	}

	.ns-theme {
		order: 3;
		flex: 0 0 auto;
		margin-left: auto;
	}

	.ns-social {
		order: 4;
	}

	.ns-nav {
		order: 5;
	}

	.ns-hero {
		min-height: calc(100svh - 230px);
	}
}

@media (min-width: 1081px) {
	.ns-hero {
		background-attachment: fixed;
	}
}
