/* NexStudio Tienda (solo shop.php) */
.ns-shop-preview-bar{background:rgba(240,138,36,.12);border-bottom:1px solid rgba(240,138,36,.35);color:#ffd9a8;font-size:.85rem}
.ns-shop-preview-bar .ns-wrap{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:.45rem 1rem}
.ns-shop-preview-bar a{color:#ffe0b0;font-weight:700}
.ns-shop-filters{display:flex;gap:.45rem;flex-wrap:wrap;margin:0 0 1.2rem}
.ns-shop-filters a{padding:.42rem .95rem;border-radius:999px;border:1px solid var(--line);color:var(--muted);text-decoration:none;font-weight:700;font-size:.86rem}
.ns-shop-filters a.on{color:var(--text);background:rgba(94,234,138,.12);border-color:rgba(94,234,138,.4)}
.ns-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.1rem}
.ns-shop-card{display:flex;flex-direction:column;border-radius:var(--radius,16px);border:1px solid var(--line);background:var(--card);overflow:hidden;box-shadow:var(--shadow);transition:transform .18s ease,border-color .18s ease}
.ns-shop-card:hover{transform:translateY(-3px);border-color:rgba(94,234,138,.35)}
.ns-shop-thumb{position:relative;display:block;aspect-ratio:16/9;background:#05070a;overflow:hidden}
.ns-shop-thumb picture,.ns-shop-cover picture{display:block;width:100%;height:100%}
.ns-shop-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.ns-shop-card:hover .ns-shop-thumb img{transform:scale(1.04)}
.ns-shop-card.is-soon .ns-shop-thumb img{filter:saturate(.75) brightness(.85)}
.ns-shop-badges{position:absolute;left:.6rem;top:.6rem;display:flex;gap:.35rem;flex-wrap:wrap}
.ns-shop-badges.is-static{position:static;margin-bottom:.6rem}
.ns-shop-kind,.ns-shop-st{display:inline-flex;align-items:center;padding:.18rem .55rem;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;backdrop-filter:blur(6px)}
.ns-shop-kind{background:rgba(7,9,13,.78);color:#e8edf3;border:1px solid rgba(255,255,255,.14)}
.ns-shop-st-available{background:rgba(94,234,138,.18);color:#b8ffd0;border:1px solid rgba(94,234,138,.45)}
.ns-shop-st-soon{background:rgba(240,138,36,.2);color:#ffd9a8;border:1px solid rgba(240,138,36,.5)}
.ns-shop-st-cancelled{background:rgba(220,38,38,.92);color:#fff;border:1px solid rgba(255,120,120,.75)}
.ns-shop-card.is-cancelled .ns-shop-thumb img{filter:grayscale(.65) brightness(.7)}
.ns-shop-card.is-cancelled .ns-shop-price strong,.ns-shop-pricebox strong.ns-shop-cancelled-price{color:#ff8a8a}
.ns-shop-price small.ns-shop-cancel-since{color:#ffb3b3}
.ns-shop-pricebox em.ns-shop-cancel-since{color:#ffb3b3}
.ns-shop-cancelbox{display:flex;flex-direction:column;gap:.3rem;padding:.75rem .9rem;border-radius:12px;border:1px solid rgba(255,90,90,.55);background:rgba(220,38,38,.1)}
.ns-shop-cancelbox strong{color:#ff9d9d}
.ns-shop-cancelbox small{color:#d7c3c3;font-size:.82rem;line-height:1.4}
.ns-shop-st-retired,.ns-shop-st-hidden{background:rgba(255,90,90,.16);color:#ffc4c4;border:1px solid rgba(255,90,90,.45)}
.ns-shop-body{display:flex;flex-direction:column;gap:.45rem;padding:.95rem 1rem 1rem;flex:1}
.ns-shop-body h2{margin:0;font-size:1.08rem}
.ns-shop-body h2 a{color:var(--text);text-decoration:none}
.ns-shop-body p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.45;flex:1}
.ns-shop-foot{display:flex;flex-direction:column;align-items:stretch;gap:.7rem;margin-top:auto;padding-top:.45rem}
.ns-shop-foot .ns-btn{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;min-height:40px;white-space:nowrap;text-align:center;line-height:1.2}
.ns-shop-price{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.ns-shop-price strong{font-size:1.15rem;color:var(--green,#5eea8a)}
.ns-shop-price small{color:#ffd9a8;font-size:.76rem;font-weight:700}
.ns-shop-back{margin:0 0 1rem}
.ns-shop-back a{color:var(--muted);text-decoration:none;font-weight:600}
.ns-shop-back a:hover{color:var(--text)}
.ns-shop-detail-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:1.6rem;align-items:start}
.ns-shop-cover{margin:0;border-radius:var(--radius,16px);overflow:hidden;border:1px solid var(--line);background:#05070a;aspect-ratio:16/9}
.ns-shop-cover img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.ns-shop-thumbs{display:flex;gap:.5rem;margin-top:.6rem;flex-wrap:wrap}
.ns-shop-thumbs img{width:110px;aspect-ratio:16/9;object-fit:cover;border-radius:10px;border:1px solid var(--line);cursor:zoom-in}
.ns-shop-info h1{margin:.1rem 0 .5rem;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.1}
.ns-shop-short{color:var(--muted);margin:0 0 1rem;line-height:1.5}
.ns-shop-pricebox{display:flex;flex-direction:column;gap:.15rem;padding:.9rem 1rem;border-radius:14px;border:1px solid rgba(94,234,138,.3);background:linear-gradient(135deg,rgba(18,40,28,.55),rgba(12,18,22,.6));margin-bottom:1rem}
.ns-shop-pricebox span{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.ns-shop-pricebox strong{font-size:1.7rem;color:var(--green,#5eea8a)}
.ns-shop-pricebox em{font-style:normal;color:#ffd9a8;font-weight:700;font-size:.9rem}
.ns-shop-meta{display:grid;grid-template-columns:auto 1fr;gap:.35rem .9rem;margin:0 0 1.1rem;font-size:.9rem}
.ns-shop-meta dt{color:var(--muted)}
.ns-shop-meta dd{margin:0;font-weight:600}
.ns-shop-buy{display:flex;flex-direction:column;gap:.5rem;align-items:stretch}
.ns-shop-buy .ns-btn{justify-content:center;text-align:center}
.ns-shop-buy-off,.ns-shop-buy .ns-btn[disabled]{opacity:.6;cursor:not-allowed;filter:grayscale(.35)}
.ns-shop-owned{margin:0;color:#b8ffd0;font-weight:700}
.ns-shop-forum{margin:1rem 0 0}
.ns-shop-forum a{color:var(--orange,#f08a24);font-weight:700;text-decoration:none}
.ns-shop-desc{margin-top:1.6rem;line-height:1.6}
.ns-shop-desc p{margin:0 0 .6rem}
.ns-shop-desc p:last-child{margin:0}
.ns-shop-video{margin-top:1.6rem}
.ns-shop-video h2{font-size:1.2rem;margin:0 0 .7rem}
.ns-shop-video-frame{position:relative;aspect-ratio:16/9;border-radius:var(--radius,16px);overflow:hidden;border:1px solid var(--line);background:#000}
.ns-shop-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ns-yt-play{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;border:0;background:#000;cursor:pointer;display:block}
.ns-yt-play img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease,filter .35s ease}
.ns-yt-play::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,9,13,.15),rgba(7,9,13,.55))}
.ns-yt-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;filter:drop-shadow(0 6px 18px rgba(0,0,0,.55));transition:transform .2s ease}
.ns-yt-btn .ns-yt-bg{fill:#212121;fill-opacity:.85;transition:fill .2s ease,fill-opacity .2s ease}
.ns-yt-play:hover img,.ns-yt-play:focus-visible img{transform:scale(1.03);filter:brightness(1.08)}
.ns-yt-play:hover .ns-yt-btn,.ns-yt-play:focus-visible .ns-yt-btn{transform:translate(-50%,-50%) scale(1.08)}
.ns-yt-play:hover .ns-yt-bg,.ns-yt-play:focus-visible .ns-yt-bg{fill:var(--green,#5eea8a);fill-opacity:1}
.ns-yt-play:focus-visible{outline:3px solid var(--green,#5eea8a);outline-offset:-3px}
.ns-shop-yt-link{margin:.5rem 0 0;font-size:.85rem;text-align:right}
.ns-shop-yt-link a{color:var(--muted)}
.ns-shop-yt-link a:hover{color:var(--orange,#f28c28)}
.ns-shop-hero .ns-shop-search{position:relative;max-width:560px;margin:0 0 1.5rem}
.ns-shop-search input{display:block;width:100%;box-sizing:border-box;height:50px;padding:0 3rem 0 2.85rem;border-radius:999px;border:1px solid rgba(94,234,138,.22);background:rgba(12,17,24,.9);color:var(--text);font-family:inherit;font-size:16px;line-height:1.2;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 12px 32px rgba(0,0,0,.28);transition:border-color .15s ease,box-shadow .15s ease;-webkit-appearance:none;appearance:none}
.ns-shop-search input::placeholder{color:#6f7a8c;opacity:1}
.ns-shop-search input:hover{border-color:rgba(94,234,138,.35)}
.ns-shop-search input:focus{border-color:rgba(94,234,138,.6);box-shadow:0 0 0 3px rgba(94,234,138,.15),0 12px 32px rgba(0,0,0,.28)}
.ns-shop-search input::-webkit-search-cancel-button,.ns-shop-search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.ns-shop-search-ico{position:absolute;left:1.05rem;top:50%;transform:translateY(-50%);display:flex;color:var(--muted);pointer-events:none;transition:color .15s ease}
.ns-shop-search:focus-within .ns-shop-search-ico{color:var(--green,#5eea8a)}
.ns-shop-search-x{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);width:34px;height:34px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:var(--text);font-size:1.3rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}
.ns-shop-search-x:hover,.ns-shop-search-x:focus-visible{background:rgba(240,138,36,.2);color:var(--orange2,#ffb347);outline:none}
.ns-shop-search-x[hidden]{display:none}
.ns-shop-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ns-shop-card[hidden]{display:none!important}
.ns-shop-none{margin:.2rem 0 0;padding:1.7rem 1.2rem;border:1px dashed rgba(94,234,138,.25);border-radius:var(--radius,16px);background:rgba(18,24,33,.55);color:var(--muted);text-align:center}
.ns-shop-none strong{display:block;color:var(--text);font-size:1.05rem;margin-bottom:.3rem;word-break:break-word}
.ns-shop-none p{margin:0}
.ns-shop-none[hidden]{display:none}
@media (max-width:600px){.ns-shop-hero .ns-shop-search{max-width:none;margin-bottom:1.2rem}}
@media (max-width:600px){.ns-yt-btn svg{width:56px;height:40px}}
@media (max-width:860px){
  .ns-shop-detail-grid{grid-template-columns:1fr}
  .ns-shop-preview-bar .ns-wrap{flex-direction:column;align-items:flex-start;gap:.2rem}
}
@media (max-width:480px){
  .ns-shop-grid{grid-template-columns:1fr}
  .ns-shop-thumbs img{width:88px}
}
.ns-shop-promo{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:1rem;max-width:880px;margin:1.35rem 0 0;padding:1rem 1.15rem;border-radius:16px;text-decoration:none;color:var(--text);border:1px solid rgba(255,206,100,.38);background:linear-gradient(120deg,rgba(94,234,138,.11),rgba(12,17,24,.2) 45%,rgba(255,196,80,.12)),rgba(12,17,24,.92);box-shadow:inset 0 0 0 1px rgba(94,234,138,.07),0 14px 40px rgba(0,0,0,.35),0 0 26px rgba(255,196,80,.10);animation:nsPromoGlow 4.5s ease-in-out infinite;transition:transform .2s ease,border-color .2s ease}
.ns-shop-promo::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,236,170,.10) 45%,rgba(255,255,255,.16) 50%,rgba(255,236,170,.10) 55%,transparent 65%);transform:translateX(-130%);animation:nsPromoShine 6s ease-in-out infinite}
.ns-shop-promo:hover,.ns-shop-promo:focus-visible{border-color:rgba(255,214,120,.7);transform:translateY(-1px);outline:none}
.ns-shop-promo-ico{flex:none;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;color:#2a1a02;background:linear-gradient(145deg,#ffe28f,#f0a52a);box-shadow:0 6px 18px rgba(240,165,42,.35),inset 0 1px 0 rgba(255,255,255,.5)}
.ns-shop-promo-txt{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}
.ns-shop-promo-txt strong{font-size:1.04rem;line-height:1.3;background:linear-gradient(90deg,#fff1c2,#ffd36b 45%,#86f2ab);-webkit-background-clip:text;background-clip:text;color:transparent}
.ns-shop-promo-txt span{color:#c3cad6;font-size:.9rem;line-height:1.45}
.ns-shop-promo-txt .ns-shop-promo-note{color:#7f8899;font-size:.76rem;line-height:1.35}
.ns-shop-promo-cta{flex:none;padding:.55rem 1rem;border-radius:999px;font-weight:800;font-size:.86rem;color:#0b120e;background:linear-gradient(135deg,var(--green,#5eea8a),#3ddc7a);white-space:nowrap;box-shadow:0 6px 16px rgba(46,204,113,.25)}
@keyframes nsPromoShine{0%,60%{transform:translateX(-130%)}100%{transform:translateX(130%)}}
@keyframes nsPromoGlow{0%,100%{box-shadow:inset 0 0 0 1px rgba(94,234,138,.07),0 14px 40px rgba(0,0,0,.35),0 0 22px rgba(255,196,80,.08)}50%{box-shadow:inset 0 0 0 1px rgba(94,234,138,.12),0 14px 40px rgba(0,0,0,.35),0 0 34px rgba(255,196,80,.2)}}
.ns-shop-prem{display:inline-flex;align-items:center;gap:.3rem;padding:.22rem .6rem;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.02em;line-height:1.2;color:#2a1a02;background:linear-gradient(135deg,#ffe28f,#f0a52a);box-shadow:0 4px 12px rgba(0,0,0,.4);white-space:nowrap}
.ns-shop-thumb .ns-shop-prem{position:absolute;right:.55rem;bottom:.55rem;z-index:1}
.ns-shop-pricebox .ns-shop-prem{align-self:flex-start;margin:.3rem 0 .1rem;font-size:.74rem}
.ns-shop-free{display:flex;flex-direction:column;gap:.55rem}
.ns-shop-free form{margin:0}
.ns-shop-free-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;box-sizing:border-box;white-space:nowrap;text-align:center}
.ns-shop-free-btn[disabled]{opacity:.5;cursor:not-allowed;filter:grayscale(.4)}
.ns-shop-free-note{margin:0;color:var(--muted);font-size:.84rem;line-height:1.45}
.ns-shop-notice{margin:.6rem 0;padding:.65rem .85rem;border-radius:12px;border:1px solid rgba(94,234,138,.35);background:rgba(94,234,138,.08);color:#c9f7d8;font-size:.9rem;line-height:1.4}
.ns-shop-notice.is-info{border-color:rgba(240,138,36,.38);background:rgba(240,138,36,.08);color:#ffd9a8}
@media (max-width:600px){
  .ns-shop-promo{flex-wrap:wrap;gap:.7rem .8rem;padding:.9rem}
  .ns-shop-promo-ico{width:40px;height:40px;border-radius:11px}
  .ns-shop-promo-txt{flex:1 1 calc(100% - 56px)}
  .ns-shop-promo-txt strong{font-size:.98rem}
  .ns-shop-promo-cta{width:100%;text-align:center;box-sizing:border-box}
  .ns-shop-free-btn{white-space:normal}
}
@media (prefers-reduced-motion:reduce){.ns-shop-promo{animation:none}.ns-shop-promo::before{animation:none;display:none}}
/* Móvil: el lanzador flotante de Chai (#nsChai, abajo a la izquierda) no debe tapar la tienda.
   Solo tamaño/posición (≥44px, sigue siendo pulsable) + margen izquierdo seguro para el contenido. */
@media (max-width:600px){
  body:has(.ns-shop) #nsChai{left:4px;bottom:8px}
  body:has(.ns-shop) #nsChai .ns-chai-fab{width:44px;height:44px}
  .ns-shop-hero .ns-wrap,.ns-shop .ns-wrap{width:auto;margin-left:56px;margin-right:14px}
  .ns-shop{padding-bottom:4rem}
}
@media (prefers-reduced-motion:reduce){
  .ns-shop-card,.ns-shop-thumb img{transition:none}
  .ns-shop-card:hover{transform:none}
  .ns-shop-card:hover .ns-shop-thumb img{transform:none}
}
/* Explorador de archivos: estilos en assets/css/shop-explorer.css (ns-fx-) */
.ns-shop-files{margin-top:1.6rem}
.ns-shop-files h2{font-size:1.15rem;margin:0 0 .8rem}

/* Política de compra */
.ns-shop-policy{margin-top:1rem;padding:.75rem .9rem;border-radius:12px;border:1px solid rgba(240,138,36,.4);background:rgba(240,138,36,.08);font-size:.88rem}
.ns-shop-policy strong{color:#ffd9a8;display:block;margin-bottom:.2rem}
.ns-shop-policy p{margin:0;color:var(--text);line-height:1.5}
.ns-shop-policy a{color:#ffe0b0;font-weight:700}
.ns-shop-policy-foot{margin-top:1.6rem}
.ns-shop-buyform{display:flex;flex-direction:column;gap:.55rem}
.ns-shop-accept{display:flex;gap:.55rem;align-items:flex-start;font-size:.86rem;line-height:1.45;cursor:pointer}
.ns-shop-accept input{margin-top:.2rem;flex:0 0 auto;width:1.05rem;height:1.05rem;accent-color:var(--green,#5eea8a)}
.ns-shop-accept a{color:var(--green,#5eea8a)}

.ns-shop-soonbox{display:flex;flex-direction:column;gap:.3rem;padding:.75rem .9rem;border-radius:12px;border:1px dashed rgba(240,138,36,.45);background:rgba(240,138,36,.07)}
.ns-shop-soonbox strong{color:#ffd9a8}
.ns-shop-soonbox small{color:var(--muted)}
