/* =====================================================================
   FORTE SCENTS — estilos
   Sistema: Bodoni Moda (display) + Jost (texto). Dorado solo en lo que
   acerca al pago. Tres niveles de movimiento en <html>:
     .motion  completo (secuencias con scroll, máscaras, viajes)
     .lite    reducido (solo fundidos cortos; el sistema pidió menos movimiento)
     ninguno  sin Motion: todo visible y quieto
   Los estados iniciales ocultos van SIEMPRE bajo .motion o .lite.
   ===================================================================== */
/* Fuentes alojadas en el sitio (sin Google Fonts): llegan antes y sin terceros.
   Bodoni Moda: pesos 400-900 y tamaño óptico automático (los textos chicos
   reciben trazos más firmes, los títulos grandes el contraste fino).
   Jost: variable 100-900, permite pesos intermedios como 360 o 450. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost.woff2") format("woff2"); }
/* Signo $ de los precios: en Jost y más pequeño, para que no compita con las cifras */
@font-face { font-family: "Forte Moneda"; font-weight: 100 900; font-display: swap; src: url("fonts/jost.woff2") format("woff2"); unicode-range: U+0024; size-adjust: 74%; }

:root {
  --bg: #0b0a08;
  --bg-2: #13110d;
  --fg: #ece5d6;
  --muted: #958e80;
  --line: rgba(236, 229, 214, .15);
  --gold: #c9a45c;
  --paper: #e9e2d3;
  --ink: #15120e;
  --ink-muted: #645d51;
  --line-ink: rgba(21, 18, 14, .18);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --money: "Forte Moneda", var(--serif); /* precios: cifras en Bodoni, $ en Jost */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(1.25rem, 3.2vw, 3rem);
  --gap: clamp(.75rem, 1.6vw, 1.5rem);
  --lb: clamp(30px, 6.5vh, 64px);   /* alto de las barras de cine */
  --sh: 50vh;                        /* scroll que dura cada escena de la cartelera */
  --grade: brightness(.94) contrast(1.06) saturate(.88) sepia(.06); /* una sola gradación para todas las fotos */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  background: var(--bg); color: var(--fg);
  font: 360 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-kerning: normal; font-variant-ligatures: common-ligatures; font-optical-sizing: auto;
  font-synthesis-weight: none; hanging-punctuation: first;
  -webkit-tap-highlight-color: transparent;
}
body::after { /* grano fino */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; touch-action: manipulation; }
a { touch-action: manipulation; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.lock, html.lock body { overflow: hidden; }
.cut { position: fixed; inset: 0; z-index: 190; background: var(--bg); opacity: 0; pointer-events: none; }

/* ---------- Tipos base ---------- */
.lbl { font-size: .75rem; font-weight: 450; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Microtexto en mayúsculas: un punto más de peso para que no se pierda sobre negro */
.loader-row, .hdr-nav, .hdr-bag, .hero-sign, .hero-hint, .reel-skip, .f-btn, .sold-wa, .fam-count, .pd-close,
.sheet-head button, .drawer-head button, .bag-rm, .bag-fields span, .bag-item small, .card-no, .look-n, .pd-count { font-weight: 450; }
:where(b, strong) { font-weight: 500; }
/* Cursiva siempre en Bodoni: en medio de un texto en Jost se lee como acento editorial */
:where(em) { font-family: var(--serif); font-style: italic; }
:where(p, li, dd, .fam-desc, .card-meta) { text-wrap: pretty; }
:where(h1, h2, h3, .card-name, .scene-name, .pd-rel b, .faq-item > button span) { text-wrap: balance; }
/* Cifras alineadas en contadores y totales en Jost */
.f-applied .n, .col-title sup, .dock-bag b, .bag-bar-count, .fam-count, .loader-num { font-variant-numeric: lining-nums tabular-nums; }
.h-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(3.3rem, 11.5vw, 11rem); line-height: .88; letter-spacing: -.035em; text-wrap: balance; }
.h-xl em, .h-lg em { font-style: italic; letter-spacing: -.02em; }
.pm { font-style: normal; margin-left: -.1em; } /* puntuación de cierre pegada a su palabra */
.h-lg { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.03em; }
.ulink { position: relative; display: inline-block; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--e-out); }
@media (hover: hover) { .ulink:hover::after { transform: scaleX(1); transform-origin: left; } }

/* Palabras que suben desde una máscara (la reserva inferior evita cortar la g y la j) */
[data-rv="words"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .1em .32em; margin: -.12em -.1em -.32em; }
[data-rv="words"] .w > span { display: inline-block; }
.motion [data-rv="words"] .w > span { transform: translateY(125%); }
.motion [data-rv="up"] { opacity: 0; }
.lite [data-rv] { opacity: 0; }

