/* App municipal ([urbanodo-app], barra en el móvil e invitaciones) */

.gs-app {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 1em 0;
}

.gs-app-card,
.gs-app-banner {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--urbanodo-color, #ab163e) 12%, white), #fff);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.gs-app-banner {
  padding: 18px 26px;
}

.gs-app .gs-app-icon {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gs-app-banner .gs-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.gs-app-body {
  flex: 1;
  min-width: 0;
}

.gs-app .gs-app-title {
  margin: 0 0 4px;
  padding: 0;
}

.gs-app-name {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-weight: 600;
  opacity: 0.8;
}

.gs-app-rating {
  margin-left: 6px;
  color: #b8860b;
}

.gs-app .gs-app-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 12px 0 16px !important;
  padding: 0 !important;
  list-style: none !important;
}

.gs-app .gs-app-features li {
  list-style: none !important;
}

.gs-app .gs-app-features li::before {
  content: "✓ ";
  font-weight: bold;
  color: var(--urbanodo-color, #ab163e);
}

/* Botones oficiales: el de Google Play trae margen transparente, por eso es más alto */
.gs-app-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.gs-app-badge img {
  display: block;
  width: auto;
  max-width: none;
}

.gs-app-badge-ios img { height: 44px; }
.gs-app-badge-android img { height: 65px; margin: -10px 0; }

.gs-app-qr {
  flex-shrink: 0;
  width: 132px;
  text-align: center;
  font-size: 12px;
}

.gs-app-qr-code svg {
  display: block;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

/* En el móvil no hace falta el QR: se pulsa el botón de la tienda */
@media (max-width: 760px) {
  .gs-app { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gs-app-qr { display: none; }
  .gs-app .gs-app-features { grid-template-columns: 1fr; }
}

/* Página /app/ en el ordenador */
.gs-app-landing {
  padding: 60px 0;
}

/* Enlace «Ver en la app» */
.gs-app-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--urbanodo-color, #ab163e);
  color: #fff !important;
  text-decoration: none;
}

.gs-app-link::before {
  content: "📲 ";
}

/* Invitaciones en avisos, calendario y rutas */
.gs-app-prompt {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font-size: 14px;
  text-align: right;
}

.gs-app-prompt a {
  color: var(--urbanodo-color, #ab163e);
  font-weight: 600;
}

.gs-app-prompt-route {
  text-align: left;
}

/* Barra en el móvil */
.gs-app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99997;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
}

.gs-app-bar img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.gs-app-bar-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.gs-app-bar-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-app-bar-install {
  padding: 8px 16px;
  border-radius: 18px;
  background: var(--urbanodo-color, #ab163e);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.gs-app-bar-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

body.gs-app-bar-open {
  padding-bottom: 70px;
}
