/* ==========================================================================
   VEFF Perfums
   Identidad tomada del logo: un frasco dibujado con una sola línea negra
   sobre un fondo greige con viñeta. Todo el sitio habla ese idioma:
   líneas finas en tinta, paneles greige con luz al centro, tipografía
   geométrica como la del logo y nombres de perfume en Bodoni cursiva.
   ========================================================================== */

:root {
	--bg: #efe9e0; /* lino */
	--surface: #f6f2ec; /* superficies claras */
	--panel: #e2d8cb; /* centro del fondo del logo */
	--panel-edge: #c4b8ab; /* borde de la viñeta del logo */
	--ink: #1a1714; /* la línea del logo */
	--ink-2: #5d544b;
	--ink-3: #857a6e;
	--line: rgba(26, 23, 20, 0.14);
	--line-2: rgba(26, 23, 20, 0.32);
	--amber: #b98a4b; /* solo para el líquido del frasquito */

	--sans: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

	--step--1: 0.8125rem;
	--step-0: 0.9688rem;
	--step-1: 1.2rem;
	--step-2: 1.55rem;
	--step-3: clamp(1.9rem, 3.4vw, 2.75rem);
	--step-4: clamp(2.4rem, 5.4vw, 4.6rem);

	--gutter: clamp(1.25rem, 4.5vw, 4rem);
	--radius: 22px;
	--radius-sm: 12px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

	/* nombres que usa el panel de administración */
	--umber: var(--bg);
	--umber-2: var(--surface);
	--umber-3: var(--panel);
	--text: var(--ink);
	--text-2: var(--ink-2);
	--text-3: var(--ink-3);
	--champagne: var(--ink);
	--champagne-hi: #3a332c;
	--smoke: var(--bg);
	--velvet: var(--surface);
	--parchment: var(--ink);
	--mist: var(--ink-2);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 1.5px solid var(--ink);
	outline-offset: 3px;
}

::selection {
	background: var(--ink);
	color: var(--bg);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -3rem;
	padding: 0.5rem 1rem;
	background: var(--ink);
	color: var(--bg);
	z-index: 30;
}
.skip:focus {
	top: 1rem;
}

/* ---------- Botones y enlaces ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0 1.5rem;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: transparent;
	text-decoration: none;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition-property: background-color, border-color, color, transform;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.btn:active {
	transform: scale(0.97);
}
.btn svg {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
	fill: currentColor;
}
.btn-ink,
.btn-primary {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.btn-ink:hover,
.btn-primary:hover {
	background: #39322b;
	border-color: #39322b;
}
.btn-ghost:hover {
	border-color: var(--ink);
}

.text-link {
	position: relative;
	padding: 0.75rem 0;
	font-size: var(--step--1);
	font-weight: 500;
	text-decoration: none;
}
.text-link::after,
.masthead-links a:not(.nav-cta)::after,
.footer-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.45rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0.35);
	transform-origin: left;
	opacity: 0.5;
	transition:
		transform 320ms var(--ease-out),
		opacity 320ms var(--ease-out);
}
.text-link:hover::after,
.masthead-links a:hover::after,
.footer-links a:hover::after {
	transform: scaleX(1);
	opacity: 1;
}
.masthead-links a:not(.nav-cta)::after,
.footer-links a::after {
	transform: scaleX(0);
}

.round-btn {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition-property: background-color, border-color, color, transform, opacity;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.round-btn svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.round-btn:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.round-btn:active {
	transform: scale(0.94);
}
.round-btn:disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* ---------- Cabecera ---------- */

.masthead {
	position: fixed;
	inset: 0 0 auto;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4.5rem;
	padding: 0 var(--gutter);
	transition:
		background-color 300ms ease-out,
		box-shadow 300ms ease-out;
}
.masthead.is-solid {
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px) saturate(1.2);
	box-shadow: 0 1px 0 var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
.brand-mark {
	height: 1.9rem;
	width: auto;
}
.brand-word {
	height: 1.55rem;
	width: auto;
}
/* la marca aparece cuando el logo grande de la portada se va */
.catalog .brand {
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition:
		opacity 360ms ease-out,
		transform 360ms var(--ease-out);
}
.catalog .masthead.is-solid .brand {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.masthead-links {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.6vw, 2.25rem);
	font-size: var(--step--1);
	font-weight: 500;
}
.masthead-links a {
	position: relative;
	text-decoration: none;
	padding: 0.75rem 0;
}
.masthead-links .nav-cta {
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	transition:
		background-color 180ms ease-out,
		color 180ms ease-out,
		border-color 180ms ease-out;
}
.masthead-links .nav-cta:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

