/* ATELIER (la B) — blanco de galería, tinta negra y un color por perfume sacado de su propia foto.
   Archivo angosta en mayúsculas para titular, Newsreader para leer. Tema claro único, a propósito.
   Las variantes B1, B2 y B3 cambian la forma de llegar a las cosas (variants.css), no el lenguaje. */
:root {
	--bg: #fcfcfb; --surface: #f1f0ed; --chip: #efeeea; --fg: #161513; --muted: #67645f; --line: #e2e0db;
	--accent: #161513; --accent-fg: #fcfcfb; --liq: #d9d5cd;
	--display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
	--body: "Newsreader", Georgia, "Times New Roman", serif;
	--util: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 48px); --maxw: 1280px; --top-h: 64px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.sel { user-select: all; font-variant-numeric: tabular-nums; }
/* Lo oculto queda oculto aunque su estilo diga otra cosa (si no, la ventana del pedido tapa la página y no deja hacer clic) */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
:is(.btn, .chip, .eyebrow, .announce, .search input, .card-brand, .card-meta, .card-price, .badge, .quick, .flabel, .count, .back, .size,
	.tier-name, .meter-txt, .pdp-line, .pdp-brand, .pdp-tags, .pdp-price, .cat-group, .cat-count, .switcher, .line-info, .total, .progress-txt,
	.form, .info dt, .foot h3, .toast, .obs, .share, select, .rail, .idx, .idx-open, .quick-nav, .shelf-group, .more, .fcheck, .rack-name, .rack-price, .link) { font-family: var(--util); }
:is(.sec-head h2, .cat-head h1, .pdp-name, .card-name, .cat-name, .brand, .panel-head h2, #modal-body h2, .foot-brand, .pyramid h2, .mega, .shelf-head h2, .intro-title) {
	font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.link { font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75em; min-height: 48px; padding: 0 1.4em; background: var(--fg); color: var(--bg); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: box-shadow .2s, transform .2s var(--ease); }
.btn:hover:not(:disabled) { box-shadow: 6px 6px 0 color-mix(in srgb, var(--fg) 18%, transparent); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: .4; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--fg), 6px 6px 0 color-mix(in srgb, var(--fg) 18%, transparent); }
.btn.wide { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; flex: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Aviso y cabecera ---------- */
.announce { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 6px var(--gutter); background: var(--fg); color: var(--bg); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.announce button { font-size: 1.1rem; line-height: 1; padding: 2px 6px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--fg); view-transition-name: top; }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.brand-b { font-weight: 300; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: var(--chip); width: min(340px, 36vw); min-width: 0; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { border: 0; background: transparent; outline: none; width: 100%; min-width: 0; font-size: .9rem; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--fg); }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; font: 600 .7rem/19px var(--util); text-align: center; background: var(--fg); color: var(--bg); transform: scale(0); transition: transform .3s var(--ease); box-sizing: border-box; }
.cart-btn.has .count { transform: scale(1); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }
.rail { display: none; }

/* ---------- Página ---------- */
.view { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 120px; view-transition-name: page; min-height: 70vh; }
.view.enter { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.sec { padding-block: clamp(44px, 6vw, 84px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 24px; border-top: 1.5px solid var(--fg); padding-top: 14px; }
.sec-head .eyebrow { width: 100%; }
.sec-head h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: .9; }
.sec-head .link { margin-left: auto; }
.lede { font-size: 1.2rem; font-style: italic; max-width: 44ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--fg); padding-top: 14px; }
.steps li::before { content: counter(s); display: block; font: 900 3.6rem/1 var(--display); font-stretch: 62%; margin-bottom: 8px; }
.steps b { font-weight: 600; }

