/**
 * Sistema visual del tema El Hispano Reformas Integrales.
 * Mobile first, sin dependencias externas.
 */

:root {
	--color-brand: #a63800;
	--color-brand-dark: #7d2a00;
	--color-dark: #303030;
	--color-white: #fff;
	--color-light: #f5f5f5;
	--color-border: #d9d9d9;
	--color-muted: #666;
	--color-whatsapp: #1d7f42;
	--font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--shadow-sm: 0 8px 28px rgb(48 48 48 / 8%);
	--shadow-md: 0 18px 50px rgb(48 48 48 / 14%);
	--radius: 6px;
	--container: 1180px;
	--header-height: 78px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--color-white);
	color: var(--color-dark);
	font-family: var(--font-system);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-brand);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--color-brand-dark);
}

button,
input,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid #e56a2b;
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.75rem;
	color: var(--color-dark);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

h1 {
	font-size: clamp(2.35rem, 7vw, 4.7rem);
}

h2 {
	font-size: clamp(1.9rem, 4.5vw, 3.1rem);
}

h3 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
	margin: 0 0 1.25rem;
}

.container {
	width: min(calc(100% - 2rem), var(--container));
	margin-inline: auto;
}

.content-narrow {
	max-width: 780px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--color-white);
	color: var(--color-dark);
	font-weight: 700;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.35rem;
	border: 2px solid var(--color-brand);
	border-radius: var(--radius);
	background: var(--color-brand);
	color: var(--color-white);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
	border-color: var(--color-brand-dark);
	background: var(--color-brand-dark);
	color: var(--color-white);
	transform: translateY(-1px);
}

.button--outline {
	background: transparent;
	color: var(--color-brand);
}

.button--light {
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--color-brand-dark);
}

.button--light:hover {
	border-color: var(--color-dark);
	background: var(--color-dark);
}

.button--whatsapp {
	min-height: 42px;
	padding: 0.6rem 0.95rem;
	border-color: var(--color-whatsapp);
	background: var(--color-whatsapp);
	font-size: 0.9rem;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0;
}

.text-link {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	font-weight: 700;
	text-decoration: none;
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--color-brand);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Cabecera */
.site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	min-height: var(--header-height);
	border-bottom: 1px solid rgb(48 48 48 / 8%);
	background: rgb(255 255 255 / 96%);
	box-shadow: 0 5px 22px rgb(48 48 48 / 5%);
	backdrop-filter: blur(10px);
}

.site-header__inner {
	display: flex;
	min-height: var(--header-height);
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.site-brand {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.65rem;
	color: var(--color-dark);
	text-decoration: none;
}

.site-brand:hover {
	color: var(--color-dark);
}

.site-brand__logo,
.site-brand__custom img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.site-brand__custom .custom-logo-link {
	display: block;
}

.site-brand__text {
	display: none;
	color: var(--color-dark);
	line-height: 1.05;
	text-decoration: none;
}

.site-brand__text strong,
.site-brand__text small {
	display: block;
}

.site-brand__text strong {
	font-size: 1rem;
	text-transform: uppercase;
}

.site-brand__text small {
	margin-top: 0.25rem;
	color: var(--color-brand);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
}

.menu-toggle {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
	place-items: center;
	cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-dark);
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__lines {
	position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
	top: 0;
	transform: rotate(-45deg);
}

.primary-navigation {
	position: fixed;
	inset: var(--header-height) 0 auto;
	display: none;
	max-height: calc(100vh - var(--header-height));
	padding: 1rem;
	overflow-y: auto;
	border-top: 1px solid var(--color-border);
	background: var(--color-white);
	box-shadow: var(--shadow-md);
}

.primary-navigation.is-open {
	display: block;
}

.menu,
.menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-navigation .menu a {
	display: block;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-dark);
	font-weight: 650;
	text-decoration: none;
}

.primary-navigation .sub-menu {
	padding-left: 1rem;
}

.header-actions {
	display: none;
	align-items: center;
	gap: 0.75rem;
}

.header-action {
	color: var(--color-dark);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

/* Portada */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 6.5rem) 0;
	background:
		radial-gradient(circle at 8% 5%, rgb(166 56 0 / 9%), transparent 32rem),
		linear-gradient(135deg, #fff 0%, #f8f5f3 100%);
}

