/* v4 · Historias con medidas independientes y círculo de escudos profesional.
   Evita las reglas antiguas de .photo-viewer-lock, que agrandaban el logo
   e interponían una capa invisible sobre la navegación. */
.la-pl-story-ring{
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 86px!important;
  width:86px!important;height:86px!important;
  padding:4px!important;
  border:3px solid #48caff!important;
  border-radius:50%!important;
  background:#f4fbff!important;
  overflow:hidden!important;
  box-shadow:0 0 0 3px #08263d,0 5px 20px rgba(0,0,0,.26)!important;
}
.la-pl-story-disc.la-pl-story-emblems{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr)!important;
  gap:1px!important;
  align-items:center!important;
  width:100%!important;height:100%!important;
  padding:7px 4px!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#1b2532 0%,#173952 100%)!important;
}
.la-pl-story-emblem{
  display:grid!important;place-items:center!important;
  min-width:0!important;width:100%!important;height:100%!important;
  position:static!important;overflow:visible!important;
  background:none!important;clip-path:none!important;
  border:0!important;padding:0!important;transform:none!important;
}
.la-pl-story-emblem .la-pl-story-emblem-logo{
  display:block!important;
  width:100%!important;height:44px!important;
  max-width:34px!important;max-height:44px!important;
  min-width:0!important;
  object-fit:contain!important;object-position:center!important;
  background:none!important;border:0!important;
  padding:0!important;margin:0 auto!important;
  transform:none!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.28))!important;
}
.la-pl-story-emblem-fallback{
  display:grid;place-items:center;color:#fff;font-size:18px;
}
.la-pl-story-divider{width:1px;height:57%;background:rgba(220,242,255,.28);border-radius:3px}
.la-pl-story-trigger{gap:5px!important}
.la-pl-story-trigger strong{font-weight:800!important;letter-spacing:-.015em}
.la-pl-story-trigger:focus-visible{outline-color:#7dd9ff!important}

/* Full-screen Instagram-like story viewer, immune to previous viewer rules. */
.la-pl-stories-overlay{
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100vw!important;height:100dvh!important;
  min-width:0!important;
  padding:0!important;
  background:rgba(0,7,15,.96)!important;
  display:grid!important;place-items:center!important;
  overflow:hidden!important;overscroll-behavior:none!important;
  z-index:2147482000!important;
}
.la-pl-stories-shell.la-pl-story-protected{
  position:relative!important;
  isolation:isolate!important;
  width:min(440px,94vw,calc(94dvh * 9 / 16))!important;
  height:auto!important;
  aspect-ratio:9/16!important;
  min-height:0!important;max-height:94dvh!important;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px!important;
  overflow:hidden!important;
  display:flex!important;flex-direction:column!important;
  background:#040a11!important;
  box-shadow:0 22px 65px rgba(0,0,0,.5)!important;
}
.la-pl-stories-shell.la-pl-story-protected::after{content:none!important;display:none!important}
.la-pl-stories-shell .la-pl-story-stage{
  flex:1 1 auto!important;
  min-width:0!important;min-height:0!important;
  width:100%!important;height:100%!important;
  position:relative!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
.la-pl-stories-shell .la-pl-story-stage .la-pl-story-image{
  position:relative!important;z-index:2!important;
  display:block!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:0!important;border:0!important;
  transform:none!important;
}
.la-pl-stories-shell .la-pl-story-stage .la-pl-story-backdrop{
  position:absolute!important;z-index:0!important;
  inset:-8%!important;
  width:116%!important;height:116%!important;
  max-width:none!important;max-height:none!important;
  object-fit:cover!important;
  filter:blur(24px) brightness(.32) saturate(.9)!important;
  pointer-events:none!important;
}
.la-pl-stories-shell .la-pl-story-topline{
  position:absolute!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  left:12px!important;right:12px!important;
  top:max(20px,calc(env(safe-area-inset-top) + 17px))!important;
  z-index:30!important;
  max-width:calc(100% - 24px)!important;
  min-width:0!important;
}
.la-pl-stories-shell .la-pl-story-topline .la-pl-story-logo{
  box-sizing:border-box!important;
  position:static!important;
  flex:0 0 30px!important;
  display:block!important;
  width:30px!important;height:30px!important;
  max-width:30px!important;max-height:30px!important;
  min-width:30px!important;min-height:30px!important;
  border:0!important;border-radius:50%!important;
  object-fit:contain!important;object-position:center!important;
  background:#fff!important;
  padding:3px!important;margin:0!important;
  transform:none!important;
}
.la-pl-stories-shell .la-pl-story-topline b{
  display:block!important;
  min-width:0!important;flex:1 1 auto!important;
  color:#fff!important;
  font-size:12px!important;line-height:1.2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  text-shadow:0 1px 4px #000c!important;
}
.la-pl-stories-shell .la-pl-story-topline button{
  position:relative!important;z-index:31!important;
  flex:0 0 38px!important;
  display:grid!important;place-items:center!important;
  width:38px!important;height:38px!important;
  min-width:38px!important;max-width:38px!important;
  border-radius:50%!important;
  background:rgba(8,19,31,.73)!important;
  border:1px solid rgba(255,255,255,.32)!important;
  color:#fff!important;
  padding:0!important;cursor:pointer!important;
}
.la-pl-stories-shell .la-pl-stories-progress{
  position:absolute!important;z-index:32!important;
  top:max(9px,env(safe-area-inset-top))!important;
  left:10px!important;right:10px!important;
  width:auto!important;height:3px!important;
}
.la-pl-stories-shell .la-pl-story-watermarks{
  position:absolute!important;z-index:5!important;
  inset:58px 0 53px!important;
  width:100%!important;height:auto!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(5,minmax(0,1fr))!important;
  justify-items:center!important;align-items:center!important;
  padding:0 8px!important;
  pointer-events:none!important;
  overflow:hidden!important;
}
.la-pl-stories-shell .la-pl-story-watermarks .la-pl-story-wm-item{
  width:44px!important;height:44px!important;
  max-width:44px!important;max-height:44px!important;
  display:block!important;
  opacity:.23!important;
  object-fit:contain!important;
  transform:rotate(-9deg)!important;
  pointer-events:none!important;
  user-select:none!important;
}
.la-pl-stories-shell .la-pl-story-tap{
  position:absolute!important;z-index:11!important;
  top:67px!important;bottom:58px!important;
  width:50%!important;height:auto!important;
  background:transparent!important;border:0!important;
  padding:0!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}
.la-pl-stories-shell .la-pl-story-tap.prev{left:0!important;right:auto!important}
.la-pl-stories-shell .la-pl-story-tap.next{right:0!important;left:auto!important}
.la-pl-stories-shell .la-pl-story-footer{
  position:absolute!important;z-index:20!important;
  bottom:0!important;left:0!important;right:0!important;
  display:flex!important;align-items:center!important;
  padding:24px 13px max(17px,env(safe-area-inset-bottom))!important;
  background:linear-gradient(0deg,rgba(0,0,0,.86),transparent)!important;
}
.la-pl-stories-shell .la-pl-story-footer p{
  font-size:12px!important;
  min-width:0!important;flex:1!important;
  max-width:calc(100% - 70px)!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.la-pl-stories-shell .la-pl-story-footer span{flex:0 0 auto;font-size:12px!important}
@media(max-width:600px){
  .la-pl-story-ring{width:82px!important;height:82px!important;flex-basis:82px!important}
  .la-pl-story-disc.la-pl-story-emblems{padding:5px 3px!important}
  .la-pl-story-emblem .la-pl-story-emblem-logo{max-width:31px!important;height:40px!important;max-height:40px!important}
  .la-pl-stories-shell.la-pl-story-protected{
    width:100vw!important;height:100dvh!important;
    min-width:0!important;min-height:0!important;max-height:100dvh!important;
    aspect-ratio:auto!important;
    border:0!important;border-radius:0!important;
  }
  .la-pl-stories-shell .la-pl-story-watermarks .la-pl-story-wm-item{
    width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;
    opacity:.21!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .la-pl-stories-shell .la-pl-story-segment.active .la-pl-story-segment-fill{
    animation-duration:5.5s!important;
  }
}


/* v5 — la fotografía ocupa TODA la historia vertical.
   El encuadre se recorta en los extremos si no es 9:16, como Instagram. */
.la-pl-stories-shell .la-pl-story-stage{
  background:#000!important;
}
.la-pl-stories-shell .la-pl-story-stage .la-pl-story-backdrop{
  display:none!important;
}
.la-pl-stories-shell .la-pl-story-stage .la-pl-story-image{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  transform:none!important;
}
