/* =========================================================
   TIENDA — catálogo como photocards con sticker de precio,
   página de avatar, confirmación y términos.
   ========================================================= */
.shop-main { position: relative; z-index: 1; min-height: 70vh; padding-bottom: 5rem; }
.shop-head { max-width: 1240px; margin: 0 auto; padding: 8rem var(--pad) 2.2rem; text-align: center; }
.shop-title { font-size: clamp(3.2rem, 9vw, 7.4rem); line-height: .95; --lh: .95em; }
.shop-head .sub { margin-left: auto; margin-right: auto; }
.perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.perks li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border-radius: 99px; font-size: .84rem; font-weight: 700; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.perks i { font-style: normal; color: var(--pink); }
.shop-loading { text-align: center; font-size: 2rem; color: var(--pink-2); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 2rem); }
.shop-cards.is-empty { display: block; }
.shop-card { position: relative; display: grid; gap: .7rem; animation: rise .8s var(--ease) calc(var(--i, 0) * .07s) backwards; }
.shop-card .sleeve { transition: transform .5s var(--ease); }
.shop-card:hover .sleeve { transform: translateY(-6px) rotate(-.6deg); }
.price-sticker { position: absolute; top: -12px; right: -8px; z-index: 6; padding: .45rem .85rem; border-radius: 14px; font-family: var(--f-chrome); font-size: 1.1rem; color: #22093f; background: #fff2fb;
  box-shadow: 0 3px 0 #f08fcf, 0 10px 22px rgba(0, 0, 0, .35); transform: rotate(6deg); transition: transform .4s var(--ease); }
.shop-card:hover .price-sticker { transform: rotate(-3deg) scale(1.06); }
.shop-tag { position: absolute; top: 12px; left: 12px; z-index: 5; padding: .2rem .65rem; border-radius: 99px; font: 700 .64rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #22093f; background: var(--holo); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.shop-tag.static { position: static; display: inline-block; margin-bottom: .8rem; }
.shop-cap { display: grid; padding-left: .2rem; }
.shop-cap b { font-family: var(--f-chrome); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.shop-cap small { font-size: .8rem; color: var(--muted); }
.shop-see { justify-self: start; }
.shop-empty { display: grid; justify-items: center; gap: 1.4rem; padding: 4rem 1.5rem; border-radius: 28px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.shop-empty .h3 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- página de avatar ---------- */
.shop-back { display: block; max-width: 1240px; margin: 0 auto; padding: 7.4rem var(--pad) 0; }
.prod { max-width: 1240px; margin: 0 auto; padding: 1rem var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prod > .shop-loading, .prod > .shop-empty { grid-column: 1 / -1; }
.prod-gal { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.prod-gal .sleeve { max-width: 520px; width: 100%; justify-self: center; }
.prod-big { cursor: zoom-in; }
.prod-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.prod-thumb { width: 72px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; opacity: .55; box-shadow: inset 0 0 0 1px var(--line); transition: opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb:hover { opacity: .9; transform: translateY(-3px); }
.prod-thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--pink); }
.prod-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; --lh: 1em; }
.prod-price { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.prod-price b { font-family: var(--f-chrome); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prod-price small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod-specs { margin-bottom: 1.4rem; }
.prod-desc { white-space: pre-line; color: #e7dcf7; font-size: 1.02rem; }
.prod-inc { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.prod-inc h2 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--pink-2); }
.prod-inc ul { list-style: none; display: grid; gap: .4rem; }
.prod-inc li { position: relative; padding-left: 1.5rem; }
.prod-inc li::before { content: "✦"; position: absolute; left: 0; color: var(--pink); }
.buy-box { display: grid; gap: .9rem; margin-top: 1.8rem; padding: 1.4rem; border-radius: 24px; border: 2px solid transparent; background: linear-gradient(170deg, #241040, #140826) padding-box, var(--holo) border-box; }
.terms-chk { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; cursor: pointer; }
.terms-chk input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--pink); }
.terms-chk a { color: var(--pink-2); text-decoration: underline; text-underline-offset: 3px; }
.pp-btn { justify-content: center; gap: .7rem; color: #11233f; background: #ffc439; box-shadow: 0 4px 0 #d9a21e, 0 14px 30px rgba(255, 196, 57, .22); font-weight: 800; }
.pp-btn:hover:not(:disabled) { background: #ffcf5c; transform: translateY(-2px); }
.pp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pp-logo { font-family: Verdana, system-ui, sans-serif; font-style: italic; font-weight: 900; font-size: 1.1rem; color: #003087; letter-spacing: -.02em; }
.pp-logo i { color: #009cde; }
.buy-note { font-size: .86rem; color: var(--muted); }
.buy-note.warn { padding: .7rem .9rem; border-radius: 12px; color: #ffe7a8; background: rgba(255, 231, 168, .08); box-shadow: inset 0 0 0 1px rgba(255, 231, 168, .3); }
.buy-err { padding: .6rem .9rem; border-radius: 12px; color: #fff; background: #8b1d5f; font-size: .9rem; font-weight: 700; }
.buy-owned { font-family: var(--f-chrome); font-size: 1.6rem; color: #7dffbc; }

/* ---------- gracias ---------- */
.thx { max-width: 980px; margin: 0 auto; padding: 9rem var(--pad) 2rem; }
.thx-card { display: grid; justify-items: center; gap: 1rem; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 32px; text-align: center; background: linear-gradient(170deg, #241040, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.thx-card .sub { margin: 0 auto; }
.thx-card.ok { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; text-align: left; justify-items: start; gap: clamp(1.4rem, 4vw, 3rem); border: 2px solid transparent; background: linear-gradient(170deg, #2a1150, #150826) padding-box, var(--holo) border-box; box-shadow: 0 0 80px rgba(255, 111, 208, .18); }
.thx-card.ok .sub { margin: .4rem 0 0; }
.thx-card.ok .row-btns { margin-top: 1.4rem; }
.thx-card.ok .buy-note { margin-top: 1rem; }
.thx-card.warn { box-shadow: inset 0 0 0 1.5px rgba(255, 231, 168, .45); }
.thx-card.bad { box-shadow: inset 0 0 0 1.5px rgba(255, 143, 183, .45); }
.thx-pc { width: 100%; max-width: 300px; justify-self: center; }
.thx-prod { margin-top: .8rem; font-weight: 800; }
.thx-spin { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--pink); animation: spin 1s linear infinite; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.burst i { position: absolute; top: -5vh; left: var(--x); font-style: normal; font-size: 1.4rem; color: var(--pink-2); text-shadow: 0 0 12px var(--pink); animation: fall 2.6s var(--ease) var(--d) forwards; }
.burst i:nth-child(3n) { color: #8ff0ff; }
.burst i:nth-child(4n) { color: #fff2a8; }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--r)); opacity: 0; } }

/* ---------- términos ---------- */
.terms .terms-body { max-width: 780px; margin: 0 auto; padding: 0 var(--pad); color: #e7dcf7; }
.terms-body h2 { margin: 2rem 0 .5rem; font-family: var(--f-chrome); font-weight: 400; font-size: 1.4rem; color: var(--white); }
.terms-body p, .terms-body li { font-size: 1rem; }
.terms-body ul { display: grid; gap: .45rem; padding-left: 1.2rem; }
.terms-body mark { padding: 0 .3rem; border-radius: 6px; color: #22093f; background: #ffe7a8; }
.terms-warn { padding: .8rem 1rem; border-radius: 14px; color: #ffe7a8; background: rgba(255, 231, 168, .08); box-shadow: inset 0 0 0 1px rgba(255, 231, 168, .3); font-weight: 700; }
html[data-lang="en"] .t-es, html:not([data-lang="en"]) .t-en { display: none; }

/* ---------- Mis compras (panel) ---------- */
.buys { display: grid; gap: 1rem; }
.buy-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1rem; border-radius: 22px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.buy-row .pc { border-radius: 14px; }
.buy-row h3 { font-family: var(--f-chrome); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.buy-row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.buy-act { display: grid; gap: .4rem; justify-items: end; text-align: right; }
.buy-act small { font-size: .74rem; color: var(--muted); max-width: 230px; }

@media (max-width: 900px) {
  .prod { grid-template-columns: minmax(0, 1fr); }
  .prod-gal { position: static; }
  .prod-gal .sleeve { max-width: 380px; }
  .thx-card.ok { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .thx-card.ok .row-btns { justify-content: center; }
}
@media (max-width: 640px) {
  .shop-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .shop-cap b { font-size: 1.05rem; }
  .price-sticker { font-size: .9rem; padding: .3rem .6rem; right: -4px; }
  .shop-see { display: none; }
  .buy-row { grid-template-columns: 72px minmax(0, 1fr); }
  .buy-act { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
  .buy-act small { max-width: none; }
}
