/* Tienda NEMUPY · diseño 2026-10-28 (encabezado blanco, categorías con iconos, banners, página de producto).
   Se carga después de nemu_shop.css. Todo con prefijo ns- o dentro de .ns-store para no chocar con el resto del sitio. */
:root {
  --nx-navy: #0f1d3d;
  --nx-text: #16223f;
  --nx-muted: #5d6b85;
  --nx-blue: #1a6ee8;
  --nx-blue-d: #1459c4;
  --nx-blue-soft: #eaf2ff;
  --nx-red: #e5343f;
  --nx-yellow: #ffc83d;
  --nx-pink: #fdecef;
  --nx-line: #e5eaf2;
  --nx-bg: #f6f8fc;
  --nx-card: #fff;
  --nx-r: 20px;
  --nx-shadow: 0 10px 30px rgba(15, 29, 61, .08);
  --nx-font: "Nunito", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ns-store { margin: 0; background: #fff; color: var(--nx-text); font-family: var(--nx-font); -webkit-font-smoothing: antialiased; }
.ns-store, .ns-store button, .ns-store input, .ns-store select { font-family: var(--nx-font); }
.ns-lock, .ns-lock body { overflow: hidden; }
.ns-wrap { width: min(calc(100% - 32px), 1240px); margin: 0 auto; }
.ns-main { padding: 18px 0 64px; }
.ns-store .nshop-btn { border-radius: 14px; font-weight: 800; }
.ns-store .nshop-btn-primary { background: var(--nx-blue); box-shadow: 0 8px 20px rgba(26, 110, 232, .25); }
.ns-store .nshop-btn-primary:hover { background: var(--nx-blue-d); }
.ns-store .nshop-btn-dark { background: var(--nx-navy); }
.ns-ico { width: 100%; height: 100%; display: block; }
img.ns-ico { object-fit: contain; }

/* ---------- Encabezado ---------- */
.ns-top { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--nx-line); }
.ns-top-in { display: flex; align-items: center; gap: 18px; min-height: 80px; }
.ns-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nx-navy) !important; text-decoration: none; flex: 0 0 auto; }
.ns-brand img { width: 56px; height: 56px; object-fit: contain; }
.ns-brand strong { display: block; font-size: 1.85rem; font-weight: 900; letter-spacing: .01em; line-height: 1; }
.ns-brand small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.ns-brand.is-light { color: #fff !important; }
.ns-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: clamp(8px, 2.6vw, 40px); }
.ns-nav > a, .ns-nav-drop > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 6px; color: var(--nx-navy); font-weight: 700; font-size: 1.08rem; border-bottom: 2px solid transparent; }
.ns-nav > a:hover, .ns-nav-drop > a:hover, .ns-nav a.is-on { color: var(--nx-blue); }
.ns-nav a.is-on { border-bottom-color: var(--nx-blue); }
.ns-nav-drop { position: relative; }
.ns-nav-drop > a svg { width: 16px; height: 16px; }
.ns-drop { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); min-width: 560px; max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px;
  background: #fff; border: 1px solid var(--nx-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 29, 61, .16); padding: 18px; opacity: 0; visibility: hidden; transition: .18s; }
.ns-nav-drop:hover .ns-drop, .ns-nav-drop:focus-within .ns-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ns-drop-col { display: grid; align-content: start; gap: 2px; }
.ns-drop-cat { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--nx-navy); padding: 8px; border-radius: 12px; }
.ns-drop-cat:hover { background: var(--nx-blue-soft); }
.ns-drop-ico { width: 30px; height: 30px; flex: 0 0 30px; color: var(--nx-navy); display: grid; place-items: center; }
.ns-drop-sub { padding: 5px 8px 5px 48px; color: var(--nx-muted); font-weight: 600; font-size: .95rem; border-radius: 10px; }
.ns-drop-sub:hover { color: var(--nx-blue); }
.ns-drop-all { grid-column: 1 / -1; border-top: 1px solid var(--nx-line); padding: 12px 8px 2px; color: var(--nx-blue); font-weight: 800; }
.ns-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ns-icon-btn { position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--nx-navy); border-radius: 14px; cursor: pointer; padding: 0; }
.ns-icon-btn:hover { background: var(--nx-bg); }
.ns-text-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--nx-navy); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ns-text-btn:hover { background: var(--nx-bg); }
.ns-text-btn svg { width: 22px; height: 22px; }
.ns-text-btn.is-primary { background: var(--nx-blue); color: #fff; }
.ns-text-btn.is-primary:hover { filter: brightness(1.08); background: var(--nx-blue); }
@media (max-width: 520px) { .ns-text-btn { padding: 0 8px; } .ns-text-btn span { font-size: 14px; } }
.ns-icon-btn svg { width: 28px; height: 28px; }
.ns-cart .ns-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--nx-red); color: #fff; font-size: .72rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }
.ns-only-m { display: none; }
.ns-search { display: none; border-top: 1px solid var(--nx-line); background: #fff; padding: 12px 0; }
.ns-search.is-open { display: block; }
.ns-search .ns-wrap { display: flex; gap: 10px; }
.ns-search-box { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--nx-line); border-radius: 14px; padding: 0 14px; background: var(--nx-bg); }
.ns-search-box:focus-within { border-color: var(--nx-blue); background: #fff; }
.ns-search-box svg { width: 20px; height: 20px; color: var(--nx-muted); flex: 0 0 20px; }
.ns-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 1rem; color: var(--nx-text); outline: none; }

