/* Voces · reseñas — DominandoTuNegocio.cl */
.vx, .vx-modal, .vx-write, .vx-testi {
  --vx-accent: #111111;
  --vx-on-accent: #ffffff;
  --vx-star: #111111;
  --vx-star-empty: color-mix(in srgb, currentColor 16%, transparent);
  --vx-text: inherit;
  --vx-muted: color-mix(in srgb, currentColor 58%, transparent);
  --vx-line: color-mix(in srgb, currentColor 12%, transparent);
  --vx-card: color-mix(in srgb, currentColor 3.5%, transparent);
  --vx-radius: 18px;
  --vx-ease: cubic-bezier(.22, 1, .36, 1);
  --vx-ease-in: cubic-bezier(.64, 0, .78, 0);
  font: inherit;
  color: var(--vx-text);
  box-sizing: border-box;
}
.vx *, .vx-modal *, .vx-write *, .vx-testi * { box-sizing: border-box; }
.vx svg, .vx-modal svg, .vx-write svg, .vx-testi svg { display: block; }

/* ---------- Estrellas ---------- */
.vx-stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.vx-stars__row { display: inline-flex; gap: var(--vx-star-gap, 2px); }
.vx-stars__row svg { width: var(--vx-star-size, 16px); height: var(--vx-star-size, 16px); flex: none; }
.vx-stars__base svg { fill: var(--vx-star-empty); }
.vx-stars__fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); overflow: hidden; white-space: nowrap; }
.vx-stars__fill svg { fill: var(--vx-star); }

/* ---------- Botones ---------- */
.vx-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--vx-btn-radius, 999px); background: var(--vx-accent); color: var(--vx-on-accent);
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
  transition: transform .5s var(--vx-ease), box-shadow .5s var(--vx-ease), opacity .3s;
}
.vx-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in srgb, var(--vx-on-accent) 14%, var(--vx-accent));
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--vx-ease);
}
.vx-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.vx-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--vx-accent) 70%, transparent); }
.vx-btn:active { transform: translateY(0) scale(.98); }
.vx-btn svg { width: 16px; height: 16px; transition: transform .5s var(--vx-ease); }
.vx-btn:hover svg { transform: translateX(3px); }
.vx-btn[disabled] { opacity: .55; pointer-events: none; }
.vx-btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--vx-line); }
.vx-btn--line::before { background: var(--vx-card); }
.vx-btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.vx-btn.is-loading { color: transparent; }
.vx-btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--vx-on-accent); border-right-color: transparent; animation: vx-spin .7s linear infinite;
}
@keyframes vx-spin { to { transform: rotate(360deg); } }

/* ---------- Widget de producto ---------- */
.vx, .vx-testi { width: 100%; flex: 1 1 100%; min-width: 0; align-self: stretch; grid-column: 1 / -1; }
.shopify-app-block:has(> .vx), .shopify-app-block:has(> .vx-testi), [id^="shopify-block-"]:has(> .vx), [id^="shopify-block-"]:has(> .vx-testi) { width: 100%; max-width: 100%; flex: 1 1 100%; align-self: stretch; grid-column: 1 / -1; }
.vx { padding: var(--vx-pt, 72px) 0 var(--vx-pb, 72px); }
.vx__wrap { width: min(100% - 32px, var(--vx-max, 1200px)); margin-inline: auto; }
.vx__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px);
  align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--vx-line);
}
.vx__eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--vx-muted); margin: 0 0 14px; }
.vx__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 600; }
.vx__score { display: flex; align-items: center; gap: 18px; }
.vx__avg { font-size: clamp(54px, 6vw, 76px); line-height: .9; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.vx__score .vx-stars { --vx-star-size: 20px; margin-bottom: 8px; }
.vx__based { display: block; font-size: 14px; color: var(--vx-muted); }

.vx__dist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.vx__dist li { display: grid; grid-template-columns: 14px 14px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.vx__dist li > svg { width: 13px; height: 13px; fill: var(--vx-star); }
.vx__bar { height: 6px; border-radius: 99px; background: var(--vx-line); overflow: hidden; }
.vx__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--vx-star); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--vx-ease); }
.vx.is-in .vx__bar i { transform: scaleX(1); }
.vx__dist li:nth-child(2) .vx__bar i { transition-delay: .06s; }
.vx__dist li:nth-child(3) .vx__bar i { transition-delay: .12s; }
.vx__dist li:nth-child(4) .vx__bar i { transition-delay: .18s; }
.vx__dist li:nth-child(5) .vx__bar i { transition-delay: .24s; }
.vx__dist span:last-child { text-align: right; color: var(--vx-muted); }

