/* ATA STUDIO · v26 navidad · intro sin logo de arriba · mobile-first + desktop media queries */
@font-face {
  font-family: "Archivo Black";
  src: url("../assets/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Berkshire Swash";
  src: url("../assets/fonts/BerkshireSwash-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --orange: #fd5b02;
  --orange-2: #ff8a3d;
  --paper: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.58);
  --faint: rgba(244, 241, 234, 0.32);
  --line: rgba(244, 241, 234, 0.12);
  --stage-w: 100vw;
  --stage-h: 100vh;
  --u: calc(var(--stage-h) / 100);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #000;
  color: var(--paper);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body { color-scheme: dark; touch-action: manipulation; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Stage ---------- */
#stage {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  container-type: size;
}
#seq {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}
.is-catalog #seq,
.is-flash #seq {
  opacity: 1; visibility: visible;
}

/* ---------- Loader ---------- */
#loader {
  position: absolute; inset: 0; z-index: 30;
  background: #000;
  display: grid; place-items: center;
  transition: opacity .7s ease, visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { width: 120px; text-align: center; }
.loader-inner img { width: 54px; height: auto; filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); animation: breathe 1.6s ease-in-out infinite; }
.loader-bar { margin-top: 18px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 6%; background: var(--orange); transition: width .3s ease; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

/* ---------- Escenas ---------- */
#intro, #catalog {
  position: absolute; inset: 0;
  transition: opacity .5s var(--ease), visibility .5s;
}
#catalog { opacity: 0; visibility: hidden; pointer-events: none; }
.is-catalog #catalog { opacity: 1; visibility: visible; pointer-events: auto; }
.is-catalog #intro { opacity: 0; visibility: hidden; pointer-events: none; }
/* Solo intro+flash: mantener intro visible. Si ya hay catálogo, la intro debe ocultarse (no solapar letras). */
.is-flash:not(.is-catalog) #intro {
  opacity: 1; visibility: visible;
  pointer-events: none;
  transition-duration: .2s;
}
.is-flash.is-catalog #intro {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* ---------- INTRO: esfera + temporada (sin logo de arriba) ---------- */

#intro {
  --xmas-red: #c8102e;
  --xmas-green: #0b6e4f;
  --xmas-gold: #e8d08a;
  --xmas-gold-deep: #c9a44a;
  background: #050b12;
}

