/* UFY Phone — PWA: la barra fija de arriba "Instala UFY Phone"
   (js/ufy-phone/pwa-install-bar.js). Solo en el navegador del teléfono.
   Va encima de las pantallas de UFY (z 5000) y debajo de los visores a
   pantalla completa (fotos, historias, editor: z 10000 o más), para no tapar
   sus botones. */
:root {
  --ufy-install-bar-h: 52px;
}

.ufy-pwa-install-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6000;

  height: var(--ufy-install-bar-h);
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 12px;

  border-bottom: 1px solid rgba(222, 205, 255, 0.22);
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, #2a1e48, #120c20);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ufy-pwa-install-bar-mark {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111;
  background: #fff;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.5px;
}

.ufy-pwa-install-bar-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ufy-pwa-install-bar-copy strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ufy-pwa-install-bar-copy span {
  font-size: 12px;
  color: rgba(225, 210, 250, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ufy-pwa-install-bar button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #8b46ff, #b46bff);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ufy-pwa-install-bar button:focus-visible {
  outline: 2px solid #b0faff;
  outline-offset: 2px;
}

/* Las pantallas de UFY bajan lo que mide la barra, para que no tape nada. */
html.ufy-install-bar-on .ufy-phone-lock,
html.ufy-install-bar-on .ufy-phone-home-screen {
  top: var(--ufy-install-bar-h);
  height: calc(100dvh - var(--ufy-install-bar-h));
  min-height: 0;
}

/* Pantalla de entrar y crear cuenta (la página se desplaza entera). */
html.ufy-install-bar-on body.ufy-auth-guest {
  padding-top: var(--ufy-install-bar-h) !important;
}