/* ---------- Botones ----------
   Dorado lleno: lo que acerca al pago. Crema lleno: navegación principal.
   Línea: asesoría y acciones secundarias. Sobre papel, la compra es tinta llena. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 54px; padding: 0 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .45s var(--e-out), color .45s var(--e-out), border-color .45s var(--e-out), opacity .15s;
}
.btn:active { opacity: .82; }
.btn .m { display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .t { display: block; position: relative; transition: transform .55s var(--e-out); }
.btn .t::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.btn .ico { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--line { border-color: var(--line); color: var(--fg); }
@media (hover: hover) {
  .btn:hover .t { transform: translateY(-100%); }
  .btn--gold:hover { background: var(--fg); }
  .btn--line:hover { border-color: var(--fg); }
}
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.paper .btn--line { border-color: var(--line-ink); color: var(--ink); }

/* ---------- Entrada (primera visita del día) ---------- */
.loader { display: none; }
.motion:not(.seen) .loader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4rem var(--pad) var(--pad); background: var(--bg);
}
.loader-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loader-num { align-self: flex-end; overflow: hidden; font-family: var(--serif); font-size: clamp(7rem, 26vw, 22rem); line-height: .82; letter-spacing: -.05em; padding-bottom: .06em; }
.loader-num span { display: block; }

/* ---------- Cursor contextual ("Ver") ---------- */
.cur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .cur {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
    width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
    background: var(--fg); color: var(--bg); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    transform: scale(0);
  }
}

/* ---------- Header (se invierte solo sobre fondos claros) ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 64px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; mix-blend-mode: difference;
  transition: transform .7s var(--e-out);
}
.hdr.hide { transform: translateY(-100%); }
.hdr-logo { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.hdr-nav { display: none; gap: 2.2rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.hdr-nav a { min-height: 44px; display: inline-flex; align-items: center; opacity: .72; transition: opacity .3s; }
.hdr-bag { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.hdr-bag b { display: inline-block; font-weight: 400; min-width: .6em; text-align: center; }
@media (hover: hover) { .hdr-nav a:hover { opacity: 1; } }

/* ---------- Hero ----------
   Completo: secuencia fija ligada al scroll. Reducido o sin Motion: composición quieta. */
[hidden] { display: none !important; }
.hero { position: relative; height: 100vh; height: 100svh; }
.motion .hero { height: 175vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lite .hero-stage { opacity: 0; }
.hero-word {
  position: absolute; left: 50%; top: var(--wy, 50%); transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 400; font-size: calc(137.5vw / max(var(--len, 5), 5)); line-height: .8; letter-spacing: -.012em;
  text-transform: uppercase; white-space: nowrap; pointer-events: none; user-select: none; will-change: transform, opacity;
}
.hero-word--out { color: transparent; -webkit-text-stroke: 1px rgba(236, 229, 214, .55); }
.hero-word--in { color: var(--fg); }
.ch { display: inline-block; clip-path: inset(-40% -40% -9% -40%); }
.ch-i { display: inline-block; }
.motion .ch-i { transform: translateY(120%); }
.hero-media { position: absolute; inset: 0; z-index: 2; clip-path: inset(var(--it, 14%) var(--ir, 36%) var(--ib, 14%) var(--il, 36%) round 4px); will-change: clip-path; }
.hero-media-in { position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 30%, #b06a1e, #5a2f0c 45%, #150c05 100%); }
.motion .hero-media-in { clip-path: inset(50% 0% 50% 0%); }
#silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-statement { display: none; }
.motion .hero-statement {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 8.4vw, 8.6rem); line-height: .98; letter-spacing: -.03em; padding: 0 var(--pad);
}
.sl { display: block; overflow: hidden; padding: .06em .08em .26em; margin: -.06em 0 -.26em; }
.sl > span { display: block; transform: translateY(125%); will-change: transform; }
.sl em { font-style: italic; }
.hero-sign { display: block; margin-top: 2.2rem; font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: 0; }
.hero-foot {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(1.25rem, 4vh, 2.4rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; will-change: transform, opacity;
}
.hero-lede { font-size: 1rem; line-height: 1.55; color: rgba(236, 229, 214, .84); }
.hero-cta { display: grid; gap: 1.1rem; justify-items: start; width: 100%; }
.hero-foot .btn { width: 100%; }
.hero-hint, .hero-feat { display: none; }
.motion .hero-foot > * { opacity: 0; }
.hero-quote { padding: clamp(3.5rem, 9vw, 7rem) var(--pad) 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 6rem); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.hero-quote em { font-style: italic; }
.motion .hero-quote { display: none; }

/* ---------- Cine: barras de formato ancho (hero y cartelera) ---------- */
.lbx { display: none; }
.motion .lbx { display: block; position: absolute; z-index: 5; left: 0; right: 0; height: var(--lb); background: var(--bg); transform: scaleY(0); pointer-events: none; will-change: transform; }
.lbx--t { top: 0; transform-origin: center top; }
.lbx--b { bottom: 0; transform-origin: center bottom; }

/* ---------- En cartelera ----------
   Completo: escenas fijas ligadas al scroll. Reducido o sin Motion: carrusel horizontal. */
.reel { background: var(--bg); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1rem, 3vw, 2rem); }
.reel[hidden] { display: none; }
.reel-title { padding: 0 var(--pad) 1.2rem; }
.reel-scenes { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad); scroll-padding-left: var(--pad); }
.reel-scenes::-webkit-scrollbar { display: none; }
.scene { flex: 0 0 min(78vw, 24rem); min-width: 0; scroll-snap-align: start; }
.scene-bg, .reel-hud { display: none; }
.scene-in { display: grid; gap: 1.1rem; }
.scene-frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: #1a1611; cursor: pointer; }
.scene-frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); will-change: transform; }
.scene-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(11, 10, 8, .36)); box-shadow: inset 0 0 0 1px rgba(236, 229, 214, .08); }
.scene-txt { display: grid; gap: .7rem; justify-items: start; }
.scene-txt .lbl { color: rgba(236, 229, 214, .78); }
.sm { display: block; overflow: hidden; padding: .1em .06em .26em; margin: -.1em -.06em -.26em; }
.sm > span { display: block; will-change: transform; }
.scene-name { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 9vw, 3rem); line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
.scene-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.02rem, 1.7vw, 1.5rem); line-height: 1.25; color: rgba(236, 229, 214, .84); }
.scene-go { padding: .35rem; margin: -.35rem; }

