
:root {
	--cream: #F6EFE4;
	--paper: #FFFBF4;
	--ink: #1A1613;
	--ink-soft: #3B322B;
	--caramel: #B98B5E;
	--toasted: #7A5230;
	--sand: #E3D6C3;
	--rust: #B4442B;
	--font-display: 'Alfa Slab One', Georgia, serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	line-height: 1.5;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
h1, h2, h3 { margin: 0; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--cream); padding: 12px 16px;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--toasted); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border: 2px solid transparent;
	font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--toasted); }
.btn--caramel { background: var(--caramel); color: var(--ink); }
.btn--caramel:hover { background: var(--cream); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600; }

/* ---------- Barra superior ---------- */
.topbar {
	background: var(--ink); color: var(--cream); font-size: 13px;
	padding: 10px var(--gutter);
	display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center;
}
.topbar a { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
	padding: 20px var(--gutter);
}
.menu-toggle {
	display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; }
.brand__tag {
	font-size: 10px; font-weight: 700; letter-spacing: .2em;
	border-top: 3px solid var(--ink); margin-top: 5px; padding-top: 5px;
}
.search {
	flex: 1 1 320px; max-width: 560px; display: flex; margin: 0;
	border: 2px solid var(--ink); background: var(--paper);
}
.search input[type="search"] {
	flex: 1; min-width: 0; height: 48px; border: 0; background: transparent;
	padding: 0 16px; font-size: 15px; color: var(--ink); outline: none;
}
.search button {
	width: 52px; height: 48px; border: 0; background: var(--ink); color: var(--cream);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
	position: relative; width: 48px; height: 48px; border: 2px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.icon-btn__badge {
	position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
	background: var(--rust); color: #fff; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; border-radius: 10px;
}
.btn--wa { height: 48px; }

/* ---------- Menú principal ---------- */
.site-nav {
	border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
	padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 4px;
}
.site-nav a, .site-nav__shop {
	min-height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 8px;
	font-size: 15px; font-weight: 600;
}
.site-nav a:hover { color: var(--toasted); }
.site-nav__shop {
	border: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700;
	padding: 0 20px;
}
.site-nav__shop svg { transition: transform .15s; }
.site-nav__shop.is-open { background: var(--ink); color: var(--cream); }
.site-nav__shop.is-open svg { transform: rotate(180deg); }
.site-nav .site-nav__sale { margin-left: auto; color: var(--rust); font-weight: 700; }

/* ---------- Menú grande ---------- */
.mega {
	background: var(--paper); border-bottom: 1px solid var(--ink);
	padding: 36px var(--gutter) 40px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 40px;
}
.mega[hidden] { display: none; }
.mega__col a { display: flex; align-items: center; min-height: 36px; font-size: 15px; }
.mega__col a:hover { color: var(--toasted); }
.mega__col .mega__more { min-height: 40px; font-weight: 700; text-decoration: underline; }
.eyebrow-label {
	font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em;
	color: var(--toasted); border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px;
}
.eyebrow-label--light { color: var(--caramel); border-bottom-color: #3B322B; }
.mega__card {
	background: var(--ink); color: var(--cream); padding: 28px;
	display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
}
.mega__card-title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.mega__card p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--sand); }
.mega__card .btn { align-self: flex-start; }

/* ---------- Banner ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: 72px var(--gutter) 150px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px;
}
.hero__ring { position: absolute; left: -220px; bottom: -300px; pointer-events: none; }
.hero__copy { flex: 1 1 440px; max-width: 660px; position: relative; z-index: 1; }
.eyebrow {
	font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--toasted);
}
.hero__title {
	font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 72px);
	line-height: 1.02; margin: 18px 0 20px;
}
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 540px; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges {
	list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
	font-size: 14px; font-weight: 600;
}
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__art { flex: 1 1 380px; position: relative; z-index: 1; display: flex; justify-content: center; }
.hero__art img { width: 100%; max-width: 540px; mix-blend-mode: multiply; }

/* ---------- Selector de máquina ---------- */
.finder {
	margin: -84px var(--gutter) 0; position: relative; z-index: 2;
	background: var(--ink); color: var(--cream); padding: 28px 32px;
	display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end;
}
.finder__intro { flex: 1 1 240px; }
.finder__intro h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.finder__intro p { margin: 6px 0 0; font-size: 14px; color: var(--sand); }
.finder__form { display: contents; }
.finder label {
	flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600;
}
.finder select, .finder input[type="text"] {
	height: 52px; border: 0; background: var(--cream); color: var(--ink); padding: 0 14px; font-size: 15px;
}
.finder .btn { min-height: 52px; font-size: 16px; padding: 0 28px; flex: 0 0 auto; }

