/* Zenbox — cotizador instantáneo de Amazon (prefijo zs-amz-) */
.zs-amz :where(.icon-base) { --bs-icon-size: 1em; }
.zs-amz { --amz-accent: #ff9900; --amz-accent-ink: #b35f00; }

/* ---------------------------------------------------------------- Portada */
.zs-amz-hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; text-align: center; background: radial-gradient(1200px 380px at 50% -40px, rgba(var(--zs-primary-rgb), .16), transparent 70%), linear-gradient(180deg, var(--zs-card), var(--zs-bg)); border-bottom: 1px solid var(--zs-line); }
.zs-amz-hero::after { content: ""; position: absolute; inset: auto -10% -60px; height: 120px; background: radial-gradient(closest-side, rgba(255, 153, 0, .12), transparent); pointer-events: none; }
.zs-amz-kicker { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(var(--zs-primary-rgb), .1); color: var(--zs-primary); font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 1.1rem; }
.zs-amz-hero h1 { font-size: clamp(1.8rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.12; color: var(--zs-ink); letter-spacing: -.02em; margin: 0 auto .9rem; max-width: 880px; }
.zs-amz-brand { color: var(--amz-accent-ink); position: relative; white-space: nowrap; }
.zs-amz-brand::after { content: ""; position: absolute; left: 4%; right: 2%; bottom: -.12em; height: .16em; border-radius: 0 0 50% 50%; border-bottom: .09em solid var(--amz-accent); }
.zs-amz-lead { font-size: 1.12rem; color: var(--zs-ink-2); max-width: 640px; margin: 0 auto 2rem; }
.zs-amz-trust { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; color: var(--zs-ink-2); }
.zs-amz-trust li { display: inline-flex; align-items: center; gap: .35rem; }
.zs-amz-trust .ti { color: var(--zs-fast); }

/* Buscador */
.zs-amz-form { max-width: 760px; margin: 0 auto; text-align: left; }
.zs-amz-field { display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem 1rem; background: var(--zs-card); border: 2px solid var(--zs-line); border-radius: 18px; box-shadow: var(--zs-shadow-lg); transition: border-color .15s, box-shadow .15s; }
.zs-amz-field:focus-within { border-color: var(--zs-primary); box-shadow: 0 0 0 5px rgba(var(--zs-primary-rgb), .14), var(--zs-shadow-lg); }
.zs-amz-field.has-error { border-color: var(--zs-sale); box-shadow: 0 0 0 5px rgba(229, 51, 75, .1); }
.zs-amz-logo { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #232f3e; color: var(--amz-accent); font-size: 1.35rem; }
.zs-amz-field .form-control { border: 0; box-shadow: none !important; background: transparent; padding: .6rem .25rem; font-size: 1.05rem; min-width: 0; }
.zs-amz-clear { border: 0; background: transparent; color: var(--zs-muted); width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.zs-amz-clear:hover { background: var(--zs-bg); color: var(--zs-ink); }
.zs-amz-go { border-radius: 13px; padding: .85rem 1.5rem; font-weight: 700; font-size: 1rem; flex-shrink: 0; white-space: nowrap; }
.zs-amz-go-busy { display: none; }
.zs-amz-form.is-busy .zs-amz-go-txt { display: none; }
.zs-amz-form.is-busy .zs-amz-go-busy { display: inline-flex; align-items: center; }
.zs-amz-form.is-busy .zs-amz-go { pointer-events: none; opacity: .9; }
.zs-amz-msg { display: flex; align-items: flex-start; gap: .45rem; margin-top: .75rem; padding: .65rem .9rem; border-radius: 12px; background: var(--zs-sale-bg); color: var(--zs-sale); font-weight: 500; font-size: .9rem; }
.zs-amz-msg[hidden] { display: none; }
.zs-amz-msg .ti { margin-top: .15rem; flex-shrink: 0; }
.zs-amz-form.is-compact { max-width: none; }
.zs-amz-form.is-compact .zs-amz-field { box-shadow: none; border-radius: 14px; padding: .3rem .3rem .3rem .6rem; }
.zs-amz-form.is-compact .zs-amz-logo { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 9px; }
.zs-amz-form.is-compact .form-control { font-size: .92rem; padding: .4rem .2rem; }
.zs-amz-form.is-compact .zs-amz-go { padding: .55rem 1.1rem; font-size: .9rem; border-radius: 10px; }
.zs-amz-bar { background: var(--zs-card); border-bottom: 1px solid var(--zs-line); padding: .75rem 0; }

/* Secciones */
.zs-amz-section { padding-top: 3rem; }
.zs-amz-section:last-child { padding-bottom: 4rem; }
.zs-amz-h2 { font-size: 1.6rem; font-weight: 800; color: var(--zs-ink); text-align: center; margin-bottom: 1.75rem; letter-spacing: -.01em; }
.zs-amz-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.zs-amz-benefit { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); box-shadow: var(--zs-shadow); }
.zs-amz-benefit > span { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--zs-primary-rgb), .1); color: var(--zs-primary); font-size: 1.4rem; margin-bottom: .4rem; }
.zs-amz-benefit:nth-child(2) > span { background: var(--zs-import-bg); color: var(--zs-import); }
.zs-amz-benefit:nth-child(3) > span { background: var(--zs-fast-bg); color: var(--zs-fast); }
.zs-amz-benefit:nth-child(4) > span { background: rgba(255, 153, 0, .14); color: var(--amz-accent-ink); }
.zs-amz-benefit b { color: var(--zs-ink); font-size: 1rem; }
.zs-amz-benefit small { color: var(--zs-ink-2); font-size: .86rem; line-height: 1.45; }
.zs-amz-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: amz; }
.zs-amz-steps li { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); counter-increment: amz; display: flex; flex-direction: column; gap: .35rem; }
.zs-amz-steps li::before { content: counter(amz); position: absolute; top: 1rem; right: 1.1rem; font-size: 2.4rem; font-weight: 800; line-height: 1; color: rgba(var(--zs-primary-rgb), .12); }
.zs-amz-step-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--zs-primary), #9e95f5); color: #fff; font-size: 1.45rem; margin-bottom: .6rem; box-shadow: 0 6px 16px rgba(var(--zs-primary-rgb), .3); }
.zs-amz-steps b { color: var(--zs-ink); }
.zs-amz-steps small { color: var(--zs-ink-2); font-size: .86rem; line-height: 1.45; }
.zs-amz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.zs-amz-card { display: flex; flex-direction: column; gap: .35rem; padding: .9rem; background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); color: var(--zs-ink-2); transition: transform .15s, box-shadow .15s; }
.zs-amz-card:hover { transform: translateY(-3px); box-shadow: var(--zs-shadow-lg); color: var(--zs-ink-2); }
.zs-amz-card-img { aspect-ratio: 1; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: .4rem; }
.zs-amz-card-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.zs-amz-card-title { color: var(--zs-ink); font-weight: 600; font-size: .9rem; line-height: 1.35; min-height: 2.7em; }
.zs-amz-card-usd { font-size: .8rem; color: var(--zs-muted); }
.zs-amz-card-cta { color: var(--zs-primary); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }
.zs-amz-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.zs-amz-faq details { background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: 12px; padding: 0 1.2rem; }
.zs-amz-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--zs-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.zs-amz-faq summary::-webkit-details-marker { display: none; }
.zs-amz-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--zs-primary); transition: transform .2s; }
.zs-amz-faq details[open] summary::after { transform: rotate(45deg); }
.zs-amz-faq p { color: var(--zs-ink-2); margin: 0 0 1rem; line-height: 1.55; }

