/* ==========================================================================
   NOVOVET · Promociones del mes (promociones.html) · tema acero
   Todo con prefijo .pv- para no chocar con el resto del sitio.
   Colores: los del tema acero (tema-acero/acero-v4.css). El verde queda sólo
   para lo "activo / cumplido" (una promoción ya agregada a la consulta).
   ========================================================================== */

.pv, .pv-capas {
  --pv-tinta: var(--ink, #12171c);
  --pv-gris: var(--slate, #5b6672);
  --pv-linea: var(--line, #e4e8ed);
  --pv-linea2: #d3dae1;
  --pv-suave: #f4f6f8;
  --pv-acero: #8fa9bf;
  --pv-acero-suave: #eef2f6;
  --pv-acero-tinta: #3e5a73;
  --pv-ok: #0c7d52;
  --pv-r: 6px;
  --pv-r2: 10px;
  --pv-sombra: 0 1px 3px rgba(18, 23, 28, .07);
  --pv-sombra2: 0 8px 24px rgba(18, 23, 28, .10);
  --pv-alto: clamp(460px, 72vh, 700px);
  --pv-curva: cubic-bezier(.2, .7, .2, 1);
}
.pv [hidden], .pv-capas [hidden], .pv-dock[hidden], .pv-hoja[hidden], .pv-visor[hidden] { display: none !important; }
.pv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pv button, .pv-capas button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pv button:disabled { cursor: default; }
.pv :focus-visible, .pv-capas :focus-visible { outline: 3px solid var(--pv-acero-tinta); outline-offset: 2px; }
.pv svg, .pv-capas svg { flex: none; }
html.pv-sin-scroll { overflow: hidden; }
html.pv-sin-scroll .pv-dock { visibility: hidden; }   /* con un diálogo abierto, el botón de la consulta no compite */
/* Raleway trae números de estilo antiguo: aquí van alineados, como en una tabla */
.pv, .pv-capas { font-variant-numeric: lining-nums; }
body.pv-con-consulta .wa-float { display: none; }

.pv-h2 { font-size: 1.32rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--pv-tinta); margin: 0; }
.pv-kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-acero-tinta); }
.pv-link { font-weight: 700; color: var(--pv-acero-tinta); text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.pv-link:hover { color: var(--pv-tinta); }

/* ---------- botones ---------- */
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--pv-r);
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none;
  transition: background .18s var(--pv-curva), box-shadow .18s var(--pv-curva), transform .18s var(--pv-curva);
}
.pv-btn svg { width: 18px; height: 18px; }
.pv-btn--wa { background: var(--pv-tinta); color: #fff !important; box-shadow: 0 4px 14px rgba(18, 23, 28, .18); }
.pv-btn--wa:hover { background: #222a31; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18, 23, 28, .24); }
.pv-btn--sec { background: #fff; color: var(--pv-tinta); border: 1px solid var(--pv-linea2) !important; }
.pv-btn--sec:hover { border-color: var(--pv-tinta) !important; }
.pv-btn--ancho { width: 100%; }
.pv-redondo {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--pv-linea2) !important; color: var(--pv-tinta);
  transition: border-color .18s, background .18s, opacity .18s;
}
.pv-redondo svg { width: 18px; height: 18px; }
.pv-redondo:hover:not(:disabled) { border-color: var(--pv-tinta) !important; }
.pv-redondo:disabled { opacity: .35; }

/* ---------- cifras del mes (mismo patrón que productos.html) ---------- */
.pv-cifras { display: flex; justify-content: center; gap: 52px; flex-wrap: wrap; margin: 6px 0 36px; }
.pv-cifras .lbl { color: #5b6672; }   /* el gris del tema no alcanza contraste AA en letra chica */
@media (max-width: 760px) { .pv-cifras { gap: 18px 30px; } }

/* ---------- aviso mayorista (estático en el HTML) ---------- */
.pv-aviso {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--pv-acero-suave); border: 1px solid #dbe3ea; border-radius: var(--pv-r);
  padding: 16px 18px; margin: 0 0 34px; font-size: .9rem; line-height: 1.6; color: var(--pv-tinta);
}
.pv-aviso svg { width: 21px; height: 21px; color: var(--pv-acero-tinta); margin-top: 2px; }
.pv-aviso .pv-link { padding: 0; }
.pv-antes { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--pv-r); background: #fff; border: 1px dashed var(--pv-acero); font-size: .92rem; }

/* ---------- laboratorios ---------- */
.pv-fila-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pv-flechas { display: flex; gap: 8px; }
.pv-labs { margin-bottom: 28px; scroll-margin-top: 100px; }
.pv-labs__riel {
  position: relative;   /* las posiciones de las tarjetas se miden desde la fila */
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 2px;
  padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--pv-linea2) transparent;
}
.pv-lab {
  position: relative; flex: 0 0 168px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 14px 14px 13px; min-height: 148px;
  background: #fff; border: 1px solid var(--pv-linea) !important; border-radius: var(--pv-r2);
  box-shadow: var(--pv-sombra); transition: border-color .18s, box-shadow .18s, transform .18s var(--pv-curva);
}
.pv-lab:hover { border-color: var(--pv-linea2) !important; box-shadow: var(--pv-sombra2); transform: translateY(-2px); }
.pv-lab[aria-pressed="true"] { border-color: var(--pv-tinta) !important; box-shadow: 0 0 0 1px var(--pv-tinta), var(--pv-sombra2); }
.pv-lab__ok {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pv-tinta); color: #fff; opacity: 0; transform: scale(.6);
  transition: opacity .18s, transform .18s var(--pv-curva);
}
.pv-lab__ok svg { width: 12px; height: 12px; }
.pv-lab[aria-pressed="true"] .pv-lab__ok { opacity: 1; transform: none; }
.pv-lab__logo { height: 42px; width: 100%; display: flex; align-items: center; margin-bottom: 8px; }
.pv-lab__logo img { max-height: 40px; max-width: 112px; width: auto; height: auto; object-fit: contain; }
.pv-lab__ini, .pv-lab__todos {
  width: 42px; height: 42px; border-radius: var(--pv-r); display: grid; place-items: center;
  background: var(--pv-acero-suave); color: var(--pv-acero-tinta); font-size: 1.2rem; font-weight: 800;
}
.pv-lab__todos { width: auto; min-width: 42px; padding: 0 10px; background: var(--pv-tinta); color: #fff; font-variant-numeric: tabular-nums; }
.pv-lab__nom { font-weight: 800; font-size: .95rem; line-height: 1.25; color: var(--pv-tinta); }
.pv-lab__sub { font-size: .8rem; color: var(--pv-gris); }
.pv-lab__mejor {
  margin-top: auto; font-size: .72rem; font-weight: 700; color: var(--pv-acero-tinta);
  background: var(--pv-acero-suave); border-radius: 4px; padding: 3px 7px; line-height: 1.3;
}

/* ---------- buscador, orden y filtros ---------- */
.pv-herr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center;
  background: #fff; border: 1px solid var(--pv-linea); border-radius: var(--pv-r2);
  padding: 18px 20px; box-shadow: var(--pv-sombra); margin-bottom: 26px;
}
.pv-busca { position: relative; }
.pv-busca > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--pv-gris); pointer-events: none; }
.pv-busca input {
  width: 100%; height: 48px; padding: 0 44px; border-radius: var(--pv-r);
  border: 1px solid var(--pv-linea2); background: var(--pv-suave); color: var(--pv-tinta);
  font: inherit; font-size: 16px; transition: border-color .18s, background .18s;
}
.pv-busca input::placeholder { color: #6b7783; }
.pv-busca input:focus { outline: none; background: #fff; border-color: var(--pv-tinta); box-shadow: 0 0 0 3px rgba(62, 90, 115, .18); }
.pv-busca input::-webkit-search-cancel-button { display: none; }
.pv-busca__x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--pv-gris); }
.pv-busca__x svg { width: 16px; height: 16px; }
.pv-orden { display: inline-flex; padding: 4px; gap: 4px; background: var(--pv-suave); border: 1px solid var(--pv-linea); border-radius: var(--pv-r); }
.pv-orden button { min-height: 38px; padding: 0 14px; border-radius: 4px; font-size: .86rem; font-weight: 700; color: var(--pv-gris); white-space: nowrap; }
.pv-orden button[aria-pressed="true"] { background: #fff; color: var(--pv-tinta); box-shadow: var(--pv-sombra); }
.pv-filtros { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--pv-linea); padding-top: 14px; }
.pv-filtro { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.pv-filtro__r { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-gris); }
.pv-filtro__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pv-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--pv-linea2) !important; background: #fff;
  font-size: .85rem; font-weight: 600; color: var(--pv-tinta); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.pv-chip:hover { border-color: var(--pv-tinta) !important; }