.motion .reel { padding: 0; height: calc(100vh + var(--n, 4) * var(--sh)); }
.motion .reel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.motion .reel-stage { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .reel-scenes { display: block; padding: 0; overflow: visible; }
.motion .scene { position: absolute; inset: 0; visibility: hidden; }
.motion .scene-bg { display: block; position: absolute; inset: 0; background: #1b1610; background: color-mix(in srgb, var(--c, #a9763a) 24%, var(--bg)); opacity: 0; will-change: opacity; }
.motion .scene-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 45%, transparent 35%, rgba(5, 4, 3, .72) 100%); }
.motion .scene-in { position: absolute; z-index: 2; inset: var(--lb) var(--pad); grid-template-rows: minmax(0, 1fr) auto; gap: .9rem; padding: .9rem 0 .7rem; }
.motion .scene-frame { justify-self: center; width: auto; height: 100%; max-width: 100%; will-change: clip-path; }
.motion .scene-name { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
.motion .reel-hud { position: absolute; z-index: 6; left: var(--pad); right: var(--pad); bottom: 0; height: var(--lb); display: flex; align-items: center; gap: .8rem; opacity: 0; }
.reel-hud .lbl { color: rgba(236, 229, 214, .72); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-tc { display: inline-block; width: 8.6ch; contain: layout paint; }
.reel-line { position: relative; flex: 1; height: 1px; background: rgba(236, 229, 214, .2); }
.reel-line i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left center; }
.reel-skip { min-height: 44px; display: inline-flex; align-items: center; padding-left: .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }

/* ---------- Franja de datos (intertítulo antes de la colección) ---------- */
.facts { margin: clamp(2rem, 6vw, 5rem) var(--pad) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); }
.fact { padding: 1.3rem 0 2rem; border-bottom: 1px solid var(--line); }
.fact p { margin-top: .7rem; max-width: 15rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.2; }

