/* Editora Publigráficas · visor de fotos de producto (visor.js), 11 oct 2026. */
.pgv-ampliable { cursor: zoom-in; }
.pgv-lupa { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9d9d9; background: rgba(255,255,255,.94); color: #161616; border-radius: 999px; padding: 7px 12px 7px 9px; font: 600 13.5px/1 var(--f-texto, "Source Sans 3", sans-serif); cursor: zoom-in; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pgv-lupa:hover { border-color: #161616; }
.pgv-lupa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html.pgv-abierto, html.pgv-abierto body { overflow: hidden; }
.pgv { --pgv-fondo: .94; position: fixed; inset: 0; z-index: 2147483000; background: rgba(12, 14, 18, var(--pgv-fondo)); opacity: 0; transition: opacity .2s ease; touch-action: none; }
.pgv[hidden] { display: none; }
.pgv--visible { opacity: 1; }
.pgv-escena { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.pgv--zoom .pgv-escena { cursor: grab; }
.pgv--zoom .pgv-escena:active { cursor: grabbing; }
.pgv-img { max-width: min(94vw, 1400px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: center center; border-radius: 4px; background: #fff; }
.pgv-arriba { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; pointer-events: none; }
.pgv-arriba > * { pointer-events: auto; }
.pgv-cuenta { font: 600 15px/1 var(--f-texto, "Source Sans 3", sans-serif); opacity: .85; margin-right: auto; padding-left: 6px; }
.pgv button { display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .15s, transform .1s; }
.pgv button:hover { background: rgba(255,255,255,.26); }
.pgv button:active { transform: scale(.94); }
.pgv button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pgv button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pgv-zoom { display: flex; gap: 6px; }
.pgv-zoom button, .pgv-x { width: 44px; height: 44px; }
.pgv-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.pgv-nav--izq { left: 16px; } .pgv-nav--der { right: 16px; }
.pgv-nav[hidden] { display: none !important; }
.pgv-ayuda { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: rgba(255,255,255,.75); font: 14px/1.3 var(--f-texto, "Source Sans 3", sans-serif); pointer-events: none; padding: 0 16px; }
.pgv--zoom .pgv-ayuda { opacity: 0; }
.pgv--cargando .pgv-img { opacity: .35 !important; }
@media (max-width: 640px) {
  .pgv-img { max-width: 100vw; max-height: calc(100dvh - 110px); border-radius: 0; }
  .pgv-nav { display: none !important; } /* en el celular se desliza */
  .pgv-zoom { display: none; }
  .pgv-lupa span { display: none; }
  .pgv-lupa { padding: 8px; right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pgv, .pgv button { transition: none; } }