.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.intro-bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 48% at 50% 46%, rgba(253, 91, 2, .10), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 36%, #163044 0%, #0d2230 34%, #0a1a1c 62%, #071210 82%, #04090c 100%);
}
.intro-bg-bokeh {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle 20px at 10% 18%, rgba(200, 16, 46, .42), transparent 72%),
    radial-gradient(circle 34px at 78% 14%, rgba(232, 208, 138, .32), transparent 70%),
    radial-gradient(circle 16px at 90% 38%, rgba(11, 110, 79, .40), transparent 70%),
    radial-gradient(circle 24px at 16% 52%, rgba(201, 164, 74, .22), transparent 70%),
    radial-gradient(circle 14px at 64% 22%, rgba(200, 16, 46, .26), transparent 70%),
    radial-gradient(circle 42px at 32% 12%, rgba(255, 230, 180, .12), transparent 70%),
    radial-gradient(circle 18px at 86% 62%, rgba(200, 16, 46, .18), transparent 70%),
    radial-gradient(circle 26px at 8% 72%, rgba(11, 110, 79, .22), transparent 70%),
    radial-gradient(circle 12px at 48% 16%, rgba(232, 208, 138, .28), transparent 70%),
    radial-gradient(circle 22px at 70% 70%, rgba(11, 110, 79, .16), transparent 70%),
    radial-gradient(circle 15px at 40% 68%, rgba(232, 208, 138, .14), transparent 70%);
  filter: blur(3px);
  opacity: .9;
  animation: bokeh-drift 22s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes bokeh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .88; }
  50% { transform: translate3d(1.2%, -1.4%, 0) scale(1.04); opacity: 1; }
}
.intro-bg-pines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 26vh;
  min-height: 110px;
  max-height: 220px;
  z-index: 1;
  opacity: .95;
  /* Global svg { stroke } would outline the silhouettes — keep them solid */
  stroke: none;
}
.intro-bg-pines path { stroke: none; }
.intro-bg-pines-back path { fill: #0a241c; }
.intro-bg-pines-front path { fill: #05140f; }
.intro-bg-pines-snow path { fill: #e8f0ea; opacity: .38; }
.intro-bg-bank { fill: #081612; }
.intro-bg-bank-snow { fill: #dce6e2; opacity: .14; }
.intro-bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 78% 72% at 50% 44%, transparent 38%, rgba(0, 0, 0, .42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 20%, transparent 62%, rgba(0, 0, 0, .55) 100%);
}

.intro-season {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 0;
  top: -24px; /* a bit higher, clear of the ornament */
  padding: 0 8px;
  font-family: "Berkshire Swash", Palatino, "Palatino Linotype", serif;
  font-size: clamp(26px, 8.2vw, 36px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
  text-align: center;
  color: var(--xmas-gold);
  text-shadow:
    0 0 8px rgba(255, 255, 255, .55),
    0 0 18px rgba(232, 208, 138, .45),
    0 0 28px rgba(200, 16, 46, .35),
    0 0 40px rgba(11, 110, 79, .28),
    0 1px 2px rgba(0, 0, 0, .7);
  animation: rise 1s var(--ease) .2s both;
  transition: opacity .3s ease, transform .45s var(--ease), filter .45s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.intro-season-text {
  display: block;
  line-height: 1.08;
}
.intro-season-mark {
  width: 0.72em;
  height: 0.72em;
  flex: 0 0 auto;
  color: var(--xmas-gold);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, .45))
    drop-shadow(0 0 10px rgba(200, 16, 46, .35));
  opacity: .92;
}
.intro-season-mark:last-child {
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, .45))
    drop-shadow(0 0 10px rgba(11, 110, 79, .4));
}

.intro-hit {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding:
    max(calc(var(--u) * 4), env(safe-area-inset-top, 0px))
    18px
    72px; /* espacio para el hint absoluto */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.intro-hit:focus-visible { outline: none; }
.intro-hit:focus-visible .intro-video-wrap {
  filter:
    drop-shadow(0 0 18px rgba(232, 208, 138, .45))
    drop-shadow(0 0 2px rgba(255,255,255,.5));
}

.intro-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  animation: rise 1s var(--ease) .1s both;
  transition: transform .45s var(--ease), opacity .35s ease, filter .45s ease;
  will-change: transform, opacity;
}

.intro-video-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(94%, 400px);
  min-height: 0;
  margin: -6.5vh 0 0;
  display: grid;
  place-items: center;
  overflow: visible;
  animation: rise 1.1s var(--ease) .35s both;
  transition: transform .5s var(--ease), opacity .35s ease, filter .45s ease;
  will-change: transform, opacity;
}
.intro-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: contain;
  object-position: center center;
  background: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
  /* Soft radial mask so the video's black field never reads as a rectangle */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 48%, #000 40%, #000 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 48%, #000 40%, #000 58%, transparent 78%);
  animation: intro-loop-soft 4.8s ease-in-out infinite;
}
@keyframes intro-loop-soft {
  0%, 100% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.04) contrast(1.02); }
}
.intro-video-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%; height: 68%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(253, 91, 2, .22) 0%,
    rgba(253, 91, 2, .08) 40%,
    transparent 74%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* Nieve suave (canvas, js/snow.js) — sobre el video, bajo el hint */
.intro-snow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
  transition: opacity .35s ease;
}
.is-flash .intro-snow { opacity: 0; }

.intro-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding:
    20px 16px
    max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(4, 12, 10, .45) 50%, rgba(4, 9, 12, .82) 100%);
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
  animation: rise 1.1s var(--ease) .55s both, glow 2.8s ease-in-out 1.6s infinite;
  transition: opacity .3s ease, transform .45s var(--ease);
  pointer-events: none;
}
.tap-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(253, 91, 2, .6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(253,91,2,.55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(253,91,2,0); } }
@keyframes glow { 50% { color: #fff; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Flash: temporada + esfera bloom before catalog */
.is-flash .intro-season {
  opacity: 0;
  transform: translateY(-6px) scale(1.05);
  filter: brightness(1.6);
  transition-duration: .45s;
}
.is-flash .intro-hero {
  transform: scale(1.12);
  filter: brightness(1.45) saturate(1.2);
  opacity: 0;
  transition-duration: .55s;
}
.is-flash .intro-bg { opacity: 0; transition: opacity .45s ease; }
.is-flash .intro-video-wrap {
  transform: scale(1.18);
  filter: brightness(1.55) saturate(1.25);
  opacity: 0;
  transition-duration: .55s;
}
.is-flash .intro-hint { opacity: 0; transform: translateY(8px); }

/* ---------- FLASH overlay ---------- */
#flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; visibility: hidden; overflow: hidden; }
#flash.on { visibility: visible; }
#flash .burst {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    #fff 0%, #fff8ec 10%, #ffd29a 22%, rgba(255, 138, 40, .85) 38%,
    rgba(253, 91, 2, .45) 55%, rgba(253, 91, 2, .12) 70%, rgba(253, 91, 2, 0) 100%);
  transform: scale(.04);
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
#flash .wash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #fffaf2 0%, #ffe2bd 45%, #ffb777 100%);
  opacity: 0;
  will-change: opacity;
}