/* ---------- Fotos ---------- */
/* La foto conserva sus colores reales; sus bordes se difuminan para que el blanco no quede como un recuadro */
/* La foto ocupa todo el espacio que puede sin deformarse (--ar = ancho/alto, lo pone app.js al cargarla) */
.pwrap { display: grid; place-items: center; container-type: size; }
.pwrap img { display: block; width: min(100cqw, 100cqh * var(--ar, 1.35)); height: auto; aspect-ratio: var(--ar, 1.35); }
/* Solo las fotos con fondo de escena: bordes difuminados para que no queden como un recuadro */
.pwrap img.framed {
	--fade-x: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	--fade-y: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
	-webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in;
	mask-image: var(--fade-x), var(--fade-y); mask-composite: intersect; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 16px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-hit { position: absolute; inset: 0; z-index: 1; }
.card-art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: color-mix(in srgb, var(--liq) 24%, #fff); transition: background-color .6s; overflow: hidden; }
.card:hover .card-art { background: color-mix(in srgb, var(--liq) 42%, #fff); }
.card-art .pwrap { position: absolute; inset: 7%; transition: transform .5s var(--ease); }
.card:hover .card-art .pwrap { transform: scale(1.05); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--fg); color: var(--bg); }
.card.is-out .pwrap { opacity: .45; filter: grayscale(1); }
.card-body { display: grid; gap: 1px; padding-top: 10px; }
.card-brand { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 1.35rem; line-height: .95; overflow-wrap: anywhere; }
.card-meta { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.card-price { font-size: 1rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.card-price b { font-weight: 700; }
.quick { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 7px 11px; font-size: .74rem; font-weight: 600; background: var(--fg); color: var(--bg); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s var(--ease); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
@media (hover: none) { .quick { opacity: 1; transform: none; } }

/* ---------- Tarjetas de categoría ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 24px 16px; }
.cat-tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.cat-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover .cat-img img { transform: scale(1.06); }
.cat-txt { display: grid; gap: 2px; padding-top: 10px; }
.cat-group { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-name { font-size: 1.7rem; line-height: .92; }
.cat-count { font-size: .78rem; color: var(--muted); }

/* ---------- Catálogo ---------- */
.cat-head { padding-block: 24px 18px; display: grid; gap: 8px; }
.cat-head h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .86; }
.cat-head p { color: var(--muted); font-style: italic; }
.back { justify-self: start; font-size: .85rem; font-weight: 600; padding: 6px 0; transition: transform .2s var(--ease); }
.back:hover { transform: translateX(-3px); }
.filters { display: grid; gap: 10px; padding-block: 14px; border-block: 1.5px solid var(--fg); margin-bottom: 14px; }
.fgroup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.frow { flex-wrap: wrap; gap: 12px 28px; }
.flabel { flex: none; width: 76px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; font-size: .82rem; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; white-space: nowrap; }
.chip em { font-style: normal; color: var(--muted); font-size: .72rem; margin-left: 2px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"] em { color: inherit; opacity: .7; }
.fsort { display: flex; align-items: center; gap: 12px; }
.fsort select { padding: 7px 10px; border: 1px solid var(--line); background: var(--bg); font-size: .85rem; }
.fcheck { display: flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; }
.fcheck input { accent-color: var(--fg); width: 16px; height: 16px; }
.count { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.empty { padding: 60px 0; display: grid; justify-items: start; gap: 16px; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; font-size: .82rem; color: var(--muted); }

/* ---------- Ficha ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-top: 20px; align-items: start; }
.pdp > .topbar { grid-column: 1 / -1; }
.pdp-art { position: sticky; top: calc(var(--top-h) + 24px); aspect-ratio: 1 / 1; max-width: 100%; background: color-mix(in srgb, var(--liq) 32%, #fff); transition: background-color .6s; }
.pdp-art .pwrap { position: absolute; inset: 6%; }
.pdp-info { display: grid; gap: 14px; min-width: 0; align-content: start; }
.pdp-line { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.pdp-brand { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: -8px; }
.pdp-name { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .86; overflow-wrap: anywhere; }
.pdp-insp { font-style: italic; font-size: 1.1rem; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-tags span { padding: 4px 10px; font-size: .78rem; background: color-mix(in srgb, var(--liq) 22%, #fff); }
.pdp-tags .tag-out { background: var(--fg); color: var(--bg); }
.pdp-price { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.size { display: grid; gap: 1px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.size:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.size-name { font-size: .78rem; color: var(--muted); }
.size-price { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy { display: flex; gap: 10px; flex-wrap: wrap; }
.buy .add { flex: 1; justify-content: space-between; min-width: min(240px, 100%); }
.qty { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1.5px var(--fg); }
.qty button { width: 42px; height: 48px; font-size: 1.2rem; text-align: center; }
.qty output { min-width: 26px; text-align: center; font-family: var(--util); font-variant-numeric: tabular-nums; }
.qty.sm { box-shadow: inset 0 0 0 1px var(--line); }
.qty.sm button { width: 32px; height: 32px; font-size: 1rem; }
.obs { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); }
.obs span { display: flex; justify-content: space-between; }
.obs em { font-style: normal; font-variant-numeric: tabular-nums; }
.obs textarea, .form input, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); resize: vertical; box-sizing: border-box; font-family: var(--body); }
.pyramid { display: grid; gap: 10px; padding-top: 16px; border-top: 1.5px solid var(--fg); }
.pyramid h2 { font-size: 2rem; line-height: 1; }
.pyramid h2 small { font: italic 400 .9rem var(--body); text-transform: none; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.tier, .meter { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.tier { animation: tierIn .6s var(--ease) both; animation-delay: calc(.15s + var(--i) * .1s); }
@keyframes tierIn { from { opacity: 0; transform: translateX(-10px); } }
.meter { grid-template-columns: 84px auto 1fr; align-items: center; }
.tier-name { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tier-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.note { padding: 3px 10px; font-style: italic; background: color-mix(in srgb, var(--liq) 26%, #fff); }
.meter-txt { font-size: .82rem; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 22px; height: 8px; background: var(--line); }
.dots i.on { background: var(--fg); }
/* ---------- Compartir ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; font: 600 .74rem var(--util); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.share-btn:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh-what { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; font-family: var(--util); }
.sh-what .pwrap { flex: none; width: 60px; height: 60px; background: color-mix(in srgb, var(--liq) 24%, #fff); }
.sh-what b { display: block; font-size: 1.05rem; }
.sh-what span { font-size: .8rem; color: var(--muted); }
#modal-body, #modal-body > * { min-width: 0; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 16px 6px; }
.sh { display: grid; justify-items: center; gap: 7px; font: .74rem var(--util); text-align: center; text-decoration: none; color: var(--fg); }
.sh i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c, var(--surface)); color: var(--c, var(--fg)); transition: transform .25s var(--ease); }
.sh[style] i { color: #fff; }
.sh:hover i { transform: translateY(-3px); }
.sh svg { width: 25px; height: 25px; }
.sh-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; background: var(--surface); font: .8rem var(--util); }
.sh-link .sel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Carrito ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(22, 21, 19, .45); opacity: 0; transition: opacity .3s; cursor: default; }
.open > .scrim { opacity: 1; }
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform .35s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); border-left: 1.5px solid var(--fg); }
.drawer.open .panel { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1.5px solid var(--fg); }
.panel-head h2 { font-size: 2rem; line-height: 1; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.panel-foot { padding: 16px 20px 20px; border-top: 1.5px solid var(--fg); display: grid; gap: 10px; }
.d-empty { display: grid; gap: 16px; justify-items: start; padding: 30px 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: viewIn .35s var(--ease); }
.line-art { display: block; width: 64px; height: 64px; padding: 4px; box-sizing: border-box; background: color-mix(in srgb, var(--liq) 22%, #fff); }
.line-info { display: grid; gap: 2px; font-size: .8rem; color: var(--muted); min-width: 0; }
.line-info b { color: var(--fg); font-size: .95rem; }
.line-info em { font-family: var(--body); }
.line-info .qty { justify-self: start; margin-top: 6px; }
.line-end { display: grid; justify-items: end; align-content: space-between; font-family: var(--util); font-variant-numeric: tabular-nums; }
.ideas { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ideas p { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); font-family: var(--util); }
.idea { display: grid; justify-items: center; gap: 2px; padding: 8px 6px 10px; background: color-mix(in srgb, var(--liq) 20%, #fff); font: .74rem/1.2 var(--util); text-align: center; transition: transform .25s var(--ease); min-width: 0; }
.idea:hover { transform: translateY(-3px); }
.idea .pwrap { display: block; width: 100%; height: 64px; }
.idea b { overflow-wrap: anywhere; }
.idea em { font-style: normal; color: var(--muted); }
.progress { height: 8px; background: var(--chip); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--pct); background: var(--fg); transition: width .6s var(--ease); }
.progress-txt { font-size: .82rem; color: var(--muted); }
.progress-txt b { color: var(--fg); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* ---------- Ventana ---------- */
.modal { display: grid; place-items: center; padding: 16px; }
.sheet { position: relative; width: min(520px, 100%); max-height: calc(100% - 32px); overflow-y: auto; box-sizing: border-box; padding: 28px; background: var(--bg); box-shadow: 0 0 0 1.5px var(--fg), 10px 10px 0 color-mix(in srgb, var(--fg) 15%, transparent); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .3s; display: grid; }
.modal.open .sheet { transform: none; opacity: 1; }
.sheet-x { position: absolute; top: 10px; right: 10px; }
#modal-body { display: grid; gap: 12px; }
#modal-body h2 { font-size: 2.4rem; line-height: .95; padding-right: 40px; }
.form { display: grid; gap: 8px; }
.form label { font-size: .8rem; color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.form legend { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.form .opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); cursor: pointer; font-size: .9rem; }
.form .opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--fg); }
.form input[type="radio"] { accent-color: var(--fg); width: auto; }
.form .btn { margin-top: 10px; }
.form-err { color: #a3241d; font-size: .85rem; min-height: 1em; }
.msg { margin: 0; padding: 16px; background: var(--surface); white-space: pre-wrap; font: .88rem/1.55 var(--util); overflow-x: auto; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proto-note { font-size: .8rem; color: var(--muted); font-style: italic; }
.info { display: grid; gap: 12px; margin: 0; }
.info div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.info dt { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; }

/* ---------- Pie ---------- */
.foot { border-top: 1.5px solid var(--fg); padding: 48px var(--gutter) 110px; font-size: .9rem; }
.foot-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot h3 { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.foot-brand { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.foot-note { max-width: var(--maxw); margin: 32px auto 0; font-size: .8rem; color: var(--muted); font-style: italic; }

/* ---------- Selector de prototipo, aviso y nube ---------- */
.switcher { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; background: #111; color: #eee; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); font-size: .8rem; view-transition-name: switcher; max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; box-sizing: border-box; }
.switcher-label { padding: 0 8px 0 10px; color: #999; white-space: nowrap; }
.switcher button { padding: 8px 12px; border-radius: 99px; white-space: nowrap; color: #ccc; transition: background-color .2s, color .2s; flex: none; }
.switcher button b { font-weight: 700; margin-right: 2px; }
.switcher button:hover { color: #fff; }
.switcher button[aria-pressed="true"] { background: #fff; color: #111; }
@media (max-width: 560px) { .switcher-label { display: none; } .switcher button { padding: 8px 9px; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; background: var(--fg); color: var(--bg); font-size: .85rem; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; box-sizing: border-box; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.puff { position: fixed; z-index: 70; width: 26px; height: 26px; border-radius: 50%; pointer-events: none; background: var(--c); filter: blur(5px); }

/* ---------- Transiciones entre páginas ---------- */
::view-transition-group(hero-bottle) { animation-duration: .6s; animation-timing-function: cubic-bezier(.3, .9, .2, 1); }
::view-transition-old(page) { animation: aOut .3s ease-in both; }
::view-transition-new(page) { animation: aWipe .65s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes aOut { to { opacity: 0; transform: translateY(-20px); } }
@keyframes aWipe { from { clip-path: inset(100% 0 0 0); transform: translateY(40px); } to { clip-path: inset(0 0 0 0); } }
[data-dir="filter"] .card { view-transition-name: var(--vt); }
[data-dir="filter"]::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
[data-dir="filter"]::view-transition-old(page), [data-dir="filter"]::view-transition-new(page) { animation: none; }
[data-dir="design"] * { view-transition-name: none !important; }
[data-dir="design"]::view-transition-old(root) { animation: none; }
[data-dir="design"]::view-transition-new(root) { animation: designIn .7s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes designIn { from { clip-path: circle(0 at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 900px) {
	.pdp { grid-template-columns: minmax(0, 1fr); }
	.pdp-art { position: relative; top: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
	:root { --top-h: 56px; }
	.brand { font-size: 1.3rem; }
	.search { width: auto; flex: 1; }
	.top-in { gap: 4px; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
	.card-name { font-size: 1.15rem; }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-name { font-size: 1.3rem; }
	.flabel { width: 62px; }
	.info div { grid-template-columns: 1fr; gap: 2px; }
}

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

/* ---------- Descripción ---------- */
.about { display: grid; gap: 8px; padding-top: 16px; border-top: 1.5px solid var(--fg); }
.about h2 { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.about p { font-size: 1.12rem; line-height: 1.55; max-width: 60ch; }

/* Ventana ancha (resultados con tarjetas) */
.sheet.wide { width: min(920px, 100%); }


/* ---------- Identidad de color en la ficha ---------- */
/* Arriba de la página, un baño suave del color del perfume */
body { position: relative; }
body::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 1100px; pointer-events: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--page-tint, #fff) 18%, var(--bg)) 0%, color-mix(in srgb, var(--page-tint, #fff) 7%, var(--bg)) 55%, var(--bg) 100%);
	opacity: 0; transition: opacity .7s var(--ease); }
body.tinted::before { opacity: 1; }
/* Un tono profundo del mismo color para precio, botón y detalles */
.pdp { --deep: color-mix(in srgb, var(--liq) 50%, #121110); }
/* La foto queda sola sobre el color de la página, sin recuadro */
.pdp-art { background: transparent; }
.pdp .pdp-line, .pdp .pdp-price { color: var(--deep); }
.pdp .btn.add { background: var(--deep); }
.pdp .qty { box-shadow: inset 0 0 0 1.5px var(--deep); }
.pdp .dots i.on { background: var(--deep); }
.pdp .pdp-tags span { background: color-mix(in srgb, var(--liq) 16%, #fff); }
.pdp .size:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.pdp .about, .pdp .pdp-notes { border-top-color: var(--deep); }

/* ---------- Ficha: las notas van debajo de la foto (en el celular, después del botón de compra) ---------- */
.pdp { grid-template-areas: "back back" "art info" "notes info"; grid-template-rows: auto auto 1fr; }
.pdp > .topbar { grid-area: back; }
.pdp-art { grid-area: art; position: relative; top: auto; }
.pdp-info { grid-area: info; }
.pdp-notes { grid-area: notes; align-self: start; display: grid; gap: 10px; padding-top: 14px; border-top: 1.5px solid var(--fg); }
.pdp-notes h2 { font: 800 2rem/1 var(--display); font-stretch: 62%; text-transform: uppercase; }
/* Acordes: barras del color de cada acorde; el largo es cuánto pesa en el perfume */
.accords { display: grid; gap: 3px; }
.accord { width: var(--w); box-sizing: border-box; padding: 6px 12px; border-radius: 0 6px 6px 0; background: var(--c); color: var(--t);
	font: 600 .85rem/1.2 var(--util); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transform-origin: left; animation: barGrow .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes barGrow { from { transform: scaleX(.35); } }
/* Notas de salida, corazón y fondo en texto simple */
.nlines { display: grid; gap: 4px; margin: 6px 0 0; }
.nlines div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.nlines dt { font: 600 .7rem var(--util); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nlines dd { margin: 0; font-style: italic; }
/* Mood del perfume: puntitos de color */
.moods { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: -4px; font: .85rem var(--util); }
.mood { display: inline-flex; align-items: center; gap: 7px; }
.mood::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
/* Estilos, acordes y notas se tocan para ver todos los perfumes que los tienen */
.mood { padding: 2px 0; text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.mood:hover { text-decoration-color: currentColor; }
.accord { display: block; transition: filter .2s, translate .25s var(--ease); }
.accord:hover { filter: brightness(1.08) saturate(1.15); translate: 4px 0; }
.nlink { font-style: italic; text-decoration: underline dotted color-mix(in srgb, var(--fg) 35%, transparent); text-underline-offset: 3px; transition: color .2s; }
.nlink:hover { color: var(--deep); text-decoration-style: solid; }
.chip-mood { display: inline-flex; align-items: center; gap: 7px; }
.chip-mood::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip-mood[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--bg); }
.h-dot { display: flex; align-items: center; gap: .22em; }
.h-dot::before { content: ""; flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .1em color-mix(in srgb, var(--c) 22%, transparent); }
.card-why { margin-top: 6px; font: .74rem/1.3 var(--util); color: var(--muted); }
@media (max-width: 900px) {
	.pdp { grid-template-areas: "back" "art" "info" "notes"; grid-template-rows: none; }
}


/* ---------- Preguntas frecuentes ---------- */
#preguntas { scroll-margin-top: calc(var(--top-h) + 8px); }
.faq-list { max-width: 880px; border-bottom: 1.5px solid var(--fg); }
.faq details { border-top: 1.5px solid var(--fg); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; font: 600 1.05rem/1.3 var(--util); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.9rem/1 var(--util); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--muted); }
.faq-a { padding: 0 44px 20px 0; animation: faqIn .35s var(--ease); }
.faq-a p { max-width: 68ch; }
.faq-a .link { display: block; width: fit-content; margin-top: 10px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* Entregas en el formulario y enlaces del pie y de la información */
.form .opt small { display: block; color: var(--muted); font-size: .8rem; }
.info-more, .foot-links { margin-top: 14px; font-family: var(--util); }
/* Botón al canal de YouTube, en el pie */
.yt-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 16px 10px 12px; font: 600 .85rem var(--util); text-decoration: none;
	box-shadow: inset 0 0 0 1.5px var(--fg); transition: box-shadow .2s, transform .2s var(--ease); }
.yt-btn svg { width: 30px; height: 21px; flex: none; }
.yt-btn:hover { box-shadow: inset 0 0 0 1.5px var(--fg), 4px 4px 0 color-mix(in srgb, var(--fg) 18%, transparent); transform: translate(-2px, -2px); }
.foot-sync { margin-top: 10px; font: .78rem var(--util); color: var(--muted); }
.foot-sync:empty { display: none; }