/* Menú en celular */
.ns-mnav { position: fixed; inset: 0; z-index: 1005; background: rgba(15, 29, 61, .45); }
.ns-mnav[hidden] { display: none; }
.ns-mnav-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86%, 360px); background: #fff; overflow-y: auto; padding: 14px 16px 30px; display: flex; flex-direction: column; }
.ns-mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ns-mnav-head strong { font-size: 1.15rem; }
.ns-mnav-link { padding: 13px 8px; font-weight: 800; font-size: 1.05rem; border-bottom: 1px solid var(--nx-line); color: var(--nx-navy); }
.ns-mnav-link.is-on { color: var(--nx-blue); }
.ns-mnav-title { margin: 18px 8px 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted); font-weight: 800; }
.ns-mnav-cat { display: flex; align-items: center; gap: 10px; padding: 9px 8px; font-weight: 800; color: var(--nx-navy); }
.ns-mnav-sub { padding: 6px 8px 6px 48px; color: var(--nx-muted); font-weight: 600; }

/* ---------- Banners ---------- */
.ns-banners { position: relative; border-radius: 28px; overflow: hidden; background: #eef4fd; box-shadow: none; margin: 4px 0 26px; }
.ns-banners .nshop-slides { align-items: stretch; }
.ns-slide { position: relative; flex: 0 0 100%; min-width: 100%; display: flex; align-items: center; overflow: hidden; color: #fff; }
.ns-banners .ns-slide:not(.is-image-only) { min-height: 340px; padding: 44px clamp(22px, 7vw, 96px); }
.ns-slide.is-image-only { display: block; padding: 0; min-height: 0; aspect-ratio: auto; }
.ns-slide.is-image-only picture, .ns-slide.is-image-only img { display: block; width: 100%; height: auto; }
.ns-slide-bg { background-image: var(--bg); background-size: cover; background-position: center; }
.ns-slide.is-plain .ns-slide-bg::after { display: none; }
.ns-slide-body { position: relative; z-index: 1; max-width: 620px; display: flex; gap: 18px; align-items: center; }
.ns-slide-body h3 { font-size: clamp(1.7rem, 4.4vw, 3.3rem); line-height: 1.04; margin: 0 0 12px; font-weight: 900; }
.ns-slide-body p { font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.45; margin: 0 0 20px; opacity: .92; }
.ns-slide.is-light { color: var(--nx-navy); }
.ns-slide.is-light .ns-slide-body p { color: #33415f; opacity: 1; }
.ns-slide.is-light .nshop-slide-deco { background: rgba(255, 255, 255, .5); }
.ns-slide.is-light .ns-slide-bg::after { display: none; }
.ns-slide-link { position: absolute; inset: 0; z-index: 2; }
.ns-slide-ico { flex: 0 0 74px; width: 74px; height: 74px; color: var(--nx-red); }
.ns-banners .ns-arrow { width: 48px; height: 48px; background: #fff; color: var(--nx-navy); box-shadow: 0 6px 18px rgba(15, 29, 61, .16); display: grid; place-items: center; z-index: 3; }
.ns-banners .ns-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.ns-banners .nshop-dots { z-index: 3; bottom: 14px; }
.ns-banners .nshop-dots button { background: rgba(15, 29, 61, .22); }
.ns-banners .nshop-dots button.is-on { width: 12px; background: var(--nx-blue); }
/* Franja de ofertas: más baja, por defecto rosada */
.ns-banners.is-ofertas { border-radius: 22px; background: var(--nx-pink); margin: 0; }
.ns-banners.is-ofertas .ns-slide:not(.is-image-only) { min-height: 150px; padding: 26px clamp(20px, 5vw, 56px); }
.ns-banners.is-ofertas .ns-slide-body { max-width: 760px; }
.ns-banners.is-ofertas .ns-slide-body h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 6px; }
.ns-banners.is-ofertas .ns-slide-body p { margin-bottom: 12px; font-size: clamp(.98rem, 1.6vw, 1.2rem); }
.ns-banners.is-categoria { border-radius: 24px; margin-top: 4px; }
.ns-banners.is-categoria .ns-slide:not(.is-image-only) { min-height: 220px; }

/* Bienvenida si todavía no hay banners */
.ns-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #eaf2ff, #f7fbff); border-radius: 28px; padding: clamp(26px, 5vw, 56px); margin: 4px 0 26px; }
.ns-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 12px; color: var(--nx-navy); font-weight: 900; }
.ns-hero p { font-size: 1.15rem; color: var(--nx-muted); margin: 0 0 22px; max-width: 560px; line-height: 1.5; }
.ns-hero img { width: clamp(120px, 20vw, 220px); height: auto; }

/* ---------- Títulos de sección ---------- */
.ns-section { margin: 30px 0 0; }
.ns-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ns-h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; font-weight: 900; color: var(--nx-navy); line-height: 1.15; }
.ns-h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0; font-weight: 900; color: var(--nx-navy); }
.ns-h1.has-ico, .ns-h2.has-ico { display: flex; align-items: center; gap: 10px; }
.ns-h2-ico { width: 1.4em; height: 1.4em; flex: 0 0 auto; color: var(--nx-blue); display: inline-grid; place-items: center; }
.ns-more { display: inline-flex; align-items: center; gap: 6px; color: var(--nx-blue); font-weight: 800; white-space: nowrap; }
.ns-more svg { width: 18px; height: 18px; }