/* ---------- CATÁLOGO ---------- */
.cat-top {
  position: absolute; left: 0; right: 0; top: 0;
  padding: max(14px, env(safe-area-inset-top)) 18px 0;
  text-align: center;
  pointer-events: none;
}
.cat-top > * { pointer-events: auto; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:active { background: rgba(255,255,255,.14); }
.cat-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 9px; font-weight: 600; letter-spacing: .34em; color: var(--muted); }
.cat-brand img { width: 22px; height: auto; filter: drop-shadow(0 0 8px rgba(253, 91, 2, .4)); }
.cat-bar-end { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cat-fb {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: background .2s, color .2s;
}
.cat-fb svg { width: 14px; height: 14px; }
.cat-fb:active { background: rgba(255,255,255,.14); color: var(--paper); }
.badge {
  min-width: 40px;
  font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-2);
  border: 1px solid rgba(255, 138, 61, .35);
  border-radius: 999px;
  padding: 5px 9px;
}
.cat-name {
  margin-top: calc(var(--u) * 2.2);
  font-family: "Archivo Black", Manrope, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, calc(var(--u) * 5.6), 50px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.cat-name.long { font-size: clamp(20px, min(calc(var(--u) * 3.9), 6.4cqw), 36px); line-height: 1.08; }
.cat-collections {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cat-collections button {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-collections button[aria-current="true"] {
  color: #120700;
  background: linear-gradient(180deg, #ff7a2a, var(--orange));
  border-color: rgba(255, 138, 61, .65);
}
.cat-collections button:active { transform: scale(.97); }
.badge.premium {
  color: #ead7a0;
  border-color: rgba(232, 208, 138, .45);
  background: rgba(232, 208, 138, .08);
}
body.collection-solo .arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Clamp long catalog copy so the buy row stays on screen; full text lives in details. */
body.item-photos .cat-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.cat-tag { margin-top: 8px; font-size: 14px; color: var(--muted); }

.spin-ui { position: absolute; left: 0; right: 0; top: 20.5%; height: 47%; pointer-events: none; }
.arrow {
  position: absolute; top: 50%;
  width: 42px; height: 42px; margin-top: -21px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  transition: background .2s, transform .2s;
}
.arrow svg { width: 18px; height: 18px; }
.arrow:active { transform: scale(.92); background: rgba(255,255,255,.14); }
.arrow-prev { left: 10px; }
.arrow-next { right: 10px; }
/* Hint lives inside the 360 stage bottom — never over cat-desc / specs / buttons */
.spin-hint {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 28%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: min(78%, calc(100% - 100px));
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-2);
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(253, 91, 2, .4);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, .5),
    0 0 20px rgba(253, 91, 2, .18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .6s ease, transform .6s ease;
  animation: nudge 2.4s ease-in-out infinite;
}
.spin-hint .tap-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
}
.spin-hint svg {
  width: 34px;
  height: 11px;
  stroke-width: 1.5;
  flex: 0 0 auto;
  color: var(--orange);
}
.hint-done .spin-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  animation: none;
  pointer-events: none;
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(calc(-50% + 6px)); }
}

.cat-mid {
  position: absolute; left: 0; right: 0;
  top: calc(67.5% + 4px);
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.angle { display: flex; align-items: center; gap: 8px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--faint); min-width: 64px; }
.dial { position: relative; width: 16px; height: 16px; border: 1px solid var(--faint); border-radius: 50%; }
.dial i { position: absolute; inset: 0; }
.dial i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.dots { display: flex; gap: 8px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .35s; position: relative; }
.dots button::before { content: ""; position: absolute; inset: -10px; }
.dots button[aria-current="true"] { width: 22px; background: var(--orange); }
.cat-mid::after { content: ""; min-width: 64px; }

.cat-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 0 22px max(20px, calc(env(safe-area-inset-bottom) + 12px));
}
.cat-desc { font-size: 14px; line-height: 1.5; color: rgba(244,241,234,.78); min-height: 3em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: calc(var(--u) * 1.8); }
.specs div { border-top: 1px solid var(--line); padding-top: 9px; }
.specs dt { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.specs dd { margin-top: 4px; font-size: 13px; font-weight: 600; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: calc(var(--u) * 2.2); }
.price { display: flex; flex-direction: column; }
.price span { font-family: "Archivo Black", Manrope, sans-serif; font-size: 26px; line-height: 1; }
.price small { margin-top: 6px; font-size: 10px; letter-spacing: .08em; color: var(--faint); }
.btn-pedir {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a2a, var(--orange));
  color: #120700;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 8px 30px -8px rgba(253, 91, 2, .7), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s ease, filter .2s;
}
.btn-pedir svg { width: 16px; height: 16px; stroke-width: 2.2; }
.btn-pedir:active { transform: scale(.96); }
.btn-pedir[aria-disabled="true"] { filter: saturate(.85); }
.wa-note { margin-top: 10px; font-size: 11px; color: var(--muted); text-align: right; }
.wa-note.pulse { color: var(--orange-2); }

