:root {
  color-scheme: dark;
  --text: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.68);
  --soft: rgba(247, 244, 238, 0.46);
  --glass: rgba(8, 10, 14, 0.66);
  --glass-strong: rgba(6, 8, 12, 0.88);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #86d4ad;
  --accent-strong: #35c979;
  --accent-soft: rgba(134, 212, 173, 0.2);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  display: block;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.mirror-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  container-type: size;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 5%, transparent 94%, rgba(255,255,255,0.06)),
    linear-gradient(90deg, #030405 0%, #212322 9%, #383a37 50%, #212322 91%, #030405 100%),
    #121414;

  /* Layout relativo al viewport real de la pantalla. */
  --carousel-top: 82.5%;
  --carousel-height: 15%;
  --carousel-width: 78%;
  --mirror-top: 27%;
  --mirror-height: 53%;
  --mirror-left: 11.5%;
  --gesture-top: 49%;
  --gesture-size: clamp(118px, 22cqw, 168px);
  --gesture-width: clamp(46px, 7.8cqw, 64px);
  --qr-width: 80%;
  --qr-height: 11cqh;
  --qr-top: 14%;
  --cta-width: 80%;
  --cta-height: 11cqh;

}


.mirror-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 50% 58%, rgba(134, 212, 173, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.12), transparent 20%, transparent 72%, rgba(0,0,0,0.72));
}

.street-reflection {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,0.12) 10%, transparent 14%),
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,0.11) 48%, transparent 54%),
    radial-gradient(circle at 82% 18%, rgba(255, 220, 146, 0.16), transparent 18%),
    radial-gradient(circle at 18% 25%, rgba(134, 212, 173, 0.10), transparent 19%);
}

.mirror-shell,
.carousel-panel,
.carousel-track,
.viewer-stage,
.camera-notch,
.gesture-zone,
.qr-panel,
.status-pill,
.storefront-cta,
.lens-card,
.lens-card img,
.lens-meta {
  transition:
    top 420ms cubic-bezier(.2,.8,.2,1),
    left 420ms cubic-bezier(.2,.8,.2,1),
    right 420ms cubic-bezier(.2,.8,.2,1),
    bottom 420ms cubic-bezier(.2,.8,.2,1),
    width 420ms cubic-bezier(.2,.8,.2,1),
    height 420ms cubic-bezier(.2,.8,.2,1),
    opacity 280ms ease,
    transform 420ms cubic-bezier(.2,.8,.2,1),
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}

/* =========================
   1. CARRUSEL
   ========================= */
.carousel-panel {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: var(--carousel-top);
  width: var(--carousel-width);
  height: var(--carousel-height);
  transform: translateX(-50%);
  padding: clamp(8px, 2.4cqw, 18px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: clamp(10px, 2.2cqw, 18px);
  background: rgba(6, 8, 11, 0.72);
  box-shadow: 0 22px 70px rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2.2cqw, 18px);
  align-items: stretch;
  justify-items: stretch;
  overflow: visible;
}

.lens-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(5px, 1.5cqw, 10px);
  padding: clamp(8px, 1.9cqw, 14px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: clamp(8px, 1.6cqw, 12px);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  overflow: hidden;
  opacity: 0.52;
  cursor: pointer;
  transform: scale(0.94);
}

.lens-card.is-active {
  border-color: rgba(134, 212, 173, 0.85);
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,0.11), transparent 42%),
    linear-gradient(180deg, rgba(134, 212, 173, 0.13), rgba(255,255,255,0.055));
  box-shadow:
    0 0 0 1px rgba(134, 212, 173, 0.12),
    0 0 24px rgba(134, 212, 173, 0.16),
    0 20px 56px rgba(0,0,0,0.42);
  opacity: 0.98;
  transform: scale(1);
  z-index: 2;
}

.lens-visual {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.lens-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.46));
}

.placeholder-lens {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 6px;
  color: rgba(247, 244, 238, 0.42);
  font-size: clamp(9px, 2.2cqw, 13px);
  text-align: center;
  overflow-wrap: anywhere;
}

/* Photos have their own controls and never change the selected GLB. */
.lens-visual.model-gallery {
  overflow: hidden;
  border-radius: clamp(8px, 1.5cqw, 16px);
  touch-action: pan-y;
}

