/* =====================================================================
   The Look · Diciembre 2026 — vino profundo, porcelana cálida, champaña
   ===================================================================== */
:root {
  --bg: #f2ebe8;
  --surface: #fbf7f5;
  --stage-a: #fdfaf8;
  --stage-b: #ebdfdc;
  --ink: #1f1216;
  --muted: #6c585e;
  --line: rgba(60, 16, 28, .12);
  --wine: #6e0f20;
  --wine-deep: #2b0710;
  --champagne: #e7cf9f;
  --ok: #1d6b45;

  --r-lg: 28px;
  --r-md: 20px;
  --shadow: 0 1px 2px rgba(60, 16, 28, .05), 0 12px 32px -18px rgba(60, 16, 28, .22);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { user-select: none; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.hero :focus-visible, .advisor :focus-visible, .legal-strip :focus-visible { outline-color: var(--champagne); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 12px 18px; border-radius: 99px; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.legal-strip { background: #1d040a; color: #eadfd9; text-align: center; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; padding: 7px 16px; line-height: 1.4; }
.legal-strip span + span { opacity: .65; }

.bar { position: sticky; top: 0; z-index: 30; color: #fff7f2; background: var(--wine-deep); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.bar.is-light { color: var(--ink); background: rgba(242, 235, 232, .78); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 1px 0 var(--line); }
.bar__row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
.brand { grid-row: 1; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; min-height: 52px; display: flex; align-items: center; }
.nav { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: space-between; margin-inline: -8px; }
.nav button { min-height: 44px; padding: 0 8px; font-size: 12.5px; font-weight: 500; opacity: .82; transition: opacity .2s; }
.bag-btn { grid-row: 1; grid-column: 2; position: relative; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; transition: transform .16s var(--ease-out); }
.bag-btn:active { transform: scale(.94); }
.bag-btn svg { width: 22px; height: 22px; }
.bag-btn__count { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--champagne); color: var(--wine-deep); font-size: 10px; font-weight: 700; line-height: 17px; font-variant-numeric: tabular-nums; transition: transform .3s var(--ease-out), opacity .2s; }
.bag-btn__count[data-empty="true"] { transform: scale(.6); opacity: 0; }
.is-light .bag-btn__count { background: var(--wine); color: #fff; }

@media (min-width: 880px) {
  .bar__row { grid-template-columns: 1fr auto 1fr; }
  .brand { min-height: 60px; }
  .nav { grid-row: 1; grid-column: 2; gap: 14px; margin: 0; }
  .bag-btn { grid-column: 3; justify-self: end; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; font-size: 13.5px; font-weight: 600; text-decoration: none; text-align: center; border: 1px solid transparent; transition: transform .16s var(--ease-out), background-color .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn--light { background: #fbf4ee; color: var(--wine-deep); }
.btn--ghost { border-color: rgba(255, 244, 236, .32); color: #fff7f2; }
.btn--dark { background: var(--wine); color: #fff; }
.btn--line { border-color: rgba(60, 16, 28, .24); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link--light { color: #fff2ea; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -1px; color: #fff7f2; overflow: hidden;
  background:
    radial-gradient(90% 60% at 72% 62%, rgba(150, 32, 52, .85), transparent 70%),
    radial-gradient(60% 40% at 8% 0%, rgba(231, 207, 159, .13), transparent 70%),
    var(--wine-deep);
}
.hero__grid { display: grid; gap: 28px; padding: 34px 0 30px; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.hero h1 { margin: 12px 0 14px; font-size: clamp(2.5rem, 11.5vw, 5.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; animation: lineUp 1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.line--accent { font-size: .66em; letter-spacing: -.035em; }
.line--accent > span { background: linear-gradient(100deg, #cfae72 10%, #f8ebcb 45%, #cfae72 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: rgba(255, 240, 233, .76); font-size: 14px; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__cta .btn { padding: 0 20px; }
.rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.showcase { width: min(360px, 100%); margin-inline: auto; }
.showcase__stage { position: relative; display: block; width: 100%; aspect-ratio: 1 / .96; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(75% 65% at 50% 38%, #fffdfb 0%, #f4e9e3 60%, #dfcbc4 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.showcase__stage img { position: absolute; inset: 4% 4% 0; width: 92%; height: 96%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: scale(.95) translateY(10px); filter: blur(6px); transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out), filter .7s var(--ease-out); }
.showcase__stage img.is-on { opacity: 1; transform: none; filter: blur(0); }
.showcase__meta { margin-top: 12px; }
.showcase__name { min-height: 22px; font-size: 13px; font-weight: 500; }
.showcase__name b { color: var(--champagne); font-weight: 600; margin-left: 8px; font-variant-numeric: tabular-nums; }
.dots { display: flex; justify-content: center; }
.dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 240, 233, .24); overflow: hidden; display: block; }
.dots i::after { content: ""; display: block; height: 100%; background: var(--champagne); transform: scaleX(0); transform-origin: left; }
.dots [aria-current="true"] i::after { animation: fill 5s linear forwards; }
.showcase.is-paused .dots i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 56px 0 44px; min-height: min(680px, calc(100svh - 92px)); text-align: left; }
  .hero__cta { justify-content: flex-start; margin-top: 32px; }
  .hero__sub { font-size: 16px; }
  .showcase { width: min(460px, 100%, 62svh); text-align: center; justify-self: end; }
  .showcase__stage { aspect-ratio: 4 / 4.5; }
}

/* ---------- Secciones ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); scroll-margin-top: 90px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section h2 { font-size: clamp(1.65rem, 4.4vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.section h2 span { color: #9c868b; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Escenario de producto (multiply funde el blanco de la foto) ---------- */
.stage { position: relative; display: block; overflow: hidden; isolation: isolate; background: radial-gradient(90% 80% at 50% 35%, var(--stage-a), var(--stage-b)); }
.stage img { mix-blend-mode: multiply; }
.stage > img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); transition: transform .7s var(--ease-out); }
.stage--set > img { position: absolute; top: 0; height: 100%; width: 70%; transform: scale(1); }
.stage--set > img:nth-child(1) { left: -6%; }
.stage--set > img:nth-child(2) { left: 36%; }
.stage--3 > img { width: 58%; }
.stage--3 > img:nth-child(1) { left: -9%; }
.stage--3 > img:nth-child(2) { left: 21%; }
.stage--3 > img:nth-child(3) { left: 51%; }

/* ---------- Carril de combos ---------- */
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .16s var(--ease-out), opacity .2s; }
.rail-nav button:active { transform: scale(.94); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rail-nav { display: flex; } }
.rail { --gut: max(20px, (100vw - 1160px) / 2); display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 390px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) 34px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: start; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.card__open { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card .stage { aspect-ratio: 1; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 14px 12px; }
.card__name { font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; font-variant-numeric: tabular-nums; }
.price b { font-size: 15px; font-weight: 600; }
.price s { font-size: 11.5px; color: var(--muted); }
.add { position: relative; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .16s var(--ease-out), background-color .25s; }
.add:active { transform: scale(.92); }
.add.is-done { background: var(--ok); }
.tag { position: absolute; z-index: 1; top: 12px; left: 12px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: rgba(255, 251, 249, .86); color: var(--wine); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card--wide .stage { aspect-ratio: 4 / 3.3; }
.card--wide .card__body { padding: 18px 18px 16px; gap: 6px; }
.card--wide .card__name { font-size: 17px; }
.card__sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(60, 16, 28, .05), 0 28px 48px -24px rgba(60, 16, 28, .32); }
  .card:hover .stage:not(.stage--set) > img { transform: scale(1.15); }
  .card:hover .stage--set > img { transform: scale(1.05); }
  .nav button:hover { opacity: 1; }
  .btn--light:hover { background: #fff; }
  .btn--ghost:hover { border-color: rgba(255, 244, 236, .75); }
  .btn--dark:hover { background: #87162a; }
  .btn--line:hover { border-color: var(--wine); }
  .add:hover { background: #87162a; }
}

/* ---------- Barra de herramientas ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.segmented { position: relative; display: flex; width: 100%; padding: 4px; border-radius: 99px; background: rgba(110, 15, 32, .07); }
.segmented button { position: relative; z-index: 1; flex: 1 1 auto; min-height: 44px; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.segmented button[aria-pressed="true"] { color: var(--ink); }
.segmented__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 100px; transform-origin: left; border-radius: 99px; background: var(--surface); box-shadow: 0 1px 6px rgba(60, 16, 28, .13); transition: transform .35s var(--ease-drawer), width .35s var(--ease-drawer); }
.toolbar__right { display: flex; gap: 8px; width: 100%; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid transparent; transition: border-color .2s; }
.search:focus-within { border-color: var(--wine); }
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; }
.filter-btn { min-height: 48px; padding: 0 20px; border-radius: 99px; background: var(--surface); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.filter-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.filter-btn b { min-width: 18px; height: 18px; border-radius: 9px; background: var(--wine); color: #fff; font-size: 10px; line-height: 18px; }
@media (min-width: 880px) {
  .segmented, .toolbar__right { width: auto; }
  .segmented button { padding: 0 22px; }
  .search { width: 230px; }
}
.filters { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease-out), opacity .25s; }
.filters.is-open { grid-template-rows: 1fr; opacity: 1; }
.filters__inner { overflow: hidden; display: grid; gap: 4px 40px; }
.filters__inner > div { padding-top: 16px; }
.filters p { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (min-width: 880px) { .filters__inner { grid-template-columns: 1fr 1.5fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px; }
.chip { min-height: 44px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease-out); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.grid .card.reveal { transition: opacity .6s var(--ease-out) var(--d, 0ms), transform .5s var(--ease-out), box-shadow .4s var(--ease-out); }
.grid .tag { top: 9px; left: 9px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .card__name { font-size: 14px; } .card__body { padding: 16px 16px 14px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 420px) { .grid .price { flex-direction: column; } .grid .tag { font-size: 8.5px; padding: 4px 7px; } }
.empty { text-align: center; padding: 56px 0; display: grid; gap: 16px; justify-items: center; }
.more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Asesor, caminos, pie ---------- */
.advisor { display: grid; gap: 22px; padding: 36px 26px; border-radius: var(--r-lg); color: #fff7f2; background: radial-gradient(70% 110% at 90% 10%, #8d1b30, transparent 70%), var(--wine-deep); }
.advisor p { margin-top: 8px; color: rgba(255, 240, 233, .74); }
.advisor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
@media (min-width: 880px) { .advisor { grid-template-columns: 1fr auto; align-items: center; padding: 56px 60px; } }
.ways { display: grid; gap: 14px; }
.ways article { background: var(--surface); border-radius: var(--r-md); padding: 26px; }
.ways__tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.ways h3 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.ways h3 + p { color: var(--muted); font-size: 14px; max-width: 46ch; }
@media (min-width: 760px) { .ways { grid-template-columns: 1fr 1fr; gap: 18px; } .ways article { padding: 36px; } }

.footer { margin-top: clamp(72px, 10vw, 128px); padding: 34px 0 calc(120px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.footer p { max-width: 92ch; margin-bottom: 10px; }
.footer__id { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; column-gap: 24px; color: var(--ink); }

/* ---------- Barra flotante ---------- */
.dock { position: fixed; z-index: 25; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(430px, 100% - 24px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 12px; padding: 11px 11px 12px 20px; border-radius: 24px; text-align: left; color: #fff7f2; background: rgba(43, 7, 16, .86); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 18px 40px -16px rgba(30, 4, 10, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .5s var(--ease-drawer), visibility .5s; }
.dock.is-up { transform: translate(-50%, 0); visibility: visible; }
.dock__info { display: grid; min-width: 0; }
.dock__info strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dock__info small { font-size: 11px; color: rgba(255, 240, 233, .75); }
.dock__go { background: #fbf4ee; color: var(--wine-deep); border-radius: 99px; padding: 12px 18px; font-size: 12.5px; font-weight: 600; }
.dock .meter { grid-column: 1 / -1; margin-right: 9px; background: rgba(255, 255, 255, .16); }
.meter { display: block; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(110, 15, 32, .12); }
.meter i { display: block; height: 100%; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out), background-color .3s; }
.meter.is-full i { background: #6fd3a0; }

/* ---------- Hojas (dialog nativo: foco atrapado y restaurado) ---------- */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: inherit; background: rgba(25, 5, 11, 0); display: none; align-items: flex-end; justify-content: center; overflow: hidden; transition: background-color .3s ease; }
.sheet[open] { display: flex; }
.sheet::backdrop { background: transparent; }
.sheet.is-in { background: rgba(25, 5, 11, .52); }
.sheet__panel { position: relative; display: flex; flex-direction: column; width: 100%; max-height: 94dvh; background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; transform: translateY(100%); transition: transform .45s var(--ease-drawer), opacity .25s ease; }
.sheet.is-in .sheet__panel { transform: none; }
.sheet__panel.is-dragging { transition: none; }
.sheet__grab { position: absolute; z-index: 6; top: 0; left: 50%; translate: -50% 0; width: 140px; height: 28px; touch-action: none; cursor: grab; }
.sheet__grab::after { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 38px; height: 5px; border-radius: 5px; background: rgba(60, 16, 28, .22); }
.sheet__close { position: absolute; z-index: 7; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 251, 249, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 8px rgba(60, 16, 28, .12); transition: transform .16s var(--ease-out); }
.sheet__close:active { transform: scale(.93); }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 26px 20px 14px; }
.sheet__head .sheet__close { position: static; }
.sheet__head h2 { font-size: 22px; letter-spacing: -.03em; font-weight: 600; }
.sheet__head p { font-size: 12px; color: var(--muted); }

@media (min-width: 760px) {
  .sheet { align-items: center; padding: 28px; }
  .sheet__grab { display: none; }
  .sheet__panel { border-radius: var(--r-lg); max-height: 100%; transform: translateY(16px) scale(.97); opacity: 0; }
  .sheet.is-in .sheet__panel { transform: none; opacity: 1; }
  .sheet--product .sheet__panel { width: min(1040px, 100%); height: min(680px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .sheet--product .product { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
  .sheet--product .product__buy { grid-column: 2; grid-row: 2; z-index: 2; }
  .sheet--product .product__info { overflow-y: auto; padding-bottom: 150px; }
  .sheet--product .viewer { height: 100%; }
  .sheet--center .sheet__panel { width: min(680px, 100%); }
  .sheet--side { justify-content: flex-end; align-items: stretch; padding: 10px; }
  .sheet--side .sheet__panel { width: 430px; height: 100%; transform: translateX(calc(100% + 20px)); opacity: 1; }
}

/* ---------- Visor ---------- */
.viewer { display: flex; flex-direction: column; background: var(--stage-a); padding-bottom: 12px; min-width: 0; user-select: none; -webkit-user-select: none; }
.viewer__main { position: relative; flex: 1; min-height: 0; }
.viewer__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.viewer__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.frame { position: relative; width: min(100%, 46dvh); aspect-ratio: 1; isolation: isolate; background: var(--stage-a); transition: transform .45s var(--ease-out); cursor: zoom-in; }
.frame > img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.slide.is-zoom .frame { transform: scale(2.3); cursor: grab; }
.slide.is-zoom { touch-action: none; }
.slide.is-panning .frame { transition: none; cursor: grabbing; }
.slide.is-zoom .spot { opacity: 0; pointer-events: none; }
.spot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; transition: opacity .2s; }
.spot::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 251, 249, .9); color: var(--wine); font-size: 17px; font-weight: 500; line-height: 1; box-shadow: 0 2px 10px rgba(60, 16, 28, .28); transition: transform .3s var(--ease-out), background-color .2s, color .2s; }
.spot::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 251, 249, .95); animation: ping 2.4s var(--ease-out) 3; pointer-events: none; }
.spot[aria-expanded="true"]::before { transform: rotate(45deg); background: var(--wine); color: #fff; }
@keyframes ping { from { transform: scale(1); opacity: 1; } 70%, to { transform: scale(2); opacity: 0; } }
.note { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 6px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 251, 249, .84); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 14px 34px -16px rgba(60, 16, 28, .35); opacity: 0; transform: translateY(8px) scale(.97); pointer-events: none; transition: opacity .22s var(--ease-out), transform .3s var(--ease-out); }
.note.is-on { opacity: 1; transform: none; }
.note strong { display: block; font-size: 12.5px; font-weight: 600; }
.note span { font-size: 12px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.viewer__caption { text-align: center; font-size: 11.5px; font-weight: 500; color: var(--muted); min-height: 20px; padding: 4px 20px; }
.viewer__thumbs { display: flex; justify-content: center; gap: 8px; padding: 4px 12px; }
.thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--stage-a); isolation: isolate; overflow: hidden; border: 1.5px solid transparent; transition: border-color .2s, transform .16s var(--ease-out); }
.thumb:active { transform: scale(.94); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.15); }
.thumb[aria-current="true"] { border-color: var(--wine); }
.modes { display: flex; align-self: center; gap: 2px; padding: 3px; margin-top: 4px; border-radius: 99px; background: rgba(110, 15, 32, .08); }
.modes button { min-height: 44px; min-width: 76px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.modes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 6px rgba(60, 16, 28, .13); }
.spin ::selection, .viewer ::selection { background: transparent; }
.spin { height: 100%; display: grid; place-items: center; touch-action: pan-y; cursor: ew-resize; outline-offset: -4px; }
.spin .frame { cursor: inherit; }
.spin__hint { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 99px; background: rgba(255, 251, 249, .9); pointer-events: none; transition: opacity .3s; }
.spin.is-used .spin__hint { opacity: 0; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.sheet--product .viewer { height: min(54dvh, 480px); flex-shrink: 0; padding-top: 22px; }
.sheet--product .viewer .frame { width: min(100%, 36dvh, 340px); }
@media (min-width: 760px) {
  .sheet--product .viewer { height: 100%; padding: 20px 0 16px; }
  .sheet--product .viewer .frame { width: min(100%, 60dvh, 480px); }
}

/* ---------- Ficha de producto ---------- */
.sheet--product .sheet__panel { height: 94dvh; }
@media (min-width: 760px) { .sheet--product .sheet__panel { height: min(680px, 100%); } }
.product__info { padding: 22px 20px 24px; min-width: 0; }
@media (min-width: 760px) { .product__info { padding: 68px 34px 150px; } }
.product__info h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.product__sub { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.product__lead { margin: 16px 0; font-size: 14.5px; max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11px; font-weight: 500; padding: 6px 11px; border-radius: 99px; background: var(--surface); }
.options { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.options legend { font-size: 12px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.acc { margin-top: 20px; }
.acc details { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-size: 13px; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--wine); transition: transform .25s var(--ease-out); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc div { padding: 0 0 16px; font-size: 13px; color: var(--muted); }
.acc ul { margin: 0; padding-left: 18px; }
.acc details[open] div { animation: rise .3s var(--ease-out); }
.product__buy { display: flex; align-items: center; gap: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 20px; background: rgba(251, 247, 245, .86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line); }
.product__buy .price { flex-direction: column; }
.product__buy .price b { font-size: 19px; }
.product__buy .btn { flex: 1; }

/* ---------- Bolsa ---------- */
.ship { margin: 0 20px 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface); display: grid; gap: 9px; font-size: 12px; font-weight: 600; }
.ship .meter i { background: var(--wine); }
.ship .meter.is-full i { background: var(--ok); }
#bag-items { padding: 6px 20px 16px; }
.item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .stage { width: 76px; height: 76px; border-radius: 16px; }
.item h3 { font-size: 13px; font-weight: 600; line-height: 1.35; }
.item small { display: block; font-size: 11px; color: var(--muted); }
.item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; background: var(--surface); border-radius: 99px; }
.qty button { width: 44px; height: 44px; font-size: 18px; }
.qty span { min-width: 20px; text-align: center; font-size: 13px; }
.bag-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--muted); padding: 50px 0; }
.bag-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 9px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.total b { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-foot small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.45; }
.bag-foot .link { justify-self: center; }

/* ---------- Carrito guiado hacia la tienda oficial ---------- */
.guide { animation: stepIn .35s var(--ease-out); }
.guide__how { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--surface); border-radius: 18px; }
.guide__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(110, 15, 32, .09); font-size: 11.5px; font-weight: 600; transition: background-color .25s, color .25s; }
.guide li.is-done .guide__n { background: var(--ok); color: #fff; }
.guide__name strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.guide__name small { display: block; font-size: 11px; color: var(--muted); }
.guide li .btn { min-height: 44px; padding: 0 15px; font-size: 12px; }
.guide__wa { font-size: 10.5px; font-weight: 600; color: var(--wine); max-width: 80px; text-align: right; }

/* ---------- Asesor ---------- */
.quiz { padding: 34px 20px calc(26px + env(safe-area-inset-bottom)); }
.quiz__bar { display: flex; gap: 5px; width: 110px; margin-bottom: 22px; }
.quiz__bar i { flex: 1; height: 4px; border-radius: 4px; background: rgba(110, 15, 32, .14); }
.quiz__bar i.is-on { background: var(--wine); }
.quiz h2 { font-size: 25px; letter-spacing: -.03em; line-height: 1.15; font-weight: 600; margin-bottom: 20px; max-width: 18ch; outline: 0; }
.quiz__step { animation: stepIn .35s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(22px); } }
.choices { display: grid; gap: 9px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: 18px; background: var(--surface); text-align: left; transition: transform .16s var(--ease-out), box-shadow .2s; }
.choice:active { transform: scale(.98); }
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--wine); }
.choice strong { display: block; font-size: 14px; font-weight: 600; }
.choice small { display: block; font-size: 12px; color: var(--muted); }
.results { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 10px 12px 10px 10px; position: relative; }
.result .stage { height: 92px; border-radius: 12px; }
.result strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.quiz__foot { display: flex; gap: 22px; margin-top: 14px; }
.prose { padding: 34px 24px 30px; font-size: 13px; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: 18px; margin: 0 40px 18px 0; }
.prose p { margin-bottom: 12px; }

/* ---------- Avisos ---------- */
.toast { position: fixed; inset: 14px 0 auto; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); border: 0; padding: 12px 20px; border-radius: 99px; background: rgba(31, 18, 22, .92); color: #fff; font-size: 12.5px; font-weight: 500; opacity: 0; transform: translateY(-10px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.toast.is-in { opacity: 1; transform: none; }
.flyer { position: fixed; z-index: 90; border-radius: 50%; pointer-events: none; overflow: hidden; isolation: isolate; background: #fbf4ee; box-shadow: 0 14px 30px -8px rgba(30, 4, 10, .45); }
.flyer img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.noscript { text-align: center; padding: 40px; }

::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--ease-in-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, .rise, .quiz__step, .guide, .acc details[open] div, .spot::after, .dots i::after { animation: none !important; }
  .dots [aria-current="true"] i::after { transform: none; }
  .reveal { transform: none; transition: opacity .2s; }
  .showcase__stage img { transform: none; filter: none; }
  .sheet__panel, .sheet--side .sheet__panel { transform: none !important; opacity: 0; transition: opacity .2s; }
  .sheet.is-in .sheet__panel { opacity: 1; }
  .dock, .segmented__pill, .frame, .note, .toast, .card, .stage > img { transition-duration: .01ms !important; }
  .card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar.is-light, .product__buy, .note, .sheet__close, .tag { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock { background: var(--wine-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
