/* App Gestión Electoral · interfaz de instalación PWA */
#pwa-install-root,
#pwa-install-root *{box-sizing:border-box}
#pwa-install-root{width:100%;max-width:100%;min-width:0}
.vs-pwa-card[hidden],.vs-pwa-overlay[hidden]{display:none!important}
.vs-pwa-card{
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:14px 0 0;
  padding:11px 38px 11px 11px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  overflow:hidden;
  border:1px solid var(--vt-line,var(--vt-border,rgba(229,37,42,.18)));
  border-radius:16px;
  background:linear-gradient(135deg,#fff,#fff8f8);
  box-shadow:0 10px 24px rgba(15,23,42,.08)
}
.vs-pwa-icon-wrap{
  width:46px;height:46px;
  display:grid;place-items:center;
  overflow:hidden;
  padding:2px;
  border:1px solid var(--vt-line,var(--vt-border,rgba(229,37,42,.16)));
  border-radius:14px;
  background:var(--vt-soft,var(--vt-surface-tint,#fff1f2));
  box-shadow:0 5px 14px rgba(15,23,42,.09)
}
.vs-pwa-icon{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  border-radius:11px
}
.vs-pwa-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:left
}
.vs-pwa-copy strong{
  overflow:hidden;
  color:var(--vt-primary-dark,#c51f24);
  font-size:12.5px;
  font-weight:850;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap
}
.vs-pwa-copy span{
  color:#64748b;
  font-size:10.5px;
  line-height:1.35
}
.vs-pwa-install{
  width:auto;
  min-width:76px;
  max-width:112px;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:end;
  margin:0;
  padding:8px 12px;
  border:1px solid var(--vt-primary,#e5252a);
  border-radius:10px;
  color:#fff;
  background:var(--vt-primary,#e5252a);
  box-shadow:0 6px 15px rgba(229,37,42,.18);
  font-size:10.5px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease
}
.vs-pwa-install:hover,.vs-pwa-install:focus-visible{
  transform:translateY(-1px);
  background:var(--vt-primary-dark,#c51f24);
  box-shadow:0 9px 18px rgba(229,37,42,.22);
  outline:none
}
.vs-pwa-close{
  position:absolute;
  right:8px;top:7px;
  width:24px;height:24px;
  display:grid;place-items:center;
  padding:0;
  border:0;
  border-radius:8px;
  color:#7c8797;
  background:transparent;
  font-size:20px;
  line-height:1;
  cursor:pointer
}
.vs-pwa-close:hover{background:rgba(15,23,42,.05)}
.vs-pwa-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px)
}
.vs-pwa-guide{
  position:relative;
  width:min(430px,100%);
  overflow:hidden;
  padding:27px 24px 22px;
  border:1px solid var(--vt-line,var(--vt-border,#fecaca));
  border-radius:24px;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,23,42,.24);
  text-align:center
}
.vs-pwa-guide::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:var(--vt-primary,#e5252a)
}
.vs-pwa-guide-close{
  position:absolute;
  right:12px;top:10px;
  width:30px;height:30px;
  display:grid;place-items:center;
  padding:0;
  border:0;
  border-radius:9px;
  color:#6c7c88;
  background:transparent;
  font-size:24px;
  cursor:pointer
}
.vs-pwa-guide-icon-wrap{
  width:84px;height:84px;
  display:grid;place-items:center;
  margin:2px auto 0;
  padding:4px;
  overflow:hidden;
  border:1px solid var(--vt-line,var(--vt-border,#fecaca));
  border-radius:24px;
  background:var(--vt-soft,var(--vt-surface-tint,#fff1f2));
  box-shadow:0 10px 24px rgba(15,23,42,.12)
}
.vs-pwa-guide-icon{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  border-radius:20px
}
.vs-pwa-guide h3{
  margin:14px 0;
  color:var(--vt-primary-dark,#c51f24);
  font-size:19px;
  line-height:1.2
}
.vs-pwa-guide ol{
  margin:0;
  padding-left:23px;
  color:#475569;
  text-align:left;
  font-size:13px;
  line-height:1.7
}
.vs-pwa-guide p{
  margin:14px 0 0;
  color:#64748b;
  font-size:11.5px;
  line-height:1.55
}
.vs-pwa-guide-ok{
  width:100%;
  min-height:42px;
  margin-top:18px;
  padding:10px 14px;
  border:1px solid var(--vt-primary,#e5252a);
  border-radius:11px;
  color:#fff;
  background:var(--vt-primary,#e5252a);
  font-size:12px;
  font-weight:850;
  cursor:pointer
}
@media(max-width:560px){
  .vs-pwa-card{
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:8px;
    padding:9px 34px 9px 9px;
    border-radius:14px
  }
  .vs-pwa-icon-wrap{width:42px;height:42px;border-radius:12px}
  .vs-pwa-icon{border-radius:10px}
  .vs-pwa-copy strong{font-size:11.5px}
  .vs-pwa-copy span{font-size:9.5px}
  .vs-pwa-install{
    min-width:68px;
    max-width:88px;
    min-height:32px;
    padding:7px 10px;
    border-radius:9px;
    font-size:10px
  }
  .vs-pwa-guide{padding:25px 18px 20px;border-radius:20px}
}
@media(max-width:390px){
  .vs-pwa-card{
    grid-template-columns:40px minmax(0,1fr);
    align-items:center;
    padding:9px 32px 9px 9px
  }
  .vs-pwa-icon-wrap{width:40px;height:40px}
  .vs-pwa-install{
    grid-column:2;
    justify-self:start;
    width:auto;
    min-width:74px;
    max-width:none;
    margin-top:2px
  }
}
@media(display-mode:standalone){#pwa-install-root{display:none!important}}