.model-gallery [hidden] {
  display: none !important;
}

.model-gallery.has-product-photo {
  background: #fff;
}

.lens-card .model-gallery img,
.storefront-mode .lens-card .lens-visual.model-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.lens-card .model-gallery.has-product-photo img {
  filter: none;
  opacity: 1;
  object-fit: cover;
  transform: scale(1.1);
}

.gallery-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf2ef;
  color: #456050;
  white-space: nowrap;
  font-size: clamp(9px, 1.5cqw, 12px);
}

.gallery-controls {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #53665a;
  border-radius: 999px;
  background: #17261f;
  color: #fff;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: clamp(30px, 4.5cqw, 44px);
  height: clamp(30px, 4.5cqw, 44px);
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gallery-controls button:hover {
  background: #344c3d;
}

.gallery-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.gallery-counter {
  min-width: 34px;
  text-align: center;
  font-size: clamp(11px, 1.8cqw, 14px);
  font-variant-numeric: tabular-nums;
}

.lens-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.lens-name,
.lens-variant {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lens-name {
  font-size: clamp(11px, 2.5cqw, 15px);
  font-weight: 840;
  line-height: 1.02;
}

.lens-variant {
  margin-top: 2px;
  color: var(--muted);
  font-size: clamp(9px, 2cqw, 12px);
  font-weight: 600;
}

.lens-price {
  color: #dfffe9;
  font-size: clamp(10px, 2.3cqw, 15px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

/* =========================
   2. ESPEJO / IFRAME
   ========================= */
.viewer-stage {
  position: absolute;
  z-index: 3;
  left: var(--mirror-left);
  right: var(--mirror-left);
  top: var(--mirror-top);
  height: var(--mirror-height);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: clamp(4px, 1cqw, 8px);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.78),
    0 22px 56px rgba(0,0,0,0.50),
    inset 0 0 34px rgba(255,255,255,0.08);
}

.viewer-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.viewer-stage::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(134, 212, 173, 0.18);
  border-radius: inherit;
}

.viewer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 18%, transparent 70%, rgba(0,0,0,0.34)),
    linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,0.14) 48%, transparent 56%);
}

.camera-notch {
  position: absolute;
  z-index: 7;
  top: calc(var(--mirror-top) - clamp(18px, 4.8cqw, 34px));
  left: 50%;
  width: min(44%, 210px);
  height: clamp(28px, 7cqw, 40px);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.98), rgba(20,24,30,0.82));
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.camera-notch span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 32%, rgba(255,255,255,0.48), transparent 18%),
    radial-gradient(circle, #161f2a 0 44%, #05070a 45%);
  border: 1px solid rgba(134, 212, 173, 0.34);
}

.brand-lockup {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   CTA VIDRIERA
   ========================= */
.storefront-cta {
  position: absolute;
  z-index: 9;
  left: calc((100% - var(--cta-width, 78%)) / 2);
  top: 2%;
  width: var(--cta-width, 78%);
  min-height: var(--cta-height);
  display: grid;
  align-content: center;
  gap: clamp(3px, 0.7cqh, 10px);
  padding: clamp(6px, 1.2cqh, 22px);
  border: 1px solid rgba(134, 212, 173, 0.55);
  border-radius: clamp(14px, 4cqw, 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.16), transparent 52%),
    linear-gradient(180deg, rgba(8,10,13,0.58), rgba(8,10,13,0.34));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 42px rgba(134, 212, 173, 0.13),
    0 22px 70px rgba(0,0,0,0.38);
  backdrop-filter: blur(8px);
  text-align: center;
  pointer-events: none;
}

