/*
 * NOTIKIT — "escenario" de marca: maqueta de tienda con notificaciones reales del producto.
 * Archivo propio de Notikit (no viene de AltumCode ni de Frest).
 * Marcado: themes/altum/views/partials/public_stage.php. Animacion: notikit-stage.js.
 * Lo cargan el sitio publico (wrapper.php) y las pantallas de acceso (basic_wrapper.php).
 * Colores: variables --nk-* de bs4-compat.css (claro / html.dark-style).
 */

.nk-stage {
  --nk-stage-pad-x: 1.75rem;
  --nk-stage-pad-b: 2.5rem;
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 1rem var(--nk-stage-pad-x) var(--nk-stage-pad-b);
  user-select: none;
}

.nk-stage-glow {
  position: absolute; inset: 8% 4% 4%;
  background:
    radial-gradient(closest-side, rgba(90, 141, 238, 0.45), transparent 70%) 20% 30% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(253, 172, 65, 0.28), transparent 70%) 85% 80% / 50% 55% no-repeat;
  filter: blur(28px);
  pointer-events: none;
}

/* ---- Ventana de navegador ---- */
.nk-browser {
  position: relative;
  border-radius: 0.875rem;
  background: var(--nk-card-bg);
  border: 1px solid var(--nk-border-soft);
  box-shadow: 0 1.5rem 3.5rem -1rem rgba(28, 46, 82, 0.35), 0 0.25rem 0.75rem rgba(28, 46, 82, 0.08);
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--nk-heading-color);
}
.nk-browser-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--nk-soft-bg);
  border-bottom: 1px solid var(--nk-border-soft);
}
.nk-browser-dots { display: inline-flex; gap: 0.3rem; flex-shrink: 0; }
.nk-browser-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #ff5b5c; }
.nk-browser-dots i:nth-child(2) { background: #fdac41; }
.nk-browser-dots i:nth-child(3) { background: #39da8a; }
.nk-browser-url {
  flex: 1 1 auto; min-width: 0; max-width: 16rem; margin: 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: 50rem;
  background: var(--nk-card-bg); color: var(--nk-body-color);
  font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nk-browser-url i { font-size: 0.75rem; color: #2bbd73; }
.nk-browser-body { padding: 0.9rem 1rem 4.5rem; }

/* ---- Tienda de ejemplo ---- */
.nk-shop-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.nk-shop-logo { display: inline-flex; align-items: center; gap: 0.3rem; font-family: "Rubik", sans-serif; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.nk-shop-logo i { color: var(--nk-primary); font-size: 1rem; }
.nk-shop-links { display: inline-flex; gap: 0.6rem; margin-inline-start: auto; }
.nk-shop-links i { width: 2rem; height: 0.4rem; border-radius: 1rem; background: var(--nk-soft-bg); }
.nk-shop-cart { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--nk-soft-bg); font-size: 0.95rem; }

.nk-shop-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1rem; margin-bottom: 0.8rem; border-radius: 0.625rem;
  background: linear-gradient(120deg, rgba(90, 141, 238, 0.16), rgba(253, 172, 65, 0.16));
}
.nk-shop-banner-title { display: block; font-family: "Rubik", sans-serif; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.4rem; }
.nk-shop-banner-lines { display: flex; flex-direction: column; gap: 0.25rem; }
.nk-shop-banner-lines i { width: 7.5rem; max-width: 100%; height: 0.35rem; border-radius: 1rem; background: rgba(105, 128, 154, 0.25); }
.nk-shop-banner-lines i:last-child { width: 5rem; }
.nk-shop-banner-cta { flex-shrink: 0; padding: 0.4rem 0.8rem; border-radius: 0.4rem; background: var(--nk-primary); color: #fff; font-weight: 500; font-size: 0.6875rem; white-space: nowrap; }

.nk-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.nk-shop-product { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.nk-shop-product-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 0.5rem; font-size: 2.25rem; }
.nk-shop-product-image i { font-size: 2.25rem; }
.nk-tone-a { background: rgba(90, 141, 238, 0.16); color: #5a8dee; }
.nk-tone-b { background: rgba(253, 172, 65, 0.2); color: #e8922a; }
.nk-tone-c { background: rgba(57, 218, 138, 0.18); color: #2bbd73; }
.nk-tone-d { background: rgba(255, 91, 92, 0.15); color: #ff5b5c; }
.nk-shop-product-name { font-size: 0.6875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-shop-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.nk-shop-product-meta i { width: 45%; height: 0.35rem; border-radius: 1rem; background: var(--nk-soft-bg); }
.nk-shop-product-meta b { width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; background: rgba(90, 141, 238, 0.18); }

/* ---- Notificaciones (HTML real del producto) ---- */
.nk-stage-toasts { position: absolute; inset: 0; pointer-events: none; }
.nk-stage-toast {
  position: absolute; z-index: 2;
  width: max-content; max-width: min(19.5rem, 82%);
  opacity: 0; transform: translate3d(0, 1rem, 0) scale(0.96);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  filter: drop-shadow(0 0.9rem 1.4rem rgba(20, 27, 61, 0.28));
  will-change: opacity, transform;
  text-align: start;
}
.nk-stage-toast-bottom-start { inset-inline-start: 0; bottom: 0.5rem; }
.nk-stage-toast-bottom-end { inset-inline-end: 0; bottom: 3.75rem; }
.nk-stage-toast-top-end { inset-inline-end: 0; top: 2.6rem; }
.nk-stage-toast.is-visible,
.nk-stage:not(.is-animated) .nk-stage-toast.is-static { opacity: 1; transform: none; }
.nk-stage-toast .altumcode-wrapper { margin: 0 !important; max-width: 100% !important; }
.nk-stage-toast .altumcode-wrapper:hover { transform: none; }
.nk-stage-toast p { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .nk-stage { --nk-stage-pad-x: 0.75rem; --nk-stage-pad-b: 2.25rem; }
  .nk-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nk-shop-product:nth-child(4) { display: none; }
  .nk-shop-links { display: none; }
  .nk-shop-cart { margin-inline-start: auto; }
  .nk-stage-toast { zoom: 0.86; max-width: 92%; }
  .nk-stage-toast-top-end { top: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nk-stage-toast { transition: none; }
}
