/* CTA descarga App — blog + Atlas */

.aip-next-level.aip-next-level--stores {
  margin: 32px 0;
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
  min-height: 0;
}

.aip-next-level.aip-next-level--stores > div {
  padding: 20px 22px 18px;
}

/* Anular márgenes de .blog-body.prose p / img que descuadran el CTA. */
.aip-next-level.aip-next-level--stores p,
.blog-body.prose .aip-next-level p {
  margin: 0;
}

.aip-nl-eyebrow {
  margin: 0 0 10px !important;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0369a1;
  line-height: 1.2;
  text-align: center;
}

/* Icono + AiPeces: centrados en la tarjeta y entre sí (eje vertical). */
.aip-nl-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 14px;
}

/* El PNG ya trae squircle + transparencia: no recortar ni pintar fondo detrás. */
.aip-nl-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  line-height: 0;
}

.aip-nl-icon img,
.blog-body.prose .aip-nl-icon img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.28));
}

.aip-nl-head-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 64px;
}

.aip-nl-app-name,
.blog-body.prose .aip-nl-app-name {
  margin: 0 !important;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.aip-nl-app-name .aip-nl-ai {
  color: var(--accent, #15a8dc);
}

.aip-nl-app-name .aip-nl-peces {
  color: #0f172a;
}

.aip-nl-body,
.blog-body.prose .aip-nl-body {
  margin: 0 0 16px !important;
  font-size: 17px;
  line-height: 1.55;
  color: #0f172a;
}

.aip-nl-stores {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.aip-nl-store {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 50%;
  text-decoration: none;
  color: inherit;
}

/* Evitar que .prose del blog fuerce enlaces a bloque / 100%. */
.blog-body.prose .aip-nl-store,
.prose .aip-nl-store {
  display: flex;
  width: auto;
  max-width: 50%;
}

.aip-nl-store img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

.aip-nl-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  white-space: nowrap;
}

.aip-nl-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.aip-nl-score {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.aip-nl-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.aip-nl-rating[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .aip-nl-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .aip-nl-icon img,
  .blog-body.prose .aip-nl-icon img {
    width: 56px;
    height: 56px;
    max-width: 56px;
  }

  .aip-nl-head-text {
    height: 56px;
  }

  .aip-nl-eyebrow {
    margin-bottom: 8px;
  }

  .aip-nl-app-name {
    font-size: 24px;
  }

  .aip-nl-body {
    font-size: 16px;
  }

  .aip-nl-stores {
    gap: 10px;
  }

  .aip-nl-store img {
    height: 36px;
  }

  .aip-nl-stars {
    font-size: 11px;
  }

  .aip-nl-score,
  .aip-nl-count {
    font-size: 11px;
  }
}