.storefront-cta strong {
  display: grid;
  gap: 0;
  color: #f8fff9;
  font-size: clamp(22px, 5.8cqw, 46px);
  line-height: 0.95;
  font-weight: 930;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.storefront-cta span {
  color: #9fe8bd;
  font-size: clamp(13px, 3.3cqw, 25px);
  font-weight: 820;
  line-height: 1.08;
}

.storefront-cta small {
  color: rgba(247,244,238,0.68);
  font-size: clamp(10px, 2.35cqw, 17px);
  line-height: 1.22;
}

/* =========================
   GESTOS LATERALES
   ========================= */
.gesture-zone {
  position: absolute;
  z-index: 10;
  top: var(--gesture-top);
  width: var(--gesture-width);
  min-width: 0;
  height: var(--gesture-size);
  min-height: 0;
  transform: translateY(-50%);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 8px;
  padding: clamp(7px, 1.9cqw, 11px) clamp(5px, 1.5cqw, 8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: clamp(12px, 3cqw, 20px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.025)),
    rgba(8,10,13,0.88);
  color: var(--text);
  box-shadow: 0 18px 50px var(--shadow);
  backdrop-filter: blur(16px);
  cursor: pointer;
  overflow: hidden;
}

.gesture-zone::before {
  content: "";
  position: absolute;
  inset: -44px -28px;
  pointer-events: none;
}

.gesture-left {
  left: clamp(8px, 5.2%, 42px);
}

.gesture-right {
  right: clamp(8px, 5.2%, 42px);
}

.gesture-icon {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: clamp(30px, 5.8cqw, 44px);
  height: clamp(30px, 5.8cqw, 44px);
  border: 1px solid rgba(134, 212, 173, 0.42);
  border-radius: 999px;
  color: #eef7f1;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,0.24), transparent 32%),
    linear-gradient(180deg, #26312f, #111719);
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.06),
    0 0 18px rgba(134,212,173,0.13),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  font-size: clamp(28px, 5cqw, 42px);
  line-height: 0.8;
}

.gesture-copy,
.gesture-right .gesture-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.gesture-right .gesture-icon {
  order: 1;
}

.gesture-copy strong {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(13px, 2.7cqw, 18px);
  font-weight: 880;
  line-height: 1;
}

.gesture-copy small {
  display: none;
}

.gesture-progress {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  padding: 3px;
  background: conic-gradient(from -90deg, rgba(134, 212, 173, 0.82) var(--progress, 0%), transparent 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.gesture-zone.is-hot {
  opacity: 1 !important;
  border-color: rgba(134, 212, 173, 0.72);
  background:
    linear-gradient(180deg, rgba(134, 212, 173, 0.18), rgba(255,255,255,0.04)),
    rgba(9, 15, 16, 0.95);
  box-shadow:
    0 0 0 1px rgba(134, 212, 173, 0.18),
    0 0 26px rgba(134, 212, 173, 0.20),
    0 20px 52px rgba(0,0,0,0.48);
}

.gesture-zone.is-hot .gesture-progress {
  opacity: 1;
}

/* =========================
   3. QR
   ========================= */
.qr-panel {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: var(--qr-top);
  width: var(--qr-width);
  height: var(--qr-height);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2.8cqw, 20px);
  padding: clamp(8px, 2.4cqw, 18px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: clamp(9px, 2.6cqw, 18px);
  background: linear-gradient(180deg, rgba(7,9,12,0.96), rgba(2,3,4,0.98));
  box-shadow: 0 20px 60px var(--shadow);
  backdrop-filter: blur(18px);
}

.qr-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(5px, 1.6cqw, 10px);
  text-align: left;
}

.qr-copy strong {
  font-size: clamp(13px, 3.3cqw, 23px);
  line-height: 1.04;
  font-weight: 880;
}

.qr-copy span {
  width: fit-content;
  max-width: 100%;
  padding: clamp(4px, 1.1cqw, 7px) clamp(8px, 2.2cqw, 14px);
  border-radius: 999px;
  background: rgba(53, 201, 121, 0.26);
  color: #b8f0ce;
  font-size: clamp(11px, 2.6cqw, 18px);
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.qr-box {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--qr-height) - 2.4cqh);
  height: calc(var(--qr-height) - 2.4cqh);
  padding: clamp(5px, 1.4cqw, 8px);
  border-radius: clamp(6px, 1.6cqw, 12px);
  background: #fff;
  color: #07110c;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.40);
}

.qr-box img,
.qr-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-box img[src=""] {
  display: none;
}

.qr-box img:not([src=""]) + canvas {
  display: none;
}

.status-pill {
  position: absolute;
  z-index: 12;
  left: calc(var(--mirror-left) + 4%);
  right: calc(var(--mirror-left) + 4%);
  top: calc(var(--mirror-top) + var(--mirror-height) - 36px);
  bottom: auto;
  max-width: none;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(8,10,14,0.68);
  color: rgba(247,244,238,0.86);
  text-align: center;
  font-size: clamp(10px, 2.4cqw, 14px);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 38px var(--shadow);
  backdrop-filter: blur(16px);
}

.hand-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hand-cursor {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: 50%;
  width: clamp(82px, 18cqw, 132px);
  height: clamp(82px, 18cqw, 132px);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transform-origin: 50% 50%;
  transition: opacity 140ms ease, transform 140ms ease, left 80ms linear, top 80ms linear;
  filter:
    drop-shadow(0 14px 24px rgba(0,0,0,0.46))
    drop-shadow(0 0 16px rgba(134,212,173,0.25));
}

.hand-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hand-cursor.is-right {
  transform: translate(-50%, -50%) scaleX(-1) scale(1);
}

.hand-cursor img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================
   MODO VIDRIERA / CARRUSEL
   ========================= */
.mirror-shell.storefront-mode {
  --carousel-top: 63%;
  --carousel-height: 34%;
  --carousel-width: 94%;
  --mirror-top: 18%;
  --mirror-height: 40%;
  --mirror-left: 17%;
  --gesture-top: 43%;
  --gesture-size: clamp(100px, 22cqw, 154px);
  --gesture-width: clamp(40px, 7cqw, 56px);
}

.storefront-mode .carousel-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.storefront-mode .carousel-track {
  grid-template-columns: minmax(0, .52fr) minmax(0, 2.85fr) minmax(0, .52fr);
  align-items: center;
  justify-items: center;
  gap: clamp(8px, 2.4cqw, 24px);
}

.storefront-mode .carousel-track[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.storefront-mode .lens-card {
  justify-self: center;
  align-self: center;
}

.storefront-mode .lens-card:not(.is-active) {
  width: clamp(88px, 24cqw, 230px);
  aspect-ratio: .62 / 1;
  height: auto;
  max-height: 70%;
  padding: clamp(8px, 2.1cqw, 14px);
  border-radius: clamp(12px, 2.6cqw, 18px);
  background: rgba(8, 10, 13, 0.34);
  border-color: rgba(255,255,255,0.17);
  opacity: 0.38;
  box-shadow: 0 22px 60px rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
}

.storefront-mode .lens-card.is-prev {
  transform: perspective(700px) rotateY(22deg) scale(0.94) translateX(6%);
}

.storefront-mode .lens-card.is-next {
  transform: perspective(700px) rotateY(-22deg) scale(0.94) translateX(-6%);
}

.storefront-mode .lens-card.is-active {
  width: clamp(250px, 68cqw, 700px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 96%;
  padding: clamp(10px, 2.4cqw, 20px) clamp(12px, 3cqw, 24px) clamp(12px, 2.8cqw, 22px);
  border-radius: clamp(20px, 5cqw, 36px);
  border-color: rgba(134, 212, 173, 0.98);
  background:
    radial-gradient(circle at 50% 15%, #fff 0%, rgba(255,255,255,0.72) 42%, transparent 70%),
    linear-gradient(180deg, #f4f7f5, #e1e9e4);
  color: #111915;
  box-shadow:
    0 0 0 1px rgba(134, 212, 173, 0.28),
    0 0 38px rgba(134, 212, 173, 0.32),
    0 32px 96px rgba(0,0,0,0.46);
  opacity: 1;
  transform: none;
  z-index: 4;
}

.storefront-mode .lens-card:not(.is-active) .lens-visual {
  opacity: 0.86;
}

.storefront-mode .lens-card.is-active .lens-visual {
  min-height: 0;
  border: 1px solid rgba(20, 48, 35, 0.12);
  box-shadow: 0 12px 30px rgba(24, 48, 36, 0.10);
}

.storefront-mode .lens-card.is-active img {
  width: 112%;
  height: 112%;
  margin-left: -6%;
  object-fit: contain;
}

.storefront-mode .lens-card:not(.is-active) img {
  width: 112%;
  height: 112%;
  margin-left: -6%;
  opacity: 0.72;
}

.storefront-mode .lens-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.storefront-mode .lens-card.is-active .lens-meta {
  display: block;
  text-align: center;
}

.storefront-mode .lens-card.is-active .lens-name {
  font-size: clamp(28px, 7.2cqw, 58px);
  line-height: .94;
  letter-spacing: -0.035em;
  text-align: center;
  -webkit-line-clamp: 2;
}

.storefront-mode .lens-card.is-active .lens-variant {
  margin-top: clamp(4px, 1.2cqw, 10px);
  font-size: clamp(15px, 3.8cqw, 28px);
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  color: #536159;
}

.storefront-mode .lens-card.is-active .lens-price {
  display: none;
}

.storefront-mode .lens-card:not(.is-active) .lens-name {
  font-size: clamp(12px, 3cqw, 19px);
}

.storefront-mode .lens-card:not(.is-active) .lens-variant,
.storefront-mode .lens-card:not(.is-active) .lens-price {
  font-size: clamp(9px, 2.2cqw, 13px);
  opacity: 0.66;
}

.storefront-mode .viewer-stage {
  opacity: 0.82;
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.70),
    0 18px 44px rgba(0,0,0,0.42),
    0 0 42px rgba(134,212,173,0.07),
    inset 0 0 30px rgba(255,255,255,0.06);
}

.storefront-mode .viewer-stage::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), transparent 20%, transparent 68%, rgba(0,0,0,0.38)),
    linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,0.14) 48%, transparent 56%);
}