/* Initial catalog open: light rise on top bar only (item swaps use swap-* classes) */
.is-catalog .cat-top { animation: rise .6s var(--ease) both; }

@container (max-height: 700px) {
  .intro-season { font-size: clamp(22px, 7vw, 28px); margin: 0 0 2px; gap: 8px; top: -20px; }
  .intro-video { max-height: min(54vh, 400px); }
  .intro-bg-pines { height: 22vh; min-height: 88px; }
  .intro-hint { font-size: 11px; padding-top: 16px; }
  .cat-mid { top: calc(66% + 2px); }
  .cat-desc { min-height: 0; font-size: 13px; line-height: 1.4; }
  .specs { margin-top: 8px; }
  .specs div { padding-top: 6px; }
  .specs dd { font-size: 12px; }
  .buy { margin-top: 10px; }
  .spin-hint { bottom: 32%; font-size: 9px; padding: 6px 12px; }
  .cat-tag { font-size: 13px; margin-top: 6px; }
  .btn-pedir { height: 44px; padding: 0 20px; }
  .price span { font-size: 22px; }
}

.noscript { position: fixed; inset: auto 0 20px; text-align: center; color: var(--muted); font-size: 13px; }


/* ---------- Item swap (catalog change) ---------- */
@keyframes swap-out-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-34px); }
}
@keyframes swap-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(34px); }
}
@keyframes swap-in-right {
  from { opacity: 0; transform: translateX(34px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes swap-in-left {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: translateX(0); }
}

#cat-name.swap-out-left,
#cat-tag.swap-out-left,
#seq.swap-out-left,
#cat-info.swap-out-left {
  animation: swap-out-left .28s var(--ease) both;
}
#cat-name.swap-out-right,
#cat-tag.swap-out-right,
#seq.swap-out-right,
#cat-info.swap-out-right {
  animation: swap-out-right .28s var(--ease) both;
}
#cat-name.swap-in-right,
#cat-tag.swap-in-right,
#seq.swap-in-right,
#cat-info.swap-in-right {
  animation: swap-in-right .32s var(--ease) both;
}
#cat-name.swap-in-left,
#cat-tag.swap-in-left,
#seq.swap-in-left,
#cat-info.swap-in-left {
  animation: swap-in-left .32s var(--ease) both;
}

/* During swap, canvas must animate even though #seq normally uses transition */
#seq.swap-out-left,
#seq.swap-out-right,
#seq.swap-in-left,
#seq.swap-in-right {
  transition: none;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .intro-video-glow { animation: none; opacity: .8; }
}

/* ---------- Photo stage (kind:photos) ---------- */
.photo-stage {
  position: absolute;
  left: 4%;
  top: 20.5%;
  width: 92%;
  height: 47%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55));
  transition: opacity .35s var(--ease), visibility .35s;
}
.is-catalog.item-photos .photo-stage,
.is-flash.item-photos .photo-stage {
  opacity: 1;
  visibility: visible;
}
.is-catalog.item-photos #seq,
.is-flash.item-photos #seq {
  opacity: 0;
  visibility: hidden;
}
.item-photos .spin-hint,
.item-photos .angle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.item-photos .photo-stage.swap-out-left,
.item-photos .photo-stage.swap-out-right,
.item-photos .photo-stage.swap-in-left,
.item-photos .photo-stage.swap-in-right {
  will-change: transform, opacity;
}

#photo-stage.swap-out-left { animation: swap-out-left .28s var(--ease) both; }
#photo-stage.swap-out-right { animation: swap-out-right .28s var(--ease) both; }
#photo-stage.swap-in-right { animation: swap-in-right .32s var(--ease) both; }
#photo-stage.swap-in-left { animation: swap-in-left .32s var(--ease) both; }

/* ---------- Ver más detalles button ---------- */
.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: calc(var(--u) * 1.6);
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, .4);
  background: rgba(253, 91, 2, .1);
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .2s, transform .15s, border-color .2s;
}
.btn-details:active {
  transform: scale(.97);
  background: rgba(253, 91, 2, .2);
  border-color: rgba(255, 138, 61, .65);
}
@container (max-height: 700px) {
  .btn-details { height: 38px; margin-top: 8px; font-size: 12px; }
}

/* ---------- Details modal · Halloween framed photo viewer ---------- */
.details-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.details-modal:not([hidden]) { pointer-events: auto; }

.details-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(253, 91, 2, .18), transparent 70%),
    rgba(0, 0, 0, .86);
  opacity: 0;
  transition: opacity .28s ease;
}
.details-modal.is-open .details-backdrop { opacity: 1; }

