/* sonidohifi 1.8.1 · ventana antes del pago. Tokens del tema (Chivo, marfil, carbón, mineral). Sin estilos en línea. */
.sh-up{position:fixed;inset:0;z-index:10010;visibility:hidden;pointer-events:none;transition:visibility 0s linear 240ms;font-family:Chivo,ui-sans-serif,system-ui,sans-serif;color:var(--ink,#292e2b)}
.sh-up.is-open{visibility:visible;pointer-events:auto;transition-delay:0s}
.sh-up *{box-sizing:border-box}
.sh-up [hidden]{display:none}
.sh-up button,.sh-up a{font:inherit}
.sh-up__overlay{position:absolute;inset:0;background:rgba(41,46,43,.5);opacity:0;transition:opacity 220ms ease}
.sh-up.is-open .sh-up__overlay{opacity:1}
.sh-up__dialog{position:absolute;top:50%;left:50%;display:flex;flex-direction:column;width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 48px);background:var(--white,#f2f0eb);border-radius:20px;box-shadow:0 24px 64px rgba(41,46,43,.28);outline:0;opacity:0;transform:translate(-50%,-47%);transition:opacity 220ms ease,transform 240ms var(--ease-smooth,cubic-bezier(.22,1,.36,1))}
.sh-up.is-open .sh-up__dialog{opacity:1;transform:translate(-50%,-50%)}
html.sh-up-lock{overflow:hidden}
html.sh-up-lock:not(.sh-cart-lock) body{padding-right:var(--sh-up-sbw,0)}
html.sh-up-lock .sonum-asesor,html.sh-up-lock .sonum-mobile-buybar{visibility:hidden}
.sh-up :focus-visible{outline:3px solid var(--yellow-ink,#46544b);outline-offset:2px;border-radius:6px}

.sh-up__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 16px 6px 26px}
.sh-up__title{margin:0;font-size:22px;font-weight:500;letter-spacing:0;line-height:1.25}
.sh-up__sub{margin:4px 0 0;font-size:14px;line-height:1.4;color:var(--muted,#59635c)}
.sh-up__close{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.sh-up__close:hover{background:var(--soft,#e4e6de)}

.sh-up__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 26px 18px}
.sh-up__cards{position:relative;display:flex;justify-content:center;gap:14px;list-style:none;margin:0;padding:0}
.sh-up-card{display:flex;flex:0 1 calc((100% - 42px) / 4);flex-direction:column;gap:4px;min-width:0;margin:0;padding:12px;border-radius:16px;background:var(--surface-soft,#eeeee7)}
.sh-up-card__media{display:block;aspect-ratio:1/1;margin-bottom:6px;border-radius:12px;overflow:hidden;background:var(--soft,#e4e6de)}
.sh-up-card__media img{display:block;width:100%;height:100%;object-fit:cover}
.sh-up-card__brand{font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#59635c)}
.sh-up-card__name{font-size:14px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.sh-up-card__price{margin-top:auto;padding-top:4px;font-size:15px;font-weight:500;color:var(--yellow-ink,#46544b)}
.sh-up-card__price del{opacity:.6;font-weight:400}
.sh-up-card__price ins{text-decoration:none}
.sh-up-card__add{width:100%;min-height:44px;margin-top:8px;padding:0 12px;border:1px solid var(--ink,#292e2b);border-radius:999px;background:transparent;color:var(--ink,#292e2b);font-size:13px;font-weight:500;cursor:pointer;transition:background 160ms ease,color 160ms ease}
.sh-up-card__add:hover{background:var(--ink,#292e2b);color:var(--white,#f2f0eb)}
.sh-up-card__add.is-loading{opacity:.5;pointer-events:none}
.sh-up-card__add.is-added,.sh-up-card__add.is-added:hover{border-color:var(--soft,#e4e6de);background:var(--soft,#e4e6de);color:var(--yellow-ink,#46544b);cursor:default}
.sh-up-card__add.is-added::before{content:"\2713\00a0"}

.sh-up__dots{display:none}
.sh-up__dot{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;position:relative}
.sh-up__dot::before{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--control-line,#a5ada6);transition:background 160ms ease,transform 160ms ease}
.sh-up__dot.is-on::before{background:var(--ink,#292e2b);transform:scale(1.25)}

.sh-up__bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px 24px;padding:16px 26px 20px;border-top:1px solid var(--line,#bfc5bf);background:var(--white,#f2f0eb);border-radius:0 0 20px 20px}
.sh-up__sum{margin:0;display:grid;gap:4px;max-width:320px}
.sh-up__row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:14px}
.sh-up__row dt{color:var(--muted,#59635c)}
.sh-up__row dd{margin:0;font-weight:500}
.sh-up__row--total{font-size:17px}
.sh-up__row--total dt{color:var(--ink,#292e2b)}
.sh-up__ship{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:2px;font-size:13px;line-height:1.4;color:var(--muted,#59635c)}
.sh-up__ship .is-done{color:var(--yellow-ink,#46544b)}
.sh-up__ship .is-done::before{content:"\2713\00a0"}
.sh-up__msg{margin:6px 0 0;min-height:0;font-size:13px;line-height:1.4;color:var(--yellow-ink,#46544b)}
.sh-up__msg:empty{display:none}
.sh-up__msg.is-error{color:#8a2b22}
.sh-up__actions{display:flex;align-items:center;gap:10px}
.sh-up__btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border:1px solid var(--ink,#292e2b);border-radius:999px;font-size:15px;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background 160ms ease,color 160ms ease}
.sh-up__btn--primary{background:var(--ink,#292e2b);color:var(--white,#f2f0eb)}
.sh-up__btn--primary:hover{background:var(--yellow-ink,#46544b);border-color:var(--yellow-ink,#46544b);color:#fff}
.sh-up__btn--ghost{background:transparent;color:var(--ink,#292e2b)}
.sh-up__btn--ghost:hover{background:var(--soft,#e4e6de)}

/* Celular: hoja desde abajo y tarjetas en carrusel horizontal */
@media (max-width:640px){
  .sh-up__dialog{top:auto;bottom:0;left:0;width:100%;max-height:92dvh;border-radius:20px 20px 0 0;opacity:1;transform:translateY(100%)}
  .sh-up.is-open .sh-up__dialog{transform:none}
  .sh-up__head{padding:18px 8px 4px 18px}
  .sh-up__title{font-size:19px}
  .sh-up__body{padding:12px 0 6px}
  .sh-up__cards{justify-content:flex-start;gap:12px;padding:0 18px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 18px;overscroll-behavior-x:contain;scrollbar-width:none}
  .sh-up__cards::-webkit-scrollbar{display:none}
  .sh-up-card{flex:0 0 72%;scroll-snap-align:start}
  .sh-up__dots{display:flex;justify-content:center;gap:2px;padding:0 18px 4px}
  .sh-up__bar{grid-template-columns:minmax(0,1fr);padding:14px 18px max(16px,env(safe-area-inset-bottom));border-radius:0}
  .sh-up__sum{max-width:none}
  .sh-up__actions{flex-direction:column;align-items:stretch}
  .sh-up__btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .sh-up,.sh-up__overlay,.sh-up__dialog,.sh-up-card__add,.sh-up__btn,.sh-up__dot::before{transition:none!important}
  .sh-up__cards{scroll-behavior:auto}
}