.storefront-mode .camera-notch {
  opacity: 0.78;
}

.storefront-mode .storefront-cta {
  opacity: 1;
  transform: none;
}

.storefront-mode .gesture-zone {
  opacity: 0.48;
  transform: translateY(-50%) scale(0.90);
}

.storefront-mode .status-pill {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   MODO ESPEJO
   ========================= */
.mirror-shell.mirror-mode {
  --carousel-top: 82.5%;
  --carousel-height: 15.5%;
  --carousel-width: 80%;
  --mirror-top: 27%;
  --mirror-height: 53%;
  --mirror-left: 11.5%;
  --gesture-top: 53.5%;
  --gesture-size: clamp(122px, 24cqw, 174px);
  --gesture-width: clamp(48px, 8.2cqw, 66px);
}

.mirror-mode .carousel-panel {
  opacity: 0.86;
}

.mirror-mode .carousel-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2.4cqw, 14px);
}

.mirror-mode .lens-card {
  width: auto;
  height: 100%;
  aspect-ratio: auto;
  opacity: 0.44;
  transform: scale(0.94);
}

.mirror-mode .lens-card.is-active {
  opacity: 0.98;
  transform: scale(1);
}

.mirror-mode .lens-card img {
  transform: none;
}

.mirror-mode .viewer-stage {
  opacity: 1;
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.36),
    0 18px 44px rgba(0,0,0,0.34),
    inset 0 0 22px rgba(255,255,255,0.05);
}