/* ---------- Botón del pedido en la cabecera ---------- */

.bag-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition-property: background-color, border-color, color, transform;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.bag-btn svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}
.bag-btn:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.bag-btn:active {
	transform: scale(0.94);
}
.bag-count {
	position: absolute;
	top: -0.2rem;
	right: -0.25rem;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-size: 0.68rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transform: scale(0);
	transition: transform 300ms var(--ease-out);
}
.bag-btn.has-items .bag-count {
	transform: scale(1);
}
.bag-btn.bump {
	animation: bump 420ms var(--ease-out);
}
@keyframes bump {
	40% {
		transform: scale(1.14);
	}
}

/* ---------- Panel del pedido ---------- */

.bag {
	margin: 0 0 0 auto;
	width: min(27rem, 100vw);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	padding: 0;
	border: 0;
	background: var(--bg);
	color: var(--ink);
	box-shadow: -30px 0 80px -30px rgba(40, 30, 20, 0.45);
}
.bag::backdrop {
	background: rgba(40, 33, 26, 0.38);
	backdrop-filter: blur(4px);
}
.bag[open] {
	animation: bag-in 420ms var(--ease-out);
}
.bag[open]::backdrop {
	animation: fade-in 300ms ease-out;
}
.bag.is-closing {
	animation: bag-out 220ms ease-in forwards;
}
.bag.is-closing::backdrop {
	animation: fade-out 220ms ease-in forwards;
}
@keyframes bag-in {
	from {
		transform: translateX(100%);
	}
}
@keyframes bag-out {
	to {
		transform: translateX(100%);
	}
}

.bag-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bag-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid var(--line);
}
.bag-head h2 {
	margin: 0;
	font-weight: 500;
	font-size: var(--step-1);
}

.bag-list {
	flex: 1;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	padding: 0.5rem 1.5rem;
}
.bag-item {
	display: grid;
	grid-template-columns: 4.5rem 1fr auto;
	gap: 1rem;
	align-items: start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}
.bag-item .plinth {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-sm);
}
.bag-item .plinth img {
	padding: 10% 8% 8%;
}
.bag-item .plinth::after {
	display: none;
}
.bag-item-brand {
	margin: 0;
	color: var(--ink-3);
	font-size: 0.75rem;
	font-weight: 500;
}
.bag-item-name {
	margin: 0.1rem 0 0.6rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.15;
}
.bag-item-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.bag-item-price {
	margin: 0;
	font-weight: 500;
	font-size: var(--step--1);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}
.bag-remove {
	display: block;
	margin: 0.6rem 0 0 auto;
	padding: 0.35rem 0;
	background: none;
	border: 0;
	color: var(--ink-3);
	font-size: 0.75rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bag-remove:hover {
	color: var(--ink);
}

/* tamaño dentro del pedido */
.mini-sizes {
	display: inline-flex;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 999px;
}
.mini-sizes button {
	height: 1.9rem;
	padding: 0 0.7rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--ink-2);
	cursor: pointer;
	transition-property: background-color, color;
	transition-duration: 180ms;
}
.mini-sizes button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--bg);
}
.mini-size-only {
	display: inline-flex;
	align-items: center;
	height: 2rem;
	padding: 0 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
}