/* ---------------------------------------------------------------- Carga */
.zs-sk { background: linear-gradient(90deg, var(--zs-line) 25%, rgba(255, 255, 255, .5) 37%, var(--zs-line) 63%); background-size: 400% 100%; animation: zsSk 1.4s ease infinite; border-radius: 12px; }
.zs-sk-img { aspect-ratio: 1; max-height: 560px; width: 100%; }
.zs-sk-line { height: 18px; margin-bottom: .6rem; }
.zs-sk-price { height: 90px; margin-top: 1rem; }
@keyframes zsSk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.zs-amz-loading { padding: 1rem 0 3rem; }
.zs-amz-analyze { background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1.75rem; box-shadow: var(--zs-shadow); text-align: center; }
.zs-amz-analyze-ico { margin-bottom: .75rem; }
.zs-amz-analyze h2 { font-size: 1.25rem; color: var(--zs-ink); margin-bottom: 1rem; }
.zs-amz-progress { list-style: none; padding: 0; margin: 0 auto 1rem; text-align: left; max-width: 330px; display: flex; flex-direction: column; gap: .55rem; }
.zs-amz-progress li { display: flex; align-items: center; gap: .6rem; color: var(--zs-muted); font-size: .92rem; transition: color .3s; }
.zs-amz-progress li .ti { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--zs-bg); flex-shrink: 0; }
.zs-amz-progress li.is-on { color: var(--zs-ink); font-weight: 600; }
.zs-amz-progress li.is-on .ti { background: rgba(var(--zs-primary-rgb), .14); color: var(--zs-primary); animation: zsPulse 1s ease infinite alternate; }
.zs-amz-progress li.is-done { color: var(--zs-fast); }
.zs-amz-progress li.is-done .ti { background: var(--zs-fast-bg); color: var(--zs-fast); }
@keyframes zsPulse { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .zs-sk, .zs-amz-progress li.is-on .ti { animation: none; } }