/* ---------- Secciones ---------- */
.section { padding: 88px var(--gutter) 0; }
.section__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 12px 24px; margin-bottom: 28px;
}
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.link-u { font-weight: 700; font-size: 15px; text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.link-u:hover { color: var(--toasted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cat {
	display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
	min-height: 170px; padding: 24px; background: var(--paper); border: 2px solid var(--ink);
}
.cat:hover { background: var(--sand); }
.cat__top, .cat__bottom { display: flex; justify-content: space-between; gap: 12px; }
.cat__top { align-items: flex-start; }
.cat__bottom { align-items: flex-end; }
.cat__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--toasted); }
.cat__name { font-family: var(--font-display); font-size: 23px; line-height: 1.15; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.prod { background: var(--paper); border: 1px solid var(--sand); display: flex; flex-direction: column; }
.prod__media {
	position: relative; height: 220px; background: var(--sand); overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.prod__tag {
	position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--cream);
	font-size: 12px; font-weight: 600; padding: 5px 10px;
}
.prod__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.prod__name a:hover { color: var(--toasted); }
.prod__ref { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.prod__foot {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	margin-top: auto; padding-top: 14px;
}
.prod__price { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--toasted); }
.prod__price del { opacity: .6; font-size: 14px; }
.prod__price ins { text-decoration: none; }

.benefits {
	margin-top: 96px; background: var(--sand); padding: 72px var(--gutter);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
}
.benefit { display: flex; gap: 18px; align-items: flex-start; }
.benefit svg { flex: 0 0 auto; }
.benefit h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
.benefit p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px var(--gutter) 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.site-footer__brand { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.site-footer__tag { font-size: 10px; font-weight: 700; letter-spacing: .2em; margin-top: 8px; color: var(--caramel); }
.site-footer p { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--sand); max-width: 280px; }
.site-footer__grid a { display: flex; align-items: center; min-height: 36px; font-size: 14px; }
.site-footer__grid a:hover { color: var(--caramel); }
.site-footer__legal {
	border-top: 1px solid #3B322B; margin-top: 48px; padding-top: 20px; font-size: 13px; color: var(--sand);
}

/* ---------- Móvil y tableta ---------- */
@media (max-width: 900px) {
	:root { --gutter: 20px; }
	.topbar { justify-content: center; text-align: center; font-size: 12px; }
	.site-header { padding: 12px 8px 12px 4px; gap: 12px; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--ink); }
	.menu-toggle { display: flex; order: 1; }
	.brand { order: 2; }
	.brand svg { width: 32px; height: 32px; }
	.brand__name { font-size: 19px; }
	.brand__tag { font-size: 8px; border-top-width: 2px; margin-top: 3px; padding-top: 3px; }
	.header-actions { order: 3; margin-left: 0; }
	.header-actions .icon-btn:first-child, .header-actions .btn--wa { display: none; }
	.header-actions .icon-btn { border: 0; }
	.search { order: 4; flex: 1 1 100%; max-width: none; margin: 0 12px 4px; }

	.site-nav { display: none; flex-direction: column; padding: 0; border-top: 0; }
	.site-nav.is-open { display: flex; }
	.site-nav a, .site-nav__shop {
		width: 100%; min-height: 56px; padding: 0 20px; font-size: 17px; justify-content: space-between;
		border-bottom: 1px solid var(--sand);
	}
	.site-nav .site-nav__sale { margin-left: 0; }

	.mega { padding: 16px 20px 24px; grid-template-columns: 1fr; gap: 24px; }
	.hero { padding: 24px var(--gutter) 60px; gap: 20px; }
	.hero__title { margin: 14px 0; }
	.hero__lead { font-size: 16px; margin-bottom: 22px; }
	.hero__cta { flex-direction: column; }
	.hero__badges { margin-top: 24px; }
	.hero__art img { max-width: 310px; }
	.finder { margin-top: -24px; padding: 22px 20px; }
	.finder .btn { width: 100%; }
	.section { padding-top: 56px; }
	.benefits { margin-top: 64px; padding: 48px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Tienda ---------- */
.shop { padding-bottom: 88px; min-height: 60vh; }
.shop__count { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--toasted); }
.shop__filters {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
	background: var(--paper); border: 2px solid var(--ink); padding: 20px; margin-bottom: 32px;
}
.shop__filters label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.shop__filters select, .shop__filters input {
	height: 48px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); padding: 0 12px; font-size: 15px;
}
.empty { background: var(--paper); border: 2px solid var(--ink); padding: 48px 24px; text-align: center; }
.empty h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.empty p { color: var(--ink-soft); margin: 12px 0 24px; }
