/* ════════════════════════════════════════════════════════════════════════
   PORTAL FTP · invitación a instalar la app (assets/js/utils/instalar-app.js)
   Mismo aire que la tarjeta del ingreso: vidrio oscuro, verde de la marca.
   ════════════════════════════════════════════════════════════════════════ */

.ftp-inst {
  position: fixed; z-index: 9000;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transform: translateY(120%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
  opacity: 0;
}
.ftp-inst-visible { transform: none; opacity: 1; }

.ftp-inst-caja {
  pointer-events: auto;
  position: relative;
  width: 100%; max-width: 420px;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(8, 25, 14, .88);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .65);
  color: #EAF3EC;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.ftp-inst-x {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #C9DCD0;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.ftp-inst-x:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.ftp-inst-cab { display: flex; gap: 14px; align-items: center; padding-right: 34px; }
.ftp-inst-logo {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px; background: #fff; padding: 5px; box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.ftp-inst-cab strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ftp-inst-cab span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: #B9CFC1; }

.ftp-inst-pasos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ftp-inst-pasos li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.35; }
.ftp-inst-pasos b { font-weight: 800; color: #fff; }
.ftp-inst-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(22, 163, 74, .22); color: #6EE7A0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.ftp-inst-ico {
  width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.ftp-inst-acciones { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.ftp-inst-btn {
  flex: 1 1 auto;
  font: inherit; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #16a34a, #0e7c3a);
  border: none; border-radius: 14px; min-height: 48px; padding: 12px 18px;
  cursor: pointer; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .8);
}
.ftp-inst-btn:hover { filter: brightness(1.07); }
.ftp-inst-btn:active { transform: scale(.98); }
.ftp-inst-btn:disabled { opacity: .6; cursor: default; }
.ftp-inst-no {
  flex: 0 0 auto;
  font: inherit; font-size: 14px; font-weight: 700; color: #B9CFC1;
  background: none; border: none; border-radius: 12px; min-height: 48px; padding: 12px 14px;
  cursor: pointer;
}
.ftp-inst-no:hover { color: #fff; }
.ftp-inst-caja :focus-visible { outline: 2px solid #6EE7A0; outline-offset: 2px; }

/* Sin el diálogo del navegador (iPhone) el botón "Entendido" ocupa todo */
.ftp-inst-acciones .ftp-inst-no:only-child { flex: 1 1 auto; text-align: center; }

@media (min-width: 720px) {
  .ftp-inst { justify-content: flex-end; padding-right: 20px; padding-bottom: 20px; }
  .ftp-inst-caja { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .ftp-inst { transition: opacity .2s ease; transform: none; }
}

.ftp-inst-pie { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: #9FBBA8; }
.ftp-inst-pie b { color: #CFE6D8; font-weight: 700; }