/* ---------------------------------------------------------------- Ficha */
.zs-amz-pdp { padding-bottom: 3rem; }
.zs-amz-stage { background: #fff; }
.zs-amz-stage img { object-fit: contain; }
.zs-amz-from { position: absolute; left: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #232f3e; color: #fff; font-size: .75rem; font-weight: 600; }
.zs-amz-from .ti { color: var(--amz-accent); }
.zs-amz-gallery .zs-thumb-btn img { object-fit: contain; background: #fff; }
.zs-amz-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--zs-ink); line-height: 1.3; margin-bottom: .6rem; }
.zs-amz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; font-size: .85rem; }
.zs-amz-asin { color: var(--zs-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.zs-amz-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.zs-amz-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--zs-bg); color: var(--zs-ink-2); }
.zs-amz-badge.is-intl { background: var(--zs-import-bg); color: var(--zs-import); }
.zs-amz-badge.is-ok { background: var(--zs-fast-bg); color: var(--zs-fast); }
.zs-amz-pricebox { padding: 1.1rem 1.2rem; border-radius: var(--zs-radius); background: var(--zs-card); border: 1px solid var(--zs-line); box-shadow: var(--zs-shadow); margin-bottom: 1rem; }
.zs-amz-price { font-size: 2.6rem; font-weight: 800; color: var(--zs-ink); line-height: 1; letter-spacing: -.02em; }
.zs-amz-price small { font-size: 1.3rem; font-weight: 700; margin-right: .15rem; vertical-align: .55em; }
.zs-amz-price sup { font-size: 1.1rem; top: -1.05em; margin-left: .1rem; }
.zs-amz-price-sub { margin-top: .45rem; font-size: .86rem; color: var(--zs-ink-2); }
.zs-amz-price-sub s { color: var(--zs-muted); margin-left: .2rem; }
.zs-amz-breakdown { margin-top: .85rem; border-top: 1px dashed var(--zs-line); padding-top: .7rem; }
.zs-amz-breakdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; color: var(--zs-primary); font-weight: 600; font-size: .88rem; }
.zs-amz-breakdown summary::-webkit-details-marker { display: none; }
.zs-amz-breakdown[open] summary .tabler-chevron-down { transform: rotate(180deg); }
.zs-amz-rows { width: 100%; margin-top: .7rem; font-size: .88rem; }
.zs-amz-rows td { padding: .4rem 0; vertical-align: top; border-bottom: 1px solid var(--zs-line); }
.zs-amz-rows td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--zs-ink); font-weight: 600; padding-left: 1rem; }
.zs-amz-rows td b { display: block; color: var(--zs-ink); font-weight: 600; }
.zs-amz-rows td small { color: var(--zs-muted); font-size: .76rem; }
.zs-amz-rows tr.is-total td { border-bottom: 0; font-size: 1rem; padding-top: .6rem; }
.zs-amz-rows tr.is-total td:last-child { color: var(--zs-primary); font-weight: 800; }

.zs-amz-dims { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.1rem; }
.zs-amz-dim-label { font-size: .88rem; color: var(--zs-ink-2); margin-bottom: .4rem; }
.zs-amz-dim-label b { color: var(--zs-ink); }
.zs-amz-dim-values { display: flex; flex-wrap: wrap; gap: .4rem; }
.zs-amz-chip { min-width: 44px; padding: .42rem .85rem; border-radius: 10px; border: 1.5px solid var(--zs-line); background: var(--zs-card); color: var(--zs-ink); font-size: .86rem; font-weight: 500; transition: all .12s; }
.zs-amz-chip:hover { border-color: var(--zs-primary); }
.zs-amz-chip.is-on { border-color: var(--zs-primary); background: rgba(var(--zs-primary-rgb), .1); color: var(--zs-primary); font-weight: 700; }
.zs-amz-chip.is-na { opacity: .45; text-decoration: line-through; }
.zs-amz-dim-msg { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--zs-primary); }
.zs-amz-dim-msg[hidden] { display: none; }

