/* ==========================================================================
   Microcemento Arquitectónico — diseño de portada, header y footer
   ========================================================================== */

:root {
	--ma-ink: #1d1b19;
	--ma-text: #3a3632;
	--ma-muted: #6e6862;
	--ma-line: #e3ded8;
	--ma-soft: #f4f2ef;
	--ma-sand: #e8e1d8;
	--ma-earth: #3a2f26;
	--ma-earth-2: #2a221c;
	--ma-footer: #1b1a19;
	--ma-white: #fff;
	--ma-font: "Satoshi", "Helvetica Neue", Arial, sans-serif;
	--ma-container: 1240px;
	--ma-gutter: 24px;
}

body {
	font-family: var(--ma-font);
	color: var(--ma-text);
	background: var(--ma-white);
	font-weight: 400;
}

.ma-container {
	width: 100%;
	max-width: calc(var(--ma-container) + var(--ma-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--ma-gutter);
}

.ma-block h1,
.ma-block h2,
.ma-block h3 {
	font-family: var(--ma-font);
	color: inherit;
	letter-spacing: -0.01em;
}

.ma-block h2 {
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 14px;
	color: var(--ma-ink);
}

.ma-block p {
	margin: 0 0 16px;
	line-height: 1.55;
}

.ma-eyebrow {
	font-size: 0.72rem !important;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--ma-muted);
	margin-bottom: 10px !important;
}

.ma-section {
	padding: 72px 0;
}

.ma-bg-soft {
	background: var(--ma-soft);
}

.ma-section-head {
	max-width: 760px;
	margin: 0 auto 36px;
}

.ma-section-head p:last-child {
	color: var(--ma-muted);
}

.ma-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* Botones ----------------------------------------------------------------- */

.ma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 22px;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 2px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.ma-btn:hover {
	transform: translateY(-1px);
}

.ma-btn-dark {
	background: var(--ma-ink);
	color: var(--ma-white) !important;
}

.ma-btn-dark:hover {
	background: #000;
}

.ma-btn-light {
	background: var(--ma-white);
	color: var(--ma-ink) !important;
}

.ma-btn-light:hover {
	background: var(--ma-sand);
}

.ma-btn-outline-light {
	border-color: rgba(255, 255, 255, .7);
	color: var(--ma-white) !important;
	background: transparent;
}

.ma-btn-outline-light:hover {
	background: rgba(255, 255, 255, .12);
	border-color: var(--ma-white);
}

.ma-btn-sm {
	padding: 11px 18px;
	font-size: 0.82rem;
}

.ma-btn-lg {
	padding: 17px 26px;
	font-size: 1rem;
}

.ma-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Marcador de imagen (mientras no exista el archivo) ---------------------- */

.ma-ph {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background:
		radial-gradient(120% 90% at 70% 30%, rgba(255, 255, 255, .35), transparent 60%),
		linear-gradient(135deg, #b9aa98, #7d6c5b);
}

.ma-ph span {
	font: 11px/1 monospace;
	color: rgba(255, 255, 255, .8);
	background: rgba(0, 0, 0, .25);
	padding: 4px 6px;
	margin: 8px;
}

/* Header ------------------------------------------------------------------ */

.ma-header {
	background: var(--ma-white);
	border-bottom: 1px solid var(--ma-line);
}

.ma-header .navbar {
	min-height: 84px;
}

.ma-logo {
	display: inline-flex;
	align-items: center;
	color: var(--ma-ink);
}

.ma-logo img {
	max-height: 52px;
	width: auto;
}

.ma-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ma-logo-mark {
	width: 54px;
	height: 34px;
}

.ma-logo-words {
	display: flex;
	flex-direction: column;
	padding-left: 12px;
	border-left: 1px solid currentColor;
	line-height: 1.1;
	text-transform: uppercase;
}

.ma-logo-words strong {
	font-weight: 700;
	font-size: 0.86rem;
	letter-spacing: 0.08em;
}

.ma-logo-words span {
	font-size: 0.86rem;
	letter-spacing: 0.08em;
	font-weight: 400;
}

.ma-logo-words small {
	font-size: 0.52rem;
	letter-spacing: 0.02em;
	text-transform: none;
	opacity: .75;
	margin-top: 2px;
}

.ma-header .nav-main-menu {
	letter-spacing: 0;
	gap: 6px 28px;
}

.ma-header .nav-main-menu .nav-link {
	font-size: 0.85rem;
	white-space: nowrap;
	color: var(--ma-text);
	padding: 8px 0;
}

.ma-header .nav-main-menu .nav-link:hover {
	color: var(--ma-ink);
}

.ma-header .menu-toggler svg {
	width: 28px;
	height: 28px;
}

@media (max-width: 991.98px) {
	.ma-header .offcanvas-body {
		display: flex;
		flex-direction: column;
		align-items: flex-start !important;
		gap: 24px;
	}

	.ma-header .nav-main-menu .nav-link {
		font-size: 1.05rem;
	}
}

/* Hero -------------------------------------------------------------------- */

.ma-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	color: var(--ma-white);
	overflow: hidden;
	background: #4a3e33;
}

