/* Landing styles for the Centro de Poliester test site. */

:root {
	--ink: #1c1713;
	--ink-soft: #4a4038;
	--paper: #f3eee6;
	--paper-2: #e7dfd2;
	--white: #fffdf9;
	--line: rgba(28, 23, 19, 0.12);
	--copper: #c0562a;
	--copper-deep: #8d3c1c;
	--pine: #17352f;
	--pine-2: #214840;
	--cream: #f6f1e8;
	--gold: #c6a15b;
	--shadow: 0 18px 40px rgba(28, 23, 19, 0.1);
	--serif: "Fraunces", Georgia, serif;
	--sans: "Outfit", "Segoe UI", sans-serif;
	--max: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.02rem;
	line-height: 1.5;
}

img {
	max-width: 100%;
}

a {
	color: inherit;
}

button,
input,
textarea {
	font: inherit;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 560;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

h1,
.hero-title {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 4.6rem);
}

h2 {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 3.2rem);
}

h3 {
	margin: 0;
}

p {
	margin: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 50;
	background: var(--white);
	padding: 8px 12px;
}

.skip-link:focus {
	top: 12px;
}

.topbar {
	background: #102722;
	color: var(--cream);
	text-align: center;
}

.topbar p {
	margin: 0;
	padding: 8px 16px;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 14px 28px;
	background: rgba(255, 253, 249, 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

.brand {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
}

.brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 6px),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 6px),
		linear-gradient(145deg, #d36a38, #1b3a34);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__kicker {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.55rem;
	font-weight: 560;
}

.site-nav {
	display: flex;
	justify-content: center;
	gap: 22px;
}

.site-nav a {
	text-decoration: none;
	font-size: 0.96rem;
	font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--copper-deep);
}

.site-nav__cta {
	display: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	background: var(--white);
	border-radius: 999px;
	padding: 8px 12px;
	cursor: pointer;
}

.nav-toggle__bars {
	width: 16px;
	height: 10px;
	background:
		linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px,
		linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px;
	background-repeat: no-repeat;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 640;
	cursor: pointer;
}

.button--copper {
	background: var(--copper);
	color: #fffaf6;
}

.button--copper:hover,
.button--copper:focus-visible {
	background: var(--copper-deep);
}

.button--ghost {
	background: transparent;
	border-color: rgba(246, 241, 232, 0.45);
	color: var(--cream);
}

.button--line {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
	width: 100%;
}

.button--line:hover,
.button--line:focus-visible {
	border-color: var(--ink);
}

.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 32px;
	min-height: 640px;
	padding: 56px 28px 92px;
	background:
		radial-gradient(900px 420px at 0% 0%, rgba(198, 161, 91, 0.22), transparent 55%),
		linear-gradient(160deg, var(--pine-2), var(--pine) 42%, #10241f);
	color: var(--cream);
}

.hero__copy,
.hero__board {
	position: relative;
	min-height: 460px;
}

.hero__slide,
.sample-book {
	display: none;
}

.hero__slide.is-active,
.sample-book.is-active {
	display: block;
}

.sample-book.is-active {
	display: grid;
}

.kicker {
	margin: 0 0 14px;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 640;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kicker--ink {
	color: var(--copper-deep);
}

.hero__text {
	max-width: 38rem;
	margin-top: 18px;
	color: rgba(246, 241, 232, 0.82);
	font-size: 1.12rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
}

.hero__controls button,
.scroll-nav button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(246, 241, 232, 0.3);
	background: transparent;
	color: var(--cream);
	cursor: pointer;
}

.scroll-nav button {
	border-color: var(--line);
	color: var(--ink);
	background: var(--white);
}

.hero__dots {
	display: flex;
	gap: 8px;
}

.hero__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	background: rgba(246, 241, 232, 0.35);
}

.hero__dots button[aria-current="true"],
.hero__dots button.is-active {
	background: var(--gold);
}

.sample-book {
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	height: 100%;
}

.swatch {
	position: relative;
	display: block;
	min-height: 180px;
	border-radius: 18px;
	overflow: hidden;
	background-color: #cbb59a;
	background-image: var(--weave);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.swatch__label {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 253, 249, 0.9);
	color: var(--ink);
	font-size: 0.78rem;
	font-weight: 640;
}