.vx__bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 26px; flex-wrap: wrap; }
.vx__shown { font-size: 14px; color: var(--vx-muted); margin: 0; }
.vx__sort { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--vx-btn-radius, 999px); background: var(--vx-card); box-shadow: inset 0 0 0 1px var(--vx-line); }
.vx__sort button {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 500;
  padding: 9px 15px; border-radius: var(--vx-btn-radius, 999px); cursor: pointer; position: relative; z-index: 1; white-space: nowrap;
  transition: color .4s var(--vx-ease);
}
.vx__sort button[aria-pressed="true"] { color: var(--vx-on-accent); }
.vx__sort-ind { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: var(--vx-btn-radius, 999px); background: var(--vx-accent); transition: transform .55s var(--vx-ease), width .55s var(--vx-ease), height .55s var(--vx-ease); }

.vx__grid { columns: var(--vx-cols, 3) 290px; column-gap: 18px; transition: opacity .35s var(--vx-ease), filter .35s var(--vx-ease); }
.vx__grid.is-busy { opacity: .35; filter: blur(4px); }
.vx-card {
  break-inside: avoid; margin: 0 0 18px; padding: 24px; border-radius: var(--vx-radius);
  background: var(--vx-card); box-shadow: inset 0 0 0 1px var(--vx-line);
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity .8s var(--vx-ease), transform .8s var(--vx-ease), filter .8s var(--vx-ease), box-shadow .4s;
}
.vx-card.is-in { opacity: 1; transform: none; filter: none; }
.vx-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent); }
.vx-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.vx-card__date { font-size: 12px; color: var(--vx-muted); white-space: nowrap; }
.vx-card__title { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -.005em; overflow-wrap: anywhere; }
.vx-card__body { font-size: 15px; line-height: 1.62; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.vx-card__photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vx-card__photo { appearance: none; border: 0; padding: 0; cursor: zoom-in; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--vx-line); }
.vx-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--vx-ease); }
.vx-card__photo:hover img { transform: scale(1.08); }
.vx-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; font-size: 14px; }
.vx-card__author { font-weight: 600; }
.vx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--vx-muted); }
.vx-badge svg { width: 14px; height: 14px; fill: var(--vx-accent); }
.vx-card__product { width: 100%; font-size: 12px; color: var(--vx-muted); }
.vx-card__reply { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--vx-card); box-shadow: inset 2px 0 0 var(--vx-accent); font-size: 14px; line-height: 1.55; }
.vx-card__reply b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }

.vx__more[hidden] { display: none; }
.vx__more { display: flex; justify-content: center; margin-top: 18px; }
.vx__empty { text-align: center; padding: 56px 16px; border-radius: var(--vx-radius); background: var(--vx-card); box-shadow: inset 0 0 0 1px var(--vx-line); }
.vx__empty p { margin: 0 0 22px; font-size: 16px; color: var(--vx-muted); }
.vx__empty .vx-stars { --vx-star-size: 26px; margin-bottom: 18px; }