.mirror-mode .camera-notch {
  opacity: 0.92;
}

.mirror-mode .storefront-cta {
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.mirror-mode .gesture-zone {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.mirror-mode .status-pill {
  opacity: 1;
}

.mirror-mode .qr-panel {
  opacity: 1;
}

@container (max-width: 430px) {
  .storefront-cta {
    gap: 2px;
    padding: 4px;
  }

  .storefront-cta strong span {
    font-size: 12px;
  }

  .storefront-cta > span {
    font-size: 10px;
  }

  .storefront-cta small {
    font-size: 8px;
    line-height: 1.1;
  }

  .qr-panel {
    padding: 6px;
  }

  .camera-notch {
    top: var(--mirror-top);
  }

  .mirror-shell.storefront-mode {
    --carousel-height: 34%;
    --mirror-top: 27%;
    --mirror-height: 31.5%;
    --mirror-left: 16%;
  }

  .storefront-mode .lens-card.is-active {
    width: clamp(245px, 72cqw, 310px);
  }

  .storefront-mode .lens-card:not(.is-active) {
    width: clamp(84px, 25cqw, 112px);
  }

  .mirror-shell.mirror-mode {
    --carousel-width: 82%;
    --mirror-left: 10.5%;
    --mirror-height: 53%;
  }

  .qr-copy strong {
    font-size: clamp(12px, 3.2cqw, 16px);
  }

  .qr-copy span {
    font-size: clamp(10px, 2.7cqw, 13px);
  }
}

@media (orientation: landscape) {
  .storefront-mode .lens-card.is-active {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(12px, 2cqw, 24px);
    height: 96%;
    padding: clamp(10px, 1.8cqh, 20px);
  }

  .storefront-mode .lens-card.is-active .lens-meta {
    align-self: center;
  }

  .storefront-mode .lens-card.is-active .lens-name {
    font-size: clamp(18px, 3.8cqh, 36px);
    line-height: 1.05;
  }

  .storefront-mode .lens-card.is-active .lens-variant {
    font-size: clamp(11px, 1.8cqh, 18px);
  }
}

/* Shared header: information and QR keep the same position in both states. */
.experience-header {
  position: absolute;
  z-index: 11;
  top: 2%;
  left: 7%;
  width: 86%;
  height: 13%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  padding: 1.2cqh 2.5cqw;
  border: 1px solid rgba(187, 211, 196, .25);
  border-radius: clamp(14px, 2.5cqw, 28px);
  background: #202824;
  box-shadow: 0 12px 35px rgba(0,0,0,.16);
}

.experience-header .storefront-cta,
.experience-header .qr-panel {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.experience-header .storefront-cta {
  text-align: left;
  gap: .7cqh;
}

.experience-header .storefront-cta strong span {
  font-size: clamp(16px, 3.1cqw, 36px);
  line-height: 1.08;
  color: #edf6ef;
}

.experience-header .storefront-cta > span {
  font-size: clamp(11px, 2cqw, 24px);
  line-height: 1.2;
}

.experience-header .storefront-cta small {
  font-size: clamp(9px, 1.5cqw, 17px);
}

.experience-header .qr-panel {
  display: flex;
  flex-direction: column-reverse;
  gap: .4cqh;
}

.experience-header .qr-box {
  width: 8.7cqh;
  height: 8.7cqh;
  padding: clamp(4px, .6cqh, 10px);
  border-radius: 8px;
  box-shadow: none;
}

.experience-header .qr-copy { justify-items: center; gap: 0; }
.experience-header .qr-copy strong { display: none; }
.experience-header .qr-copy span {
  padding: 0;
  background: none;
  font-size: clamp(8px, 1.3cqw, 15px);
  line-height: 1.2;
}

.storefront-mode .lens-card.is-active {
  padding: clamp(8px, 1.4cqw, 16px);
  background: #f8faf8;
  border-color: #cbdacf;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

.storefront-mode .lens-card.is-active .lens-visual {
  border: 0;
  box-shadow: none;
}

.storefront-mode .lens-card.is-active .model-gallery.has-product-photo img {
  transform: scale(1.4);
}

.storefront-mode .lens-card.is-active .lens-name {
  font-size: clamp(20px, 3.9cqw, 42px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.storefront-mode .lens-card.is-active .lens-variant {
  font-size: clamp(12px, 1.9cqw, 21px);
  margin-top: 6px;
  letter-spacing: .04em;
}

.storefront-mode .lens-card:not(.is-active) {
  opacity: .76;
  background: #dce4de;
  color: #17251c;
  border-color: #aabcb0;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.storefront-mode .lens-card:not(.is-active) .lens-variant,
.storefront-mode .lens-card:not(.is-active) .lens-price {
  color: #304c3b;
  opacity: 1;
}

.gallery-controls {
  background: #edf2ee;
  color: #243b2b;
  border-color: #d7e0da;
}
.gallery-controls button { color: #243b2b; }
.gallery-controls button:hover { background: #d3e0d6; }

@media (max-width: 430px) and (orientation: portrait) {
  .experience-header { left: 4%; width: 92%; padding: .8cqh 2cqw; gap: 2cqw; }
  .experience-header .storefront-cta { gap: 3px; }
  .experience-header .storefront-cta strong span { font-size: 14px; }
  .experience-header .storefront-cta > span { font-size: 10px; }
  .experience-header .storefront-cta small { font-size: 8px; }
  .experience-header .qr-copy span { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
.public-view #cameraZoomControls { display: none !important; }
.camera-auto-frame-help { display: block; line-height: 1.4; color: #67716d; margin-bottom: 10px; }