.swatch--pana {
	--weave:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 8px),
		linear-gradient(#8a5b46, #5a382c);
}

.swatch--chenille {
	--weave:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 28%),
		radial-gradient(circle at 70% 60%, rgba(90, 40, 48, 0.25), transparent 32%),
		linear-gradient(160deg, #d7a3a0, #a86d73);
}

.swatch--tusor {
	--weave:
		repeating-linear-gradient(0deg, rgba(90, 70, 40, 0.18) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(90, 70, 40, 0.18) 0 1px, transparent 1px 4px),
		linear-gradient(#efe2cf, #d9c4a4);
}

.swatch--lino {
	--weave:
		repeating-linear-gradient(45deg, rgba(80, 60, 30, 0.08) 0 2px, transparent 2px 7px),
		repeating-linear-gradient(-45deg, rgba(80, 60, 30, 0.08) 0 2px, transparent 2px 7px),
		linear-gradient(#f3e6cf, #e4d1ae);
}

.swatch--antimancha {
	--weave:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 6px, rgba(20, 40, 30, 0.08) 6px 12px),
		linear-gradient(#d5e3d4, #8eaa93);
}

.swatch--cuero {
	--weave:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
		linear-gradient(160deg, #a86a3d, #6a3a22 70%);
}

.swatch--placa {
	--weave:
		radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px) 0 0 / 10px 10px,
		linear-gradient(#e7f0e4, #b7cbb8);
}

.swatch--bloque {
	--weave:
		radial-gradient(circle, rgba(80, 60, 40, 0.16) 0 1px, transparent 1.6px) 0 0 / 14px 14px,
		linear-gradient(#f7f1e6, #e4d8c6);
}

.swatch--relleno {
	--weave:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7), transparent 42%),
		linear-gradient(#fbf6ee, #eadfce);
}

.swatch--almohadon {
	--weave:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 10px, rgba(180, 150, 120, 0.15) 10px 20px),
		linear-gradient(#f0d8c4, #e4c2a8);
}

.swatch--grampas {
	--weave:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 5px),
		linear-gradient(#d9dde2, #8d97a3);
}

.swatch--patas {
	--weave:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 11px),
		linear-gradient(#8b5a34, #4e301c);
}

.swatch--pegamento {
	--weave:
		radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.45), transparent 24%),
		linear-gradient(#e7b15a, #a86a22);
}

.swatch--hilo {
	--weave:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 3px, transparent 3px 8px),
		linear-gradient(#c4483a, #7d2a24);
}

.uses {
	position: relative;
	z-index: 2;
	margin: -48px auto 0;
	width: min(var(--max), calc(100% - 36px));
}

.uses__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.use-card {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 12px;
	align-items: center;
	min-height: 104px;
	padding: 14px;
	border-radius: 18px;
	background: var(--white);
	box-shadow: var(--shadow);
	text-decoration: none;
}

.use-card .swatch {
	min-height: 54px;
	border-radius: 12px;
}

.use-card strong,
.use-card small {
	display: block;
}

.use-card small {
	margin-top: 4px;
	color: var(--ink-soft);
	font-size: 0.86rem;
}

.catalog {
	width: min(var(--max), calc(100% - 36px));
	margin: 72px auto;
}

.section-head {
	display: grid;
	grid-template-columns: 1.3fr 1fr auto;
	gap: 24px;
	align-items: end;
	margin-bottom: 28px;
}

.section-head p:last-of-type,
.catalog__label p,
.salon__lead,
.form-note {
	color: var(--ink-soft);
}

.scroll-nav {
	display: flex;
	gap: 8px;
}

.catalog__group + .catalog__group {
	margin-top: 34px;
}

.catalog__label {
	display: flex;
	gap: 14px;
	align-items: baseline;
	margin-bottom: 14px;
}

.catalog__label span {
	font-family: var(--serif);
	font-style: italic;
	color: var(--copper);
}

.catalog__label p {
	margin-top: 4px;
}

.product-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 250px;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.product-row::-webkit-scrollbar {
	display: none;
}

.product-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border-radius: 20px;
	background: var(--white);
	border: 1px solid var(--line);
}

.product-card .swatch {
	min-height: 150px;
	border-radius: 14px;
}

.product-card__cat,
.product-card__price {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.product-card__cat {
	color: var(--copper-deep);
}

.product-card__price {
	margin-top: auto;
	color: var(--ink-soft);
}

.product-card h3 {
	font-size: 1.45rem;
}

.mosaic {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto 72px;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	grid-auto-rows: 180px;
	gap: 12px;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 20px;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	background-image: var(--weave);
}

.tile--tall {
	grid-row: span 2;
}

.tile--wide {
	grid-column: span 2;
}

.tile strong {
	font-family: var(--serif);
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 0.95;
}

.tile__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent, rgba(255, 253, 249, 0.78));
}

