/* ==========================================================================
   Catálogo compartido · /productos y /vitrina
   Un solo lugar para las tarjetas, filtros, vista rápida y precios.
   ========================================================================== */

/* ===== VITRINA PRIVADA ===== */
.v-page { background: var(--bg); }
.v-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(242,242,242,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lavender);
}
.v-logo { font-size: 18px; font-weight: 700; color: var(--purple); letter-spacing: .02em; }
.v-logo span { color: #a29de0; }
.v-top-actions { display: flex; align-items: center; gap: 10px; }
.v-private {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--lavender-light); color: #5c598a;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.v-copy {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 99px;
  border: 1.5px solid var(--lavender); background: #fff; color: var(--purple);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.v-copy:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.v-copy svg { width: 14px; height: 14px; }
.v-top-actions .lang-toggle { margin-left: 0; }

.v-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 24px 48px; }

.v-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: clamp(28px,5vw,48px);
  border-radius: 26px;
  background: linear-gradient(135deg,#6462ab 0%,#524f96 55%,#3f3c7a 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(74,74,133,.28);
}
.v-hero::before {
  content: ""; position: absolute; top: -180px; right: 8%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.18),transparent 65%);
  pointer-events: none;
}
.v-hero::after {
  content: ""; position: absolute; bottom: -150px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle,rgba(162,157,224,.5),transparent 65%);
  pointer-events: none;
}
.v-hero-copy { position: relative; z-index: 1; max-width: 620px; }
.v-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.v-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px,4.6vw,48px); line-height: 1.08; letter-spacing: -.02em;
}
.v-hero h1 em { font-style: normal; color: #e3dfff; }
.v-hero p { max-width: 470px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.6; }
.v-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.v-stat {
  min-width: 92px; padding: 12px 16px; text-align: center;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.v-stat b { display: block; font-size: 22px; line-height: 1.15; }
.v-stat span {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}

/* ===== BLACK FRIDAY ===== */
.v-bf {
  position: relative; overflow: hidden;
  margin-top: 22px; padding: clamp(18px,3vw,28px);
  border-radius: 24px; border: 1px solid var(--lavender);
  background: #fff;
  box-shadow: 0 10px 26px rgba(74,74,133,.07);
}
.v-bf-head { margin-bottom: 16px; }
.v-bf-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px;
  background: linear-gradient(135deg,#ff8a3d,#e85d04); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(232,93,4,.24);
}
.v-bf-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.32);
}
.v-bf h2 { margin: 10px 0 5px; font-size: clamp(21px,2.8vw,29px); line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
.v-bf h2 b { color: var(--purple); }
.v-bf-sub { margin: 0; color: #6b6890; font-size: 13px; line-height: 1.5; }
.v-bf-preview {
  display: inline-block; margin: 10px 0 0; padding: 6px 14px; border-radius: 99px;
  background: #efedf8; color: #4a4790; font-size: 12.5px; font-weight: 700;
}
.v-bf-preview[hidden] { display: none; }
.v-bf-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; }
.v-bf .v-buy.btn-primary { background: linear-gradient(135deg,#ff8a3d,#e85d04); border-color: #e85d04; color: #fff; }
.v-bf .v-buy.btn-primary:hover { transform: none; box-shadow: 0 8px 18px rgba(232,93,4,.34); }
.v-bf-note { margin: 14px 0 0; color: #6b6890; font-size: 11.5px; line-height: 1.5; }

.v-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.v-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.v-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-muted); pointer-events: none;
}
.v-search input {
  width: 100%; padding: 11px 16px 11px 40px;
  border: 1.5px solid var(--lavender); border-radius: 99px;
  background: #fff; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.v-search input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(100,98,171,.12); }
.v-chips {
  display: flex; flex: 1 1 auto; gap: 8px;
  overflow-x: auto; padding: 2px;
  scrollbar-width: none;
}
.v-chips::-webkit-scrollbar { display: none; }
.v-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px; white-space: nowrap;
  border: 1.5px solid var(--lavender); background: #fff; color: #5c598a;
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.v-chip b {
  padding: 2px 7px; border-radius: 99px;
  background: #efedf8; color: var(--purple); font-size: 10.5px;
}
.v-chip:hover { border-color: var(--purple-light); color: var(--purple); }
.v-chip.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.v-chip.active b { background: rgba(26,24,50,.28); color: #fff; }

.v-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 0 4px;
  font-size: 12.5px; font-weight: 600; color: #5c598a;
}
.v-clear {
  padding: 0; border: none; background: none; cursor: pointer;
  color: var(--purple); font-family: inherit; font-size: 12.5px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

.v-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 18px; }
.v-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--lavender); border-radius: 20px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.v-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
  box-shadow: 0 14px 30px rgba(100,98,171,.14);
}
.v-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 3/2; padding: 0; border: none; overflow: hidden;
  background: #efedf8; cursor: pointer;
}
.v-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.v-media.contain img { object-fit: contain; padding: 14px; }
.v-card:hover .v-media img { transform: scale(1.04); }
.v-cat {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(255,255,255,.93); color: #4a4790;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.v-badge {
  position: absolute; right: 10px; top: 10px;
  padding: 4px 9px; border-radius: 99px;
  background: #6462ab; color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
}
.v-quick {
  position: absolute; left: 50%; bottom: 10px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(26,24,50,.84); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translate(-50%,8px);
  transition: opacity .22s, transform .22s; pointer-events: none;
}
.v-card:hover .v-quick, .v-media:focus-visible .v-quick { opacity: 1; transform: translate(-50%,0); }
.v-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.v-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.v-body h2 { margin: 0; }
.v-name {
  padding: 0; border: none; background: none; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.3;
}
.v-name:hover { color: var(--purple); }
.v-short {
  flex: 1; margin: 6px 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #6b6890; font-size: 12.5px; line-height: 1.5;
}
.v-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 26px; margin-bottom: 12px; }
.v-price { color: var(--purple); font-size: 20px; font-weight: 700; line-height: 1; }
.v-old { color: #6b6890; font-size: 12.5px; text-decoration: line-through; }
.v-off { padding: 3px 7px; border-radius: 99px; background: #efedf8; color: #524f96; font-size: 10px; font-weight: 700; }
.v-price.v-free { color: var(--purple); }
.v-price.v-soon { padding: 4px 9px; border-radius: 99px; background: #efedf8; color: #524f96; font-size: 13px; }
.v-price.v-price-label { font-size: 16px; letter-spacing: -.01em; }
.v-buy-row { display: flex; gap: 6px; }
.v-buy-row .v-buy { flex: 1 1 0; min-width: 0; width: auto; }
.v-buy-row-split .v-buy { padding-left: 6px; padding-right: 6px; font-size: 11.5px; }
.v-buy { width: 100%; justify-content: center; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; box-shadow: none; }
.v-buy.btn-secondary { border-width: 1.5px; }
.v-buy.btn-primary:hover { transform: none; box-shadow: 0 6px 14px rgba(100,98,171,.28); }

.v-empty {
  padding: 60px 20px; text-align: center;
  background: #fff; border: 1px dashed var(--lavender); border-radius: 20px;
  color: #6b6890; font-size: 14px;
}
.v-empty b { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; }

.v-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--lavender);
  color: #5c598a; font-size: 12px;
}
.v-foot a { color: var(--purple); font-weight: 700; }

/* ===== VISTA RÁPIDA ===== */
.v-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: min(92dvh, 860px);
  margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: #fff; color: var(--text);
  box-shadow: 0 30px 90px rgba(31,29,69,.35);
  overflow: auto;
}
.v-dialog::backdrop { background: rgba(30,27,64,.55); backdrop-filter: blur(6px); }
.v-dialog-inner { position: relative; padding: clamp(18px,3vw,30px); }
.v-close {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: #efedf8; color: #4e4b85; font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.v-close:hover { background: var(--purple); color: #fff; }
.v-dialog-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(18px,3vw,30px); align-items: start; margin-top: 16px;
}
.v-dialog-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 18px; background: #efedf8; }
.v-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.v-dialog-media.contain img { object-fit: contain; padding: 20px; }
.v-dialog-info { padding: 6px 4px; }
.v-dialog-eyebrow {
  display: inline-block; color: var(--purple);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.v-dialog-info h2 { margin: 8px 0 10px; font-size: clamp(22px,3vw,30px); line-height: 1.15; letter-spacing: -.02em; }
.v-desc { margin-bottom: 18px; color: #6b6890; font-size: 14px; line-height: 1.65; }
.v-dialog .v-price-row { margin-bottom: 18px; }
.v-dialog .v-buy { width: auto; min-width: 200px; padding: 13px 26px; font-size: 14px; }
.v-buy-row-modal { flex-wrap: wrap; }
.v-buy-row-modal.v-buy-row-split .v-buy { min-width: 150px; }
.v-dialog-note { margin-top: 12px; color: #6b6890; font-size: 11.5px; line-height: 1.5; }

#vToast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  padding: 11px 20px; border-radius: 99px;
  background: #1a1832; color: #fff;
  font-size: 13px; font-weight: 700;
  opacity: 0; transform: translateX(-50%) translateY(80px);
  transition: opacity .3s, transform .3s; pointer-events: none;
}
#vToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .v-hero { flex-direction: column; align-items: flex-start; }
  .v-stats { width: 100%; }
}
@media (max-width: 640px) {
  .v-topbar { padding: 12px 16px; }
  .v-private { display: none; }
  .v-wrap { padding: 18px 14px 36px; }
  .v-hero { border-radius: 22px; }
  .v-toolbar { gap: 10px; }
  .v-search { flex-basis: 100%; max-width: none; }
  .v-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .v-bf { border-radius: 20px; padding: 16px 14px; }
  .v-bf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .v-bf-sub { font-size: 12px; }
  .v-body { padding: 12px 12px 13px; }
  .v-name { font-size: 13.5px; }
  .v-short { margin: 5px 0 10px; font-size: 11.5px; }
  .v-price { font-size: 17px; }
  .v-old { font-size: 11px; }
  .v-off { font-size: 9px; }
  .v-buy { padding: 9px 8px; font-size: 11.5px; }
  .v-quick { display: none; }
  .v-dialog-grid { grid-template-columns: 1fr; }
  .v-dialog-media { max-height: 42vh; }
  .v-dialog .v-buy { width: 100%; }
  .v-buy-row-modal { flex-direction: column; }
}
@media (max-width: 380px) {
  .v-grid { grid-template-columns: 1fr; }
  .v-bf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Piezas que usan las dos páginas ===== */
.v-emoji {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 48px;
  background: linear-gradient(135deg,#6462ab 0%,#524f96 100%);
}
.v-dialog-media .v-emoji { border-radius: 18px; }
.v-hero .v-trust {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
}
#shop, #filtros { scroll-margin-top: 84px; }

