/*
Theme Name: Escayola Studio
Author: Proyecto Escayola Decorativa
Description: Block theme propio para la tienda de paneles decorativos.
Version: 0.2.1
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: escayola-studio
*/

html { scroll-behavior: smooth; }
body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 0.16em; }
.escayola-shell { min-height: 60vh; }

.escayola-state {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 0.75rem;
	padding: 0.38rem 0.62rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.escayola-state--ready_mto,
.escayola-state--repeat {
	color: var(--wp--preset--color--text);
}

.escayola-product-main {
	gap: clamp(2rem, 5vw, 6rem);
	align-items: flex-start;
}

.escayola-product-summary {
	position: sticky;
	top: 2rem;
}

.escayola-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.escayola-specs__item {
	margin: 0;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.escayola-specs dt {
	margin: 0 0 0.15rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
}

.escayola-specs dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.escayola-project-cta {
	margin-top: 1.25rem;
}

.escayola-project-cta p {
	margin: 0.7rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

@media (max-width: 781px) {
	.escayola-product-summary {
		position: static;
	}

	.escayola-specs {
		grid-template-columns: 1fr;
	}
}


.escayola-catalog-filters {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
	align-items: end;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.escayola-filter {
	display: grid;
	gap: 0.35rem;
}

.escayola-filter span {
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.escayola-filter select {
	width: 100%;
	min-height: 2.65rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	font: inherit;
}

.escayola-filter-actions {
	display: flex;
	grid-column: 1 / -1;
	gap: 1rem;
	align-items: center;
	justify-content: flex-end;
	margin-top: 0.25rem;
}

.escayola-filter-actions a {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

@media (max-width: 960px) {
	.escayola-catalog-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.escayola-catalog-filters {
		grid-template-columns: 1fr;
	}

	.escayola-filter-actions {
		justify-content: stretch;
	}

	.escayola-filter-actions .wp-element-button {
		flex: 1;
	}
}


/* NALVEM identity layer */
.nalvem-header {
	position: relative;
	z-index: 20;
	background: var(--wp--preset--color--background);
}

.nalvem-wordmark,
.nalvem-footer-wordmark {
	display: block;
	line-height: 0;
}

.nalvem-wordmark {
	width: clamp(8.5rem, 14vw, 12rem);
	color: var(--wp--preset--color--text);
}

.nalvem-wordmark svg,
.nalvem-footer-wordmark svg {
	display: block;
	width: 100%;
	height: auto;
	fill: currentColor;
}

.nalvem-footer-wordmark {
	width: min(58vw, 32rem);
	color: var(--wp--preset--color--background);
}

.nalvem-hero {
	min-height: min(82vh, 900px);
	display: flex;
	align-items: center;
}

.nalvem-eyebrow {
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nalvem-hero-title {
	max-width: 11ch;
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: clamp(3.6rem, 9vw, 9rem) !important;
	letter-spacing: -0.055em;
	line-height: 0.9;
}

.nalvem-hero-copy {
	max-width: 38rem;
	color: var(--wp--preset--color--graphite);
}

.nalvem-principles p {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nalvem-collection-section .escayola-state {
	margin-top: 0.8rem;
	margin-bottom: 0.35rem;
}

.nalvem-statement-columns {
	gap: clamp(2rem, 7vw, 8rem);
	align-items: flex-start;
}

.nalvem-service-band h3 {
	margin-bottom: 0.75rem;
}

.nalvem-footer a {
	color: var(--wp--preset--color--background);
}

.nalvem-footer .wp-block-separator {
	margin-top: var(--wp--preset--spacing--l);
	margin-bottom: var(--wp--preset--spacing--m);
	opacity: 1;
}

@media (max-width: 781px) {
	.nalvem-hero {
		min-height: auto;
	}

	.nalvem-hero-title {
		font-size: clamp(3.2rem, 16vw, 5.5rem) !important;
	}

	.nalvem-principles .wp-block-group {
		gap: 0.75rem 1.5rem;
		justify-content: flex-start !important;
	}

	.nalvem-footer-wordmark {
		width: 82vw;
	}
}

/* Reference hero — pixel-corrected */
.nalvem-home-main{margin-block-start:0!important}

.nalvem-header--overlay{
 position:absolute;top:0;left:0;z-index:100;width:100%;box-sizing:border-box;
 padding:clamp(1.25rem,2.4vw,2.6rem) clamp(1.5rem,3.15vw,3.4rem) .8rem;
 background:transparent;color:#fff;border:0
}
.nalvem-header__inner{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%}
.nalvem-wordmark{display:block;flex:0 0 auto;width:clamp(8rem,15.25vw,16.25rem);color:inherit;line-height:0}
.nalvem-wordmark svg{display:block;width:100%;height:auto;fill:currentColor}
.nalvem-primary-nav{
 position:absolute;left:41.5%;display:flex;gap:clamp(1.75rem,3vw,3.3rem);
 transform:translateX(-50%);white-space:nowrap;font-size:clamp(.72rem,.9vw,.96rem)
}
.nalvem-primary-nav a,.nalvem-header-actions a{color:inherit;text-decoration:none}
.nalvem-header-actions{display:flex;align-items:center;gap:clamp(.8rem,1.15vw,1.25rem);margin-left:auto}
.nalvem-header-icon{display:grid;width:clamp(1rem,1.12vw,1.2rem);height:clamp(1rem,1.12vw,1.2rem);padding:0;place-items:center;color:inherit;line-height:0;cursor:pointer}
.nalvem-header-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.nalvem-menu{position:relative;margin:0}.nalvem-menu summary{list-style:none}.nalvem-menu summary::-webkit-details-marker{display:none}
.nalvem-menu-panel{position:absolute;top:calc(100% + 1rem);right:0;display:grid;min-width:11rem;padding:1rem 1.1rem;gap:.7rem;background:#F6F5F0;color:#171918;box-shadow:0 1rem 2.5rem rgba(0,0,0,.14)}
.nalvem-menu-panel a{color:#171918!important}

.nalvem-reference-hero{
 position:relative;height:46.55vw;max-height:100svh;min-height:0;overflow:hidden;color:#fff;
 background-color:#29251f;
 background-image:linear-gradient(90deg,rgba(12,11,10,.44) 0%,rgba(12,11,10,.25) 28%,rgba(12,11,10,.05) 58%,rgba(12,11,10,0) 78%),url("assets/hero-reference.svg");
 background-position:center center;background-size:cover
}
.nalvem-reference-hero__inner{position:absolute;top:30.5%;left:4.25%;z-index:2;width:43vw;margin:0;padding:0}
.nalvem-reference-hero__eyebrow{margin:0 0 clamp(1.35rem,2.15vw,2.3rem);font-size:clamp(.64rem,.9vw,.95rem);font-weight:500;line-height:1.36;letter-spacing:.105em}
.nalvem-reference-hero__title{width:max-content;max-width:none;margin:0;color:#fff;font-size:clamp(2.55rem,4.95vw,5.35rem)!important;font-weight:400;line-height:.97;letter-spacing:-.045em}
.nalvem-reference-hero__nowrap{white-space:nowrap}
.nalvem-reference-hero__cta{display:inline-flex;gap:.9rem;align-items:center;margin-top:clamp(1.15rem,2vw,2rem);padding-bottom:.38rem;border-bottom:1px solid rgba(255,255,255,.72);color:#fff;font-size:clamp(.68rem,.82vw,.86rem);font-weight:500;text-decoration:none}
.nalvem-reference-hero__cta:hover{border-bottom-color:#fff;text-decoration:none}

@media(max-width:900px){
 .nalvem-header--overlay{padding:1.2rem 1.25rem .8rem}
 .nalvem-wordmark{width:clamp(7.8rem,28vw,10rem)}
 .nalvem-primary-nav{display:none}
 .nalvem-reference-hero{height:88svh;max-height:none;background-position:58% center}
 .nalvem-reference-hero__inner{top:34%;left:1.5rem;width:calc(100% - 3rem)}
 .nalvem-reference-hero__title{font-size:clamp(2.6rem,10.5vw,4.2rem)!important}
}