/* cantidad */
.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
}
.qty button {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}
.qty button:hover {
	background: rgba(26, 23, 20, 0.06);
}
.qty output {
	min-width: 1.4rem;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.bag-empty {
	flex: 1;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 1rem;
	padding: 2rem;
	text-align: center;
	color: var(--ink-2);
}
.bag-empty p {
	margin: 0;
}

.bag-foot {
	padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: radial-gradient(120% 140% at 50% 0%, #ebe3d8 0%, var(--panel) 80%);
}
.bag-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0;
	font-size: var(--step--1);
}
.bag-total strong {
	font-weight: 400;
	font-size: var(--step-2);
	font-variant-numeric: tabular-nums;
}
.bag-help {
	margin: 0.6rem 0 1rem;
	color: var(--ink-2);
	font-size: 0.78rem;
	line-height: 1.55;
}
.bag-send {
	width: 100%;
	min-height: 3.25rem;
	font-size: var(--step-0);
}
.bag-copied {
	margin-top: 1rem;
	font-size: 0.8rem;
	line-height: 1.5;
}
.bag-copied p {
	margin: 0 0 0.6rem;
}
.bag-copied textarea {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 0.78rem;
	line-height: 1.5;
	resize: none;
}
.bag-copied .text-link {
	background: none;
	border: 0;
	padding: 0.5rem 0;
	cursor: pointer;
}
.bag-foot {
	max-height: 70dvh;
	overflow-y: auto;
}
.bag-clear {
	display: block;
	margin: 0.5rem auto 0;
	background: none;
	border: 0;
	color: var(--ink-3);
	cursor: pointer;
}

/* ---------- Aviso flotante ---------- */

.toast {
	position: fixed;
	inset: auto auto calc(1.25rem + env(safe-area-inset-bottom)) 50%;
	margin: 0;
	border: 0;
	overflow: visible;
	z-index: 50;
	display: none;
	max-width: calc(100vw - 2rem);
}
.toast:popover-open {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0.5rem 0.5rem 1.25rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-size: var(--step--1);
	box-shadow: 0 20px 40px -16px rgba(26, 23, 20, 0.6);
	transform: translateX(-50%);
	animation: toast-in 380ms var(--ease-out);
}
.toast button {
	height: 2.4rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--bg);
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 500;
	cursor: pointer;
}
@keyframes toast-in {
	from {
		opacity: 0;
		transform: translate(-50%, 14px);
	}
}

/* ---------- Portada ---------- */

.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100svh;
	padding: 6rem var(--gutter) 5rem;
	/* la misma viñeta del logo */
	background: radial-gradient(
		70% 60% at 50% 45%,
		#ebe3d8 0%,
		var(--panel) 45%,
		var(--panel-edge) 100%
	);
	overflow: hidden;
}

.hero-stage {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 0;
}
/* Donde el navegador lo permite, la portada se aleja con el scroll sin JavaScript
   (lo anima la placa de video, no el procesador). */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.hero-stage {
			animation: hero-away linear both;
			animation-timeline: scroll(root);
			animation-range: 0 100svh;
		}
	}
}
@keyframes hero-away {
	90% {
		opacity: 0;
	}
	to {
		opacity: 0;
		transform: translateY(35svh) scale(0.92);
	}
}

.hero-logo {
	width: min(17rem, 52vw, 38svh);
}
.logo-art {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.logo-art path {
	fill: var(--ink);
}

/* Dibujo del logo: primero la línea, después el relleno */
.catalog.is-drawing .logo-art path {
	fill-opacity: 0;
	stroke: var(--ink);
	stroke-width: 2.5;
	stroke-dasharray: var(--len) var(--len);
	stroke-dashoffset: var(--len);
}
.catalog.is-drawn .logo-art path {
	fill-opacity: 1;
	stroke: var(--ink);
	stroke-width: 0;
	stroke-dashoffset: 0;
	transition:
		stroke-dashoffset 2600ms var(--ease-in-out),
		fill-opacity 900ms ease-out 2200ms,
		stroke-width 900ms ease-out 2200ms;
}
.catalog.is-drawn .logo-art .logo-veff {
	transition:
		stroke-dashoffset 1600ms var(--ease-in-out) 900ms,
		fill-opacity 800ms ease-out 2300ms,
		stroke-width 800ms ease-out 2300ms;
}
.catalog.is-drawn .logo-art .logo-perfums {
	transition:
		stroke-dashoffset 1400ms var(--ease-in-out) 1300ms,
		fill-opacity 800ms ease-out 2400ms,
		stroke-width 800ms ease-out 2400ms;
}

.hero-lede {
	margin: 2.25rem 0 0;
	max-width: 34ch;
	color: var(--ink-2);
	font-size: var(--step-0);
	line-height: 1.65;
	text-wrap: balance;
}
.hero-actions {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-top: 1.75rem;
}

.hero-lede,
.hero-actions,
.scroll-cue {
	transition:
		opacity 900ms ease-out,
		transform 900ms var(--ease-out);
}
.catalog.is-loading .hero-lede,
.catalog.is-loading .hero-actions,
.catalog.is-loading .scroll-cue,
.catalog.is-drawing:not(.is-revealed) .hero-lede,
.catalog.is-drawing:not(.is-revealed) .hero-actions,
.catalog.is-drawing:not(.is-revealed) .scroll-cue {
	opacity: 0;
	transform: translateY(10px);
}
.catalog .hero-actions {
	transition-delay: 120ms;
}
.catalog .scroll-cue {
	transition-delay: 300ms;
}

.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	translate: -50% 0;
	display: block;
	width: 2.75rem;
	height: 3.5rem;
}
.scroll-cue span {
	position: absolute;
	left: 50%;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 1px;
	background: var(--line-2);
	overflow: hidden;
}
.scroll-cue span::after {
	content: "";
	position: absolute;
	left: 0;
	top: -40%;
	width: 1px;
	height: 40%;
	background: var(--ink);
	animation: cue 2.4s var(--ease-in-out) infinite 3.2s;
	will-change: transform;
}
@media (max-height: 720px) {
	.scroll-cue {
		display: none;
	}
}
@keyframes cue {
	to {
		transform: translateY(350%);
	}
}