/* ---------- Colección ---------- */
.col { padding: clamp(4.5rem, 10vw, 9rem) var(--pad) clamp(5rem, 10vw, 9rem); }
.col-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4.5vw, 3.6rem); }
.col-title sup { position: relative; top: -.1em; margin-left: .35em; font-family: var(--sans); font-size: max(.13em, .76rem); font-weight: 400; letter-spacing: .04em; vertical-align: top; color: var(--muted); }
.col-intro { max-width: 25rem; color: var(--muted); font-size: clamp(1rem, 1.05vw, 1.1rem); }
.filters { border-top: 1px solid var(--line); padding-top: .6rem; margin-bottom: clamp(1.6rem, 4vw, 3.4rem); display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .2rem; scroll-margin-top: .5rem; }
.f-row { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.f-group { position: relative; display: none; }
.f-btn { flex: none; min-height: 44px; padding: 0 .8rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color .35s; }
.f-btn[aria-pressed="true"] { color: var(--fg); }
.f-ind { position: absolute; left: 0; bottom: 8px; width: 0; height: 1px; background: var(--gold); pointer-events: none; }
.f-fam { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); }
.f-fam b { font-weight: 300; font-size: 1.1rem; line-height: 1; }
.f-tools { display: flex; gap: 1rem; min-width: 0; align-items: center; }
.f-open { flex: none; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); transition: border-color .35s; }
.search:focus-within { border-color: var(--fg); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.4; }
.search input { width: 100%; min-height: 44px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sort { display: none; flex: none; min-width: 0; }
.sort select {
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none;
  min-height: 44px; padding: 0 1.5rem 0 0; border-bottom: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece5d6' stroke-width='1.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 14px no-repeat;
}
.sort select option { background: var(--bg-2); color: var(--fg); text-transform: none; }
.f-applied { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .7rem; min-height: 2.6rem; }
.f-applied .n { margin-right: auto; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.f-chip { min-height: 36px; padding: 0 .8rem; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; letter-spacing: .04em; position: relative; }
.f-chip::before { content: ""; position: absolute; inset: -4px 0; } /* área táctil de 44 px */
.f-chip b { font-weight: 300; font-size: 1.05rem; line-height: 1; color: var(--muted); }
@media (hover: hover) { .f-btn:hover { color: var(--fg); } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: var(--gap); row-gap: clamp(1.8rem, 4vw, 3.6rem); }
.empty { grid-column: 1 / -1; padding: 3rem 0 4rem; max-width: 30rem; }
.empty p:first-child { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: .8rem; text-wrap: balance; }
.empty p + p { color: var(--muted); }
.empty-acts { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }

/* Tarjeta: una lámina. El campo toma el color del perfume y la foto entra con margen. */
.card { display: flex; flex-direction: column; min-width: 0; }
.card.is-lg { grid-column: span 2; }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; cursor: pointer;
  background: #18140f; background: color-mix(in srgb, var(--c, #a9763a) 20%, #0b0a08);
}
.card.is-lg .card-media { aspect-ratio: 4 / 5; }
.motion .card-media { clip-path: inset(100% 0% 0% 0%); }
.motion .card-body, .motion .card.sold { opacity: 0; }
.lite .card { opacity: 0; }

/* Visual del producto: foto, o etiqueta impresa sobre el color del perfume */
.vis { position: absolute; inset: 0; display: block; container-type: size; overflow: hidden; background: var(--c, #a9763a); }
.card-media .vis { inset: 6.5%; border-radius: 1px; }
.card.is-lg .card-media .vis { inset: 0; margin: auto; width: auto; height: 86%; aspect-ratio: 3 / 4; }
.vis-in {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(100deg, rgba(255,255,255,.17) 0%, rgba(255,255,255,0) 15%, rgba(0,0,0,0) 56%, rgba(0,0,0,.36) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--c, #a9763a) 80%, #fff) 0%, var(--c, #a9763a) 34%, color-mix(in srgb, var(--c, #a9763a) 58%, #000) 100%);
  transition: transform 1.3s var(--e-out), filter .6s;
}
.vis-in img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.vis.has-img { background: #d9d2c4; }
.vis.has-img .vis-in { background: none; }
.vis.has-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(11, 10, 8, .34)), rgba(201, 164, 92, .05); box-shadow: inset 0 0 0 1px rgba(236, 229, 214, .08); }
.vis-glass { position: absolute; inset: 0; background: linear-gradient(100deg, transparent calc(var(--gx, 22%) - 7%), rgba(255,255,255,.2) var(--gx, 22%), transparent calc(var(--gx, 22%) + 4%)); }
.vis-label {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(60cqw, 25rem); gap: min(2.2cqw, 1rem); padding: min(6.5cqw, 2.8rem) min(4cqw, 1.8rem);
  background: #ece5d6; color: #15120e;
  box-shadow: 0 min(1cqw, 6px) min(4cqw, 26px) rgba(0, 0, 0, .3);
}
.vis-label::before { content: ""; position: absolute; inset: min(1.6cqw, .65rem); border: 1px solid rgba(21, 18, 14, .32); pointer-events: none; }
.vis-label small { font-size: clamp(6px, 3cqw, .8rem); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; }
.vis-label b { font-family: var(--serif); font-weight: 400; font-size: min(9.6cqw, 3.7rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.vis-label i { font-style: normal; font-size: clamp(6px, 2.7cqw, .74rem); letter-spacing: .16em; text-transform: uppercase; opacity: .65; line-height: 1.2; }
@media (hover: hover) { .card:hover .vis-in { transform: scale(1.05); } }

.card-tag { position: absolute; z-index: 2; left: .6rem; top: .6rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(11, 10, 8, .6); color: var(--fg); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.card-no { display: none; }
.card-notes { display: none; }
@media (hover: hover) {
  .card-notes { display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 3rem .9rem .8rem; text-align: left; font-size: .82rem; letter-spacing: .06em; color: var(--fg); background: linear-gradient(transparent, rgba(11, 10, 8, .82)); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--e-out), transform .7s var(--e-out); }
  .card:hover .card-notes { opacity: 1; transform: none; }
}
.card-body { padding-top: .7rem; flex: none; }
.card-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.75vw, 1.65rem); line-height: 1.08; letter-spacing: -.01em; cursor: pointer; }
.card.is-lg .card-name { font-size: clamp(1.7rem, 2.8vw, 2.7rem); }
.card-meta { margin-top: .3rem; font-size: .84rem; letter-spacing: .04em; color: var(--muted); }
.card-foot { margin-top: .3rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--money); font-size: clamp(1.05rem, 1.4vw, 1.3rem); white-space: nowrap; }
.card-add { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .35s, color .35s, border-color .35s, transform .15s; }
.card-add::before, .card-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--e-out), width .3s; }
.card-add::after { transform: translate(-50%, -50%) rotate(90deg); }
.card-add:active { transform: scale(.92); }
.card-add.added { background: var(--gold); border-color: var(--gold); color: var(--bg); } /* marca de verificación */
.card-add.added::before { width: 6px; transform: translate(-135%, 40%) rotate(45deg); }
.card-add.added::after { width: 12px; transform: translate(-28%, -10%) rotate(-48deg); }
@media (hover: hover) { .card-add:not(.added):hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } }

/* Agotados: lista compacta al final */
.sold-list { grid-column: 1 / -1; margin-top: clamp(.5rem, 2vw, 1.5rem); }
.sold-list > .lbl { display: block; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.card.sold { flex-direction: row; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.sold-row { flex: 1; min-width: 0; min-height: 96px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .6rem 0; text-align: left; }
.sold-thumb { position: relative; width: 56px; height: 74px; overflow: hidden; border-radius: 2px; }
.sold-thumb .vis-in { filter: grayscale(1) brightness(.6); }
.sold-row b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.1; color: rgba(236, 229, 214, .78); }
.sold-row small { display: block; margin-top: .2rem; font-size: .84rem; letter-spacing: .04em; color: var(--muted); }
.sold-row .price { color: var(--muted); }
.sold-wa { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding-left: .6rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }

/* ---------- Familias: lista tipográfica ---------- */
.fams { padding: 0 var(--pad) clamp(5rem, 11vw, 10rem); }
.fams-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; padding-bottom: 1.2rem; }
.fams-head p:last-child { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.7rem); }
.fam-list { border-top: 1px solid var(--line); }
.fam-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: .3rem 1rem; padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-bottom: 1px solid var(--line); text-align: left; transition: opacity .45s var(--e-out); }
.fam-row:active { opacity: .7; }
.fam-name { display: block; grid-column: 1; font-family: var(--serif); font-size: clamp(2.6rem, 9vw, 8.4rem); line-height: .92; letter-spacing: -.035em; will-change: transform; }
.fam-desc { display: block; grid-column: 1; max-width: 24rem; font-size: .98rem; color: var(--muted); }
.fam-count { grid-column: 1; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.fam-thumb { position: relative; grid-column: 2; grid-row: 1 / span 3; width: 56px; height: 74px; overflow: hidden; border-radius: 2px; }
.fam-list.hovering .fam-row:not(.on) { opacity: .26; }
.fam-float { display: none; }
.fam-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2.4rem .9rem .8rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; color: var(--fg); background: linear-gradient(transparent, rgba(11, 10, 8, .8)); }
@media (hover: hover) and (pointer: fine) {
  .motion .fam-float { display: block; position: fixed; left: 0; top: 0; z-index: 60; width: 250px; aspect-ratio: 3 / 4; margin: -160px 0 0 30px; border-radius: 3px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.85); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
}

/* ---------- Bloque claro: La casa ---------- */
.paper { position: relative; background: var(--paper); color: var(--ink); }
.paper .lbl { color: var(--ink-muted); }
.casa { padding: clamp(6rem, 13vw, 11rem) var(--pad) clamp(3.5rem, 7vw, 6rem); display: grid; gap: 1.5rem var(--gap); }
.casa-text { font-family: var(--serif); font-size: clamp(1.95rem, 4.5vw, 4.4rem); line-height: 1.06; letter-spacing: -.025em; }
.motion .casa-text .sw { opacity: .14; }
.showcase { padding: 0 var(--pad); }
.showcase-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #d5ccb9; transform-origin: center top; will-change: transform; }
.showcase-frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* Tira de contactos */
.look { padding: clamp(1rem, 3vw, 2.5rem) 0 0; overflow: hidden; }
.look-head { padding: 0 var(--pad) 2rem; display: grid; gap: .7rem; }
.look-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.look-band { border-block: 1px solid var(--line-ink); padding: 1rem 0 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none; }
.look-band::-webkit-scrollbar { display: none; }
.look-strip { display: flex; gap: var(--gap); width: max-content; padding: 0 var(--pad); will-change: transform; }
.look-item { flex: none; width: min(58vw, 15rem); scroll-snap-align: start; text-align: left; }
.look-n { display: block; margin-bottom: .5rem; font-size: .74rem; letter-spacing: .14em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.look-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: #d5ccb9; }
.look-img img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.look-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 58%, rgba(11, 10, 8, .26)); }
.motion .look-img { clip-path: inset(100% 0% 0% 0%); }
.lite .look-item { opacity: 0; }
.look-cap { display: block; margin-top: .6rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.1; }

.steps { padding: clamp(5rem, 11vw, 9rem) var(--pad) clamp(5rem, 11vw, 9rem); }
.steps-grid { margin-top: 1.2rem; border-top: 1px solid var(--line-ink); display: grid; }
.step { padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line-ink); display: grid; gap: .8rem; align-content: start; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.6vw, 6.2rem); line-height: .95; letter-spacing: -.035em; }
.step p { max-width: 20rem; color: var(--ink-muted); font-size: 1.02rem; }

/* ---------- Preguntas ---------- */
.faq-sec { padding: clamp(5rem, 11vw, 9rem) var(--pad); display: grid; gap: 2.5rem var(--gap); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item > button { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; text-align: left; font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.15; letter-spacing: -.01em; }
.faq-item i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-item i::before, .faq-item i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .6s var(--e-out); }
.faq-item i::after { transform: rotate(90deg); }
.faq-item.open i::after { transform: rotate(0deg); }
.js .faq-a { height: 0; overflow: hidden; }
.faq-a p { padding: 0 0 1.5rem; max-width: 36rem; color: var(--muted); }

