/* ==========================================================================
   Ultramarinos Vega — tienda de demostración, dirección "Gourmet a oscuras".
   Refs: landing Apple Watch Ultra (producto solo, palabra gigante detrás, luz),
   Samana/Montfort (inmersivo oscuro). Bodoni Moda + Hanken Grotesk.
   Cada producto trae su color de luz (--glow).
   ========================================================================== */
:root {
  --bg: #14100c;
  --bg-2: #1c1611;
  --card: #211a14;
  --line: rgba(243, 230, 211, 0.14);
  --text: #f3e6d3;
  --muted: #bba78f;
  --amber: #e8a46c;
  --amber-2: #f2bb8a;
  --ink: #14100c;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --glow: #b85c38;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.h2 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.02em; }
.h2 em { font-style: italic; color: var(--amber); }

/* ---------- Barra de demo ---------- */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 14px; padding: 8px 16px; background: #0b0907; color: var(--muted); font-size: 13px; text-align: center; }
.demo-bar a { display: inline-block; padding-block: 14px; margin-block: -14px; color: var(--amber); font-weight: 600; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(20, 16, 12, 0.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; min-height: 44px; gap: 8px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; text-decoration: none; color: var(--text); }
.logo small { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 200ms ease; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 600; transition: border-color 200ms ease; }
.cart-btn i { font-size: 19px; }
.cart-btn__n { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 14px; }
.cart-btn.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.1); } }
@media (hover: hover) and (pointer: fine) { .top__nav a:hover { color: var(--text); } .cart-btn:hover { border-color: var(--amber); } }
@media (max-width: 760px) { .top__nav { display: none; } .cart-btn { margin-left: auto; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--main { background: var(--amber); color: var(--ink); }
.btn--line { background: transparent; border-color: var(--line); color: var(--text); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn--main:hover { background: var(--amber-2); } .btn--line:hover { border-color: var(--amber); } }

/* ==========================================================================
   ESCAPARATE A OSCURAS (portada): una linterna desde arriba ilumina solo el producto del centro.
   Los de los lados están en sombra: la luz no les llega. vega.js coloca cada producto (--o = distancia al centro).
   ========================================================================== */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #b85c38; }
.stage { position: relative; overflow: clip; padding-block: 56px 64px; transition: --glow 700ms ease; }
.stage__word { position: absolute; left: 50%; top: 56%; translate: -50% -50%; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(9rem, 34vw, 34rem); line-height: 0.8; letter-spacing: -0.04em; color: rgba(243, 230, 211, 0.035); white-space: nowrap; pointer-events: none; user-select: none; }
.stage__head { position: relative; z-index: 3; text-align: center; }
.stage__title { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 0.95; letter-spacing: -0.025em; }
.stage__title em { font-style: italic; color: var(--amber); }

.spot { position: relative; z-index: 2; height: clamp(300px, 40vw, 480px); margin-top: 8px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.spot.is-drag { cursor: grabbing; }
.spot:focus-visible { outline-offset: -6px; border-radius: 24px; }

/* El haz de la linterna, desde arriba hasta el suelo del producto del centro */
.spot__beam { position: absolute; left: 50%; top: -38%; width: min(520px, 78vw); height: 128%; translate: -50% 0; background: linear-gradient(180deg, rgba(255, 233, 196, 0.26), rgba(255, 233, 196, 0.08) 62%, rgba(255, 233, 196, 0) 96%); clip-path: polygon(44% 0, 56% 0, 96% 100%, 4% 100%); filter: blur(10px); mix-blend-mode: screen; pointer-events: none; z-index: 4; transform-origin: 50% 0; }
.spot__beam.is-aim { animation: aim 520ms ease; }
@keyframes aim { 0% { opacity: 1; } 30% { opacity: 0.35; transform: rotate(-1.5deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* El círculo de luz en el suelo, con el color de cada producto */
.spot__floor { position: absolute; left: 50%; bottom: 6%; width: min(560px, 84vw); height: 34%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, rgba(255, 233, 196, 0.35)), color-mix(in srgb, var(--glow) 18%, transparent) 55%, transparent); pointer-events: none; z-index: 0; }

.spot__track { position: absolute; inset: 0; }
.spot__item { position: absolute; left: 50%; bottom: 12%; width: clamp(200px, 26vw, 360px); translate: -50% 0; transform-origin: 50% 100%; will-change: transform, filter; }
.spot.is-snap .spot__item { transition: transform 650ms var(--ease-out), filter 650ms var(--ease-out), opacity 650ms var(--ease-out); }
.spot__item svg, .spot__item img { display: block; width: 100%; height: auto; pointer-events: none; }
.spot__item img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }

.spot__nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 52px; height: 52px; translate: 0 -50%; border: 1px solid var(--line); border-radius: 50%; background: rgba(20, 16, 12, 0.6); backdrop-filter: blur(6px); font-size: 20px; transition: border-color 200ms ease, background-color 200ms ease; }
.spot__nav--prev { left: max(16px, calc(50% - 560px)); }
.spot__nav--next { right: max(16px, calc(50% - 560px)); }
.spot__nav:active { scale: 0.94; }
@media (hover: hover) and (pointer: fine) { .spot__nav:hover { border-color: var(--amber); background: rgba(20, 16, 12, 0.85); } }

/* Lo que dice el producto iluminado */
.spot__info { position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; text-align: center; min-height: 168px; }
.spot__info.is-swap > * { animation: info-in 520ms var(--ease-out) both; }
.spot__info.is-swap > :nth-child(2) { animation-delay: 50ms; }
.spot__info.is-swap > :nth-child(3) { animation-delay: 100ms; }
@keyframes info-in { from { opacity: 0; transform: translateY(10px); } }
.spot__n { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.spot__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02; letter-spacing: -0.02em; }
.spot__buy { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 6px; }
.spot__price { font-family: var(--serif); font-weight: 800; font-size: 1.9rem; }
.spot__hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.spot__hint i { font-size: 20px; }

@media (max-width: 760px) {
  .stage { padding-block: 36px 48px; }
  .spot { height: 330px; }
  .spot__item { width: min(56vw, 240px); bottom: 10%; }
  .spot__nav { top: auto; bottom: -6px; translate: none; width: 48px; height: 48px; }
  .spot__nav--prev { left: 16px; }
  .spot__nav--next { right: 16px; }
  .spot__info { min-height: 190px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot.is-snap .spot__item { transition: none; }
  .spot__beam.is-aim, .spot__info.is-swap > * { animation: none; }
}

/* ---------- La despensa ---------- */
.shop { padding-block: 120px 112px; border-top: 1px solid var(--line); }
.shop__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { color: var(--text); border-color: var(--muted); } }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .shop { padding-block: 88px 80px; } }

.card { --glow: #b85c38; display: flex; flex-direction: column; border-radius: 16px; background: var(--card); overflow: hidden; }
.card__open { position: relative; display: block; padding: 0; border: 0; background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 66%), #1a140f; }
.card__art { display: block; padding: 18px 22px 6px; }
.card__art svg, .card__art img { display: block; width: 100%; height: auto; transition: transform 500ms var(--ease-out); }
.card__art img { aspect-ratio: 1; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.card__info { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.card__name { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.card__name button { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; }
.card__unit { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.card__price { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.add { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 18px; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.add:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__art > * { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
  .card__name button:hover { color: var(--amber); }
  .add:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
}
@media (max-width: 720px) { .card__name { font-size: 1.05rem; } .card__info { padding: 12px; } .card__price { font-size: 1.25rem; } }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
/* Las fichas entran al llegar, una detrás de otra */
@media (prefers-reduced-motion: no-preference) {
  .js .grid .card { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--k, 0) * 60ms); }
  .js .grid.is-in .card { opacity: 1; transform: none; }
}

/* ---------- Cestas ---------- */
.gifts { padding-block: 112px; background: var(--bg-2); border-block: 1px solid var(--line); }
.gifts__sub { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 1.1rem; }
.gifts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.gifts .card { flex-direction: row; align-items: stretch; }
.gifts .card__open { flex: 0 0 46%; }
.gifts .card__name { font-size: 1.8rem; }
@media (max-width: 900px) { .gifts__list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gifts .card { flex-direction: column; } .gifts { padding-block: 80px; } }

/* ---------- Envíos ---------- */
.ship { padding-block: 112px 140px; }
.ship__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.ship__list li { padding-top: 20px; border-top: 1px solid var(--line); }
.ship__n { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.8rem; line-height: 1; color: var(--amber); }
.ship__list h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 700; }
.ship__list p { margin-top: 6px; color: var(--muted); }
@media (max-width: 760px) { .ship__list { grid-template-columns: 1fr; gap: 24px; } .ship { padding-block: 80px 120px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Pie ---------- */
.foot { padding-block: 56px 120px; border-top: 1px solid var(--line); background: #0f0c09; color: var(--muted); }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 56px; align-items: start; font-size: 15px; }
.logo--foot { font-size: 34px; }
.foot__legal { text-align: right; }
.foot__legal a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--text); }
@media (max-width: 760px) { .foot__inner { grid-template-columns: 1fr; } .foot__legal { text-align: left; } }

/* ---------- Ficha ---------- */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgba(5, 4, 3, 0.7); backdrop-filter: blur(4px); }
.sheet { width: min(900px, calc(100% - 32px)); border-radius: 20px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.sheet[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet__art { --glow: #b85c38; display: grid; place-items: center; padding: 36px; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--glow) 40%, transparent), transparent 65%), #120e0a; }
.sheet__art svg, .sheet__art img { width: 100%; max-width: 340px; height: auto; }
.sheet__art img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.sheet__body { display: flex; flex-direction: column; gap: 12px; padding: 44px 36px 32px; }
.sheet__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.sheet__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.02; }
.sheet__price { font-family: var(--serif); font-weight: 800; font-size: 2rem; }
.sheet__desc { color: var(--muted); }
.sheet__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }
.x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); font-size: 18px; }
.x--static { position: static; }
@media (max-width: 720px) {
  .sheet[open] { grid-template-columns: 1fr; max-height: calc(100dvh - 32px); overflow: auto; }
  .sheet__art { padding: 20px; }
  .sheet__art svg, .sheet__art img { max-width: 220px; }
  .sheet__body { padding: 24px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 420ms var(--ease-out); }
  .sheet[open] .sheet__art > * { animation: turn-in 800ms 60ms var(--ease-out) both; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes turn-in { from { opacity: 0; transform: perspective(800px) rotateY(-50deg) scale(0.8); } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; font-size: 16px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }
.qty--sm { margin-top: 8px; }

/* ---------- Cajón de la cesta ---------- */
.drawer { margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: none; background: var(--bg-2); box-shadow: -1px 0 0 var(--line); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.drawer__view { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 18px 20px 24px; overflow: auto; }
@media (prefers-reduced-motion: no-preference) { .drawer[open] { animation: slide 380ms var(--ease-out); } }
@keyframes slide { from { transform: translateX(48px); opacity: 0; } }
.free p { font-size: 15px; color: var(--muted); }
.free strong { color: var(--text); }
.free__bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(243, 230, 211, 0.1); overflow: hidden; }
.free__bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transition: transform 500ms var(--ease-out); }
.lines { display: grid; gap: 4px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--line); }
.line__art { display: block; border-radius: 10px; background: #120e0a; padding: 4px; overflow: hidden; }
.line__art svg, .line__art img { display: block; width: 100%; height: auto; }
.line__name { font-weight: 600; line-height: 1.25; }
.line__unit { font-size: 14px; color: var(--muted); }
.line__sum { font-weight: 700; }
.empty { padding-block: 24px; color: var(--muted); }
.empty a { color: var(--amber); }
.drawer__foot { display: grid; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; color: var(--muted); }
.sum--total { margin-block: 6px 10px; color: var(--text); font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.pay__note { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(232, 164, 108, 0.1); font-size: 15px; }
.pay__note i { flex: none; font-size: 20px; color: var(--amber); }
.lines--mini li { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.link-btn { align-self: center; min-height: 44px; border: 0; background: none; font-weight: 600; color: var(--muted); text-decoration: underline; }
.drawer__view--done { align-items: center; justify-content: center; text-align: center; }
.done__icon { font-size: 56px; color: var(--amber); }
.done__title { font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.done__phone { display: grid; gap: 2px; width: 100%; padding: 14px 16px; border-radius: 16px; background: #f3e6d3; color: var(--ink); text-align: left; font-size: 15px; font-weight: 600; }
.done__phone b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #5b6b2e; }
.done__small { font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .drawer__view--done:not([hidden]) .done__phone { animation: ping 560ms 300ms var(--ease-out) both; } }
@keyframes ping { from { opacity: 0; transform: translateY(-18px) scale(0.95); } }

/* ---------- Detalles ---------- */
.ghost { position: fixed; z-index: 100; pointer-events: none; }
.toast { position: fixed; left: 50%; top: 84px; z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 600; font-size: 15px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.demo-cta { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.demo-cta strong { color: #8f4326; }
.demo-cta.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 720px) {
  .demo-cta { left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; }
  .demo-cta.is-away { transform: translate(-50%, 16px); }
  .shop .grid { padding-bottom: 40px; }
}

/* ==========================================================================
   FOTOS REALES (2026-10-10): todo el catálogo con foto; la sombra/luz se aplica a todos.
   ========================================================================== */
/* Escaparate: cada producto es una foto enmarcada; --lit (0–1) lo pone vega.js: 1 = bajo la linterna */
.spot__item { --lit: 0; width: clamp(220px, 25vw, 340px); bottom: 8%; }
.spot__photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #0d0a08;
  filter: brightness(calc(0.14 + 0.86 * var(--lit))) saturate(calc(0.3 + 0.7 * var(--lit)));
  box-shadow: 0 calc(40px * var(--lit)) calc(70px * var(--lit)) -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 230, 211, calc(0.06 + 0.14 * var(--lit))); }
.spot.is-snap .spot__photo { transition: filter 650ms var(--ease-out), box-shadow 650ms var(--ease-out); }
.spot__photo img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
/* Viñeta de linterna sobre la foto iluminada: el centro con luz, los bordes caen a negro */
.spot__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at 50% 42%, transparent 40%, rgba(10, 8, 6, 0.75) 100%); pointer-events: none; }
.spot__item.is-lit .spot__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255, 233, 196, 0.16), transparent 45%); mix-blend-mode: screen; pointer-events: none; }
@media (max-width: 760px) { .spot { height: 400px; } .spot__item { width: min(56vw, 240px); bottom: 16%; } }

/* Despensa: fotos a sangre en las fichas */
.card { --lit: 1; transition: filter 300ms ease; }
.card__open { background: #0d0a08; overflow: hidden; }
.card__art { padding: 0; }
.card__art img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.card__art > * { transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__art > * { transform: scale(1.06); } }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
/* Linterna que sigue al ratón: lo que está bajo la luz se ve; lo de alrededor, en penumbra */
.grid, .gifts__list { position: relative; }
.grid.is-lamp .card, .gifts__list.is-lamp .card { filter: brightness(calc(0.32 + 0.68 * var(--lit))) saturate(calc(0.45 + 0.55 * var(--lit))); }
.grid::after, .gifts__list::after { content: ""; position: absolute; inset: -40px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(260px circle at calc(var(--mx, 50%) + 40px) calc(var(--my, 50%) + 40px), rgba(255, 233, 196, 0.12), transparent 70%); mix-blend-mode: screen; }
.grid.is-lamp::after, .gifts__list.is-lamp::after { opacity: 1; }

/* Cestas: collage de tres fotos */
.combo { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 1; width: 100%; }
.combo img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none !important; mask-image: none !important; }
.combo img:first-child { grid-row: span 2; }
.gifts .card__open { flex: 0 0 48%; }
@media (prefers-reduced-motion: no-preference) {
  .js .gifts__list .card { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), filter 300ms ease; transition-delay: calc(var(--k, 0) * 90ms); }
  .js .gifts__list.is-in .card { opacity: 1; transform: none; }
}

/* Garantías */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 8px 0; padding-block: 28px; border-block: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 14px; padding-inline: 20px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust i { flex: none; font-size: 26px; color: var(--amber); }
.trust span { display: grid; font-size: 14px; color: var(--muted); line-height: 1.35; }
.trust strong { color: var(--text); font-size: 15px; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } .trust li:nth-child(3) { border-left: 0; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } .trust li { padding-inline: 0; } .trust li + li { border-left: 0; } }

/* Ficha con detalles */
.sheet__art { padding: 0; background: #0d0a08; overflow: hidden; }
.sheet__art img { width: 100%; max-width: none; height: 100%; aspect-ratio: 1; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.sheet__art .combo { max-width: none; }
.sheet__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sheet__facts dd { margin: 2px 0 0; font-size: 15px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #8fbf6a; vertical-align: 1px; }
@media (max-width: 720px) { .sheet__art img { max-height: 46vh; } }

/* Cesta: miniaturas con foto */
.line__art { padding: 0; aspect-ratio: 1; }
.line__art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.line__art .combo { gap: 1px; }
.ghost { object-fit: cover; overflow: hidden; }

/* Pie de tienda */
.foot { padding-block: 72px 32px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px 40px; font-size: 15px; }
.foot__brand p:last-child { margin-top: 12px; max-width: 30ch; }
.foot__h { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.foot__list { display: grid; gap: 4px; }
.foot__list a { display: inline-block; padding-block: 8px; color: var(--muted); text-decoration: none; }
.foot__list--muted li { padding-block: 4px; }
@media (hover: hover) and (pointer: fine) { .foot__list a:hover { color: var(--text); } }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; padding-bottom: 72px; border-top: 1px solid var(--line); font-size: 14px; }
.foot__base a { color: var(--text); }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* Objetivos táctiles >=44px (critique 2026-10-11) */
.foot a[href$="tiendas-online.html"] { display: inline-flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   Ronda tras la crítica (2026-10-14)
   ========================================================================== */
/* Portada: el nombre, el precio y «Añadir a la cesta» caben en la primera pantalla.
   El escaparate y cada foto se miden por la altura de la pantalla, no solo por el ancho. */
.stage { padding-top: 32px; }
.spot { height: clamp(300px, min(38vw, 46svh), 460px); }
.spot__item { width: clamp(200px, min(25vw, 32svh), 340px); }
/* Los productos en sombra se ven como productos, no como huecos */
.spot__photo { filter: brightness(calc(0.26 + 0.74 * var(--lit))) saturate(calc(0.35 + 0.65 * var(--lit))); }
@media (max-width: 760px) {
  .stage { padding-block: 24px 40px; }
  .spot { height: min(360px, 44svh); }
  .spot__item { width: min(52vw, 220px, 30svh); bottom: 14%; }
  .spot__info { min-height: 0; }
  .spot__hint { display: none; }
}

/* Cabecera en el móvil: los tres enlaces caben (versión corta) y la cesta queda en icono + número */
.top__nav .sm { display: none; }
@media (max-width: 760px) {
  .top__inner { gap: 12px; }
  .top__nav { display: flex; gap: 14px; margin-left: auto; }
  .top__nav a { font-size: 14px; }
  .top__nav .lg { display: none; }
  .top__nav .sm { display: inline; }
  .logo small, .cart-btn__label { display: none; }
  .cart-btn { margin-left: 0; padding-left: 12px; }
}

/* La linterna del ratón sobresale 40px de la rejilla: que no ensanche la página */
.shop, .gifts { overflow-x: clip; }

/* Despensa en 3 columnas: 9 productos = 3 filas completas */
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* Con 2 columnas, el primero va destacado a lo ancho y el resto cierra en filas completas */
  .grid:not([data-f]) .card:first-child, .grid[data-f="todo"] .card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .grid:not([data-f]) .card:first-child .card__open, .grid[data-f="todo"] .card:first-child .card__open { flex: 0 0 50%; }
  .card__type { display: none; }
}

/* Cesta grande: cuatro fotos en cuadrícula */
.combo--4 { grid-template-columns: 1fr 1fr; }
.combo--4 img:first-child { grid-row: auto; }

/* Cesta: quitar y deshacer */
.line__rm { min-height: 44px; margin-left: 14px; padding: 0; font-size: 14px; vertical-align: middle; }
.line .qty--sm { vertical-align: middle; }
.undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; background: rgba(232, 164, 108, 0.1); font-size: 15px; }
.undo .link-btn { min-height: 36px; }
.link-btn--amber { color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .line__rm:hover { color: var(--text); } }

/* Textos legales (aviso de demo) */
.legal { width: min(460px, calc(100% - 32px)); padding: 28px 24px 24px; border-radius: 20px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.legal[open] { display: grid; gap: 14px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.05; }
.legal p { color: var(--muted); }
/* En las cestas, «Cestas regalo» ya lo dice el título de la sección */
.gifts .card__type { display: none; }

/* Móvil: la ficha abre arriba y la X se queda visible al bajar */
@media (max-width: 760px) {
  .sheet .x { position: fixed; top: 28px; right: 28px; z-index: 2; }
}

/* ---------- Portada con scroll: fija en pantalla, un gesto = un producto ---------- */
.spot__scroll { display: none; }
.stage.is-scroll { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 64px); }
.stage.is-scroll .spot__hint--drag, .stage.is-scroll .spot__nav { display: none; }
.stage.is-scroll .spot { cursor: default; }
.stage.is-scroll .spot__scroll { position: relative; z-index: 3; display: grid; justify-items: center; gap: 14px; margin-top: 20px; }
.spot__rail { position: relative; width: min(240px, 50vw); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.spot__rail span { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(calc(0.06 + 0.94 * var(--p, 0))); }
.spot__cue { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.spot__cue i { font-size: 20px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
@media (max-width: 760px) { .stage.is-scroll .spot__scroll { margin-top: 12px; } .spot__cue { font-size: 13px; } }

/* Entrada: el título sube, la linterna se enciende con un parpadeo y las latas salen de la oscuridad */
@media (prefers-reduced-motion: no-preference) {
  .js .stage__title { animation: rise 900ms var(--ease-out) both; }
  .js .spot__beam:not(.is-aim) { animation: beam-on 1400ms steps(1, end) 300ms both; }
  .js .spot__floor { animation: floor-on 1200ms ease 700ms both; }
  .js .spot__photo { animation: from-dark 1100ms var(--ease-out) both; animation-delay: calc(500ms + var(--o, 0) * 120ms); }
  .js .spot__info { animation: rise 800ms var(--ease-out) 900ms both; }
  .js .spot__scroll { animation: rise 700ms var(--ease-out) 1300ms both; }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes beam-on { 0% { opacity: 0; } 18% { opacity: 0.7; } 26% { opacity: 0.1; } 40% { opacity: 1; } 48% { opacity: 0.3; } 60%, 100% { opacity: 1; } }
@keyframes floor-on { from { opacity: 0; scale: 0.6; } }
@keyframes from-dark { from { opacity: 0; translate: 0 60px; filter: brightness(0) blur(8px); } }