/* ---------- Secciones ---------- */

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}
.section-title {
	margin: 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: var(--step-3);
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.count {
	margin: 0;
	color: var(--ink-3);
	font-size: var(--step--1);
	font-variant-numeric: tabular-nums;
}

/* ---------- El pedestal (panel donde se apoya cada frasco) ---------- */

.plinth,
.arch,
.niche {
	position: relative;
	display: block;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	background: radial-gradient(85% 70% at 50% 42%, #efe8de 0%, var(--panel) 55%, #cfc4b7 100%);
	overflow: hidden;
	isolation: isolate;
}
.plinth::after,
.arch::after,
.niche::after {
	/* sombra de apoyo */
	content: "";
	position: absolute;
	left: 22%;
	right: 22%;
	bottom: 9%;
	height: 4.5%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(40, 30, 20, 0.28), transparent);
	z-index: -1;
	transition:
		transform 520ms var(--ease-out),
		opacity 520ms var(--ease-out);
}
.plinth img,
.arch img,
.niche img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14% 13% 12%;
	mix-blend-mode: multiply; /* funde el fondo blanco de la foto con el greige */
	transition: transform 620ms var(--ease-out);
}
/* sin foto: el frasco del logo como marca de agua */
.plinth.is-empty,
.arch.is-empty,
.niche.is-empty {
	background-image:
		url("/brand/frasco-marca.svg"),
		radial-gradient(85% 70% at 50% 42%, #efe8de 0%, var(--panel) 55%, #cfc4b7 100%);
	background-repeat: no-repeat;
	background-position:
		center 45%,
		center;
	background-size:
		34% auto,
		cover;
}
.plinth.is-empty img,
.arch.is-empty img,
.niche.is-empty img {
	display: none;
}

/* ---------- Qué ofrecemos: decants y perfumes enteros ---------- */

.offer {
	display: grid;
	justify-items: center;
	padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
	text-align: center;
}
.offer-title {
	margin: 0;
	max-width: 18ch;
	font-weight: 600;
	font-size: var(--step-3);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.offer-title::after {
	/* la rayita corta debajo del título, como en la pieza de la marca */
	content: "";
	display: block;
	width: 3.5rem;
	height: 1.5px;
	margin: 1.4rem auto 0;
	background: var(--ink);
}
.offer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	width: min(100%, 60rem);
	margin-top: clamp(2.25rem, 5vw, 3.25rem);
	text-align: left;
}
.offer-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	padding: clamp(1.5rem, 3.5vw, 2.25rem);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	background: radial-gradient(90% 120% at 30% 20%, #ebe3d8 0%, var(--panel) 75%);
}
.offer-icon {
	width: clamp(4.5rem, 9vw, 6rem);
	height: auto;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.offer-icon .fill {
	fill: #c4b8ab;
}
.offer-icon .ink {
	fill: var(--ink);
}
.offer-kicker {
	margin: 0;
	color: var(--ink-2);
	font-size: 0.75rem;
	font-weight: 500;
}
.offer-text h3 {
	margin: 0.2rem 0 0.5rem;
	font-weight: 600;
	font-size: var(--step-2);
	line-height: 1.15;
}
.offer-text p:not(.offer-kicker) {
	margin: 0;
	color: var(--ink-2);
	line-height: 1.6;
	text-wrap: pretty;
}
.offer-text .text-link {
	display: inline-block;
	margin-top: 0.5rem;
}
.offer-cta {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	min-width: min(100%, 20rem);
	min-height: 3.4rem;
	font-size: var(--step-0);
}
.offer-note {
	margin: 1.1rem 0 0;
	color: var(--ink-2);
	font-size: var(--step--1);
}

@media (max-width: 760px) {
	.offer-grid {
		grid-template-columns: 1fr;
	}
	.offer-card {
		grid-template-columns: 5.5rem 1fr;
		padding: 1.5rem 1.25rem;
	}
	.offer-icon {
		width: 100%;
	}
}

/* ---------- Destacados (riel horizontal) ---------- */

.featured {
	padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.featured .section-head {
	padding: 0 var(--gutter);
}
.rail-nav {
	display: flex;
	gap: 0.5rem;
}

.rail {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0 var(--gutter) 1rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(16rem, 30vw, 24rem);
	gap: clamp(1rem, 2.4vw, 2rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar {
	display: none;
}
.rail > li {
	scroll-snap-align: start;
}
.rail .plinth {
	aspect-ratio: 4 / 5.2;
}
.rail .card-name {
	font-size: var(--step-2);
}

/* ---------- Cómo pedir ---------- */

.steps {
	margin: 0 var(--gutter);
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.steps-list {
	list-style: none;
	counter-reset: step;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3.5rem);
}
.steps-list li {
	counter-increment: step;
	position: relative;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-2);
}
.steps-list li::before {
	content: counter(step);
	position: absolute;
	top: -0.75rem;
	right: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: grid;
	place-items: center;
	background: var(--bg);
	border: 1px solid var(--line-2);
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.step-icon {
	width: 2.75rem;
	height: 2.75rem;
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.steps-list h3 {
	margin: 1.1rem 0 0.4rem;
	font-weight: 500;
	font-size: var(--step-1);
	line-height: 1.3;
}
.steps-list p {
	margin: 0;
	max-width: 32ch;
	color: var(--ink-2);
	font-size: var(--step--1);
	line-height: 1.65;
	text-wrap: pretty;
}

/* ---------- Catálogo ---------- */

.catalogo {
	padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.brand-index {
	margin-top: 1.75rem;
	overflow-x: auto;
	scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.brand-index::-webkit-scrollbar {
	display: none;
}
.brand-index ul {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0 2.5rem 0 0;
	list-style: none;
	white-space: nowrap;
}
.brand-index button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	height: 2.5rem;
	padding: 0 1rem;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--step--1);
	color: var(--ink-2);
	cursor: pointer;
	transition-property: background-color, border-color, color;
	transition-duration: 200ms;
	transition-timing-function: ease-out;
}
.brand-index button sup {
	font-size: 0.7rem;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
	vertical-align: baseline;
}
.brand-index button:hover {
	border-color: var(--line-2);
	color: var(--ink);
}
.brand-index button[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.brand-index button[aria-pressed="true"] sup {
	color: rgba(239, 233, 224, 0.6);
}

.toolbar {
	position: sticky;
	top: 4.5rem;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1rem;
	padding: 0.85rem 0;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.search {
	position: relative;
	flex: 1 1 16rem;
}
.search svg {
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 1.05rem;
	height: 1.05rem;
	translate: 0 -50%;
	fill: none;
	stroke: var(--ink-2);
	stroke-width: 1.5;
	pointer-events: none;
}
.search input,
.sort select {
	height: 2.75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	transition-property: border-color, background-color, box-shadow;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.search input {
	width: 100%;
	padding: 0 1rem 0 2.7rem;
}
.search input::placeholder {
	color: var(--ink-3);
}
.search input:hover,
.sort select:hover {
	border-color: var(--line-2);
}
.search input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.08);
}
.sort select {
	padding: 0 2.5rem 0 1.15rem;
	appearance: none;
	cursor: pointer;
	font-size: var(--step--1);
	background-image:
		linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
		linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
	background-position:
		calc(100% - 1.2rem) 52%,
		calc(100% - 0.9rem) 52%;
	background-size: 0.3rem 0.3rem;
	background-repeat: no-repeat;
}

/* Selector segmentado con indicador que se desliza */
.segmented {
	--i: 0;
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	height: 2.75rem;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
}
.segmented::before {
	content: "";
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: calc((100% - 6px) / var(--n, 4));
	border-radius: 999px;
	background: var(--ink);
	transform: translateX(calc(var(--i) * 100%));
	transition: transform 420ms var(--ease-out);
}
.segmented label {
	position: relative;
	display: flex;
}
.segmented input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.segmented span {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0 1rem;
	font-size: var(--step--1);
	color: var(--ink-2);
	transition: color 280ms ease-out;
	pointer-events: none;
}
.segmented input:checked + span {
	color: var(--bg);
}
.segmented input:focus-visible + span {
	outline: 1.5px solid var(--ink);
	outline-offset: 1px;
	border-radius: 999px;
}

/* ---------- Grilla ---------- */

.grid {
	list-style: none;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
	gap: clamp(2.5rem, 4.5vw, 4rem) clamp(1rem, 2.2vw, 2rem);
}

.card {
	transition:
		opacity 320ms ease-out,
		transform 460ms var(--ease-out);
}
.card.is-entering {
	opacity: 0;
	transform: translateY(12px);
}

.card-hit {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	border-radius: var(--radius);
}
.card-hit:focus-visible {
	outline-offset: 6px;
}
.card-hit .plinth {
	transition: transform 180ms ease-out;
}
.card-hit:active .plinth {
	transform: scale(0.985);
}

.card-text {
	display: flex;
	flex-direction: column;
}
.card-brand {
	margin-top: 1.1rem;
	color: var(--ink-3);
	font-size: var(--step--1);
	font-weight: 500;
}
.card-name {
	margin-top: 0.15rem;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.45rem;
	line-height: 1.15;
	text-wrap: balance;
}
.card-notes {
	margin-top: 0.4rem;
	color: var(--ink-2);
	font-size: var(--step--1);
	line-height: 1.5;
	text-wrap: pretty;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-prices {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	font-size: var(--step--1);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.card-prices b {
	font-weight: 400;
	color: var(--ink-3);
	margin-right: 0.4rem;
}
.card-flag {
	color: var(--ink-3);
	font-weight: 400;
}
.card.is-soldout .plinth img {
	filter: grayscale(0.6);
	opacity: 0.7;
}

@media (hover: hover) {
	.card-hit:hover .plinth img {
		transform: translateY(-7px) scale(1.015);
	}
	.card-hit:hover .plinth::after {
		transform: scaleX(0.84);
		opacity: 0.7;
	}
}

.empty {
	padding: 5rem 0;
	text-align: center;
	color: var(--ink-2);
}
.empty strong {
	display: block;
	font-weight: 300;
	font-size: var(--step-3);
	color: var(--ink);
	margin-bottom: 0.5rem;
}
.empty .btn {
	margin-top: 1.25rem;
}

/* ---------- Pie ---------- */

.footer {
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
	text-align: center;
	background: radial-gradient(70% 80% at 50% 30%, #ebe3d8 0%, var(--panel) 50%, var(--panel-edge) 100%);
}
.footer-logo {
	width: 7.5rem;
	height: auto;
}
.footer-copy {
	margin: 0;
	max-width: 46ch;
	color: var(--ink-2);
	font-size: var(--step--1);
	line-height: 1.7;
}
.footer-links {
	display: flex;
	gap: 2rem;
	font-size: var(--step--1);
	font-weight: 500;
}
.footer-links a {
	position: relative;
	padding: 0.6rem 0;
	text-decoration: none;
}
.footer-small {
	margin: 1.5rem 0 0;
	color: var(--ink-3);
	font-size: 0.75rem;
}

/* ---------- Ficha ---------- */

.detail {
	width: min(72rem, 100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: calc(var(--radius) + 6px);
	background: var(--bg);
	color: var(--ink);
	overflow: auto;
	overscroll-behavior: contain;
	box-shadow:
		0 50px 100px -30px rgba(40, 30, 20, 0.45),
		0 0 0 1px rgba(26, 23, 20, 0.06);
}
.detail::backdrop {
	background: rgba(40, 33, 26, 0.42);
	backdrop-filter: blur(6px);
}
.detail[open] {
	animation: detail-in 460ms var(--ease-out);
}
.detail[open]::backdrop {
	animation: fade-in 320ms ease-out;
}
.detail.is-closing {
	animation: detail-out 180ms ease-in forwards;
}
.detail.is-closing::backdrop {
	animation: fade-out 180ms ease-in forwards;
}
@keyframes detail-in {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.985);
	}
}
@keyframes detail-out {
	to {
		opacity: 0;
		transform: translateY(8px) scale(0.99);
	}
}
@keyframes fade-in {
	from {
		opacity: 0;
	}
}
@keyframes fade-out {
	to {
		opacity: 0;
	}
}
.vt-active .detail[open],
.vt-active .detail[open]::backdrop {
	animation: none;
}

.detail-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	padding: clamp(1rem, 2.5vw, 1.5rem);
	padding-right: clamp(1.25rem, 4vw, 3.5rem);
}
.detail-visual {
	position: sticky;
	top: clamp(1rem, 2.5vw, 1.5rem);
	align-self: start;
}
.plinth-lg {
	aspect-ratio: 4 / 4.8;
}

.detail-close {
	position: sticky;
	top: 1rem;
	float: right;
	margin: 1rem 1rem -3.75rem 0;
	background: var(--bg);
	z-index: 3;
}

.detail-info {
	padding: clamp(0.5rem, 3vw, 2.5rem) 0 clamp(1rem, 3vw, 2.5rem);
}
.detail-brand {
	margin: 0;
	color: var(--ink-3);
	font-size: var(--step--1);
	font-weight: 500;
}
.detail-name {
	margin: 0.35rem 0 0;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(2.2rem, 4.2vw, 3.5rem);
	line-height: 1.02;
	text-wrap: balance;
}
.detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.1rem 0 0;
}
.detail-meta span {
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.75rem;
	color: var(--ink-2);
}
.detail-desc {
	margin: 1.5rem 0 0;
	max-width: 54ch;
	color: var(--ink-2);
	line-height: 1.75;
	white-space: pre-line;
	text-wrap: pretty;
}
.detail-desc:empty,
.detail-meta:empty {
	display: none;
}

.mini-title {
	margin: 0 0 1.1rem;
	font-size: var(--step--1);
	font-weight: 500;
}

/* Evolución en la piel: salida -> corazón -> fondo */
.evolution {
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.timeline {
	--progress: 0;
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.75rem;
	display: grid;
	gap: 1.25rem;
}
.timeline::before,
.timeline::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.55rem;
	bottom: 0.55rem;
	width: 1px;
}
.timeline::before {
	background: var(--line);
}
.timeline::after {
	background: var(--ink);
	transform-origin: top;
	transform: scaleY(var(--progress));
	transition: transform 1200ms var(--ease-in-out) 150ms;
}
.timeline li {
	position: relative;
	display: grid;
	gap: 0.15rem;
	opacity: 0.25;
	transform: translateX(-4px);
	transition:
		opacity 500ms ease-out,
		transform 500ms var(--ease-out);
}
.timeline li::before {
	content: "";
	position: absolute;
	left: -1.75rem;
	top: 0.4rem;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--ink);
	transition: background-color 400ms ease-out;
}
.timeline.is-drawn li {
	opacity: 1;
	transform: none;
}
.timeline.is-drawn li::before {
	background: var(--ink);
}
.timeline.is-drawn li:nth-child(1),
.timeline.is-drawn li:nth-child(1)::before {
	transition-delay: 150ms;
}
.timeline.is-drawn li:nth-child(2),
.timeline.is-drawn li:nth-child(2)::before {
	transition-delay: 650ms;
}
.timeline.is-drawn li:nth-child(3),
.timeline.is-drawn li:nth-child(3)::before {
	transition-delay: 1150ms;
}
.tl-when {
	color: var(--ink-3);
	font-size: var(--step--1);
}
.tl-when b {
	font-weight: 500;
	color: var(--ink);
	margin-right: 0.5rem;
}
.tl-notes {
	font-family: var(--serif);
	font-style: italic;
	font-size: var(--step-1);
	line-height: 1.35;
	text-wrap: pretty;
}

/* Compra: el frasquito se llena según el tamaño elegido */
.buy {
	margin-top: 2.25rem;
	padding: 1.5rem;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.5rem;
	align-items: center;
	background: radial-gradient(90% 120% at 20% 30%, #ebe3d8 0%, var(--panel) 70%);
	border-radius: var(--radius);
}
.vial-wrap {
	width: 3.1rem;
}
.vial {
	width: 100%;
	height: auto;
	overflow: visible;
}
.vial-line {
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.4;
	stroke-linecap: round;
}
.vial-liquid {
	fill: var(--amber);
	opacity: 0.75;
	transform-box: fill-box;
	transform-origin: bottom;
	transform: scaleY(0);
	transition: transform 900ms var(--ease-out);
}
/* 10 ml alto y 5 ml bajo: se ve solo el del tamaño elegido, y se llena al aparecer. */
.vial-g {
	opacity: 0;
	transform-box: view-box;
	transform-origin: 50% 93%;
	transform: scale(0.92);
	transition:
		opacity 280ms ease,
		transform 420ms var(--ease-out);
}
.vial-wrap:not([data-size="5"]) .vial-10,
.vial-wrap[data-size="5"] .vial-5 {
	opacity: 1;
	transform: none;
}
.vial-wrap[data-size="10"] .vial-10 .vial-liquid,
.vial-wrap[data-size="5"] .vial-5 .vial-liquid {
	transform: scaleY(var(--fill, 0));
	transition-delay: 120ms;
}
.vial-wrap.is-reset .vial-g,
.vial-wrap.is-reset .vial-liquid {
	transition: none;
}

.sizes {
	display: inline-grid;
	grid-auto-flow: column;
	gap: 0.5rem;
}
.size {
	position: relative;
	display: inline-flex;
}
.size input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.size span {
	display: inline-flex;
	align-items: center;
	height: 2.6rem;
	padding: 0 1.2rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 500;
	pointer-events: none;
	transition-property: background-color, color, border-color;
	transition-duration: 200ms;
	transition-timing-function: ease-out;
}
.size input:checked + span {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.size input:focus-visible + span {
	outline: 1.5px solid var(--ink);
	outline-offset: 2px;
}

.buy-price {
	margin: 0.9rem 0 0;
	height: 2.6rem;
	overflow: hidden;
	font-weight: 300;
	font-size: clamp(1.9rem, 3vw, 2.3rem);
	line-height: 2.6rem;
	font-variant-numeric: lining-nums tabular-nums;
}
.price-roll {
	display: inline-block;
	transition:
		transform 440ms var(--ease-out),
		opacity 300ms ease-out;
}
.price-roll.is-out {
	transform: translateY(-60%);
	opacity: 0;
	transition-duration: 160ms;
}
.price-roll.is-in {
	transform: translateY(60%);
	opacity: 0;
	transition: none;
}

.unavailable {
	margin: 0.75rem 0 0;
	color: var(--ink-2);
	font-size: var(--step--1);
}
.actions {
	margin-top: 1.1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* ---------- Transición de vista: el frasco viaja de la grilla a la ficha ---------- */

::view-transition-group(bottle) {
	animation-duration: 600ms;
	animation-timing-function: var(--ease-out);
}
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 320ms;
}

/* ---------- Pantallas chicas ---------- */

@media (max-width: 860px) {
	.steps-list {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.rail {
		grid-auto-columns: 72vw;
	}
}

@media (max-width: 760px) {
	.masthead-links a:not(.nav-cta) {
		display: none;
	}
	.hero-logo {
		width: min(14rem, 58vw, 40svh);
	}
	.detail {
		width: 100vw;
		max-width: 100vw;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
		margin: 0;
	}
	.detail-inner {
		grid-template-columns: 1fr;
		padding: 0.75rem 1.25rem 2rem;
	}
	.detail-visual {
		position: static;
	}
	.plinth-lg {
		aspect-ratio: 1 / 1;
	}
	.detail-info {
		padding-top: 0;
	}
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25rem 0.85rem;
	}
	.card-name {
		font-size: 1.2rem;
	}
	.card-notes {
		display: none;
	}
	.card-prices {
		flex-direction: column;
	}
	.toolbar {
		position: static;
	}
	.segmented {
		order: 3;
		width: 100%;
	}
	.segmented span {
		padding: 0 0.3rem;
	}
	.sort {
		flex: 1 1 100%;
	}
	.sort select {
		width: 100%;
	}
	.rail-nav {
		display: none;
	}
	.buy {
		padding: 1.15rem;
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
	}
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}

/* ---------- Rendimiento en celulares ----------
   El desenfoque de fondo y las sombras muy grandes se recalculan en cada cuadro
   mientras algo se mueve; en pantallas táctiles se reemplazan por fondos sólidos. */
@media (hover: none), (pointer: coarse) {
	.masthead.is-solid {
		background: color-mix(in srgb, var(--bg) 97%, transparent);
		backdrop-filter: none;
	}
	.bag::backdrop,
	.detail::backdrop {
		backdrop-filter: none;
		background: rgba(40, 33, 26, 0.5);
	}
	.bag {
		box-shadow: -12px 0 30px -12px rgba(40, 30, 20, 0.35);
	}
	.detail {
		box-shadow: 0 20px 40px -20px rgba(40, 30, 20, 0.4);
	}
}

/* Las tarjetas que están lejos de la pantalla no se dibujan hasta acercarse. */
.grid > .card {
	content-visibility: auto;
	contain-intrinsic-size: auto 26rem;
}