/* ---------- Cierre + footer ---------- */
.ftr { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(5rem, 11vw, 9rem) var(--pad) 5.5rem; }
.ftr-cta { display: grid; gap: 1.6rem; justify-items: start; }
.ftr-cta p { max-width: 24rem; color: var(--muted); }
.ftr-cols { margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gap); font-size: .98rem; }
.ftr-cols .lbl { margin-bottom: .5rem; }
.ftr-cols a { display: flex; align-items: center; min-height: 44px; }
.ftr-word { position: relative; margin-top: clamp(2.5rem, 6vw, 5rem); font-family: var(--serif); font-size: calc(137.5vw / max(var(--len, 5), 5)); line-height: .8; letter-spacing: -.012em; text-transform: uppercase; text-align: center; white-space: nowrap; user-select: none; }
.ftr-word span { display: block; }
.ftr-word--out { color: transparent; -webkit-text-stroke: 1px rgba(236, 229, 214, .4); }
.ftr-word--in { position: absolute; inset: 0; color: var(--fg); }
.motion .ftr-word--in { clip-path: inset(100% 0% 0% 0%); }
.ftr-copy { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- Ficha de producto (pantalla completa) ---------- */
.pd { position: fixed; inset: 0; z-index: 160; }
.pd[hidden] { display: none; }
.pd-bg { position: absolute; inset: 0; background: var(--bg); touch-action: none; }
.pd-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pd-grid { display: grid; min-height: 100%; grid-template-rows: auto 1fr auto; }
.pd-visual { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 56vh; max-height: 56svh; overflow: hidden; background: #18140f; background: color-mix(in srgb, var(--c, #a9763a) 20%, #0b0a08); }
.pd-visual.flying > * { visibility: hidden; }
.pd-gal { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background-size: contain; background-position: center; background-repeat: no-repeat; }
.pd-gal::-webkit-scrollbar { display: none; }
.pd-gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; filter: var(--grade); scroll-snap-align: center; scroll-snap-stop: always; }
.pd-count { position: absolute; z-index: 2; left: var(--pad); bottom: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(11, 10, 8, .62); font-size: .74rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pd-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: .2rem; display: flex; justify-content: center; }
.pd-dots button { width: 30px; height: 44px; display: inline-grid; place-items: center; }
.pd-dots i { width: 22px; height: 2px; background: rgba(236, 229, 214, .38); box-shadow: 0 0 0 1px rgba(11, 10, 8, .25); transition: background-color .3s; }
.pd-dots button[aria-current="true"] i { background: var(--fg); }
.pd-info { padding: 1.5rem var(--pad) 2.2rem; }
.pd-grab { position: fixed; z-index: 6; top: .5rem; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(236, 229, 214, .5); box-shadow: 0 0 0 1px rgba(11, 10, 8, .2); pointer-events: none; }
.pd-close { position: fixed; z-index: 5; top: .8rem; right: var(--pad); min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 10, 8, .72); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; transition: background-color .35s, color .35s; }
.pd-ghost { position: fixed; z-index: 170; overflow: hidden; pointer-events: none; will-change: left, top, width, height; }
.pd-top { display: flex; justify-content: space-between; gap: 1rem; }
.pd-name { margin-top: .8rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
.pd-sub { margin-top: .8rem; color: var(--muted); font-size: 1rem; }
.pd-desc { margin-top: 1.2rem; max-width: 34rem; font-size: 1.06rem; line-height: 1.65; color: rgba(236, 229, 214, .86); }
.accords { margin-top: clamp(2rem, 4vw, 3rem); }
.accords ul { margin-top: 1rem; display: grid; gap: .75rem; }
.accords li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: center; gap: 1rem; }
.acc-name { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.acc-track { position: relative; height: 1px; background: var(--line); }
.acc-fill { position: absolute; left: 0; top: -1px; height: 3px; background: var(--fg); transform-origin: left center; }
.motion .acc-fill { transform: scaleX(0); }
.accords-note { margin-top: .9rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.pd-notes { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); display: grid; }
.pd-notes > div { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.pd-notes dd { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.pd-buy { margin-top: clamp(1.5rem, 3vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pd-price { font-family: var(--money); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 50%; transition: background-color .3s; }
.qty button:active { background: rgba(236, 229, 214, .14); }
.qty output { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.pd-actions { margin-top: 1.2rem; display: grid; gap: .7rem; }
.pd-actions [data-pd-add] { display: none; } /* en celular, el botón de compra vive en la barra fija */
.pd-sure { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.pd-rel { margin-top: clamp(2rem, 4vw, 3rem); }
.pd-rel ul { margin-top: .7rem; border-top: 1px solid var(--line); }
.pd-rel button { width: 100%; min-height: 76px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .5rem 0; border-bottom: 1px solid var(--line); text-align: left; transition: padding .5s var(--e-out); }
.pd-rel-img { position: relative; width: 44px; height: 58px; overflow: hidden; border-radius: 2px; }
.pd-rel b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.1; }
.pd-rel small { display: block; margin-top: .15rem; font-size: .84rem; color: var(--muted); letter-spacing: .04em; }
.pd-rel span.price { font-size: 1.05rem; }
/* Barra de compra: siempre a la vista en celular */
.pd-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pd-bar-price { font-family: var(--money); font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.pd-bar .btn { flex: 1; max-width: 17rem; min-height: 50px; padding: 0 1rem; }
@media (hover: hover) {
  .qty button:hover { background: rgba(236, 229, 214, .1); }
  .pd-close:hover { background: var(--fg); color: var(--bg); }
  .pd-rel button:hover { padding-left: .6rem; }
}

/* ---------- Hojas inferiores (filtros; la bolsa en celular) ---------- */
.sheet { position: fixed; inset: 0; z-index: 166; }
.sheet[hidden] { display: none; }
.sheet-bg, .drawer-bg { position: absolute; inset: 0; background: rgba(5, 4, 3, .66); touch-action: none; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88svh; display: flex; flex-direction: column; background: var(--bg-2); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.sheet-grab { position: absolute; top: .55rem; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: currentColor; opacity: .3; }
.sheet-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding: 1.5rem 1.25rem .5rem; touch-action: none; }
.sheet-head h2, .drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; }
.sheet-head button, .drawer-head button { min-height: 44px; padding-left: 1rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.25rem .6rem; }
.fs-group { padding: .9rem 0 1rem; border-top: 1px solid var(--line); }
.fs-group .lbl { display: block; margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; letter-spacing: .04em; transition: background-color .25s, color .25s, border-color .25s; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sheet-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; padding: .8rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------- Bolsa ---------- */
.drawer { position: fixed; inset: 0; z-index: 165; }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 92vh; height: 92svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 18px 18px 0 0; }
.drawer-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding: 1.6rem 1.4rem .8rem; touch-action: none; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.4rem; }
.bag-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line-ink); }
.bag-thumb { position: relative; width: 64px; height: 84px; border-radius: 2px; overflow: hidden; }
.bag-thumb .vis-label { width: 78cqw; padding: 7cqw 4cqw; }
.bag-thumb .vis-label small, .bag-thumb .vis-label i, .bag-thumb .vis-label::before { display: none; }
.bag-thumb .vis-label b { font-size: 13cqw; }
.bag-item small { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.bag-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.bag-item .qty { margin-top: .5rem; border-color: var(--line-ink); }
.bag-item .qty button { width: 44px; height: 40px; }
.bag-item .qty button:active { background: rgba(21, 18, 14, .1); }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.bag-rm { min-height: 44px; padding-left: .8rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.bag-empty { padding: 3rem 0; }
.bag-empty p:first-child { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.bag-empty p + p { margin: .6rem 0 1.6rem; color: var(--ink-muted); }
.drawer-foot { padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-ink); }
.bag-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.bag-fields span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.bag-fields input { width: 100%; min-height: 46px; font-size: 16px; outline: none; border-bottom: 1px solid var(--line-ink); transition: border-color .3s; }
.bag-fields input::placeholder { color: rgba(21, 18, 14, .45); }
.bag-fields input:focus { border-color: var(--ink); }
.bag-total { margin-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; }
.bag-total strong { font-family: var(--money); font-weight: 400; font-size: 2.2rem; letter-spacing: -.02em; }
.bag-note { margin: .1rem 0 .9rem; font-size: .9rem; color: var(--ink-muted); }
.drawer .btn--gold { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .drawer .btn--gold:hover { background: #000; } .bag-rm:hover { color: var(--ink); } .bag-item .qty button:hover { background: rgba(21, 18, 14, .08); } }

/* ---------- Muelle inferior (celular y tablet) ---------- */
.dock {
  position: fixed; z-index: 96; left: 50%; bottom: calc(.7rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(19, 17, 13, .96); border: 1px solid rgba(236, 229, 214, .2);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .85);
  transform: translate(-50%, 170%); transition: transform .6s var(--e-out);
}
.dock.show { transform: translate(-50%, 0); }
.dock > * { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: background-color .3s, color .3s; }
.dock > *:active { background: rgba(236, 229, 214, .12); }
.dock-wa { width: 46px; }
.dock-wa svg { width: 20px; height: 20px; }
.dock-mid { padding: 0 1.05rem; }
.dock-bag { padding: 0 1rem; }
.dock-bag b { font-weight: 500; min-width: 1.4em; height: 1.4em; display: inline-grid; place-items: center; border-radius: 50%; }
.dock-bag strong { display: none; font-family: var(--money); font-weight: 500; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.dock-bag.has { background: var(--gold); color: var(--bg); }
.dock-bag.has b { background: var(--bg); color: var(--fg); }
.dock-bag.has strong { display: inline; }
.dock-bag.has:active { background: var(--fg); }

/* ---------- Flotantes de escritorio ---------- */
.bag-bar, .wa-float { display: none; }
.toast { position: fixed; z-index: 175; top: 1rem; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 2rem); padding: .8rem 1.2rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .85rem; opacity: 0; pointer-events: none; }
.toast b { font-weight: 500; }
.fly { position: fixed; z-index: 180; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: none; }

/* ---------- Desde 640px ---------- */
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .step { border-bottom: 0; }
  .ftr-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.is-lg .card-media { aspect-ratio: 3 / 2; }
  .sort { display: block; }
  .sheet-panel { left: 50%; right: auto; width: min(34rem, 100%); margin-left: calc(min(34rem, 100%) / -2); }
}

/* ---------- Desde 900px (escritorio) ---------- */
@media (min-width: 900px) {
  :root { --sh: 75vh; }
  .hdr-nav { display: flex; }
  .dock { display: none; }
  .motion .hero { height: 240vh; }
  .hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 1.5rem; }
  .hero-cta { width: auto; }
  .hero-foot .btn { width: auto; }
  .hero-lede { max-width: 23rem; font-size: 1.02rem; }
  .hero-hint { display: block; padding-bottom: .3rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  html:not(.motion) .hero-hint { visibility: hidden; }
  .hero-feat:not([hidden]) { justify-self: end; display: flex; align-items: center; gap: 1rem; padding: .5rem 1.2rem .5rem .5rem; text-align: left; border: 1px solid var(--line); border-radius: 3px; transition: border-color .4s, background-color .4s; }
  .hero-feat:hover { border-color: rgba(236, 229, 214, .5); background: rgba(236, 229, 214, .05); }
  .hero-feat-img { position: relative; flex: none; width: 60px; height: 80px; overflow: hidden; border-radius: 2px; }
  .hero-feat b { display: block; margin: .25rem 0 .15rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1; }
  .hero-feat small { font-size: .86rem; color: var(--muted); }

  .scene { flex-basis: min(30vw, 24rem); }
  .motion .scene-in { display: block; inset: 0; padding: 0; }
  .motion .scene-frame { position: absolute; right: 9vw; top: 50%; height: min(68vh, 46vw); max-width: none; margin-top: calc(min(68vh, 46vw) / -2); }
  .motion .scene-txt { position: absolute; left: var(--pad); bottom: calc(var(--lb) + clamp(2rem, 9vh, 6rem)); max-width: 54vw; gap: .9rem; }
  .motion .scene-name { font-size: clamp(3rem, 7.2vw, 8rem); line-height: .92; }
  .motion .reel-hud { padding-right: 4.6rem; } /* deja libre el botón de WhatsApp */

  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .f-group { display: flex; flex-wrap: wrap; margin-left: -.8rem; }
  .f-tools { width: min(26rem, 46%); }
  .f-open, .f-applied { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card.is-lg { grid-row: span 2; }
  .card.is-lg .card-media { aspect-ratio: auto; flex: 1; min-height: 0; }
  .card.is-lg .card-media .vis { height: min(84%, 72vh); }
  .card.is-lg .card-no { display: block; position: absolute; right: 1.1rem; bottom: .9rem; font-size: .74rem; letter-spacing: .14em; color: rgba(236, 229, 214, .5); font-variant-numeric: tabular-nums; }
  .card-media .vis { inset: 6%; }
  .sold-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .sold-list > .lbl { grid-column: 1 / -1; }

  .fam-row { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 2fr); align-items: baseline; }
  .fam-name, .fam-desc, .fam-count { grid-column: auto; }
  .fam-count { text-align: right; }
  .fam-thumb { display: none; }
  .casa { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .casa > .lbl { grid-column: 1 / span 3; padding-top: .9rem; }
  .casa-text { grid-column: 4 / -1; }
  .look-item { width: clamp(13rem, 19vw, 18rem); }
  .motion .look-band { overflow: hidden; }
  .faq-sec { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .faq-head { grid-column: 1 / span 5; }
  .faq { grid-column: 7 / -1; }
  .ftr { padding-bottom: 1.4rem; }
  .ftr-cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .ftr-cta .h-xl { grid-row: span 2; }
  .ftr-copy { padding-right: 4.2rem; }
  .ftr-cols a { min-height: 32px; }

  .pd-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pd-visual { position: sticky; top: 0; aspect-ratio: auto; max-height: none; height: 100vh; height: 100svh; }
  .pd-visual::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 22%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(11, 10, 8, .5)); }
  .pd-gal img { object-fit: cover; }
  .pd-gal { background-size: cover; }
  .pd-count { left: 1.4rem; bottom: 1.2rem; }
  .pd-info { padding: clamp(5rem, 9vh, 7rem) clamp(2rem, 5vw, 5rem) 4rem; align-self: center; max-width: 44rem; }
  .pd-bar, .pd-grab { display: none; }
  .pd-actions [data-pd-add] { display: inline-flex; }

  .drawer-panel { left: auto; top: 0; height: auto; width: min(460px, 100%); border-radius: 0; }
  .drawer-head { padding: 1.3rem 1.4rem 1rem; touch-action: auto; }
  .drawer .sheet-grab { display: none; }
  .bag-item .qty button { width: 38px; height: 38px; }
  .bag-rm { min-height: 32px; }

  .bag-bar {
    position: fixed; z-index: 95; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 1.4rem;
    min-height: 52px; padding: 0 1.3rem 0 .5rem; border-radius: 999px;
    display: flex; align-items: center; gap: .8rem; background: var(--gold); color: var(--bg);
    font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); transform: translateY(200%);
  }
  .bag-bar strong { font-family: var(--money); font-weight: 500; font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
  .bag-bar-count { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--fg); letter-spacing: 0; }
  .wa-float { opacity: 0; pointer-events: none; transform: translateY(12px); position: fixed; z-index: 96; right: 1.4rem; bottom: 1.4rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); transition: background-color .35s, color .35s, opacity .5s var(--e-out), transform .6s var(--e-out); }
  .wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
  .wa-float svg { width: 22px; height: 22px; }
  .wa-float:hover { background: var(--fg); color: var(--bg); }
}

/* ---------- Solo celular y tablet ---------- */
@media (max-width: 899px) {
  .hero-stage { --wy: 43.5%; }
  .hero-media { --it: 17%; --ir: 13%; --ib: 30%; --il: 13%; }
  .motion .hero-statement { font-size: 12.6vw; }
  .col, .fams, .steps, .faq-sec { scroll-margin-top: 0; }
}

/* Horizontal en celular: la portada no se encima */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-lede { display: none; }
  .hero-media { --it: 16%; --ir: 34%; --ib: 16%; --il: 34%; }
  .hero-foot { flex-direction: row; justify-content: flex-end; }
  .hero-foot .btn, .hero-cta { width: auto; }
  .drawer-panel { height: 100vh; height: 100svh; }
}

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