.details-sheet.hw-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(94vh, 880px);
  margin: 0 auto;
  padding: 22px 18px max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--paper);
  background:
    linear-gradient(180deg, #140c06 0%, #0a0704 45%, #050303 100%);
  border: 2px solid rgba(253, 91, 2, .55);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 180, 80, .18),
    0 0 0 6px rgba(0, 0, 0, .85),
    0 0 0 8px rgba(253, 91, 2, .28),
    0 0 48px rgba(253, 91, 2, .35),
    0 24px 60px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 200, 120, .12);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .28s ease;
}
.details-modal.is-open .details-sheet.hw-frame {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Corner ornaments: pine branches + star top, snowflakes bottom */
.hw-ornament {
  position: absolute;
  width: 42px;
  height: 28px;
  color: var(--orange);
  filter: drop-shadow(0 0 8px rgba(253, 91, 2, .55));
  pointer-events: none;
  z-index: 2;
}
.hw-ornament svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.hw-ornament .star { fill: rgba(253, 91, 2, .55); stroke: var(--orange-2); stroke-width: 1; }
.hw-ornament-bl svg,
.hw-ornament-br svg {
  stroke: var(--orange-2);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.hw-ornament-bl circle,
.hw-ornament-br circle { fill: rgba(253, 91, 2, .45); }
.hw-ornament-tl { top: 8px; left: 10px; }
.hw-ornament-tr { top: 8px; right: 10px; transform: scaleX(-1); }
.hw-ornament-bl { bottom: 10px; left: 12px; width: 28px; height: 28px; }
.hw-ornament-br { bottom: 10px; right: 12px; width: 28px; height: 28px; transform: scaleX(-1); }

.details-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0, 0, 0, .55);
  border-color: rgba(253, 91, 2, .4);
  color: var(--paper);
}
.details-close:active { background: rgba(253, 91, 2, .25); }

.details-kicker {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange-2);
  text-shadow: 0 0 14px rgba(253, 91, 2, .45);
  margin: 4px 36px 0;
}
.details-title {
  text-align: center;
  font-family: "Archivo Black", Manrope, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 6.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 8px 28px 14px;
  text-shadow: 0 0 20px rgba(253, 91, 2, .25);
}

/* Inner photo mat / frame */
.details-gallery-wrap.hw-mat {
  margin: 0 2px 12px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(253, 91, 2, .16), rgba(0, 0, 0, .4) 40%, rgba(253, 91, 2, .08));
  border: 1px solid rgba(255, 160, 70, .35);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .65),
    0 0 24px rgba(253, 91, 2, .12);
}
.details-gallery {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border-radius: 8px;
  background: #000;
  border: 1px solid rgba(255, 180, 90, .2);
  outline: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8);
}
.details-gallery::-webkit-scrollbar { display: none; }
.details-gallery { scrollbar-width: none; }
.details-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #000;
}
.details-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.details-pips {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  min-height: 8px;
}
.details-pips span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  transition: width .25s var(--ease), background .25s;
}
.details-pips span[aria-current="true"] {
  width: 18px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(253, 91, 2, .65);
}
.details-swipe-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.details-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 241, 234, .78);
  text-align: center;
  padding: 0 4px;
}
.details-source {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(253, 91, 2, .22);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.details-source a {
  color: var(--orange-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 61, .4);
  text-shadow: 0 0 12px rgba(253, 91, 2, .25);
}
.details-source a:active { opacity: .8; }

body.details-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .details-backdrop,
  .details-sheet { transition: none !important; }
  .intro-bg-bokeh,
  .intro-video { animation: none !important; }
}

/* ========== DESKTOP / TABLET LANDSCAPE ONLY ==========
   Mobile-first base rules above stay untouched.
   These overrides apply only when viewport ≥ 768px. */
