.so-pwa-wrap{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  z-index: 999999;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px) saturate(1.15);
}
.so-pwa-card{
  text-align: center;
  width: min(620px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.97);
  box-shadow: 0 30px 90px rgba(15,23,42,.18);
  padding: 16px;
  color: rgba(15,23,42,.92);
}
.so-pwa-card--compact{ width: min(560px, 100%); }

.so-pwa-top{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.so-pwa-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,229,255,.92), rgba(124,77,255,.92));
  box-shadow: 0 18px 45px rgba(0, 229, 255, .14), 0 18px 55px rgba(124, 77, 255, .10);
  flex: 0 0 auto;
}
.so-pwa-icon--ios{
  background: linear-gradient(135deg, rgba(255,45,85,.92), rgba(255,176,0,.90));
  box-shadow: 0 18px 45px rgba(255, 45, 85, .14), 0 18px 55px rgba(255, 176, 0, .10);
}
.so-pwa-head{ width: 100%; }
.so-pwa-title{
  font-weight: 950;
  font-size: 16px;
  letter-spacing: .2px;
  margin-top: 2px;
}
.so-pwa-desc{
  margin-top: 6px;
  opacity: .76;
  font-size: 14px;
  line-height: 1.35;
}

.so-pwa-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.so-pwa-badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.03);
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.84);
}

.so-pwa-steps{
  text-align: left;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.03);
  padding: 10px 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 8px;
}
.so-pwa-steps-title{
  font-weight: 950;
  font-size: 13px;
  opacity: .86;
  margin-bottom: 2px;
}
.so-pwa-step{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(15,23,42,.86);
}
.so-pwa-dot{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,229,255,.92), rgba(124,77,255,.92));
  flex: 0 0 auto;
  margin-top: 1px;
}

.so-pwa-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.so-pwa-actions--compact{ justify-content: center; margin-top: 14px; }

.so-pwa-btn{
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.05);
  color: rgba(15,23,42,.92);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
.so-pwa-btn:hover{ transform: translateY(-1px); box-shadow: 0 16px 38px rgba(15,23,42,.14); filter: saturate(1.05); }
.so-pwa-btn:active{ transform: translateY(0); box-shadow: 0 10px 22px rgba(15,23,42,.12); }
.so-pwa-btn:focus-visible{ outline: 3px solid rgba(0,229,255,.35); outline-offset: 2px; }

.so-pwa-btn--primary{
  border-color: rgba(0, 229, 255, .55);
  background: linear-gradient(135deg, rgba(0,229,255,.92), rgba(124,77,255,.92));
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 229, 255, .18), 0 18px 55px rgba(124, 77, 255, .12);
}
.so-pwa-btn--ghost{
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.14);
}
.so-pwa-btn--ghost2{
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.14);
  opacity: .92;
}

.so-pwa-logo{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  display:block;
}
.so-pwa-logoFallback{
  font-size: 20px;
  line-height: 1;
}

.so-pwa-icon img{
  background: rgba(255,255,255,.92);
  padding: 4px;
}

/* --- SO PWA Loader (solo en modo app/standalone) --- */
.so-pwa-loader{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  pointer-events: none;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px) saturate(1.15);
}
.so-pwa-standalone .so-pwa-loader{
  display: flex;
  opacity: 1;
}
.so-pwa-loader.is-hidden{
  opacity: 0;
  transition: opacity .18s ease;
}
.so-pwa-loader.is-hidden{
  display: none;
}
.so-pwa-loader__card{
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(15,23,42,.16);
  min-width: 180px;
}
.so-pwa-loader__ring{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(15,23,42,.10);
  border-top-color: rgba(0,229,255,.92);
  border-right-color: rgba(124,77,255,.92);
  animation: soPwaSpin .75s linear infinite;
}
.so-pwa-loader__text{
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(15,23,42,.86);
}
@keyframes soPwaSpin{ to{ transform: rotate(360deg);} }