.ma-hero-bg,
.ma-cta-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ma-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(30, 24, 19, .78) 0%, rgba(30, 24, 19, .45) 45%, rgba(30, 24, 19, 0) 75%);
}

.ma-hero-content {
	position: relative;
	z-index: 1;
	padding-top: 80px;
	padding-bottom: 80px;
}

.ma-hero .ma-eyebrow {
	color: rgba(255, 255, 255, .85);
}

.ma-hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	font-weight: 500;
	line-height: 1.04;
	margin: 0 0 22px;
}

.ma-hero h1 span {
	font-weight: 300;
}

.ma-hero-text {
	max-width: 470px;
	font-size: 1.02rem;
	color: rgba(255, 255, 255, .88);
	margin-bottom: 28px !important;
}

/* Proceso ----------------------------------------------------------------- */

.ma-process {
	background: var(--ma-white);
	border-bottom: 1px solid var(--ma-line);
}

.ma-process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.ma-process-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 30px 12px;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--ma-muted);
}

.ma-process-list li + li {
	border-left: 1px solid var(--ma-line);
}

.ma-process-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.ma-process-list .ma-icon {
	width: 28px;
	height: 28px;
	color: var(--ma-ink);
}

/* Aplicaciones ------------------------------------------------------------ */

.ma-apps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.ma-app-card {
	background: var(--ma-white);
}

.ma-app-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ma-app-img img,
.ma-app-img .ma-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ma-app-card:hover .ma-app-img img {
	transform: scale(1.04);
}

.ma-app-body {
	padding: 18px 18px 22px;
}

.ma-app-body h3 {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 8px;
	color: var(--ma-ink);
}

.ma-app-body p {
	font-size: 0.86rem;
	color: var(--ma-muted);
	margin: 0;
}

/* Sistema de 7 capas ------------------------------------------------------ */

.ma-system {
	background: var(--ma-white);
}

.ma-system-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr 1fr;
	gap: 32px;
	align-items: center;
}

.ma-system-intro h2 {
	font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.ma-system-intro p:not(.ma-eyebrow) {
	color: var(--ma-muted);
	margin-bottom: 26px;
}

.ma-system-visual {
	position: relative;
}

.ma-layers {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 24px rgba(40, 30, 20, .14));
}

.ma-zoom-caption {
	position: absolute;
	left: 0;
	bottom: -14px;
	font-size: 0.72rem;
	color: var(--ma-muted);
	margin: 0 !important;
	line-height: 1.35 !important;
}

.ma-system-list ol {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.ma-system-list li {
	display: flex;
	flex-direction: column;
	padding: 7px 0 7px 16px;
	position: relative;
	font-size: 0.84rem;
	line-height: 1.35;
}

.ma-system-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ma-ink);
}

.ma-system-list li strong {
	font-weight: 500;
	color: var(--ma-ink);
}

.ma-system-list li span {
	color: var(--ma-muted);
}

.ma-thickness {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.84rem;
	color: var(--ma-muted);
	margin: 0 !important;
	padding-top: 16px;
	border-top: 1px solid var(--ma-line);
}

.ma-thickness strong {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--ma-ink);
}

/* Beneficios -------------------------------------------------------------- */

.ma-benefits {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	background: var(--ma-white);
	border-top: 1px solid var(--ma-line);
}

.ma-benefits-panel {
	display: grid;
	grid-template-columns: 0.42fr 1fr;
	background: var(--ma-sand);
}

.ma-benefits-img {
	min-height: 100%;
}

.ma-benefits-img img,
.ma-benefits-img .ma-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ma-benefits-text {
	padding: 48px 40px;
	align-self: center;
}

.ma-benefits-text p:not(.ma-eyebrow) {
	color: var(--ma-muted);
	margin-bottom: 26px;
}

.ma-benefits-list {
	list-style: none;
	margin: 0;
	padding: 44px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.ma-benefits-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.9rem;
	line-height: 1.35;
}

.ma-benefits-list .ma-icon {
	margin-top: 1px;
	color: var(--ma-ink);
}

