/* AMO PWA — Botón "DESCARGA LA APP" + guías de instalación por navegador.
 *
 * Se carga en panel.html. Sólo afecta a elementos creados por
 * web/js/pwa-install.js (el botón y el modal de guía). Reutiliza las
 * variables del tema del sitio (--accent-gradient, --font-heading, etc.)
 * con fallbacks por si el CSS base no cargó.
 *
 * Modularidad (Reglas.md §13): fichero nuevo dedicado al feature de
 * instalación PWA del panel. NO añadir aquí estilos ajenos a este botón.
 */

/* ── Botón "DESCARGA LA APP" (encima de "Mis nóminas") ── */
.pwa-dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 16px 0 4px;
  padding: 14px 16px;
  background: var(--accent-gradient, linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa));
  border: none;
  border-radius: var(--radius-lg, 16px);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.pwa-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}
.pwa-dl-btn:active {
  transform: translateY(0) scale(0.99);
}
.pwa-dl-btn__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-dl-btn__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}
.pwa-dl-btn__text {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.4px;
}
.pwa-dl-btn__chev {
  margin-left: auto;
  opacity: 0.8;
  display: flex;
}
.pwa-dl-btn__chev svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* ── Overlay + modal de guía (iOS / Android sin prompt / in-app) ── */
.pwa-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pwaGuideFade 0.2s ease-out;
}
@keyframes pwaGuideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pwa-guide-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-xl, 24px);
  padding: 24px 22px 20px;
  color: var(--text-primary, #f1f5f9);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.5));
  animation: pwaGuideUp 0.25s ease-out;
}
@keyframes pwaGuideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pwa-guide-modal__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pwa-guide-modal__title svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-secondary, #8b5cf6);
  flex-shrink: 0;
}
.pwa-guide-modal__sub {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 16px;
}
.pwa-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 13px;
}
.pwa-step__n {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-step__tx {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary, #cbd5e1);
}
.pwa-step__tx b {
  color: var(--text-primary, #f1f5f9);
  font-weight: 600;
}
.pwa-step__tx svg {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  stroke: currentColor;
}
.pwa-guide-modal__footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.pwa-guide-btn {
  border: none;
  border-radius: var(--radius-sm, 8px);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent-primary, #6366f1);
  color: #fff;
  font-family: inherit;
}
.pwa-guide-btn:hover {
  opacity: 0.88;
}
