/* Sippelossy · «Instalar app» (aviso de abajo y ventana con los pasos). Común a la webcam y a la web principal. */
.is-app [data-pwa-install] { display: none !important; }
/* La web principal no oculta [hidden] con !important: sin esto la ventana quedaba invisible tapando la página */
.pwa-sheet[hidden], .pwa-banner[hidden], .pwa-sheet [hidden] { display: none !important; }

.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; max-width: 520px; margin: 0 auto;
  background: rgba(28, 20, 24, .97); border: 1px solid rgba(233, 30, 120, .35); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55); color: #f4e9ec; font-family: inherit;
  transform: translateY(140%); transition: transform .3s ease;
}
.pwa-banner.is-open { transform: none; }
.pwa-banner img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.pwa-banner-text { flex: 1; min-width: 0; line-height: 1.3; }
.pwa-banner-text strong { display: block; font-size: .95rem; }
.pwa-banner-text span { font-size: .8rem; color: #c9b5bb; }
.pwa-btn {
  flex: none; border: 0; border-radius: 999px; padding: 10px 18px; background: #e91e78; color: #fff;
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.pwa-btn:hover { background: #ff2d8a; color: #fff; text-decoration: none; }
.pwa-x {
  position: absolute; top: -9px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: #241a1e; color: #c9b5bb; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
}

.pwa-sheet {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0); transition: background .2s ease; padding: 0 10px;
}
.pwa-sheet.is-open { background: rgba(0, 0, 0, .62); }
.pwa-sheet-box {
  position: relative; width: 100%; max-width: 440px; margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #1c1418; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 22px 20px 18px; color: #f4e9ec;
  transform: translateY(110%); transition: transform .22s ease; text-align: left; font-family: inherit;
  max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain;
}
.pwa-sheet.is-open .pwa-sheet-box { transform: none; }
@media (min-width: 761px) { .pwa-sheet { align-items: center; } .pwa-sheet-box { margin-bottom: 0; } }
.pwa-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 26px; }
.pwa-sheet-head img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.pwa-sheet-head h2 { margin: 0; font-size: 1.12rem; line-height: 1.25; color: #fff; font-family: inherit; }
.pwa-steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: pwa; }
.pwa-steps li { counter-increment: pwa; position: relative; padding: 9px 0 9px 40px; font-size: .95rem; line-height: 1.4; color: #e5d8dc; }
.pwa-steps li::before {
  content: counter(pwa); position: absolute; left: 0; top: 7px; width: 27px; height: 27px; border-radius: 50%;
  background: rgba(233, 30, 120, .18); color: #ff5fa2; font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.pwa-ico {
  display: inline-grid; place-items: center; vertical-align: -6px; width: 26px; height: 26px; margin: 0 2px;
  border-radius: 7px; background: rgba(255, 255, 255, .1); color: #4da3ff;
}
.pwa-ico svg { width: 17px; height: 17px; }
.pwa-note { margin: 0 0 16px; font-size: .95rem; line-height: 1.45; color: #e5d8dc; }
.pwa-sheet .pwa-btn { display: block; width: 100%; padding: 12px; text-align: center; }
.pwa-sheet-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .08); color: #c9b5bb; font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
}
.pwa-sheet .pwa-now { margin: 0 0 14px; font-size: 1rem; padding: 14px; box-shadow: 0 8px 24px rgba(233, 30, 120, .35); }