/* Acabados ---------------------------------------------------------------- */

.ma-finishes {
	padding: 56px 0;
	border-top: 1px solid var(--ma-line);
}

.ma-finishes-grid {
	display: grid;
	grid-template-columns: 0.75fr 1.25fr;
	gap: 40px;
	align-items: center;
}

.ma-finishes-grid > div p:not(.ma-eyebrow) {
	color: var(--ma-muted);
	font-size: 0.92rem;
	margin-bottom: 22px;
}

.ma-swatches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
}

.ma-swatches li {
	display: flex;
	flex-direction: column;
	text-align: center;
	font-size: 0.74rem;
	color: var(--ma-muted);
	line-height: 1.4;
}

.ma-swatch {
	display: block;
	aspect-ratio: 1 / 0.95;
	margin-bottom: 12px;
	background-color: var(--swatch);
	/* Textura tipo cemento: ruido fractal + leves manchas */
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(60% 50% at 30% 30%, rgba(255, 255, 255, .12), transparent),
		radial-gradient(50% 60% at 75% 70%, rgba(0, 0, 0, .12), transparent);
	background-blend-mode: soft-light, normal, normal;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.ma-swatch-brillante {
	background-image:
		linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 45%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Muestra con foto: la imagen (inline) sustituye la textura generada */
.ma-swatch.ma-swatch-image {
	background-size: cover;
	background-position: center;
	background-blend-mode: normal;
}

.ma-swatch-name {
	color: var(--ma-text);
}

/* Precio ------------------------------------------------------------------ */

.ma-price {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: linear-gradient(90deg, var(--ma-earth) 0%, var(--ma-earth-2) 100%);
	color: var(--ma-white);
	min-height: 300px;
}

.ma-price-img img,
.ma-price-img .ma-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ma-price-body {
	padding: 48px var(--ma-gutter) 48px 56px;
	max-width: 600px;
	align-self: center;
}

.ma-price .ma-eyebrow {
	color: rgba(255, 255, 255, .7);
}

.ma-price-amount {
	font-size: clamp(2rem, 3.4vw, 2.6rem);
	font-weight: 400;
	line-height: 1.1 !important;
	margin-bottom: 12px !important;
}

.ma-price-amount small {
	font-size: 0.5em;
}

.ma-price-body p:not(.ma-eyebrow):not(.ma-price-amount) {
	font-size: 0.86rem;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 22px;
}

/* FAQ --------------------------------------------------------------------- */

.ma-faq {
	padding: 64px 0;
}

.ma-faq-grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 48px;
	align-items: start;
}

.ma-faq-grid h2 {
	margin-bottom: 26px !important;
	max-width: 360px;
}

.ma-faq-list details {
	border-bottom: 1px solid var(--ma-line);
}

.ma-faq-list summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	font-size: 0.92rem;
	color: var(--ma-text);
}

.ma-faq-list summary::-webkit-details-marker {
	display: none;
}

.ma-faq-list summary .ma-icon {
	width: 16px;
	height: 16px;
	transition: transform .25s;
}

.ma-faq-list details[open] summary .ma-icon {
	transform: rotate(45deg);
}

.ma-faq-list details p {
	font-size: 0.88rem;
	color: var(--ma-muted);
	padding: 0 32px 16px 0;
	margin: 0;
}

/* CTA --------------------------------------------------------------------- */

.ma-cta {
	position: relative;
	overflow: hidden;
	color: var(--ma-white);
	background: var(--ma-earth-2);
}

.ma-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(42, 34, 28, .95) 0%, rgba(42, 34, 28, .75) 50%, rgba(42, 34, 28, .45) 100%);
}

.ma-cta-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 64px;
	padding-bottom: 64px;
}

.ma-cta .ma-eyebrow {
	color: rgba(255, 255, 255, .7);
}

.ma-cta h2 {
	color: var(--ma-white) !important;
	font-size: clamp(1.9rem, 3vw, 2.4rem) !important;
}

.ma-cta p:not(.ma-eyebrow) {
	color: rgba(255, 255, 255, .85);
	margin: 0;
}

/* Footer ------------------------------------------------------------------ */

.ma-footer {
	background: var(--ma-footer);
	color: rgba(255, 255, 255, .72);
	font-size: 0.86rem;
	padding: 64px 0 28px;
}

.ma-footer a {
	color: rgba(255, 255, 255, .72);
}

.ma-footer a:hover {
	color: var(--ma-white);
}

.ma-footer h4 {
	font-family: var(--ma-font);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ma-white);
	margin: 0 0 20px;
}

