/* DecoStudio Textil — hoja de estilos principal
   Paleta tomada del logotipo: azul tinta #02224B y el coral de «by Cortitelas». */

@font-face {
	font-family: "Bodoni Moda";
	src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bodoni Moda";
	src: url("../fonts/bodoni-moda-latin-ext-opsz-normal.woff2") format("woff2-variations");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Bodoni Moda";
	src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations");
	font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #02224b;
	--ink-deep: #011634;
	--paper: #fbfbf9;
	--mist: #e7e9ef;
	--line: #d3d7e1;
	--thread: #5a6682;
	--on-ink: #f3f4f7;
	--on-ink-soft: #aab4ca;
	--coral: #e94b4a;

	--serif: "Bodoni Moda", "Didot", "Bodoni 72", "Libre Bodoni", Georgia, serif;
	--sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

	--wrap: 1320px;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.muted { color: var(--thread); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li + li { margin-top: .35rem; }

/* ——— Botones y enlaces ——— */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 3rem; padding: .75rem 1.6rem;
	font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: .02em;
	text-decoration: none; border: 1px solid currentColor; border-radius: 0; cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-deep); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(243, 244, 247, .45); }
.btn--ghost:hover { border-color: var(--on-ink); }
.btn[disabled] { opacity: .5; cursor: default; }

.textlink {
	font-weight: 500; text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 2px; transition: background-size .3s var(--ease);
}
.textlink:hover { background-size: 30% 1px; }
.linkish {
	background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}

.section-title { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.01em; margin-bottom: .9em; }

