/* ═══════════════════════════════════════════════════════════════════
   instalar.css — Aviso "Instalar aplicación"

   Mismas reglas que traían las páginas del sitio anterior
   (residentes.html, admin.html y consola.html repetían este bloque en
   un <style>). Ahora vive una sola vez y lo enlazan los tres portales.
   La lógica está en js/core/instalar.js.

   Colores fijos y no variables de tema, igual que el original: el aviso
   aparece encima del portal y debe verse igual con tema claro u oscuro.
   ═══════════════════════════════════════════════════════════════════ */

.pwa-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99998;
  align-items: flex-end;
  justify-content: center;
}

.pwa-overlay.active {
  display: flex;
  animation: pwaFadeIn .18s ease;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-box {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px 26px 0 0;
  padding: 24px 24px 32px;
  width: 100%;
  max-width: 380px;
  animation: pwaSheetUp .32s cubic-bezier(.22, .68, 0, 1.2) both;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.4);
}

@keyframes pwaSheetUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 20px;
}

.pwa-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 111, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pwa-title {
  font-size: 17px;
  font-weight: 700;
  color: #f0efff;
  text-align: center;
  margin-bottom: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pwa-desc {
  font-size: 13px;
  color: #9998b8;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 20px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pwa-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: #1e1e2a;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pwa-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #9998b8;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pwa-feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124, 111, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #1e1e2a;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pwa-step-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5c5b7a;
  margin-bottom: 4px;
}

.pwa-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #9998b8;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7c6fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pwa-step strong {
  color: #f0efff;
}

/* Iconos dentro del texto de un paso (antes: style="vertical-align…") */
.pwa-step svg {
  vertical-align: middle;
  margin: 0 2px;
}

/* Los tres puntos del menú de Safari (antes: style="color…;font-size…") */
.pwa-step .pwa-puntos {
  color: #7c6fff;
  font-size: 15px;
}

.pwa-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #7c6fff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: opacity .2s;
}

.pwa-btn-primary:active {
  opacity: .85;
  transform: scale(.98);
}

.pwa-btn-ghost {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #5c5b7a;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  margin-top: 6px;
}