.hero::after {
	position: absolute;
	right: -8rem;
	bottom: -10rem;
	width: 26rem;
	height: 26rem;
	border: 1px solid rgb(166 56 0 / 12%);
	border-radius: 50%;
	content: "";
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.hero__content {
	max-width: 720px;
}

.hero__lead {
	max-width: 650px;
	color: #4e4e4e;
	font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__highlights {
	display: grid;
	gap: 0.5rem;
	padding: 0;
	margin: 1.5rem 0 0;
	list-style: none;
}

.hero__highlights li {
	position: relative;
	padding-left: 1.55rem;
	font-size: 0.95rem;
	font-weight: 650;
}

.hero__highlights li::before {
	position: absolute;
	top: 0.58em;
	left: 0;
	width: 0.65rem;
	height: 0.35rem;
	border-bottom: 2px solid var(--color-brand);
	border-left: 2px solid var(--color-brand);
	content: "";
	transform: rotate(-45deg);
}

.placeholder-visual {
	position: relative;
	display: grid;
	min-height: 340px;
	padding: 1.25rem;
	overflow: hidden;
	border-radius: 10px;
	background: #e9e4df;
	box-shadow: var(--shadow-md);
	place-items: end start;
}

.placeholder-visual > p {
	position: relative;
	z-index: 2;
	padding: 0.5rem 0.75rem;
	margin: 0;
	border-radius: 3px;
	background: rgb(255 255 255 / 90%);
	font-size: 0.78rem;
	font-weight: 700;
}

.placeholder-visual__room {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, #f5f2ee 0 58%, #c7b9ad 58% 100%);
}

.placeholder-visual__window {
	position: absolute;
	top: 13%;
	right: 12%;
	width: 34%;
	height: 38%;
	border: 10px solid var(--color-white);
	background: linear-gradient(145deg, #c6d8de, #edf4f5);
	box-shadow: 0 10px 24px rgb(48 48 48 / 13%);
}

.placeholder-visual__window::after {
	position: absolute;
	inset: 50% 0 auto;
	height: 5px;
	background: var(--color-white);
	content: "";
}

.placeholder-visual__cabinet {
	position: absolute;
	right: 8%;
	bottom: 23%;
	width: 44%;
	height: 23%;
	background: #67564a;
	box-shadow: inset 0 5px #2f2a27;
}

.placeholder-visual__island {
	position: absolute;
	bottom: 10%;
	left: 16%;
	width: 48%;
	height: 22%;
	background: #fdfdfd;
	box-shadow: 0 16px 28px rgb(48 48 48 / 18%);
	transform: skewY(-3deg);
}

.section {
	padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--light {
	background: var(--color-light);
}

.section--dark {
	background: var(--color-dark);
	color: var(--color-white);
}

.section-heading {
	max-width: 760px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.section-heading--left {
	margin-inline: 0;
	text-align: left;
}

.section-heading--light h2,
.section-heading--light h3 {
	color: var(--color-white);
}

.section-heading--row {
	display: flex;
	max-width: none;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	text-align: left;
}

.section-heading--row > div {
	max-width: 760px;
}

.services-grid {
	display: grid;
	gap: 1rem;
}

.service-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	transition: border-color 160ms ease, transform 160ms ease;
}

.service-card:hover {
	border-color: rgb(166 56 0 / 35%);
	transform: translateY(-3px);
}

.service-card p {
	color: var(--color-muted);
}

.service-card .text-link {
	margin-top: auto;
}

.service-card__icon {
	position: relative;
	display: grid;
	width: 46px;
	height: 46px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: rgb(166 56 0 / 10%);
	place-items: center;
}

.service-card__icon::before {
	width: 18px;
	height: 18px;
	border: 3px solid var(--color-brand);
	content: "";
	transform: rotate(45deg);
}

.service-card__icon::after {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-brand);
	content: "";
}

.split-layout,
.faq-layout {
	display: grid;
	gap: 2.5rem;
}

.benefits-list {
	display: grid;
	gap: 0;
}

.benefits-list article {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--color-border);
}

.benefits-list article:first-child {
	padding-top: 0;
}

.benefits-list p {
	margin: 0;
	color: var(--color-muted);
}

.number-badge {
	display: grid;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(166 56 0 / 30%);
	border-radius: 50%;
	color: var(--color-brand);
	font-size: 0.8rem;
	font-weight: 800;
	place-items: center;
}

.process-list {
	display: grid;
	gap: 1px;
	padding: 0;
	margin: 0;
	background: rgb(255 255 255 / 14%);
	list-style: none;
}

.process-list li {
	padding: 1.5rem;
	background: var(--color-dark);
}

.process-list h3 {
	color: var(--color-white);
}

.process-list p {
	margin: 0;
	color: #cfcfcf;
	font-size: 0.92rem;
}

.process-list__number {
	display: block;
	margin-bottom: 1.5rem;
	color: #e56a2b;
	font-weight: 800;
}

.projects-grid {
	display: grid;
	gap: 1.25rem;
}

.project-card {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
}

.project-placeholder {
	position: relative;
	display: grid;
	min-height: 300px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgb(255 255 255 / 20%), transparent),
		#c9c3be;
	place-items: center;
}

.project-placeholder::before,
.project-placeholder::after {
	position: absolute;
	content: "";
}

.project-placeholder::before {
	right: 10%;
	bottom: 0;
	width: 55%;
	height: 65%;
	background: #f2efec;
	box-shadow: -12px -12px 0 rgb(48 48 48 / 8%);
}

.project-placeholder::after {
	bottom: 12%;
	left: 10%;
	width: 50%;
	height: 24%;
	background: var(--color-dark);
	box-shadow: 12px 12px 0 rgb(166 56 0 / 55%);
}

.project-placeholder--2 {
	background-color: #b7c0bc;
}

.project-placeholder--3 {
	background-color: #d3c4b6;
}

.project-placeholder span {
	z-index: 2;
	padding: 0.45rem 0.65rem;
	background: rgb(255 255 255 / 92%);
	font-size: 0.72rem;
	font-weight: 700;
}

.project-card__content {
	padding: 1.25rem;
}

.project-card__content p {
	margin: 0;
	color: var(--color-muted);
}

.quote-section {
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	background: var(--color-brand);
	color: var(--color-white);
}

.quote-section h2,
.quote-section .eyebrow {
	color: var(--color-white);
}

.quote-section__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.quote-section__inner > div:first-child {
	max-width: 760px;
}

.quote-section__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

.quote-phone {
	display: flex;
	flex-direction: column;
	color: var(--color-white);
	text-decoration: none;
}

.quote-phone:hover {
	color: var(--color-white);
}

.quote-phone span {
	font-size: 0.78rem;
}

.accordion details {
	border-bottom: 1px solid var(--color-border);
	background: var(--color-white);
}

.accordion details:first-child {
	border-top: 1px solid var(--color-border);
}

.accordion summary {
	position: relative;
	padding: 1.15rem 3rem 1.15rem 0;
	font-weight: 750;
	list-style: none;
	cursor: pointer;
}

.accordion summary::-webkit-details-marker {
	display: none;
}

.accordion summary span,
.accordion summary span::after {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	width: 14px;
	height: 2px;
	background: var(--color-brand);
	content: "";
}

.accordion summary span::after {
	top: 0;
	right: 0;
	transform: rotate(90deg);
	transition: transform 160ms ease;
}

.accordion details[open] summary span::after {
	transform: rotate(0);
}

.accordion__content {
	padding: 0 2rem 1rem 0;
	color: var(--color-muted);
}

.contact-grid {
	display: grid;
	gap: 2.5rem;
}

.contact-list {
	padding: 0;
	margin: 2rem 0 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	flex-direction: column;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--color-border);
}