.zs-amz-buy { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: stretch; margin-bottom: .5rem; }
.zs-amz-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--zs-line); border-radius: 12px; background: var(--zs-card); }
.zs-amz-qty button { border: 0; background: transparent; width: 40px; height: 100%; color: var(--zs-ink); }
.zs-amz-qty input { width: 42px; border: 0; text-align: center; font-weight: 700; background: transparent; color: var(--zs-ink); -moz-appearance: textfield; }
.zs-amz-qty input::-webkit-outer-spin-button, .zs-amz-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.zs-amz-buy-now { border-radius: 12px; font-weight: 700; }
.zs-amz-add { border-radius: 12px; width: 56px; padding: 0; font-size: 1.3rem; }
.zs-amz-total { grid-column: 1 / -1; font-size: .9rem; color: var(--zs-ink-2); }
.zs-amz-total[hidden] { display: none; }
.zs-amz-total b { color: var(--zs-ink); }
.zs-amz-info { margin-top: 1rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); background: var(--zs-card); }
.zs-amz-info > div { display: flex; gap: .8rem; padding: .85rem 1rem; }
.zs-amz-info > div + div { border-top: 1px solid var(--zs-line); }
.zs-amz-info .ti { font-size: 1.35rem; color: var(--zs-primary); flex-shrink: 0; margin-top: .1rem; }
.zs-amz-info span { display: flex; flex-direction: column; gap: .1rem; }
.zs-amz-info b { color: var(--zs-ink); font-size: .9rem; }
.zs-amz-info small { color: var(--zs-muted); font-size: .8rem; }
.zs-amz-source { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .85rem; color: var(--zs-muted); }
.zs-amz-source:hover { color: var(--zs-primary); }
.zs-amz-manual { text-align: center; padding: 2rem 1.5rem; border-radius: var(--zs-radius); background: var(--zs-card); border: 1px solid var(--zs-line); box-shadow: var(--zs-shadow); }
.zs-amz-manual h2 { font-size: 1.2rem; color: var(--zs-ink); margin: .5rem 0; }
.zs-amz-manual p { color: var(--zs-ink-2); margin-bottom: 1.1rem; }
.zs-amz-manual-ico { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--zs-primary-rgb), .1); color: var(--zs-primary); font-size: 1.7rem; }
.zs-amz-error { max-width: 560px; margin: 2rem auto 3rem; }
.zs-amz-section-card { background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1.4rem 1.5rem; height: 100%; }
.zs-amz-section-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--zs-ink); display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.zs-amz-section-card h2 .ti { color: var(--zs-primary); }
.zs-amz-bullets { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; color: var(--zs-ink-2); line-height: 1.5; }
.zs-amz-specs { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); margin: 0; font-size: .86rem; }
.zs-amz-specs dt, .zs-amz-specs dd { padding: .5rem 0; border-bottom: 1px solid var(--zs-line); margin: 0; }
.zs-amz-specs dt { color: var(--zs-muted); font-weight: 500; padding-right: 1rem; }
.zs-amz-specs dd { color: var(--zs-ink); word-break: break-word; }
.zs-amz-sticky img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; }
.zs-amz-sticky-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.zs-amz-sticky-txt b { color: var(--zs-ink); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-amz-sticky-txt span { color: var(--zs-primary); font-weight: 700; font-size: .9rem; }

@media (max-width: 991.98px) {
  .zs-amz-benefits, .zs-amz-steps, .zs-amz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .zs-amz-hero { padding: 2.75rem 0 2.25rem; }
  .zs-amz-lead { font-size: 1rem; }
  .zs-amz-field { flex-wrap: wrap; padding: .5rem; border-radius: 16px; }
  .zs-amz-field .form-control { flex: 1 1 0; }
  .zs-amz-go { flex-basis: 100%; }
  .zs-amz-form.is-compact .zs-amz-go { flex-basis: auto; }
  .zs-amz-form.is-compact .zs-amz-field { flex-wrap: nowrap; }
  .zs-amz-form.is-compact .zs-amz-go-txt .ti { margin: 0 !important; }
  .zs-amz-benefits, .zs-amz-steps { grid-template-columns: 1fr; }
  .zs-amz-price { font-size: 2.2rem; }
  .zs-amz-specs { grid-template-columns: 1fr; }
  .zs-amz-specs dt { border-bottom: 0; padding-bottom: 0; }
}

/* Precio estilo oferta, disponibilidad y peso estimado */
.zs-amz-stock { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #1f9d55; font-size: .9rem; margin-right: .25rem; }
.zs-amz-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 3px rgba(40,199,111,.18); }
.zs-amz-price.is-offer { color: #b0123f; }
.zs-amz-offer { font-size: 1.6rem; font-weight: 800; margin-right: .45rem; vertical-align: .12em; }
.zs-amz-was { display: flex; align-items: center; gap: .55rem; margin-top: .35rem; }
.zs-amz-was s { color: var(--zs-muted); font-weight: 600; font-size: 1.05rem; }
.zs-amz-off { background: #b0123f; color: #fff; font-weight: 700; font-size: .82rem; padding: .18rem .55rem; border-radius: .4rem; }
.zs-amz-est { display: flex; gap: .45rem; margin-top: .6rem; font-size: .8rem; color: var(--zs-ink-2); background: rgba(var(--bs-warning-rgb, 255,159,67), .1); border-radius: .5rem; padding: .5rem .65rem; }
.zs-amz-est i { color: var(--bs-warning, #ff9f43); flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 575.98px) { .zs-amz-offer { font-size: 1.3rem; } }