.ma-footer-grid {
	display: grid;
	grid-template-columns: 1.15fr 1.25fr 0.8fr 0.8fr;
	gap: 40px;
}

.ma-logo-light {
	color: var(--ma-white) !important;
	margin-bottom: 22px;
}

.ma-footer-brand p {
	line-height: 1.55;
}

.ma-footer-social {
	display: flex;
	gap: 18px;
	margin-top: 22px;
}

.ma-footer-social a {
	display: block;
	width: 20px;
	height: 20px;
}

.ma-footer-social svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ma-footer-social svg path {
	fill: currentColor;
}

.ma-footer-contact,
.ma-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ma-footer-contact li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	line-height: 1.45;
}

.ma-footer-contact .ma-icon {
	width: 18px;
	height: 18px;
	color: var(--ma-white);
	margin-top: 1px;
}

.ma-footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 0.76rem;
}

.ma-wa-float {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 56px;
	height: 56px;
	padding: 13px;
	border-radius: 50%;
	background: #25d366;
	z-index: 1030;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.ma-wa-float svg {
	width: 100%;
	height: 100%;
	display: block;
}

.ma-wa-float svg path {
	fill: #fff;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1199.98px) {
	.ma-header .nav-main-menu {
		gap: 6px 18px;
	}

	.ma-header .ma-logo-words small {
		display: none;
	}

	.ma-system-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ma-system-intro {
		grid-column: 1 / -1;
		max-width: 620px;
	}

	.ma-benefits {
		grid-template-columns: 1fr;
	}

	.ma-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 991.98px) {
	.ma-section {
		padding: 56px 0;
	}

	.ma-process-list {
		grid-template-columns: repeat(3, 1fr);
	}

	.ma-process-list li:nth-child(4) {
		border-left: 0;
	}

	.ma-process-list li:nth-child(n+4) {
		border-top: 1px solid var(--ma-line);
	}

	.ma-apps {
		grid-template-columns: repeat(2, 1fr);
	}

	.ma-finishes-grid,
	.ma-faq-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ma-price {
		grid-template-columns: 1fr;
	}

	.ma-price-img {
		height: 260px;
	}

	.ma-price-body {
		padding: 40px var(--ma-gutter);
	}

	.ma-cta-content {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767.98px) {
	:root {
		--ma-gutter: 16px;
	}

	.ma-hero {
		min-height: 520px;
	}

	.ma-hero::after {
		background: linear-gradient(180deg, rgba(30, 24, 19, .55) 0%, rgba(30, 24, 19, .8) 100%);
	}

	.ma-process-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.ma-process-list li {
		border-left: 0 !important;
		border-top: 1px solid var(--ma-line);
	}

	.ma-process-list li:nth-child(even) {
		border-left: 1px solid var(--ma-line) !important;
	}

	.ma-process-list li:nth-child(-n+2) {
		border-top: 0;
	}

	.ma-process-list li:last-child {
		grid-column: 1 / -1;
	}

	.ma-system-grid {
		grid-template-columns: 1fr;
	}

	.ma-system-visual {
		max-width: 420px;
		margin: 0 auto 24px;
		width: 100%;
	}

	.ma-benefits-panel {
		grid-template-columns: 1fr;
	}

	.ma-benefits-img {
		height: 220px;
	}

	.ma-benefits-text,
	.ma-benefits-list {
		padding: 40px var(--ma-gutter);
	}

	.ma-swatches {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px 6px;
	}

	.ma-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ma-btn {
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 479.98px) {
	.ma-apps {
		grid-template-columns: 1fr;
	}

	.ma-logo-words small {
		display: none;
	}
}

/* Compensa el header fijo al navegar con anclas */
section.ma-block[id] {
	scroll-margin-top: 84px;
}

/* WPBakery: las filas que contienen secciones van a todo lo ancho y sin espacios */
.ma-page {
	display: flex;
	flex-direction: column;
}

.ma-page .vc_row:has(.ma-block) {
	margin-left: 0;
	margin-right: 0;
}

.ma-page .vc_row:has(.ma-block) > .wpb_column > .vc_column-inner {
	padding: 0;
}

.ma-page .vc_row:has(.ma-block) .wpb_wrapper > * {
	margin-bottom: 0;
}

/* Filas con elementos normales: centradas como el resto del contenido */
.ma-page > .vc_row:not(:has(.ma-block)) {
	width: 100%;
	max-width: calc(var(--ma-container) + var(--ma-gutter) * 2);
	margin: 0 auto;
	padding: 0 calc(var(--ma-gutter) - 15px);
}

/* Elemento Botón con icono */
.jss-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