.tile span,
.tile strong {
	position: relative;
	z-index: 1;
}

.salon {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto 72px;
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 32px;
	padding: 36px;
	border-radius: 28px;
	background: var(--white);
	border: 1px solid var(--line);
}

.salon__lead {
	margin-top: 16px;
	max-width: 36rem;
}

.salon__facts {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.salon__facts li {
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.salon__facts strong,
.salon__facts span {
	display: block;
}

.salon__facts span {
	margin-top: 4px;
	color: var(--ink-soft);
}

.contact {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto 72px;
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 18px;
}

.contact__card,
.contact__form {
	padding: 28px;
	border-radius: 28px;
}

.contact__card {
	background: var(--pine);
	color: var(--cream);
}

.contact__card h2 {
	margin: 8px 0 22px;
}

.contact__card dl {
	display: grid;
	gap: 16px;
	margin: 0;
}

.contact__card dt {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
}

.contact__card dd {
	margin: 4px 0 0;
}

.contact__card a {
	color: var(--cream);
}

.contact__form {
	display: grid;
	gap: 14px;
	background: var(--white);
	border: 1px solid var(--line);
}

.contact__form label {
	display: grid;
	gap: 6px;
	font-size: 0.86rem;
	font-weight: 640;
}

.contact__form input,
.contact__form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
}

.contact__form input:focus-visible,
.contact__form textarea:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
	outline: 2px solid var(--copper);
	outline-offset: 2px;
}

.site-footer {
	background: #102722;
	color: rgba(246, 241, 232, 0.84);
}

.site-footer__grid {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 24px;
	padding: 42px 0;
}

.site-footer a {
	color: var(--cream);
	text-decoration: none;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li + li {
	margin-top: 6px;
}

.brand__name--footer {
	color: var(--cream);
	margin-bottom: 8px;
}

.footer-label {
	margin-bottom: 8px;
	color: var(--gold);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-footer__bar {
	border-top: 1px solid rgba(246, 241, 232, 0.12);
}

.site-footer__bar p {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto;
	padding: 14px 0 20px;
	font-size: 0.86rem;
}

.page-shell {
	width: min(760px, calc(100% - 36px));
	margin: 48px auto 72px;
}

.page-sheet {
	padding: 32px;
	border-radius: 24px;
	background: var(--white);
}

.page-copy {
	margin-top: 16px;
}

@media (max-width: 980px) {
	.hero,
	.section-head,
	.salon,
	.contact,
	.site-footer__grid,
	.uses__grid {
		grid-template-columns: 1fr;
	}

	.mosaic {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 160px;
	}

	.tile--tall,
	.tile--wide {
		grid-row: auto;
		grid-column: auto;
	}

	.hero {
		min-height: 0;
		padding-bottom: 72px;
	}

	.hero__board {
		min-height: 320px;
	}
}

@media (max-width: 780px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-header {
		grid-template-columns: 1fr auto;
		padding: 12px 16px;
	}

	.header-cta,
	.scroll-nav {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		left: 16px;
		right: 16px;
		top: calc(100% + 8px);
		flex-direction: column;
		gap: 4px;
		padding: 12px;
		border-radius: 18px;
		background: var(--white);
		border: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav a {
		padding: 10px 8px;
	}

	.site-nav__cta {
		display: block;
		margin-top: 6px;
		border-radius: 999px;
		background: var(--copper);
		color: #fffaf6;
		text-align: center;
	}

	.uses,
	.catalog,
	.mosaic,
	.salon,
	.contact,
	.site-footer__grid,
	.site-footer__bar p {
		width: min(100% - 24px, var(--max));
	}

	.mosaic {
		grid-template-columns: 1fr;
	}

	.uses__grid {
		grid-template-columns: 1fr;
	}
}

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