/* ---------- Categorías con iconos ---------- */
.ns-cats { margin: 4px 0 26px; }
.ns-cats .ns-h2 { margin-bottom: 14px; }
.ns-cats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.ns-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 132px; padding: 16px 10px; text-align: center; background: #fff; border: 1.5px solid var(--nx-line); border-radius: 18px; box-shadow: 0 4px 14px rgba(15, 29, 61, .04); color: var(--nx-navy); transition: .18s; }
.ns-cat:hover, .ns-cat.is-on { background: var(--nx-blue-soft); border-color: #b9d2fb; transform: translateY(-2px); }
.ns-cat-ico { width: 52px; height: 52px; display: grid; place-items: center; color: var(--nx-navy); }
.ns-cat-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.ns-cats.is-sub { margin: 4px 0 20px; }
.ns-cats.is-sub .ns-cats-row { grid-template-columns: repeat(auto-fill, minmax(130px, 170px)); gap: 10px; }
.ns-cats.is-sub .ns-cat { min-height: 96px; padding: 12px 8px; gap: 6px; }
.ns-cats.is-sub .ns-cat-ico { width: 36px; height: 36px; }
.ns-cats.is-sub .ns-cat-name { font-size: .92rem; }

/* ---------- Tarjetas ---------- */
.ns-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ns-grid.is-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-card { position: relative; display: flex; flex-direction: column; background: var(--nx-card); border: 1.5px solid var(--nx-line); border-radius: var(--nx-r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ns-card:hover { box-shadow: var(--nx-shadow); transform: translateY(-3px); }
.ns-card.is-combo { border-color: #ffd98a; }
.ns-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.ns-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .35s; }
.ns-card:hover .ns-card-media img { transform: scale(1.04); }
.ns-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #b7c3d8; background: var(--nx-bg); }
.ns-noimg svg { width: 38%; height: 38%; }
.ns-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ns-badge { display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: .74rem; font-weight: 900; color: #fff; background: var(--nx-navy); letter-spacing: .02em; }
.ns-badge.is-off { background: var(--nx-red); }
.ns-badge.is-combo { background: var(--nx-yellow); color: #3b2a00; }
.ns-badge.is-out { background: #7b879c; }
.ns-card-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px 16px; flex: 1; }
.ns-card-cat { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-muted); }
a.ns-card-cat:hover { color: var(--nx-blue); }
.ns-card-title { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns-card-title a { color: var(--nx-text); }
.ns-card-title a:hover { color: var(--nx-blue); }
.ns-combo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .86rem; color: var(--nx-muted); }
.ns-combo-list li::before { content: "✓ "; color: #18a957; font-weight: 900; }
.ns-combo-list li.is-plan { color: #4b32b5; font-weight: 800; }
.ns-combo-list li.is-plan::before { content: ""; }
.ns-perks { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-perk { font-size: .76rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: #e9f9ef; color: #137a42; }
.ns-perk.is-cod { background: #fff4dc; color: #8a5a00; }
.ns-perk.is-plan { background: #ece8ff; color: #4b32b5; }
.ns-card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ns-price { display: flex; flex-direction: column; line-height: 1.15; }
.ns-price s { color: #8a97ad; font-size: .86rem; }
.ns-price strong { font-size: 1.22rem; font-weight: 900; color: var(--nx-text); white-space: nowrap; }
.ns-low { color: #b45309; font-weight: 800; font-size: .76rem; }
.ns-add { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 12px; background: var(--nx-blue); color: #fff; font-weight: 800; font-size: .95rem; padding: 10px 14px; cursor: pointer; transition: background .2s; }
.ns-add:hover { background: var(--nx-blue-d); }
.ns-add:disabled { background: #b8c3d6; cursor: not-allowed; }
/* Tarjeta horizontal ("Productos destacados") */
.ns-card.is-row { flex-direction: row; align-items: stretch; }
.ns-card.is-row .ns-card-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 160px; }
.ns-card.is-row .ns-card-media img { padding: 12px; }
.ns-card.is-row .ns-card-body { padding: 16px 16px 16px 4px; }
.ns-card.is-row .ns-badges { left: 8px; top: 8px; }

/* ---------- Listados ---------- */
.ns-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--nx-muted); margin: 0 0 14px; }
.ns-crumbs a { color: var(--nx-muted); font-weight: 700; }
.ns-crumbs a:hover { color: var(--nx-blue); }
.ns-crumbs [aria-current] { color: var(--nx-text); font-weight: 700; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.ns-intro { margin: 6px 0 0; color: var(--nx-muted); font-size: 1.02rem; max-width: 720px; }
.ns-sort label { display: flex; align-items: center; gap: 8px; color: var(--nx-muted); font-weight: 700; font-size: .92rem; }
.ns-sort select { border: 1.5px solid var(--nx-line); border-radius: 12px; padding: 9px 12px; font-weight: 700; color: var(--nx-text); background: #fff; font-size: .95rem; }
.ns-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 18px; scrollbar-width: none; }
.ns-chips::-webkit-scrollbar { display: none; }
.ns-chip { white-space: nowrap; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--nx-line); font-weight: 700; color: var(--nx-text); background: #fff; }
.ns-chip:hover { border-color: #b9d2fb; }
.ns-chip.is-on { background: var(--nx-navy); border-color: var(--nx-navy); color: #fff; }
.ns-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.ns-pages a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--nx-line); font-weight: 800; }
.ns-pages a.is-on { background: var(--nx-blue); border-color: var(--nx-blue); color: #fff; }
.ns-empty { text-align: center; padding: 44px 18px; background: var(--nx-bg); border-radius: 24px; margin: 10px 0 24px; }
.ns-empty h1, .ns-empty h2 { font-size: 1.4rem; margin: 10px 0 6px; color: var(--nx-navy); }
.ns-empty p { color: var(--nx-muted); margin: 0 0 18px; }
.ns-empty p a { color: var(--nx-blue); font-weight: 800; }
.ns-empty-ico { width: 54px; height: 54px; display: inline-grid; place-items: center; color: var(--nx-blue); }
.ns-empty-ico svg { width: 100%; height: 100%; }

/* ---------- Página de producto ---------- */
.ns-product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.ns-gallery { position: sticky; top: 100px; }
.ns-gallery-main { position: relative; aspect-ratio: 1 / 1; border: 1.5px solid var(--nx-line); border-radius: 24px; background: #fff; overflow: hidden; }
.ns-gallery-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; opacity: 0; transition: opacity .25s; }
.ns-gallery-main > img.is-on { opacity: 1; }
.ns-gallery-main .ns-badges { left: 14px; top: 14px; }
.ns-gallery-main .ns-badge { font-size: .85rem; padding: 6px 11px; }
.ns-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--nx-navy); box-shadow: 0 6px 18px rgba(15, 29, 61, .16); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.ns-gal-arrow.prev { left: 12px; }
.ns-gal-arrow.next { right: 12px; }
.ns-gal-count { position: absolute; right: 14px; bottom: 12px; background: rgba(15, 29, 61, .7); color: #fff; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.ns-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.ns-thumbs button { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 14px; border: 2px solid var(--nx-line); background: #fff; padding: 0; overflow: hidden; cursor: pointer; }
.ns-thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ns-thumbs button.is-on { border-color: var(--nx-blue); }
.ns-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 6px 0 6px; color: var(--nx-navy); font-weight: 900; }
.ns-info .nshop-sku { display: inline-block; margin-bottom: 4px; }
.ns-short { color: var(--nx-muted); font-size: 1.08rem; line-height: 1.5; margin: 8px 0 0; }
.ns-buybox { margin: 18px 0 0; padding: 20px; border: 1.5px solid var(--nx-line); border-radius: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; background: #fff; }
.ns-price.is-big strong { font-size: clamp(1.8rem, 3.6vw, 2.3rem); }
.ns-price.is-big s { font-size: 1rem; }
.ns-offer-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ns-offer-line .nshop-save, .ns-buybox .nshop-save { margin: 0; color: #18a957; font-weight: 800; }
.ns-includes { background: #fff8e6; border-radius: 16px; padding: 14px 16px; }
.ns-includes ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ns-includes li::before { content: "✓ "; color: #18a957; font-weight: 900; }
.ns-includes li.is-plan { font-weight: 800; color: #4b32b5; }
.ns-includes li.is-plan::before { content: ""; }
.ns-includes a { color: var(--nx-blue); font-weight: 700; }
.ns-includes li { display: flex; align-items: center; gap: 8px; }
.ns-includes li::before { flex: none; }
.ns-inc-img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid #f0e2b8; flex: none; }
.ns-stock { font-weight: 800; color: #18a957; }
.ns-stock.is-out { color: var(--nx-red); }
.ns-buy { display: flex; gap: 10px; }
.ns-grow { flex: 1; min-width: 0; }
.ns-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--nx-line); border-radius: 14px; overflow: hidden; }
.ns-qty button { width: 42px; height: 48px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--nx-navy); }
.ns-qty input { width: 46px; height: 48px; border: 0; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--nx-text); -moz-appearance: textfield; }
.ns-qty input::-webkit-outer-spin-button, .ns-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ns-buybox .nshop-btn { padding: 14px 18px; font-size: 1rem; }
.ns-wa-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #128c4a; font-weight: 800; padding: 6px; }
.ns-wa-link svg { width: 22px; height: 22px; }
.ns-benefits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ns-benefits li { display: flex; align-items: center; gap: 12px; color: var(--nx-muted); font-weight: 600; }
.ns-benefits svg { width: 28px; height: 28px; flex: 0 0 28px; color: var(--nx-blue); }
.ns-desc { margin: 36px 0 0; padding: 24px; background: var(--nx-bg); border-radius: 24px; }
.ns-desc-text { margin-top: 12px; color: #334160; line-height: 1.7; font-size: 1.02rem; max-width: 900px; overflow-wrap: anywhere; }
.ns-sticky-buy { display: none; }

/* ---------- Beneficios y pie ---------- */
.ns-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; }
.ns-trust > div { display: flex; align-items: center; gap: 12px; background: var(--nx-bg); border-radius: 18px; padding: 16px; }
.ns-trust > div > span { width: 38px; height: 38px; flex: 0 0 38px; color: var(--nx-blue); }
.ns-trust p { margin: 0; font-size: .9rem; color: var(--nx-muted); line-height: 1.35; }
.ns-trust strong { display: block; color: var(--nx-text); font-size: .98rem; }
.ns-trust a { color: #128c4a; font-weight: 800; }
.ns-foot { background: var(--nx-navy); color: #c4d0e6; padding: 44px 0 20px; }
/* Footer siempre abajo: en páginas cortas el contenido estira y el pie queda al final */
body.ns-store { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.ns-store > .ns-main { flex: 1 0 auto; width: 100%; }
body.ns-store > .ns-foot { margin-top: auto; flex-shrink: 0; }
body.ns-store > .ns-top { flex-shrink: 0; }
.ns-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.ns-foot h4 { color: #fff; margin: 4px 0 12px; font-size: 1rem; }
.ns-foot a { display: block; padding: 4px 0; color: #c4d0e6; }
.ns-foot a:hover { color: #fff; }
.ns-foot .ns-brand { display: inline-flex; padding: 0; margin-bottom: 10px; }
.ns-foot .ns-brand img { background: #fff; border-radius: 12px; padding: 3px; }
.ns-foot .ns-brand strong { font-size: 1.5rem; }
.ns-foot p { margin: 0; line-height: 1.55; font-size: .92rem; max-width: 340px; }
.ns-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; font-size: .85rem; }
.ns-store .nshop-toast { font-family: var(--nx-font); }

/* ---------- Sección de la tienda dentro de la página principal ---------- */
.nshop-home .ns-cats { margin: 0 0 22px; }
.nshop-home .ns-grid { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ns-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-grid.is-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-brand strong { font-size: 1.5rem; }
}
@media (max-width: 900px) {
  .ns-nav { display: none; }
  .ns-only-m { display: inline-grid; }
  .ns-top-in { min-height: 64px; gap: 6px; }
  .ns-brand { flex: 1; min-width: 0; }
  .ns-brand img { width: 44px; height: 44px; }
  .ns-brand strong { font-size: 1.35rem; }
  .ns-brand small { font-size: .66rem; }
  .ns-icon-btn { width: 42px; height: 42px; }
  .ns-icon-btn svg { width: 25px; height: 25px; }
  .ns-product { grid-template-columns: minmax(0, 1fr); }
  .ns-gallery { position: static; }
  .ns-foot-grid { grid-template-columns: 1fr 1fr; }
  .ns-banners .ns-arrow { display: none; }
  .ns-sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--nx-line); box-shadow: 0 -8px 24px rgba(15, 29, 61, .08); transform: translateY(110%); transition: transform .25s; }
  .ns-sticky-buy.is-on { transform: none; }
  .ns-store:has(.ns-sticky-buy) .ns-foot { padding-bottom: 96px; }
  .ns-sticky-buy div { min-width: 0; display: grid; }
  .ns-sticky-buy small { color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
  .ns-sticky-buy strong { font-size: 1.15rem; }
}
@media (max-width: 760px) {
  .ns-wrap { width: calc(100% - 32px); }
  .ns-main { padding-top: 12px; }
  .ns-grid, .ns-grid.is-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ns-card.is-row { flex-direction: column; }
  .ns-card.is-row .ns-card-media { flex: none; aspect-ratio: 1 / 1; min-height: 0; }
  .ns-card.is-row .ns-card-body { padding: 4px 12px 12px; }
  .ns-card-body { padding: 2px 12px 12px; }
  .ns-card-title { font-size: .94rem; }
  .ns-price strong { font-size: 1.06rem; }
  .ns-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .ns-add { justify-content: center; padding: 10px; }
  .ns-banners { border-radius: 20px; margin-bottom: 20px; }
  .ns-banners .ns-slide:not(.is-image-only) { min-height: 240px; padding: 26px 20px 44px; }
  .ns-slide-bg.has-m { background-image: var(--bg-m); }
  .ns-banners.is-ofertas .ns-slide:not(.is-image-only) { min-height: 0; padding: 20px 18px 34px; }
  .ns-slide-ico { flex-basis: 48px; width: 48px; height: 48px; }
  .ns-cats-row { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .ns-cats-row::-webkit-scrollbar { display: none; }
  .ns-cat { flex: 0 0 108px; min-height: 108px; padding: 12px 6px; scroll-snap-align: start; }
  .ns-cat-ico { width: 40px; height: 40px; }
  .ns-cat-name { font-size: .88rem; }
  .ns-cats.is-sub .ns-cat { flex-basis: 96px; min-height: 86px; }
  .ns-hero { flex-direction: column-reverse; text-align: center; }
  .ns-hero img { width: 120px; }
  .ns-list-head { align-items: stretch; }
  .ns-sort label { justify-content: space-between; }
  .ns-trust { grid-template-columns: 1fr; }
  .ns-foot-grid { grid-template-columns: 1fr; }
  .ns-desc { padding: 18px; }
  .ns-buybox { padding: 16px; }
  .ns-thumbs button { flex-basis: 62px; width: 62px; height: 62px; }
  .ns-gal-arrow { display: none; }
}
@media (max-width: 380px) {
  .ns-hide-xs { display: none; }
  .ns-brand small { display: none; }
}