/* ——— Cabecera ——— */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 251, 249, .94);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header__inner {
	display: flex; align-items: center; gap: 2rem;
	height: var(--header-h);
	width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto;
}
.brand { position: relative; display: block; flex: 0 0 auto; }
.brand__logo { height: 64px; width: auto; }
.brand__logo--light { position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); }
.brand__logo--dark { transition: opacity .3s var(--ease); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__list a {
	font-size: .9375rem; font-weight: 450; text-decoration: none; padding: .4rem 0;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .3s var(--ease);
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-menu-ancestor > a { background-size: 100% 1px; }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.sel-toggle {
	display: inline-flex; align-items: center; gap: .55rem;
	background: none; border: 1px solid currentColor; padding: .5rem .9rem; cursor: pointer;
	font-size: .875rem; font-weight: 500;
}
.sel-toggle__count {
	min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 1rem;
	display: inline-grid; place-items: center; font-size: .75rem; line-height: 1;
	background: var(--mist); color: var(--ink);
}
.sel-toggle.has-items .sel-toggle__count { background: var(--coral); color: #fff; }
.sel-toggle.bump .sel-toggle__count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Cabecera sobre la portada: transparente hasta hacer scroll. */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero:not(.is-scrolled) .site-header { background: transparent; border-color: transparent; color: var(--on-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero:not(.is-scrolled) .brand__logo--light { opacity: 1; }
.has-hero:not(.is-scrolled) .brand__logo--dark { opacity: 0; }
.has-hero:not(.is-scrolled) .sel-toggle__count { background: rgba(255, 255, 255, .18); color: var(--on-ink); }
.has-hero:not(.is-scrolled) .sel-toggle.has-items .sel-toggle__count { background: var(--coral); color: #fff; }

/* ——— Portada: hero ——— */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: 1fr auto;
	min-height: min(100svh, 980px);
	background: var(--ink);
	color: var(--on-ink);
}
.hero__media { grid-column: 2; grid-row: 1 / 3; position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 34, 75, .35), rgba(2, 34, 75, 0) 30%); }
.hero__panel {
	grid-column: 1; grid-row: 1;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 4vw, 4rem) 3rem var(--gutter);
	max-width: 40rem;
}
.hero__title {
	font-size: clamp(3rem, 6.4vw, 6.25rem);
	line-height: .98;
	letter-spacing: -.02em;
	margin-bottom: .45em;
	font-variation-settings: "opsz" 96;
}
.hero__lead { font-size: 1.125rem; color: var(--on-ink-soft); max-width: 32rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* La percha: un colgador de muestras reales que cruza la portada. */
.percha { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; padding: 0 0 0 var(--gutter); }
.percha__rail {
	list-style: none; margin: 0; padding: 0 var(--gutter) 0 0;
	display: flex; gap: 6px;
	overflow-x: auto; scrollbar-width: none;
	border-top: 2px solid rgba(243, 244, 247, .75);
	padding-top: 0;
}
.percha__rail::-webkit-scrollbar { display: none; }
.percha__item { flex: 1 0 clamp(64px, 6.4vw, 104px); }
.percha__strip {
	position: relative; display: block; height: clamp(120px, 17vh, 190px);
	overflow: hidden; text-decoration: none;
	transform-origin: top center;
	transition: height .45s var(--ease);
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55);
}
.percha__strip::before { /* pinza */
	content: ""; position: absolute; z-index: 1; top: 0; left: 50%; width: 22px; height: 7px;
	transform: translateX(-50%); background: rgba(243, 244, 247, .85);
}
.percha__strip img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.percha__name {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .5rem .5rem;
	font-size: .75rem; line-height: 1.2; color: #fff;
	background: linear-gradient(transparent, rgba(1, 22, 52, .8));
	opacity: 0; transition: opacity .3s var(--ease);
}
.percha__strip:hover, .percha__strip:focus-visible { height: clamp(150px, 22vh, 240px); }
.percha__strip:hover .percha__name, .percha__strip:focus-visible .percha__name { opacity: 1; }

/* Carga de la portada: el único movimiento automático del sitio. */
@media (prefers-reduced-motion: no-preference) {
	.percha__strip { animation: drop .9s var(--ease) both; }
	.percha__item:nth-child(2n) .percha__strip { animation-delay: .06s; }
	.percha__item:nth-child(3n) .percha__strip { animation-delay: .12s; }
	.percha__item:nth-child(5n) .percha__strip { animation-delay: .18s; }
	@keyframes drop { from { transform: scaleY(0); } }
}

/* ——— Portada: intro ——— */
.intro {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem);
	padding-block: clamp(4.5rem, 10vw, 9rem) clamp(3rem, 7vw, 6rem);
	align-items: end;
}
.intro__text { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.28; margin: 0; letter-spacing: -.005em; }
.intro__side { color: var(--thread); max-width: 26rem; }
.intro__side .textlink { color: var(--ink); }

/* ——— Portada: usos ——— */
.usos { padding-bottom: clamp(4rem, 8vw, 7rem); }
.usos__grid {
	display: grid; gap: 1rem;
	grid-template-columns: 1.25fr 1fr;
	grid-template-rows: repeat(2, minmax(240px, 34vh));
}
.uso { position: relative; overflow: hidden; display: block; color: #fff; text-decoration: none; background: var(--ink); }
.uso--tapiceria { grid-row: 1 / 3; }
.uso__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.uso::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 22, 52, 0) 40%, rgba(1, 22, 52, .78)); }
.uso:hover .uso__img { transform: scale(1.04); }
.uso__text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 3vw, 2.25rem); }
.uso__name { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin-bottom: .35rem; }
.uso__desc { display: block; font-size: .9375rem; color: rgba(255, 255, 255, .85); max-width: 26rem; }

/* ——— Portada: destacados ——— */
.destacados { padding-bottom: clamp(3rem, 7vw, 6rem); }
.feature {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto clamp(3.5rem, 8vw, 7rem);
}
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.feature__name { font-size: clamp(3rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: .35em; }
.feature__name a { text-decoration: none; }
.feature__meta { font-size: .9375rem; color: var(--thread); }
.feature__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem; margin-top: 1.5rem; font-size: .9375rem; }

/* ——— Muestrarios ——— */
.books { padding-bottom: clamp(4rem, 9vw, 8rem); }
.books__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.books__head p { color: var(--thread); max-width: 30rem; }
.books__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.book img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: var(--mist); margin-bottom: 1rem; }
.book h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.book p { font-size: .875rem; color: var(--thread); margin-bottom: .6rem; }
.book .textlink { font-size: .875rem; }