@media (min-width: 768px) {
  /* Soft ambient glow outside the constrained stage */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 42% 68% at 50% 48%, rgba(253, 91, 2, .07), transparent 72%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(253, 91, 2, .04), transparent 55%);
  }
  #stage,
  #flash,
  .details-modal {
    z-index: 1;
  }
  #flash { z-index: 40; }
  .details-modal { z-index: 50; }

  /* ---- Intro: balanced, not phone-blown ---- */
  .intro-hit {
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 84px;
  }
  .intro-season {
    font-size: 44px;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    gap: 16px;
    top: -36px;
  }
  .intro-season-mark {
    width: 0.62em;
    height: 0.62em;
  }
  .intro-video-wrap {
    width: min(70%, 440px);
  }
  .intro-video {
    max-height: min(64vh, 580px);
  }
  .intro-bg-pines {
    height: 28vh;
    max-height: 260px;
  }
  .intro-hint {
    font-size: 13px;
    letter-spacing: 0.2em;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ---- Catalog chrome ---- */
  .cat-top {
    padding-left: 28px;
    padding-right: 28px;
  }
  .cat-bar { height: 48px; }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
  .icon-btn:hover {
    background: rgba(255, 255, 255, .12);
  }
  .cat-fb {
    width: 36px;
    height: 36px;
  }
  .cat-fb:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--orange-2);
  }
  .cat-brand {
    font-size: 10px;
    letter-spacing: .3em;
  }
  .cat-brand img { width: 24px; }
  .badge {
    font-size: 10px;
    padding: 6px 11px;
  }
  .cat-name {
    font-size: clamp(36px, calc(var(--u) * 5.4), 54px);
  }
  .cat-name.long {
    font-size: clamp(22px, min(calc(var(--u) * 3.6), 5.2cqw), 40px);
  }
  .cat-tag {
    font-size: 15px;
    margin-top: 10px;
  }

  .arrow {
    width: 46px;
    height: 46px;
    margin-top: -23px;
  }
  .arrow:hover {
    background: rgba(255, 255, 255, .12);
  }
  .arrow-prev { left: 14px; }
  .arrow-next { right: 14px; }
  .spin-hint {
    font-size: 11px;
    letter-spacing: .16em;
    bottom: 26%;
    padding: 8px 16px;
  }

  .cat-mid {
    padding: 0 28px;
  }
  .angle { font-size: 12px; min-width: 72px; }
  .cat-mid::after { min-width: 72px; }
  .dots button { width: 8px; height: 8px; }
  .dots button[aria-current="true"] { width: 24px; }

  .cat-bottom {
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  }
  .cat-desc {
    font-size: 15px;
    line-height: 1.55;
  }
  .specs {
    gap: 14px;
  }
  .specs dt { font-size: 10px; }
  .specs dd { font-size: 14px; }
  .price span { font-size: 28px; }
  .price small { font-size: 11px; }
  .btn-pedir {
    height: 52px;
    padding: 0 30px;
    font-size: 15px;
  }
  .btn-pedir:hover {
    filter: brightness(1.06);
  }
  .btn-details {
    height: 44px;
    font-size: 14px;
    letter-spacing: .07em;
    max-width: 100%;
  }
  .btn-details:hover {
    background: rgba(253, 91, 2, .2);
    border-color: rgba(255, 138, 61, .65);
  }
  .wa-note { font-size: 12px; }

  /* ---- Details modal: wider framed gallery ---- */
  .details-modal {
    padding: 28px 24px;
  }
  .details-sheet.hw-frame {
    width: min(100%, 560px);
    max-height: min(88vh, 900px);
    padding: 28px 26px 24px;
    border-radius: 20px;
  }
  .details-kicker {
    font-size: 11px;
    letter-spacing: .34em;
  }
  .details-title {
    font-size: clamp(26px, 2.8vw, 36px);
    margin-bottom: 16px;
  }
  .details-gallery-wrap.hw-mat {
    margin-bottom: 14px;
    padding: 12px 12px 10px;
  }
  .details-desc {
    font-size: 14px;
    line-height: 1.55;
    padding: 0 8px;
  }
  .details-source {
    font-size: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .details-source a:hover {
    border-bottom-color: rgba(255, 138, 61, .8);
  }
  .details-close:hover {
    background: rgba(253, 91, 2, .28);
  }
  .details-swipe-hint {
    font-size: 11px;
  }
  .hw-ornament {
    width: 48px;
    height: 32px;
  }
  .hw-ornament-bl,
  .hw-ornament-br {
    width: 32px;
    height: 32px;
  }
}

/* Large monitors: slightly roomier modal + stage feels premium */
@media (min-width: 1100px) {
  .intro-video-wrap {
    width: min(62%, 480px);
  }
  .intro-video {
    max-height: min(66vh, 640px);
  }
  .intro-season {
    font-size: 52px;
    top: -44px;
  }
  .details-sheet.hw-frame {
    width: min(100%, 620px);
    max-height: min(86vh, 940px);
    padding: 32px 30px 28px;
  }
  .details-title {
    font-size: clamp(28px, 2.4vw, 38px);
  }
  .cat-bottom {
    padding-left: 36px;
    padding-right: 36px;
  }
}

/* =====================================================================
   v27 · CATÁLOGO NAVIDAD — fondo noche azul/verde, nieve, botones festivos
   ===================================================================== */
:root {
  --xr: #c8102e;        /* rojo navidad */
  --xr-deep: #7e0a1c;
  --xg: #0b6e4f;        /* verde pino */
  --xgold: #e8d08a;
  --xgold-deep: #c9a44a;
  --night: #050b12;
}
#stage { background: var(--night); }

