/* ==========================================================================
   Primible — Local virtual (página pública)
   Mosaico de fotos planas con puntos sobre cada producto, al estilo IKEA.
   ========================================================================== */

.lv {
  --lv-gap: clamp(10px, 1.2vw, 16px);
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 32px) clamp(48px, 6vw, 80px);
  color: #fff;
}

/* ---------- Encabezado ---------- */
.lv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
}
html .lv .lv__title {
  margin: 8px 0 0 !important;
  color: #fff !important;
  font-size: clamp(28px, 3.2vw, 46px) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
}
.lv__title span { color: #d66bff; }
html .lv .lv__lead { max-width: 560px; margin: 12px 0 0 !important; color: rgba(255, 255, 255, .62) !important; font-size: 15.5px !important; line-height: 1.5 !important; }

.lv__cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease;
}
.lv__cart:hover { border-color: #b114ff; background: #b114ff; }
.lv__cart .badge-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #b114ff; font-size: 13px; }
.lv__cart:hover .badge-count { background: #fff; color: #b114ff; }

/* ---------- Vitrinas: foto 70 % + texto 30 %, alternando el lado ---------- */
.lvr-list { display: grid; gap: clamp(40px, 6vw, 88px); }
.lvr {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}
.lvr--rev { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.lvr--rev .lvr__media { order: 2; }

.lvg__tile {
  position: relative;
  margin: 0 !important;
  overflow: hidden;
  border-radius: clamp(16px, 1.8vw, 26px);
  background: #18181b;
  isolation: isolate;
}
.lvg__frame { position: relative; width: 100%; }
.lvg__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.lvg__tile:hover .lvg__img { transform: scale(1.012); }

/* Indicación discreta en la esquina de la foto */
.lvr__hint {
  position: absolute;
  left: clamp(12px, 1.4vw, 18px);
  bottom: clamp(12px, 1.4vw, 18px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 19, .7);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.lvr__hint-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 4px rgba(17, 17, 19, .4), 0 0 0 1.5px #fff; }

.lvr__body { display: flex; flex-direction: column; align-items: flex-start; }
.lv .lvr__tag { margin: 0 0 14px; color: #d66bff; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
html .lv .lvr__title {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: clamp(26px, 2.4vw, 38px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
html .lv .lvr__desc { margin: 0 0 14px !important; color: #b9b9c0 !important; font-size: 15.5px !important; line-height: 1.6 !important; }
html .lv .lvr__meta { margin: 0 0 22px !important; color: rgba(255, 255, 255, .45) !important; font-size: 11.5px !important; letter-spacing: .08em; text-transform: uppercase; }
.lvr__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #b114ff;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 30px -12px rgba(177, 20, 255, .7);
  transition: background-color .2s ease, transform .2s ease;
}
.lvr__btn:hover { background: #9310d6; transform: translateY(-1px); }
.lvr__btn span { transition: transform .2s ease; }
.lvr__btn:hover span { transform: translateX(3px); }

/* En el home, el módulo usa el ancho del sitio */
.lvr-section .lv { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }

/* ---------- Puntos ---------- */
.lv-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .45s cubic-bezier(.2, 1.5, .4, 1) calc(var(--n, 0) * 45ms + 150ms);
}
.lvg__tile.is-in .lv-dot { transform: translate(-50%, -50%) scale(1); }
.lv-dot__core {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(17, 17, 19, .42);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 4px 12px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background-color .2s ease, box-shadow .2s ease;
}
.lv-dot__core::after {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: inset .25s ease;
}
.lv-dot:hover .lv-dot__core,
.lv-dot:focus-visible .lv-dot__core,
.lv-dot.is-active .lv-dot__core {
  background: #b114ff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(177, 20, 255, .28), 0 6px 16px rgba(0, 0, 0, .4);
  transform: scale(1.12);
}
.lv-dot.is-active .lv-dot__core::after { inset: 9px; }
.lv-dot:hover, .lv-dot.is-active { z-index: 4; }
.lv-dot:focus { outline: none; }

/* ---------- Tarjeta del producto ---------- */
.lv-card {
  --arrow: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  width: 300px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .18);
  color: #111;
  opacity: 0;
  transition: opacity .18s ease;
}
.lv-card::before {
  position: absolute;
  top: var(--arrow);
  left: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}
.lv-card[data-side="left"]::before { right: -6px; left: auto; }
.lv-card[hidden] { display: none; }
.lv-card.is-on { opacity: 1; }
.lv-card__close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #8a8a90; font-size: 19px; line-height: 1; cursor: pointer; }
.lv-card__close:hover { background: #f0f0f2; color: #111; }
.lv-card__img { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #f2f2f4; }
.lv-card__img img { width: 100%; height: 100%; object-fit: cover; }
.lv-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding-right: 16px; }
.lv-card__name { color: #111 !important; font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none !important; }
.lv-card__name:hover { color: #7a0fd6 !important; }
.lv-card__price { color: #111; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
html .lv-card .lv-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  margin-top: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #b114ff;
  box-shadow: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease;
}
html .lv-card .lv-card__add:hover { background: #9310d6; }
html .lv-card .lv-card__add.is-busy { opacity: .7; cursor: progress; }
html .lv-card .lv-card__add.is-ok { background: #1f9d63; }
html .lv-card .lv-card__add[disabled] { background: #e4e4e7; color: #8a8a90; cursor: not-allowed; }
.lv-card__more { margin-top: 2px; color: #6b6b72 !important; font-size: 12.5px; text-decoration: none !important; }
.lv-card__more:hover { color: #111 !important; }

/* Aviso de «agregado al carro» */
.lv__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483002;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .25s ease;
}
.lv__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lv__toast a { color: #d66bff !important; font-weight: 600; }

/* ---------- Lista de productos del recorrido ---------- */
.lv__list { margin-top: clamp(32px, 4vw, 52px); }
html .lv .lv__list-title { margin: 0 0 14px !important; color: #fff !important; font-size: 20px !important; font-weight: 600 !important; }
.lv__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lv__items li { margin: 0 !important; }
.lv__items a { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; color: rgba(255, 255, 255, .7) !important; font-size: 13.5px; text-decoration: none !important; transition: border-color .2s ease; }
.lv__items a:hover { border-color: rgba(214, 107, 255, .5); }
.lv__items img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lv__items span { display: grid; gap: 2px; }
.lv__items strong { color: #fff; font-size: 14px; }
html .lv .lv__alt { margin: 18px 0 0 !important; color: rgba(255, 255, 255, .55); font-size: 14px; }
.lv__alt a { color: #d66bff !important; }

/* ---------- Celular: una foto bajo otra y la tarjeta sube desde abajo ---------- */
@media (max-width: 900px) {
  .lvr, .lvr--rev { grid-template-columns: 1fr; gap: 20px; }
  .lvr--rev .lvr__media { order: 0; }
}
@media (max-width: 760px) {
  .lv__cart { height: 40px; }
  .lv-dot { width: 28px; height: 28px; }
  .lv-dot__core { width: 22px; height: 22px; }
  .lv-dot__core::after { inset: 7px; }
  .lv-card {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2147483001;
    width: auto;
    transform: translateY(16px) !important;
    transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
  }
  .lv-card::before { display: none; }
  .lv-card.is-on { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lv-dot { transition: none; transform: translate(-50%, -50%) scale(1); }
  .lvg__img, .lvr__btn { transition: none; }
}