/* ——— Visita ——— */
.visita { background: var(--ink); color: var(--on-ink); padding-block: clamp(4rem, 9vw, 8rem); }
.visita__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.visita__title { font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 1; letter-spacing: -.02em; margin: 0; }
.visita__text { color: var(--on-ink-soft); }
.visita__addr { color: var(--on-ink); }

/* ——— Catálogo ——— */
.cat-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.cat-head .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.cat-head__kicker { grid-column: 1; font-size: 1rem; color: var(--thread); margin: 0 0 .25rem; }
.cat-head__title { grid-column: 1; font-size: clamp(4rem, 12vw, 10.5rem); line-height: .88; letter-spacing: -.035em; margin: 0; font-variation-settings: "opsz" 96; }
.cat-head__text { grid-column: 2; grid-row: 1 / 3; color: var(--thread); max-width: 34rem; }
.cat-head__count { color: var(--ink); font-weight: 500; margin: 0; }

.filters {
	position: sticky; top: var(--header-h); z-index: 20;
	background: rgba(251, 251, 249, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-block: 1px solid var(--line);
	margin-bottom: 2.5rem;
}
.filters__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: .85rem; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filters__label { font-size: .8125rem; color: var(--thread); margin-right: .35rem; }
.chip {
	background: none; border: 1px solid var(--line); padding: .3rem .75rem; cursor: pointer;
	font-size: .8125rem; line-height: 1.4; border-radius: 2rem;
	transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters__status { margin: 0 0 0 auto; font-size: .8125rem; color: var(--thread); }
.filters__status .linkish { margin-left: .5rem; color: var(--ink); }

.grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; padding-bottom: 0; }
.grid__empty { grid-column: 1 / -1; color: var(--thread); }
.card[hidden] { display: none; }
.card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); margin-bottom: 1.1rem; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.card__title { font-size: clamp(1.7rem, 2.3vw, 2.2rem); margin-bottom: .25rem; letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__meta { font-size: .875rem; color: var(--thread); margin-bottom: .8rem; line-height: 1.5; }
.minis { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mini {
	width: 26px; height: 26px; padding: 0; border: 0; cursor: pointer; border-radius: 50%;
	background: var(--mist) var(--sw) center / 360% no-repeat;
	box-shadow: inset 0 0 0 1px rgba(2, 34, 75, .12);
	transition: box-shadow .2s;
}
.mini:hover, .mini:focus-visible, .mini.is-on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.minis__more a { font-size: .8125rem; color: var(--thread); text-decoration: none; margin-left: .2rem; }

/* ——— Ficha de tejido ——— */
.ficha {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 5rem);
	width: min(100% - 2 * var(--gutter), 1480px); margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(4rem, 8vw, 7rem);
}
.ficha__media { position: relative; }
.ficha__stage { position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0; }
.ficha__zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.ficha__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.ficha__ref { margin-top: .75rem; font-size: .875rem; color: var(--thread); }
.crumbs { font-size: .8125rem; color: var(--thread); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: .35rem; }
.ficha__title { font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.03em; margin-bottom: .35em; font-variation-settings: "opsz" 96; }
.ficha__desc { font-size: 1.125rem; max-width: 34rem; }

.swatches { margin: 2rem 0 1.75rem; }
.swatches__title { font-family: var(--sans); font-size: .9375rem; font-weight: 500; margin-bottom: .9rem; }
.swatches__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.swatches__list--small { grid-template-columns: repeat(auto-fill, 40px); margin-top: 1.25rem; }
.swatch {
	position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
	background: var(--mist) var(--sw) center / 320% no-repeat;
	box-shadow: inset 0 0 0 1px rgba(2, 34, 75, .1);
	transition: box-shadow .2s var(--ease);
}
.swatch:hover { box-shadow: inset 0 0 0 1px rgba(2, 34, 75, .1), 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.swatch__code {
	position: absolute; left: 3px; bottom: 3px; font-size: .6875rem; line-height: 1; padding: 2px 4px;
	background: rgba(251, 251, 249, .9); color: var(--ink);
}
.swatch.in-sel::after {
	content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%;
	background: var(--coral); box-shadow: 0 0 0 1.5px var(--paper);
}
.ficha__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.ficha__actions .btn--solid.is-added { background: var(--paper); color: var(--ink); }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs dt { color: var(--thread); }
.specs dd { margin: 0; }

.related { padding-bottom: clamp(4rem, 8vw, 7rem); }

.lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: var(--ink-deep); }
.lightbox::backdrop { background: rgba(1, 22, 52, .88); }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lightbox__close, .drawer__close {
	position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; cursor: pointer;
	background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1;
}

/* ——— Selección de muestras ——— */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(1, 22, 52, .5); }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
	background: var(--paper); display: flex; flex-direction: column;
	padding: 1.75rem 1.75rem 1.5rem;
	box-shadow: -20px 0 60px -30px rgba(1, 22, 52, .6);
}
@media (prefers-reduced-motion: no-preference) {
	.drawer.is-open .drawer__panel { animation: slideIn .4s var(--ease); }
	@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
}
.drawer__head { position: relative; margin-bottom: .5rem; }
.drawer__head h2 { font-size: 2.2rem; margin: 0; }
.drawer__close { top: -.5rem; right: -.75rem; background: none; }
.drawer__intro { font-size: .9375rem; color: var(--thread); }
.drawer__list { list-style: none; margin: .5rem 0; padding: 0; overflow-y: auto; flex: 1; }
.drawer__list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.drawer__list img { width: 64px; height: 64px; object-fit: cover; background: var(--mist); }
.drawer__list a { text-decoration: none; font-weight: 500; }
.drawer__list button { background: none; border: 0; cursor: pointer; color: var(--thread); font-size: .8125rem; text-decoration: underline; }
.drawer__empty { color: var(--thread); font-size: .9375rem; }
.drawer__foot .btn { width: 100%; }
.drawer__foot .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ——— Páginas ——— */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title { font-size: clamp(3rem, 8vw, 7rem); line-height: .92; letter-spacing: -.03em; max-width: 14ch; }
.page-head__lead { font-size: 1.1875rem; color: var(--thread); max-width: 38rem; }
.prose { max-width: 42rem; padding-bottom: clamp(4rem, 8vw, 7rem); font-size: 1.0625rem; }
.prose .lead, .prose > p:first-child { font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.32; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 2.2em; }
.prose a { color: var(--ink); }
.post-list { padding-bottom: 4rem; }
.post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }

/* ——— Contacto ——— */
.contacto { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.contacto__info h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 500; margin: 2rem 0 .5rem; }
.contacto__info h2:first-child { margin-top: .5rem; }
.contacto__info .prose { padding: 1rem 0 0; }
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.field label, .field legend { font-size: .875rem; font-weight: 500; }
.field legend { margin-bottom: .5rem; padding: 0; }
.opt { color: var(--thread); font-weight: 400; }
.field input, .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	border: 1px solid var(--line); border-radius: 0; padding: .8rem .9rem;
	transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; border: 1px solid var(--line); padding: .45rem .9rem; font-size: .875rem; border-radius: 2rem; transition: all .2s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; font-size: .875rem; color: var(--thread); align-items: start; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--ink); }
.check a { color: var(--ink); }
.form .btn { justify-self: start; }
.form__samples { background: var(--mist); padding: 1.25rem 1.25rem .75rem; }
.form__samples h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 500; margin-bottom: .75rem; }
.form__samples ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.form__samples li { display: flex; align-items: center; gap: .5rem; background: var(--paper); padding: .3rem .6rem .3rem .3rem; font-size: .8125rem; margin-bottom: .5rem; }
.form__samples img { width: 32px; height: 32px; object-fit: cover; }
.notice { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.notice--ok { background: var(--mist); }
.notice--ok h2 { font-size: 2rem; }
.notice--error { border-left: 3px solid var(--coral); background: #fff; }

/* ——— Pie ——— */
.site-footer { background: var(--ink-deep); color: var(--on-ink-soft); font-size: .9375rem; }
.site-footer__inner {
	width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
	padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}
.site-footer__brand img { width: 200px; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 22rem; }
.site-footer h2 { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--on-ink); margin-bottom: .9rem; }
.site-footer a { text-decoration: none; color: var(--on-ink-soft); }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; }
.site-footer .muted { color: #7f8aa3; }
.site-footer__legal {
	width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
	border-top: 1px solid rgba(170, 180, 202, .2); padding-block: 1.5rem 2rem; font-size: .8125rem;
}
.site-footer__legal p { margin: 0; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

/* Imagen que no se ha podido cargar */
img.is-missing { background: var(--mist) url("../img/tejido.svg") center / 40px; color: transparent; }

/* ——— Responsive ——— */
@media (max-width: 1100px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.books__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.brand__logo { height: 44px; }
	.burger { display: block; }
	.site-header__actions { margin-left: auto; }
	.sel-toggle__label { display: none; }
	.sel-toggle { border: 0; padding: .5rem; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
		background: var(--paper); color: var(--ink);
		padding: 2rem var(--gutter);
		visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s;
		overflow-y: auto;
	}
	.nav.is-open { visibility: visible; opacity: 1; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; font-family: var(--serif); font-size: 2.2rem; padding: .5rem 0; border-bottom: 1px solid var(--line); background: none; }
	body.menu-open { overflow: hidden; }
	.has-hero.menu-open .site-header { background: var(--paper); color: var(--ink); }
	.has-hero.menu-open .brand__logo--light { opacity: 0; }
	.has-hero.menu-open .brand__logo--dark { opacity: 1; }

	.hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; }
	.hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
	.hero__media { grid-column: 1; grid-row: 1; height: 62svh; min-height: 380px; }
	.hero__media::after { background: linear-gradient(180deg, rgba(2, 34, 75, .55), rgba(2, 34, 75, 0) 35%, rgba(2, 34, 75, .9)); }
	.hero__panel { grid-row: 2; padding: 2rem var(--gutter) 2.5rem; max-width: none; }
	.hero__title { margin-top: -5.5rem; position: relative; }
	.percha { grid-row: 3; padding: 0 0 2rem var(--gutter); }

	.intro, .visita__inner, .books__head, .cat-head .wrap { grid-template-columns: 1fr; }
	.cat-head__text { grid-column: 1; grid-row: auto; margin-top: 1.5rem; }
	.usos__grid { grid-template-columns: 1fr; grid-template-rows: none; }
	.uso { aspect-ratio: 4 / 3; }
	.uso--tapiceria { grid-row: auto; }
	.feature, .feature--flip { grid-template-columns: 1fr; }
	.feature--flip .feature__media { order: 0; }
	.ficha { grid-template-columns: 1fr; }
	.ficha__stage { position: static; }
	.contacto { grid-template-columns: 1fr; }
	.filters { position: static; }
	.filters__status { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
	.grid { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
	.grid--4 .card__title { font-size: 1.4rem; }
	.books__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field-row { grid-template-columns: 1fr; }
	.specs > div { grid-template-columns: 7rem 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header, .filters, .drawer, .site-footer, .ficha__actions { display: none !important; }
}

/* Elementor: los contenedores de la portada no añaden márgenes ni huecos a los bloques del tema. */
.e-con.dst-con { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --margin-top: 0px; --margin-bottom: 0px; padding: 0; gap: 0; }
.e-con.dst-con > .e-con-inner { max-width: none; padding: 0; gap: 0; }
.elementor-widget[data-widget_type^="dst_"] { width: 100%; margin: 0; --kit-widget-spacing: 0px; }
.elementor-widget[data-widget_type^="dst_"] > .elementor-widget-container { margin: 0; padding: 0; }