/* Fondo navideño del catálogo (clon de .intro-bg, insertado por JS antes del canvas) */
.cat-bg {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.is-catalog .cat-bg,
.is-flash .cat-bg { opacity: 1; visibility: visible; }
.is-flash .cat-bg.intro-bg { opacity: 1; }
.cat-bg .intro-bg-wash {
  background:
    radial-gradient(ellipse 60% 34% at 50% 44%, rgba(232, 208, 138, .10), transparent 72%),
    radial-gradient(ellipse 95% 85% at 50% 34%, #15304a 0%, #0d2232 32%, #0a1b1f 60%, #07130f 82%, #04090c 100%);
}
/* Bokeh lejos del centro (no se ve a través de la pieza) */
.cat-bg .intro-bg-bokeh { opacity: .75; }
.cat-bg .intro-bg-pines { height: 17vh; min-height: 80px; max-height: 150px; opacity: .7; }

/* Brillo cálido detrás de la pieza (pulso suave) */
#cat-glow {
  position: absolute;
  left: var(--glow-x, 50%); top: var(--glow-y, 44%);
  width: var(--glow-s, 300px); height: var(--glow-s, 300px);
  margin: calc(var(--glow-s, 300px) / -2) 0 0 calc(var(--glow-s, 300px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, .20) 0%, rgba(232, 208, 138, .09) 38%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity .5s ease;
  will-change: transform, opacity;
}
.is-catalog #cat-glow { opacity: 1; animation: xglow 4.2s ease-in-out infinite; }
@keyframes xglow {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Los frames tienen fondo negro: "screen" hace el negro transparente sobre el fondo navideño */
#seq { mix-blend-mode: screen; }

/* Velo oscuro sólo detrás del texto inferior (posición fijada por JS: --scrim-top) */
.cat-scrim {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: var(--scrim-top, 62%);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 9, 12, 0) 0%, rgba(4, 9, 12, .62) 26%, rgba(3, 7, 10, .82) 100%);
}
.cat-snow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* ---- Cabecera: vidrio esmerilado + brillo dorado ---- */
.icon-btn,
.cat-fb,
.arrow {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(232, 208, 138, .34);
  color: var(--paper);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 0 14px rgba(232, 208, 138, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.icon-btn:active,
.cat-fb:active,
.arrow:active { background: rgba(232, 208, 138, .2); box-shadow: 0 0 20px rgba(232, 208, 138, .35); }
.cat-brand { color: rgba(232, 208, 138, .82); }
.badge {
  color: var(--xgold);
  border-color: rgba(232, 208, 138, .45);
  background: rgba(200, 16, 46, .16);
}
.cat-name { text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 0 26px rgba(232, 208, 138, .16); }
.cat-tag {
  color: rgba(232, 208, 138, .86);
  font-weight: 600;
}
.cat-tag::before, .cat-tag::after {
  content: "✦";
  font-size: .72em;
  color: var(--xr);
  margin: 0 .55em;
  vertical-align: .12em;
  text-shadow: 0 0 8px rgba(200, 16, 46, .6);
}

/* ---- Indicador: estrellitas (posición calculada por JS, nunca sobre el texto) ---- */
.cat-mid { top: var(--mid-top, calc(67.5% + 4px)); height: 22px; }
.angle { color: rgba(232, 208, 138, .55); }
.dial { border-color: rgba(232, 208, 138, .45); }
.dial i::after { background: var(--xr); box-shadow: 0 0 6px rgba(200, 16, 46, .8); }
.dots { gap: 10px; align-items: center; }
.dots button,
.dots button[aria-current="true"] {
  width: 12px; height: 12px;
  background: none;
  display: grid; place-items: center;
  color: rgba(244, 241, 234, .34);
  transition: color .35s, transform .35s var(--ease);
}
.dots button i {
  display: block; width: 10px; height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.dots button[aria-current="true"] { color: var(--xgold); transform: scale(1.15); }
.dots button[aria-current="true"] i { width: 15px; height: 15px; animation: twinkle 2.2s ease-in-out infinite; }
.dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 208, 138, .45), transparent 65%);
  animation: twinkle-halo 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); filter: brightness(1); }
  50% { transform: scale(1.18) rotate(12deg); filter: brightness(1.35); }
}
@keyframes twinkle-halo { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---- Texto inferior ---- */
.cat-desc { color: rgba(244, 241, 234, .86); min-height: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.specs div { border-top-color: rgba(232, 208, 138, .22); }
.specs dt { color: rgba(232, 208, 138, .62); }
.price span { color: #fff; text-shadow: 0 0 18px rgba(232, 208, 138, .25); }
.price small { color: rgba(232, 208, 138, .6); }

/* ---- Ver más detalles: contorno dorado/verde + copo ---- */
.btn-details {
  gap: 9px;
  color: var(--xgold);
  border: 1px solid rgba(232, 208, 138, .55);
  background: linear-gradient(180deg, rgba(11, 110, 79, .34), rgba(6, 52, 38, .42));
  box-shadow: inset 0 0 0 1px rgba(11, 110, 79, .5), 0 0 16px rgba(11, 110, 79, .25);
}
.btn-details:active { background: rgba(11, 110, 79, .55); border-color: var(--xgold); }
.btn-details .ico-snow { width: 15px; height: 15px; stroke-width: 1.6; flex: 0 0 auto; }

/* ---- Pedir: rojo con borde dorado, regalo y destello ---- */
.btn-pedir {
  position: relative; overflow: hidden;
  gap: 9px;
  color: #fff8ec;
  background: linear-gradient(180deg, #e0243f 0%, var(--xr) 45%, var(--xr-deep) 100%);
  border: 1.5px solid var(--xgold);
  text-shadow: 0 1px 2px rgba(60, 0, 10, .5);
  box-shadow: 0 8px 26px -8px rgba(200, 16, 46, .85), 0 0 18px rgba(232, 208, 138, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-pedir .ico-gift { width: 18px; height: 18px; stroke-width: 1.7; color: var(--xgold); flex: 0 0 auto; }
.btn-pedir::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .55), transparent);
  transform: skewX(-18deg) translateX(0);
  animation: shimmer 4.5s ease-in-out infinite 1.2s;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 62% { transform: skewX(-18deg) translateX(0); }
  100% { transform: skewX(-18deg) translateX(420%); }
}

/* ---- Spin hint navideño ---- */
.spin-hint {
  color: var(--xgold);
  background: rgba(5, 14, 20, .72);
  border-color: rgba(232, 208, 138, .4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5), 0 0 20px rgba(232, 208, 138, .15);
}
.spin-hint svg { color: var(--xr); }

/* ---- Partículas (destellos al pedir / cambiar pieza) ---- */
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; }

/* Transición del flash: velo cálido dorado */
#flash .wash { background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #fffaf0 0%, #f6e7c0 45%, #d9b86a 100%); }

@media (min-width: 768px) {
  .dots button i { width: 11px; height: 11px; }
  .dots button[aria-current="true"] i { width: 16px; height: 16px; }
  .icon-btn:hover, .cat-fb:hover, .arrow:hover { background: rgba(232, 208, 138, .16); color: var(--xgold); }
  .btn-details:hover { background: rgba(11, 110, 79, .5); }
  body::before {
    background:
      radial-gradient(ellipse 42% 68% at 50% 48%, rgba(232, 208, 138, .06), transparent 72%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(11, 110, 79, .06), transparent 55%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #cat-glow, .dots button i, .dots button::after, .btn-pedir::after { animation: none !important; }
  .cat-snow, #fx { display: none; }
}

/* =====================================================================
   v30 · Premium Multicolor — chips, filamentos, viñetas
   ===================================================================== */
.details-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 12px;
}
.details-colors[hidden],
.details-filaments[hidden],
.details-bullets[hidden] { display: none; }
.color-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .2s, border-color .2s, transform .15s;
}
.color-chip:active { transform: scale(.97); }
.color-chip[aria-current="true"] {
  border-color: rgba(232, 208, 138, .7);
  background: rgba(232, 208, 138, .14);
  box-shadow: 0 0 16px rgba(232, 208, 138, .18);
}
.color-chip .chip-swatch,
.fil-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 1px rgba(0,0,0,.35);
}
.chip-swatch.is-rainbow,
.fil-dot.is-rainbow {
  background: linear-gradient(135deg, #f48fb1 0%, #80deea 48%, #aed581 100%);
}
.details-filaments {
  margin: 0 0 14px;
  padding: 12px 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(232, 208, 138, .18);
  background: rgba(255,255,255,.03);
}
.details-filaments .fil-title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ead7a0;
  text-align: center;
}
.details-filaments ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.details-filaments li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(244,241,234,.86);
}
.details-filaments .fil-dot { margin-top: 3px; }
.details-filaments .fil-part {
  font-weight: 700;
  color: var(--paper);
}
.details-filaments .fil-name {
  color: var(--muted);
}
.details-bullets {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.details-bullets li {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(244,241,234,.88);
  padding-left: 2px;
}

@media (min-width: 768px) {
  .cat-collections {
    margin-top: 10px;
    gap: 10px;
  }
  .cat-collections button {
    height: 30px;
    padding: 0 14px;
    font-size: 11px;
  }
  .cat-collections button:hover {
    background: rgba(255,255,255,.1);
    color: var(--paper);
  }
  .cat-collections button[aria-current="true"]:hover {
    color: #120700;
    background: linear-gradient(180deg, #ff7a2a, var(--orange));
  }
  .color-chip:hover {
    background: rgba(255,255,255,.1);
  }
  .color-chip[aria-current="true"]:hover {
    background: rgba(232, 208, 138, .2);
  }
  .details-filaments li,
  .details-bullets li { font-size: 13px; }
}

body.collection-solo.item-photos .cat-mid {
  visibility: hidden;
  pointer-events: none;
}
/* Extra copy (colores, filamentos, viñetas) needs a shorter gallery so it isn't buried. */
.details-modal.has-extras .details-slide {
  aspect-ratio: 16 / 10;
}
.details-modal.has-extras .details-title {
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .details-modal.has-extras .details-slide {
    aspect-ratio: 16 / 10;
    max-height: 38vh;
  }
}