.contact-list span {
	color: var(--color-muted);
	font-size: 0.82rem;
}

.contact-form-wrap {
	padding: clamp(1.25rem, 4vw, 2rem);
	border-top: 4px solid var(--color-brand);
	background: var(--color-light);
	box-shadow: var(--shadow-sm);
}

.contact-form {
	display: grid;
	gap: 1rem;
}

.form-row {
	display: grid;
	gap: 1rem;
}

.form-field {
	display: grid;
	gap: 0.35rem;
}

.form-field label {
	font-size: 0.9rem;
	font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #aaa;
	border-radius: 3px;
	background: var(--color-white);
	color: var(--color-dark);
}

.form-field textarea {
	resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	border-color: var(--color-brand);
	outline: 2px solid rgb(166 56 0 / 18%);
}

.form-check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: start;
	font-size: 0.88rem;
}

.form-check input {
	width: 18px;
	height: 18px;
	margin-top: 0.2rem;
	accent-color: var(--color-brand);
}

.form-help {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.turnstile-field {
	display: grid;
	gap: 0.5rem;
}

.turnstile-field .cf-turnstile {
	min-height: 65px;
}

.turnstile-field .form-help {
	font-size: 0.75rem;
}

.form-notice {
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	border-left: 4px solid;
	background: var(--color-white);
	font-weight: 650;
}

.form-notice--success { border-color: #1d7f42; }
.form-notice--error { border-color: #b32727; }

/* Contenido interior */
.content-area {
	min-height: 55vh;
	padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-hero--compact {
	padding: 2.5rem 0;
	margin: calc(clamp(3rem, 7vw, 6rem) * -1) 0 3rem;
	background: var(--color-light);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-featured-image {
	margin-bottom: 2rem;
	border-radius: var(--radius);
}

.posts-grid {
	display: grid;
	gap: 1.25rem;
}

.post-card {
	padding: 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.post-card h2 a {
	color: var(--color-dark);
	text-decoration: none;
}

.error-page {
	display: grid;
	min-height: 65vh;
	padding: 5rem 0;
	text-align: center;
	place-items: center;
}

.error-code {
	margin: 0;
	color: rgb(166 56 0 / 15%);
	font-size: clamp(5rem, 20vw, 12rem);
	font-weight: 900;
	line-height: 0.85;
}

/* Pie */
.site-footer {
	padding-top: 4rem;
	background: #262626;
	color: #d6d6d6;
}

.site-footer h2 {
	color: var(--color-white);
}

.site-footer__title {
	font-size: 1.5rem;
}

.footer-heading {
	font-size: 1rem;
}

.footer-grid {
	display: grid;
	gap: 2rem;
	padding-bottom: 3rem;
}

.footer-list,
.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-list li {
	margin-bottom: 0.5rem;
	overflow-wrap: anywhere;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
}

.site-footer a {
	color: var(--color-white);
}

.footer-legal {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 13%);
	font-size: 0.82rem;
}

.footer-legal p {
	margin: 0;
}

.footer-legal nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

@media (min-width: 520px) {
	.site-brand__text {
		display: block;
	}

	.services-grid,
	.projects-grid,
	.posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.form-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 760px) {
	.container {
		width: min(calc(100% - 3rem), var(--container));
	}

	.hero__grid,
	.split-layout,
	.faq-layout,
	.contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero__visual {
		min-height: 480px;
	}

	.process-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.projects-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.projects-grid .project-card:first-child {
		grid-column: span 2;
	}

	.quote-section__inner {
		grid-template-columns: 1.5fr auto;
	}

	.footer-grid {
		grid-template-columns: 1.25fr 1fr 1fr;
	}

	.footer-legal {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (min-width: 1020px) {
	:root {
		--header-height: 90px;
	}

	.menu-toggle {
		display: none;
	}

	.primary-navigation {
		position: static;
		display: block;
		max-height: none;
		padding: 0;
		overflow: visible;
		border: 0;
		box-shadow: none;
	}

	.primary-navigation .menu {
		display: flex;
		align-items: center;
		gap: clamp(0.7rem, 1.4vw, 1.25rem);
	}

	.primary-navigation .menu > li {
		position: relative;
	}

	.primary-navigation .menu a {
		padding: 0.8rem 0;
		border: 0;
		font-size: 0.88rem;
	}

	.primary-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		display: none;
		min-width: 220px;
		padding: 0.5rem 1rem;
		background: var(--color-white);
		box-shadow: var(--shadow-md);
	}

	.primary-navigation li:hover > .sub-menu,
	.primary-navigation li:focus-within > .sub-menu {
		display: block;
	}

	.header-actions {
		display: flex;
	}

	.hero__grid {
		grid-template-columns: 1.12fr 0.88fr;
	}

	.services-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.process-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1220px) {
	.site-brand__logo,
	.site-brand__custom img {
		width: 62px;
		height: 62px;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.button,
	.contact-form {
		display: none !important;
	}

	body {
		color: #000;
	}
}

/* Navegación lateral y acciones móviles */
.desktop-navigation,
.header-actions {
	display: none;
}

.site-header {
	position: fixed;
	width: 100%;
	transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
	box-shadow: 0 7px 24px rgb(48 48 48 / 14%);
}

.site-main {
	padding-top: var(--header-height);
}

.mobile-menu-layer {
	position: fixed;
	z-index: 2000;
	inset: 0;
	visibility: hidden;
	pointer-events: none;
}

.mobile-menu-layer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.mobile-menu-overlay {
	position: absolute;
	inset: 0;
	background: rgb(48 48 48 / 62%);
	opacity: 0;
	transition: opacity 240ms ease;
}

.mobile-menu-panel {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(82vw, 390px);
	min-width: 262px;
	padding: 4.5rem 1.25rem 2rem;
	overflow-y: auto;
	background: var(--color-white);
	box-shadow: 12px 0 32px rgb(0 0 0 / 18%);
	transform: translateX(-105%);
	transition: transform 240ms ease;
}

.mobile-menu-layer.is-open .mobile-menu-overlay {
	opacity: 1;
}

.mobile-menu-layer.is-open .mobile-menu-panel {
	transform: translateX(0);
}

.mobile-menu-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mobile-menu-close span::before,
.mobile-menu-close span::after {
	position: absolute;
	top: 21px;
	left: 10px;
	width: 24px;
	height: 2px;
	background: var(--color-dark);
	content: "";
}

.mobile-menu-close span::before { transform: rotate(45deg); }
.mobile-menu-close span::after { transform: rotate(-45deg); }

.menu--mobile,
.menu--mobile ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu--mobile a {
	display: block;
	padding: 0.68rem 0.25rem;
	color: var(--color-dark);
	font-size: 1.02rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

.menu--mobile a:hover {
	color: var(--color-brand);
}

.menu--mobile .sub-menu {
	padding: 0.15rem 0 0.45rem 1.15rem;
	border-left: 2px solid rgb(166 56 0 / 18%);
}

.menu--mobile .sub-menu a {
	padding-block: 0.52rem;
	font-size: 0.94rem;
	font-weight: 500;
}

.mobile-contact-actions {
	position: fixed;
	z-index: 900;
	right: 0.75rem;
	bottom: max(1rem, env(safe-area-inset-bottom));
	display: grid;
	gap: 0.75rem;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.mobile-contact-actions.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.floating-contact {
	display: grid;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: 0 7px 18px rgb(0 0 0 / 22%);
	color: var(--color-white);
	place-items: center;
}

.floating-contact:hover {
	color: var(--color-white);
	transform: translateY(-1px);
}

.floating-contact svg {
	width: 27px;
	height: 27px;
	fill: currentcolor;
}

.floating-contact--phone { background: var(--color-brand); }
.floating-contact--whatsapp { background: #168c45; }

.trade-grid {
	display: grid;
	gap: 1rem;
}

.trade-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 1.3rem;
	border: 1px solid rgb(255 255 255 / 14%);
	background: rgb(255 255 255 / 5%);
	scroll-margin-top: calc(var(--header-height) + 1rem);
}

.home-service__grid {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.home-service__points {
	padding-left: 1.2rem;
	margin-block: 1.25rem;
}

.home-service__points li + li {
	margin-top: 0.4rem;
}

.home-service__visual {
	display: grid;
	min-height: 260px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background:
		linear-gradient(145deg, rgb(255 255 255 / 55%), transparent),
		#d8d0c9;
	box-shadow: var(--shadow-sm);
	place-items: center;
}

.home-service__visual span {
	width: 72px;
	height: 72px;
	border: 2px solid rgb(48 48 48 / 32%);
	border-radius: 50%;
}

.trade-card h3 { color: var(--color-white); }
.trade-card p { color: #d7d7d7; }

.trade-card__visual {
	display: grid;
	min-height: 150px;
	margin: -1.3rem -1.3rem 1.3rem;
	border-bottom: 1px solid rgb(255 255 255 / 14%);
	background:
		linear-gradient(145deg, rgb(255 255 255 / 10%), transparent),
		rgb(255 255 255 / 5%);
	color: #f28a52;
	place-items: center;
}

.trade-card__visual > span:not(.trade-card__icon) {
	width: 52px;
	height: 52px;
	border: 2px solid currentcolor;
	border-radius: 50%;
	opacity: 0.55;
}

.trade-card__icon {
	display: block;
	width: 64px;
	height: 64px;
	background-color: currentcolor;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.trade-card__icon--pladur {
	-webkit-mask-image: url("../images/iconos/icono-pladur.svg");
	mask-image: url("../images/iconos/icono-pladur.svg");
}

.trade-card__icon--perlita {
	-webkit-mask-image: url("../images/iconos/icono-perlita.svg");
	mask-image: url("../images/iconos/icono-perlita.svg");
}

.trade-card__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
}

.trade-card__label {
	margin: 0 0 0.35rem;
	color: #f28a52;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.trade-card__content > p:not(.trade-card__label) {
	margin: 0 0 1rem;
}

.trade-card__content ul {
	padding-left: 1.15rem;
	margin: 0 0 1.25rem;
	color: #e6e6e6;
	font-size: 0.9rem;
}

.trade-card__content li + li {
	margin-top: 0.35rem;
}

.trade-card .text-link {
	width: fit-content;
	margin-top: auto;
	color: var(--color-white);
	overflow-wrap: anywhere;
}

.home-service,
#servicios,
#sobre-nosotros {
	scroll-margin-top: calc(var(--header-height) + 1rem);
}

.home-service .text-link,
.trade-card .text-link {
	min-height: 44px;
	align-items: center;
}

.blog-empty { max-width: 720px; margin-inline: auto; text-align: center; }

@media (min-width: 620px) {
	.trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
	.home-service__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-service:nth-child(even) .home-service__visual {
		order: -1;
	}
}

@media (min-width: 1020px) {
	.site-main { padding-top: var(--header-height); }
	.desktop-navigation { display: block; margin-left: auto; }
	.desktop-navigation .menu {
		display: flex;
		align-items: center;
		gap: clamp(0.6rem, 1vw, 1rem);
	}
	.desktop-navigation .menu > li { position: relative; }
	.desktop-navigation .menu > li:nth-child(3),
	.desktop-navigation .menu > li:nth-child(4),
	.desktop-navigation .menu > li:nth-child(5),
	.desktop-navigation .menu > li:nth-child(8),
	.desktop-navigation .menu > li:nth-child(9),
	.desktop-navigation .menu > li:nth-child(12) { display: none; }
	.desktop-navigation a {
		display: block;
		padding: 0.8rem 0;
		color: var(--color-dark);
		font-size: 0.85rem;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}
	.desktop-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		display: none;
		min-width: 235px;
		padding: 0.6rem 1rem;
		background: var(--color-white);
		box-shadow: var(--shadow-md);
		list-style: none;
	}
	.desktop-navigation li:hover > .sub-menu,
	.desktop-navigation li:focus-within > .sub-menu { display: block; }
	.header-actions { display: flex; }
	.mobile-contact-actions,
	.mobile-menu-layer { display: none; }
	.trade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Fotografías definitivas */
.hero__visual {
	display: block;
	min-height: 340px;
	overflow: hidden;
	border-radius: 10px;
	background: #e9e4df;
	box-shadow: var(--shadow-md);
}

.hero__visual img,
.home-service__visual img,
.trade-card__visual img,
.project-gallery img,
.about-gallery img,
.contact-copy__image,
.post-card__image img,
img.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__visual img { min-height: 340px; }

.home-service__visual img { aspect-ratio: 9 / 7; }

.trade-card__visual {
	overflow: hidden;
	background: #3b3937;
}

.trade-card__visual img {
	aspect-ratio: 9 / 7;
	transition: transform 240ms ease;
}

.trade-card:hover .trade-card__visual img { transform: scale(1.025); }

.about-layout {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.about-gallery {
	position: relative;
	min-height: 390px;
	padding: 0 18% 12% 0;
}

.about-gallery img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}

.about-gallery__main { aspect-ratio: 4 / 3; }

.about-gallery .about-gallery__secondary {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 34%;
	height: 58%;
	border: 5px solid var(--color-white);
}

.project-gallery {
	display: grid;
	grid-auto-columns: min(78vw, 360px);
	grid-auto-flow: column;
	gap: 2px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.project-gallery__item {
	position: relative;
	margin: 0;
	scroll-snap-align: start;
}

.project-gallery__item img { aspect-ratio: 4 / 3; }

.project-gallery__item figcaption {
	position: absolute;
	bottom: 0.65rem;
	left: 0.65rem;
	padding: 0.35rem 0.6rem;
	border-radius: 2px;
	background: rgb(255 255 255 / 92%);
	color: var(--color-dark);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.contact-copy__image {
	max-height: 430px;
	margin-top: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	object-position: center 35%;
}

.post-card {
	overflow: hidden;
	padding: 0;
	background: var(--color-white);
}

.post-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.post-card__content { padding: 1.5rem; }

.post-card__content h3 { margin-top: 0; }

@media (min-width: 620px) {
	.project-gallery {
		grid-auto-columns: auto;
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
	}
}

@media (min-width: 760px) {
	.hero__visual img { min-height: 480px; }
	.about-layout { grid-template-columns: 0.85fr 1.15fr; }
}