.pv-chip__n { font-size: .74rem; font-weight: 700; color: var(--pv-gris); font-variant-numeric: tabular-nums; }
.pv-chip[aria-pressed="true"] { background: var(--pv-tinta); border-color: var(--pv-tinta) !important; color: #fff; }
.pv-chip[aria-pressed="true"] .pv-chip__n { color: #c9d4de; }

/* ---------- resultado ---------- */
.pv-res { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; scroll-margin-top: 100px; }
.pv-res__n { margin: 4px 0 0; font-size: .9rem; color: var(--pv-gris); }
.pv-res__acc { display: flex; align-items: center; gap: 14px; flex: none; }

/* ---------- escenario: carrusel + panel ---------- */
.pv-esc { scroll-margin-top: 100px; }
.pv-esc__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 30px; align-items: start; }
.pv-esc__vis { position: relative; min-width: 0; }
.pv-riel {
  position: relative; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--pv-r2);
}
.pv-riel::-webkit-scrollbar { display: none; }
.pv-riel:focus-visible { outline-offset: 4px; }
.pv-diap { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.pv-diap__img {
  position: relative; display: block; width: 100%; height: var(--pv-alto); padding: 18px;
  background: var(--pv-suave); border: 1px solid var(--pv-linea) !important; border-radius: var(--pv-r2);
  overflow: hidden; cursor: zoom-in;
}
.pv-diap__img img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 4px;
  filter: drop-shadow(0 6px 18px rgba(18, 23, 28, .14));
  transition: transform .5s var(--pv-curva);
}
.pv-diap__img:hover img { transform: scale(1.012); }
.pv-diap__zoom {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18, 23, 28, .82); color: #fff;
  transition: transform .18s var(--pv-curva);
}
.pv-diap__zoom svg { width: 17px; height: 17px; }
.pv-diap__img:hover .pv-diap__zoom { transform: scale(1.06); }
.pv-diap__img.es-sin { cursor: default; display: grid; place-items: center; }
.pv-diap__sin { max-width: 300px; text-align: center; color: var(--pv-gris); font-size: .92rem; line-height: 1.5; }
.pv-diap__sin svg { width: 34px; height: 34px; color: var(--pv-acero-tinta); margin: 0 auto 10px; display: block; }
.pv-diap__sin b { display: block; color: var(--pv-tinta); font-size: 1rem; margin-bottom: 4px; }
.pv-esc__flecha { position: absolute; top: calc(var(--pv-alto) / 2 - 21px); z-index: 2; box-shadow: var(--pv-sombra2); }
.pv-esc__flecha--prev { left: -21px; }
.pv-esc__flecha--next { right: -21px; }
.pv-nav { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pv-nav .pv-redondo { display: none; }
.pv-barra { flex: 1; height: 4px; border-radius: 2px; background: var(--pv-linea); overflow: hidden; }
.pv-barra i { display: block; height: 100%; width: 0; background: var(--pv-tinta); border-radius: 2px; transition: width .25s var(--pv-curva); }
.pv-pos { flex: none; min-width: 64px; text-align: right; font-size: .86rem; font-weight: 700; color: var(--pv-tinta); font-variant-numeric: tabular-nums; }

/* panel de la lámina */
.pv-panel {
  position: sticky; top: 96px;   /* bajo la barra del menú, que queda fija al bajar */
  display: flex; flex-direction: column; min-width: 0; max-height: calc(var(--pv-alto) + 60px);
  background: #fff; border: 1px solid var(--pv-linea); border-radius: var(--pv-r2); box-shadow: var(--pv-sombra2);
}
.pv-panel__cab { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; border-bottom: 1px solid var(--pv-linea); }
.pv-panel__logo {
  flex: none; width: 58px; height: 58px; border-radius: var(--pv-r); border: 1px solid var(--pv-linea);
  display: grid; place-items: center; padding: 6px; background: #fff;
}
.pv-panel__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-panel__logo b { font-size: 1.3rem; font-weight: 800; color: var(--pv-acero-tinta); }
.pv-panel__tit { flex: 1; min-width: 0; }
.pv-panel__tit h3 { margin: 3px 0 2px; font-size: 1.28rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--pv-tinta); }
.pv-panel__sub { font-size: .84rem; color: var(--pv-gris); }
.pv-panel__acc { display: flex; gap: 8px; flex: none; align-self: flex-start; }
.pv-panel__aviso {
  display: flex; gap: 10px; align-items: flex-start; margin: 14px 20px 0; padding: 10px 12px;
  background: var(--pv-acero-suave); border-radius: var(--pv-r); font-size: .82rem; line-height: 1.45; color: var(--pv-acero-tinta);
}
.pv-panel__aviso svg { width: 18px; height: 18px; margin-top: 1px; }
.pv-promos { list-style: none; margin: 0; padding: 4px 20px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pv-linea2) transparent; }
.pv-promo { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--pv-linea); }
.pv-promo:last-child { border-bottom: 0; }
.pv-mec {
  display: grid; place-items: center; min-height: 50px; padding: 6px 4px; border-radius: var(--pv-r);
  background: var(--pv-tinta); color: #fff; text-align: center;
  font-weight: 800; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.pv-mec--d { background: var(--pv-acero-tinta); }
.pv-mec--o { background: var(--pv-acero-suave); color: var(--pv-tinta); }
.pv-mec--largo { font-size: .72rem; letter-spacing: 0; line-height: 1.25; font-weight: 800; }
.pv-promo__cuerpo { min-width: 0; }
.pv-promo__cuerpo p { margin: 0; }
.pv-promo__prod { font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--pv-tinta); }
.pv-promo__meta { margin-top: 4px !important; font-size: .82rem; line-height: 1.45; color: var(--pv-gris); }
.pv-eq { font-weight: 700; color: var(--pv-acero-tinta); }
.pv-eq--tope { font-weight: 600; }
.pv-promo__nota { margin-top: 4px !important; font-size: .78rem; line-height: 1.45; color: var(--pv-gris); }
.pv-promo__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px !important; }
.pv-tag { font-size: .7rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--pv-acero-suave); color: var(--pv-acero-tinta); }
.pv-tag--rx { background: #fdecea; color: #b03a2e; }
.pv-promo__acc { display: flex; align-items: center; gap: 8px; }
.pv-add {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px;
  border-radius: var(--pv-r); border: 1px solid var(--pv-linea2) !important; background: #fff;
  font-size: .82rem; font-weight: 700; color: var(--pv-tinta); white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.pv-add__i { display: grid; place-items: center; width: 18px; height: 18px; }
.pv-add__i svg { width: 15px; height: 15px; }
.pv-add:hover { border-color: var(--pv-tinta) !important; }
.pv-add[aria-pressed="true"] { background: var(--pv-ok); border-color: var(--pv-ok) !important; color: #fff; }
.pv-wa-mini {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--pv-tinta); color: #fff !important; transition: background .18s, transform .18s var(--pv-curva);
}
.pv-wa-mini svg { width: 18px; height: 18px; }
.pv-wa-mini:hover { background: #222a31; transform: translateY(-1px); }
.pv-promos.es-recortada .pv-promo:nth-child(n + 7) { display: none; }
.pv-promos__mas { margin: 0 20px 6px; align-self: flex-start; }
.pv-panel__ocultas { margin: 0; padding: 10px 20px 0; font-size: .82rem; color: var(--pv-gris); }
.pv-panel__ocultas .pv-link { padding: 0; }
.pv-panel__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 18px; border-top: 1px solid var(--pv-linea); }

/* tira de láminas */
.pv-tira { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 8px; margin-top: 8px; scrollbar-width: thin; scrollbar-color: var(--pv-linea2) transparent; }
.pv-mini {
  position: relative; flex: 0 0 66px; height: 88px; padding: 4px; border-radius: var(--pv-r);
  background: var(--pv-suave); border: 1px solid var(--pv-linea) !important; opacity: .72;
  transition: opacity .18s, border-color .18s, transform .18s var(--pv-curva);
}
.pv-mini img { width: 100%; height: 100%; object-fit: contain; }
.pv-mini:hover { opacity: 1; }
.pv-mini[aria-current="true"] { opacity: 1; border-color: var(--pv-tinta) !important; box-shadow: 0 0 0 1px var(--pv-tinta); transform: translateY(-2px); }
.pv-mini__n {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--pv-tinta); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.pv-mini__sin { display: grid; place-items: center; height: 100%; color: var(--pv-acero-tinta); }
.pv-mini__sin svg { width: 22px; height: 22px; }

/* sin resultados y promociones terminadas */
.pv-nada, .pv-fin {
  text-align: center; padding: 46px 22px; background: #fff; border: 1px dashed var(--pv-linea2); border-radius: var(--pv-r2);
}
.pv-nada h3, .pv-fin h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--pv-tinta); }
.pv-nada p, .pv-fin p { margin: 0 auto 16px; max-width: 520px; color: var(--pv-gris); }
.pv-nada p:last-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }

/* ---------- mi consulta ---------- */
.pv-dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 16px;
  background: var(--pv-tinta); color: #fff; border-radius: 8px; box-shadow: 0 10px 28px rgba(18, 23, 28, .28);
  font-weight: 700; font-size: .95rem; animation: pvEntra .3s var(--pv-curva);
}
.pv-dock svg { width: 20px; height: 20px; }
.pv-dock__n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--pv-tinta); display: grid; place-items: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.pv-dock__ir { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .25); font-weight: 600; color: #d6dee6; }
@keyframes pvEntra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pv-hoja {
  position: fixed; inset: 0; z-index: 120; background: rgba(18, 23, 28, .5);
  display: flex; justify-content: flex-end; animation: pvVelo .2s ease;
}
.pv-hoja__caja {
  width: min(480px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column;
  box-shadow: -18px 0 40px rgba(18, 23, 28, .18); animation: pvLado .28s var(--pv-curva);
}
.pv-hoja__caja--texto { overflow-y: auto; padding-bottom: 24px; }
.pv-hoja__caja--texto > .pv-btn { margin: 4px 24px 0; }
.pv-hoja__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--pv-linea); }
.pv-hoja__lista { flex: 1; overflow-y: auto; padding: 8px 24px; }
.pv-hoja__pie { padding: 16px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pv-linea); background: #fff; }
.pv-hoja__nota { margin: 10px 0 4px; font-size: .78rem; line-height: 1.5; color: var(--pv-gris); }
.pv-hoja__pie .pv-link { display: block; margin: 0 auto; font-size: .86rem; }
@keyframes pvVelo { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvLado { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.pv-carro { list-style: none; margin: 0; padding: 0; }
.pv-citem { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pv-linea); }
.pv-citem__txt b { display: block; font-size: .93rem; line-height: 1.35; color: var(--pv-tinta); margin: 2px 0 4px; }
.pv-citem__promo { display: inline-block; font-size: .74rem; font-weight: 800; color: #fff; background: var(--pv-tinta); border-radius: 4px; padding: 2px 7px; }
.pv-cant { display: inline-flex; align-items: center; border: 1px solid var(--pv-linea2); border-radius: var(--pv-r); }
.pv-cant button { width: 34px; height: 36px; display: grid; place-items: center; color: var(--pv-tinta); }
.pv-cant button svg { width: 14px; height: 14px; }
.pv-cant span { min-width: 30px; text-align: center; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pv-citem__quitar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--pv-gris); }
.pv-citem__quitar svg { width: 17px; height: 17px; }
.pv-citem__quitar:hover { color: #b03a2e; background: #fdecea; }
.pv-citem__cual { grid-column: 1 / -1; display: grid; gap: 5px; font-size: .76rem; color: var(--pv-gris); }
.pv-citem__cual.es-pedido span { font-weight: 700; color: var(--pv-acero-tinta); }
.pv-citem__cual input {
  height: 40px; padding: 0 12px; border-radius: var(--pv-r); border: 1px solid var(--pv-linea2);
  font: inherit; font-size: 16px; color: var(--pv-tinta); background: var(--pv-suave);
}
.pv-citem__cual input:focus { outline: none; background: #fff; border-color: var(--pv-tinta); box-shadow: 0 0 0 3px rgba(62, 90, 115, .18); }
.pv-carro-vacio { text-align: center; padding: 50px 10px; color: var(--pv-gris); }
.pv-carro-vacio b { display: block; color: var(--pv-tinta); font-size: 1.05rem; margin-bottom: 6px; }
.pv-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pv-cond { margin: 18px 24px 22px; padding-left: 18px; color: var(--pv-tinta); font-size: .9rem; line-height: 1.6; }
.pv-cond li { margin-bottom: 9px; }

/* ---------- visor ---------- */
.pv-visor { position: fixed; inset: 0; z-index: 130; background: #0e1215; display: flex; flex-direction: column; color: #fff; animation: pvVelo .2s ease; }
.pv-visor__tope { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
.pv-visor__tit { flex: 1; min-width: 0; line-height: 1.3; }
.pv-visor__tit b { display: block; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-visor__tit span { display: block; font-size: .78rem; color: #b9c4ce; }
.pv-visor__b { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.pv-visor__b svg { width: 19px; height: 19px; }
.pv-visor__b:hover { background: rgba(255, 255, 255, .2) !important; }
.pv-visor__b[aria-pressed="true"] { background: #fff !important; color: var(--pv-tinta) !important; }
.pv-visor :focus-visible { outline-color: #fff; }
.pv-visor__lienzo { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 6px 12px 12px; overscroll-behavior: contain; }
.pv-visor__img { width: auto; max-width: min(100%, 760px); height: auto; margin: auto 0; border-radius: 6px; background: #fff; cursor: zoom-in; }
.pv-visor__img.es-cerca { max-width: none; width: min(1400px, 220%); cursor: zoom-out; }
.pv-visor__pie { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, .35); }
.pv-visor__pie .pv-btn--wa { background: #fff; color: var(--pv-tinta) !important; box-shadow: none; }
.pv-visor__pie .pv-btn--wa:hover { background: #e9eef2; }

/* ---------- aviso flotante ---------- */
.pv-aviso-flot {
  position: fixed; left: 50%; bottom: 92px; z-index: 140; transform: translate(-50%, 10px);
  max-width: min(92vw, 420px); padding: 11px 18px; border-radius: var(--pv-r);
  background: var(--pv-tinta); color: #fff; font-size: .88rem; font-weight: 600; text-align: center;
  box-shadow: 0 10px 28px rgba(18, 23, 28, .28); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--pv-curva);
}
.pv-aviso-flot.es-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pantallas medianas y celular ---------- */
@media (max-width: 1100px) {
  .pv-esc__flecha--prev { left: 8px; }
  .pv-esc__flecha--next { right: 8px; }
}
@media (max-width: 979px) {
  .pv-esc__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pv-esc__flecha { display: none; }
  .pv-nav .pv-redondo { display: inline-grid; }
  .pv-riel { gap: 12px; margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px; border-radius: 0; }
  .pv-diap { flex-basis: 84%; }
  .pv-diap__img { height: auto; aspect-ratio: 3 / 4; padding: 12px; }
  .pv-panel { position: static; max-height: none; }
  .pv-labs, .pv-res, .pv-esc { scroll-margin-top: 176px; }   /* en celular el encabezado fijo es más alto */
  .pv-promos { overflow: visible; }
  .pv-tira { display: none; }
}
@media (max-width: 760px) {
  .pv-herr { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 12px; }
  .pv-orden { width: 100%; }
  .pv-orden button { flex: 1; }
  .pv-filtro { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pv-filtro__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .pv-filtro__chips::-webkit-scrollbar { display: none; }
  .pv-flechas { display: none; }
  .pv-lab { flex-basis: 146px; min-height: 140px; }
  .pv-res { flex-wrap: wrap; align-items: flex-start; }
  .pv-res__acc { width: 100%; justify-content: space-between; }
  .pv-promo { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .pv-promo__acc { grid-column: 2; }
  .pv-mec { min-height: 46px; font-size: 1rem; }
  .pv-mec--largo { font-size: .66rem; }
  .pv-panel__cab { padding: 16px 16px 14px; gap: 12px; }
  .pv-panel__logo { width: 48px; height: 48px; }
  .pv-panel__tit h3 { font-size: 1.12rem; }
  .pv-promos { padding: 2px 16px; }
  .pv-panel__aviso { margin: 12px 16px 0; }
  .pv-panel__pie { padding: 14px 16px 16px; flex-wrap: wrap; }
  .pv-panel__pie .pv-btn { flex: 1 1 100%; }
  .pv-panel__ocultas { padding: 10px 16px 0; }
  .pv-promos__mas { margin: 0 16px 6px; }
  .pv-dock { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; }
  body.pv-con-consulta { padding-bottom: 76px; }   /* que la barra de la consulta no tape el final de la página */
  .pv-dock__ir { margin-left: auto; }
  .pv-hoja { align-items: flex-end; }
  .pv-hoja__caja { width: 100%; height: auto; max-height: 90vh; border-radius: 14px 14px 0 0; animation-name: pvSube; }
  .pv-hoja__cab { padding: 16px 18px; }
  .pv-hoja__lista { padding: 4px 18px; }
  .pv-hoja__pie { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .pv-cond { margin: 16px 18px 18px; }
  .pv-hoja__caja--texto > .pv-btn { margin: 0 18px; }
  .pv-aviso-flot { bottom: 84px; }
  .pv-visor__pie .pv-btn { flex: 1; }
}
@keyframes pvSube { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) {
  .pv-orden button { white-space: normal; line-height: 1.2; padding: 6px 8px; font-size: .82rem; }
  .pv-dock__t { display: none; }
  .pv-res__acc .pv-btn span { display: none; }
  .pv-res__acc .pv-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv-capas * { transition: none !important; animation: none !important; }
}
@media print {
  .pv-capas, .pv-herr, .pv-labs, .pv-nav, .pv-tira { display: none !important; }
}
