/* Banner premium oscuro — instalación PWA (LexAgenda) */
.lex-pwa-install-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10050;
  padding: 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  pointer-events: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lex-pwa-install-banner {
  pointer-events: auto;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(145deg, #232328 0%, #141416 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 162, 39, 0.12) inset;
  color: #f2f2f4;
  animation: lex-pwa-slide-up 0.35s ease-out;
}

@keyframes lex-pwa-slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lex-pwa-install-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lex-pwa-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lex-pwa-install-body {
  flex: 1;
  min-width: 0;
}

.lex-pwa-install-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
}

.lex-pwa-install-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #a8a8b0;
  margin: 0;
}

.lex-pwa-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.lex-pwa-btn {
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.lex-pwa-btn:active {
  transform: scale(0.98);
}

.lex-pwa-btn-primary {
  background: linear-gradient(180deg, #d4af37 0%, #b8922a 100%);
  color: #1a1a1e;
}

.lex-pwa-btn-primary:hover {
  background: linear-gradient(180deg, #e0bc45 0%, #c49a30 100%);
}

.lex-pwa-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #c8c8d0;
}

.lex-pwa-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lex-pwa-install-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9a9aa3;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lex-pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Modal iOS */
.lex-pwa-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  animation: lex-pwa-fade-in 0.25s ease;
}

@keyframes lex-pwa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lex-pwa-ios-sheet {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #2a2a30 0%, #161618 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 12px 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  color: #f0f0f2;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.lex-pwa-ios-sheet h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.lex-pwa-ios-steps {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.lex-pwa-ios-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #c4c4cc;
}

.lex-pwa-ios-steps .lex-pwa-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lex-pwa-ios-steps svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.lex-pwa-ios-sheet .lex-pwa-btn-primary {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .lex-pwa-install-root {
    padding: 1rem 1.25rem;
  }
  .lex-pwa-install-banner {
    max-width: 480px;
  }
}