@media (max-width: 899px) {
  .vx__head { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .vx__cta .vx-btn { width: 100%; }
  .vx__sort { flex-wrap: wrap; border-radius: 22px; max-width: 100%; }
}

/* ---------- Modal (fondo desenfocado y oscuro) ---------- */
.vx-modal {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 8, 10, .62); -webkit-backdrop-filter: blur(14px) saturate(.8); backdrop-filter: blur(14px) saturate(.8);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--vx-ease), visibility 0s linear .45s;
}
.vx-modal.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--vx-ease); }
.vx-modal__panel {
  position: relative; width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--vx-panel, #ffffff); color: var(--vx-panel-text, #151515); border-radius: 24px; padding: 34px clamp(20px, 5vw, 38px) 30px;
  transform: translateY(28px) scale(.97); filter: blur(8px); opacity: 0;
  transition: transform .6s var(--vx-ease), filter .6s var(--vx-ease), opacity .45s var(--vx-ease);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
}
.vx-modal.is-open .vx-modal__panel { transform: none; filter: none; opacity: 1; }
.vx-modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f1f0ee; color: inherit; display: grid; place-items: center; transition: transform .5s var(--vx-ease), background .3s;
}
.vx-modal__close:hover { transform: rotate(90deg); background: #e6e4e1; }
.vx-modal__close svg { width: 16px; height: 16px; }
.vx-modal__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #77736e; margin: 0 0 8px; }
.vx-modal__title { font-size: 26px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 22px; font-weight: 600; padding-right: 44px; }
.vx-modal--photo .vx-modal__panel { width: auto; max-width: min(100%, 980px); padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.vx-modal--photo img { display: block; max-width: 100%; max-height: calc(100dvh - 48px); border-radius: 18px; }
.vx-modal--photo .vx-modal__close { top: -8px; right: -8px; background: #fff; color: #111; }

/* ---------- Formulario ---------- */
.vx-form { display: grid; gap: 16px; }
.vx-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vx-pick__stars { display: inline-flex; gap: 6px; }
.vx-pick__stars button {
  appearance: none; border: 0; background: transparent; padding: 2px; cursor: pointer; color: #d9d6d1;
  transition: transform .45s var(--vx-ease), color .3s var(--vx-ease);
}
.vx-pick__stars button svg { width: 36px; height: 36px; fill: currentColor; }
.vx-pick__stars button.is-on { color: var(--vx-star); }
.vx-pick__stars button:hover { transform: translateY(-3px) scale(1.12); }
.vx-pick__stars button.is-pop { animation: vx-pop .5s var(--vx-ease); }
@keyframes vx-pop { 40% { transform: scale(1.3) rotate(-8deg); } 100% { transform: none; } }
.vx-pick__label { position: relative; height: 22px; min-width: 120px; overflow: hidden; font-weight: 600; font-size: 15px; }
.vx-pick__label span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform .45s var(--vx-ease), opacity .45s var(--vx-ease), filter .45s; }
.vx-pick__label span.is-out { transform: translateY(-100%); opacity: 0; filter: blur(3px); }
.vx-pick__label span.is-pre { transform: translateY(100%); opacity: 0; filter: blur(3px); }

.vx-field { display: grid; gap: 7px; }
.vx-field > span { font-size: 13px; font-weight: 600; }
.vx-field small { font-weight: 400; color: #8a857f; }
.vx-field input, .vx-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: inherit; background: #f6f5f3; border: 1.5px solid transparent;
  border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .3s var(--vx-ease), background .3s, box-shadow .3s;
}
.vx-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.vx-field input:focus, .vx-field textarea:focus { background: #fff; border-color: var(--vx-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vx-accent) 12%, transparent); }
.vx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .vx-row2 { grid-template-columns: 1fr; } }
.vx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.vx-drop {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 14px;
  border: 1.5px dashed #d6d2cc; transition: border-color .3s, background .3s;
}
.vx-drop.is-over { border-color: var(--vx-accent); background: #f6f5f3; }
.vx-drop__add {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: inherit;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #f1f0ee;
  transition: background .3s, transform .4s var(--vx-ease);
}
.vx-drop__add:hover { background: #e6e4e1; transform: translateY(-1px); }
.vx-drop__add svg { width: 16px; height: 16px; }
.vx-drop__hint { font-size: 12px; color: #8a857f; }
.vx-thumb { position: relative; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; animation: vx-in .5s var(--vx-ease); }
.vx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vx-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #111; color: #fff; cursor: pointer; display: grid; place-items: center; }
.vx-thumb button svg { width: 9px; height: 9px; }
@keyframes vx-in { from { opacity: 0; transform: scale(.85); filter: blur(4px); } }

.vx-error { font-size: 14px; color: #b42318; min-height: 0; margin: 0; overflow: hidden; transition: max-height .4s var(--vx-ease); }
.vx-legal { font-size: 12px; color: #8a857f; margin: 0; line-height: 1.5; }

/* ---------- Éxito + cupón ---------- */
.vx-done { text-align: center; padding: 10px 0 4px; animation: vx-in .6s var(--vx-ease); }
.vx-done__check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--vx-accent); color: var(--vx-on-accent); display: grid; place-items: center; }
.vx-done__check svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: vx-draw .7s var(--vx-ease) .15s forwards; }
@keyframes vx-draw { to { stroke-dashoffset: 0; } }
.vx-done h3 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.vx-done p { margin: 0 auto; max-width: 380px; color: #6f6a64; line-height: 1.55; }
.vx-coupon { margin: 22px auto 0; max-width: 360px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--vx-accent); animation: vx-in .7s var(--vx-ease) .25s both; }
.vx-coupon small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a857f; margin-bottom: 8px; }
.vx-coupon strong { display: block; font-size: 24px; letter-spacing: .12em; margin-bottom: 14px; }
.vx-coupon__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vx-coupon__actions .vx-btn { padding: 12px 18px; font-size: 14px; }

/* ---------- Página "escribir reseña" (desde el correo) ---------- */
.vx-write { width: min(100% - 32px, 760px); margin: clamp(32px, 6vw, 72px) auto; }
.vx-write__head { margin-bottom: 30px; }
.vx-write__head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 600; }
.vx-write__head p { margin: 0; color: var(--vx-muted); font-size: 16px; line-height: 1.55; }
.vx-write__gift { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; padding: 14px 16px; border-radius: 14px; background: var(--vx-card); box-shadow: inset 0 0 0 1px var(--vx-line); font-size: 14px; line-height: 1.5; }
.vx-write__gift svg { width: 22px; height: 22px; flex: none; stroke: var(--vx-accent); fill: none; stroke-width: 1.8; }
.vx-wcard {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px; margin-bottom: 18px; border-radius: 22px;
  background: #fff; color: #151515; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -26px rgba(0,0,0,.35);
  animation: vx-in .7s var(--vx-ease) both;
}
.vx-wcard__img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: #f1f0ee; }
.vx-wcard h2 { font-size: 18px; margin: 0 0 14px; line-height: 1.3; }
.vx-wcard.is-done { opacity: .7; }
@media (max-width: 600px) { .vx-wcard { grid-template-columns: 1fr; } .vx-wcard__img { width: 88px; height: 88px; } }
.vx-write__state { text-align: center; padding: 60px 16px; color: var(--vx-muted); }

/* ---------- Estrellas en la ficha (bloque compacto) ---------- */
.vx-inline { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-size: 14px; }
.vx-inline .vx-stars { --vx-star-size: var(--vx-inline-size, 15px); }
.vx-inline span { color: var(--vx-muted); transition: color .3s; }
.vx-inline:hover span { color: currentColor; }

/* ---------- Testimonios (home) ---------- */
.vx-testi { padding: var(--vx-pt, 80px) 0 var(--vx-pb, 80px); overflow: hidden; }
.vx-testi__head { width: min(100% - 32px, var(--vx-max, 1200px)); margin: 0 auto 32px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.vx-testi__title { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 600; max-width: 18ch; }
.vx-testi__score { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--vx-muted); margin-top: 14px; }
.vx-testi__score b { font-size: 22px; color: var(--vx-text, currentColor); font-weight: 600; }
.vx-testi__nav { display: flex; gap: 8px; }
.vx-testi__nav button {
  appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; color: inherit;
  background: var(--vx-card); box-shadow: inset 0 0 0 1px var(--vx-line); display: grid; place-items: center;
  transition: transform .5s var(--vx-ease), background .3s, box-shadow .3s;
}
.vx-testi__nav button:hover { transform: scale(1.06); box-shadow: inset 0 0 0 1px currentColor; }
.vx-testi__nav button:disabled { opacity: .35; pointer-events: none; }
.vx-testi__nav svg { width: 18px; height: 18px; }
.vx-testi__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(16px, calc((100% - var(--vx-max, 1200px)) / 2)); scroll-padding-inline: max(16px, calc((100% - var(--vx-max, 1200px)) / 2));
}
.vx-testi__track::-webkit-scrollbar { display: none; }
.vx-testi .vx-card { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
.vx-testi .vx-card__body { font-size: 16px; }
.vx-testi .vx-card__foot { margin-top: auto; padding-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .vx *, .vx-modal *, .vx-write *, .vx-testi * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .vx-card { opacity: 1; transform: none; filter: none; }
}