/* Hobby Store · tienda (cliente)
   Responsive: móvil, tablet y escritorio. Incluye animaciones, efectos al hacer scroll y efectos 3D.
   Todo el movimiento se apaga con "reducir movimiento" del sistema (ver base.css). */
:root { --gutter: 16px; --wrap: 1200px; }
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 40px; } }

.shell { min-height: 100vh; min-height: 100dvh; overflow-x: clip; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
#view { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 9, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.top.scrolled { background: rgba(9, 9, 10, .94); border-bottom-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; perspective: 600px; }
.brand .logo { flex: 0 0 auto; transition: transform .9s var(--ease); }
.brand:hover .logo { transform: rotateY(360deg); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.brand-tag { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.top-nav { display: none; gap: 4px; margin-right: 8px; }
.top-nav button { position: relative; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .2s ease; }
.top-nav button::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.top-nav button:hover, .top-nav button.on { color: var(--gold-hi); }
.top-nav button:hover::after, .top-nav button.on::after { transform: scaleX(1); }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--text);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { border-color: var(--gold-lo); }
.icon-btn:active { transform: scale(.94); }
.count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--gold-grad); color: #171204;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.bump .count { animation: bump .45s var(--ease); }
.bump { animation: nudge .45s var(--ease); }

/* ---------- pestañas inferiores (móvil y tablet) ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(15, 15, 17, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  position: relative; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted); transition: color .2s ease;
}
.tab svg { transition: transform .3s var(--ease); }
.tab.on { color: var(--gold-hi); }
.tab.on svg { transform: translateY(-2px) scale(1.08); }
.tab.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--gold-grad); border-radius: 0 0 2px 2px; animation: grow .35s var(--ease); }
.tab .count { top: 6px; right: calc(50% - 24px); }

/* ---------- inicio: portada con vitrina 3D ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; gap: 4px;
  margin: 16px 0 18px; padding: 26px 20px 12px; border-radius: 24px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(212, 175, 55, .28), transparent 60%),
    linear-gradient(160deg, #1d1a12 0%, #0d0d0e 70%);
  border: 1px solid #3a321c;
}
.hero::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .25); box-shadow: 0 0 0 26px rgba(212, 175, 55, .05), 0 0 0 56px rgba(212, 175, 55, .03);
  animation: pulse 7s ease-in-out infinite;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.hero h1 {
  margin: 10px 0 8px; font-size: clamp(27px, 5.4vw, 60px); line-height: 1.02; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
  text-wrap: balance;
}
.shimmer {
  background: linear-gradient(110deg, #a47f2a 0%, #d4af37 22%, #fff3c4 42%, #d4af37 62%, #a47f2a 100%);
  background-size: 230% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 5.5s linear infinite;
}
.hero p.lead { color: #d8d0bf; max-width: 34ch; margin-bottom: 18px; font-size: clamp(15px, 1.5vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.stage { position: relative; z-index: 1; height: 236px; display: grid; place-items: center; perspective: 1100px; }
.stage-in {
  position: relative; width: 122px; aspect-ratio: 3 / 4; transform-style: preserve-3d;
  transform: translateY(var(--sty, 0px)) rotateX(calc(var(--srx, 3deg) + var(--scr, 0deg))) rotateY(var(--sry, 0deg));
  transition: transform .35s ease-out;
  animation: float 6s ease-in-out infinite;
}
.piece {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #0e0e10;
  border: 1px solid rgba(212, 175, 55, .5); box-shadow: 0 26px 50px rgba(0, 0, 0, .65);
  transition: transform .9s var(--ease), filter .9s ease, opacity .9s ease;
}
.piece img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.piece.p-center { transform: translateZ(70px); }
.piece.p-left { transform: translateX(calc(var(--off, 72%) * -1)) translateZ(-30px) rotateY(32deg) scale(.86); filter: brightness(.5); }
.piece.p-right { transform: translateX(var(--off, 72%)) translateZ(-30px) rotateY(-32deg) scale(.86); filter: brightness(.5); }
.piece.p-hide { transform: translateZ(-240px) scale(.6); opacity: 0; pointer-events: none; }
.show-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88)); font-size: 11px; font-weight: 700; line-height: 1.25;
  opacity: 0; transition: opacity .5s ease;
}
.show-tag b { display: block; color: var(--gold-hi); font-size: 12.5px; }
.p-center .show-tag { opacity: 1; }

.search-pill {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px;
  min-height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: left;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search-pill:hover { border-color: var(--gold-lo); box-shadow: 0 0 0 4px rgba(212, 175, 55, .08); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 0 14px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 30px); font-weight: 600; }
.link { font-size: 13px; font-weight: 600; color: var(--gold-hi); min-height: 36px; }

.rings { display: flex; gap: 14px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; scrollbar-width: none; }
.rings::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.ring { flex: 0 0 auto; width: 78px; text-align: center; }
.ring-img { position: relative; width: 72px; height: 72px; margin: 0 auto 7px; border-radius: 50%; padding: 3px; transition: transform .35s var(--ease); }
.ring-img::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#f3dd96, #a47f2a, #d4af37, #5d4716, #f3dd96);
  animation: spin 9s linear infinite;
}
.ring-img img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 35%; border: 3px solid var(--bg); }
.ring span { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.2; transition: color .2s ease; }
.ring:hover .ring-img { transform: translateY(-4px) scale(1.07); }
.ring:hover span { color: var(--gold-hi); }
.ring:hover .ring-img::before { animation-duration: 2.5s; }

.hscroll {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.hscroll .card { flex: 0 0 158px; scroll-snap-align: start; }

/* ---------- tarjetas (se inclinan en 3D con el puntero) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, border-color .25s ease, box-shadow .25s ease;
}
.card.reveal {
  transition: opacity .6s ease var(--d, 0ms), translate .75s var(--ease) var(--d, 0ms),
    transform .2s ease-out, border-color .25s ease, box-shadow .25s ease;
}
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: #0e0e10; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: scale .6s var(--ease); }
@media (hover: hover) {
  .card:hover { border-color: rgba(212, 175, 55, .55); box-shadow: 0 22px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 175, 55, .12); z-index: 1; }
  .card:hover .card-media img { scale: 1.07; }
  .card:hover .glare { opacity: 1; }
}
.card.out .card-media img { opacity: .45; filter: grayscale(.6); }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold-grad); color: #171204;
}
.badge.low { background: #2a1512; color: #ffb0a6; border: 1px solid #6b2f28; }
.badge.out { background: #222; color: #bbb; border: 1px solid #3a3a3a; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.25; margin: 3px 0 8px; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 16px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.add {
  width: 44px; height: 44px; margin: -4px -4px -4px 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #171204; transition: transform .2s var(--ease), box-shadow .2s ease;
}
.add svg { transition: rotate .35s var(--ease); }
.add:hover:not(:disabled) { transform: scale(1.08); box-shadow: 0 6px 18px rgba(212, 175, 55, .35); }
.add:hover:not(:disabled) svg { rotate: 90deg; }
.add:active:not(:disabled) { transform: scale(.88); }
.add:disabled { background: var(--surface-2); color: #666; }
.fly { position: fixed; z-index: 70; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }

/* ---------- catálogo ---------- */
.cat-controls { display: grid; gap: 10px; padding: 14px 0 12px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 46px; border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
.chip {
  flex: 0 0 auto; min-height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.chip:hover { border-color: var(--gold-lo); transform: translateY(-1px); }
.chip.on { background: var(--gold-grad); border-color: transparent; color: #171204; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.toolbar select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; min-height: 38px; }
.empty { text-align: center; padding: 48px 28px; color: var(--muted); }
.empty h3 { font-family: var(--serif); color: var(--text); font-size: 20px; margin-bottom: 6px; font-weight: 600; }
.empty .btn { margin-top: 16px; }

/* ---------- ficha de producto ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .72); display: flex; align-items: flex-end; justify-content: center; }
/* .fresh: solo al abrir la ficha, no al cambiar la cantidad */
.backdrop.fresh { animation: fade .2s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0; border-top: 1px solid #3a321c;
  position: relative;
}
.fresh .sheet { animation: rise-sheet .3s var(--ease); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0, 0, 0, .55); border-color: transparent; }
.sheet-media { height: min(100vw, 52dvh); width: 100%; background: #0b0b0c; perspective: 900px; overflow: hidden; }
.sheet-media img {
  width: 100%; height: 100%; object-fit: contain;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--zoom, 1));
  transition: transform .25s ease-out;
}
.sheet-body { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); }
.fresh .sheet-body > * { animation: rise .5s var(--ease) both; }
.fresh .sheet-body > :nth-child(n+3) { animation-delay: .06s; }
.fresh .sheet-body > :nth-child(n+5) { animation-delay: .12s; }
.sheet-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; margin: 4px 0 6px; }
.sheet-line { font-size: 13px; color: var(--muted); }
.sheet-price { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.sheet-price .price { font-size: 26px; }
.stock { font-size: 12.5px; font-weight: 600; color: var(--ok); }
.stock.low { color: #ffb0a6; }
.stock.out { color: var(--muted); }
.sheet-desc { color: #d8d0bf; margin-bottom: 18px; }
.sheet-actions { display: flex; gap: 10px; align-items: center; }
.sheet-actions .btn { flex: 1; }
.ask { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; font-weight: 600; padding: 6px 0; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold-hi); transition: transform .15s ease; }
.stepper button:active:not(:disabled) { transform: scale(.85); }
.stepper button:disabled { color: #555; }
.stepper b { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- carrito ---------- */
.page-title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; padding: 22px 0 14px; }
.cart-layout { display: grid; }
.lines { display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; object-position: center 35%; }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.line-meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.line-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line .stepper button { width: 38px; height: 38px; }
.remove { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.remove:hover { color: var(--danger); background: rgba(229, 102, 90, .1); }
.panel { margin: 16px 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg button { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.seg button.on { border-color: var(--gold); color: var(--gold-hi); background: rgba(212, 175, 55, .1); }
.hint { font-size: 12.5px; color: var(--muted); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.total-row span { color: var(--muted); font-weight: 600; }
.total-row b { font-size: 24px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.error { color: #ffb0a6; font-size: 13px; font-weight: 600; margin-bottom: 10px; animation: shake .35s ease; }
.done { text-align: center; padding: 44px 0; max-width: 460px; margin: 0 auto; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #171204; animation: pop .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.done-mark svg { width: 34px; height: 34px; }
.done h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.done p { color: #d8d0bf; margin-bottom: 20px; }
.done .btn { margin-bottom: 10px; }

/* ---------- tienda ---------- */
.store-layout { display: grid; }
.store-layout .panel { margin-top: 0; }
.info { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info:last-child { border-bottom: 0; padding-bottom: 0; }
.info:first-of-type { padding-top: 0; }
.info-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 175, 55, .1); color: var(--gold-hi); }
.info b { display: block; font-size: 14px; }
.info span { font-size: 13.5px; color: #d8d0bf; }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14px; color: #d8d0bf; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--gold-grad); color: #171204; }
.stack { display: grid; gap: 10px; margin-bottom: 16px; }

/* ---------- pie ---------- */
.foot { margin-top: 40px; padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line); text-align: center; }
.foot .logo { margin: 0 auto 10px; }
.foot p { font-size: 12.5px; color: var(--muted); }
.wa-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 10px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--gold-lo); color: var(--gold-hi); font-weight: 700; text-decoration: none; font-size: 14.5px;
  transition: background .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.wa-link:hover { background: rgba(212, 175, 55, .1); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 175, 55, .15); }
.foot-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12.5px; }
.foot-links a { color: var(--muted); padding: 8px 0; }

body.locked { overflow: hidden; }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .hscroll .card { flex-basis: 190px; }
  .hero { padding: 36px 32px 16px; }
  .stage { height: 300px; }
  .stage-in { width: 160px; }
  .ring { width: 96px; }
  .ring-img { width: 86px; height: 86px; }
  .ring span { font-size: 12.5px; }
  .card-name { font-size: 14.5px; }
  .stack { grid-template-columns: repeat(3, 1fr); }
}

/* ficha como ventana centrada, en dos columnas, con entrada en 3D */
@media (min-width: 760px) {
  .backdrop { align-items: center; padding: 24px; }
  .sheet {
    max-width: 920px; max-height: min(660px, 92dvh); overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 24px; border: 1px solid #3a321c; box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  }
  .fresh .sheet { animation: flip-in .5s var(--ease); }
  .sheet-media { height: 100%; min-height: 480px; }
  .sheet-body { overflow-y: auto; padding: 48px 32px 32px; align-self: center; max-height: min(660px, 92dvh); }
  .sheet-body h2 { font-size: 30px; }
}

/* ---------- escritorio ---------- */
@media (min-width: 960px) {
  .shell { padding-bottom: 0; }
  .tabs { display: none; }
  .top-nav { display: flex; }
  .top-in { padding-top: 14px; padding-bottom: 14px; }
  .brand-name { font-size: 24px; }
  #toast { bottom: 32px; }

  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; margin-top: 24px; padding: 56px 56px; min-height: 500px; }
  .hero::after { width: 420px; height: 420px; right: -120px; bottom: -160px; }
  .stage { height: 420px; }
  .stage-in { width: 210px; --off: 60%; }
  .piece { border-radius: 22px; }
  .show-tag { font-size: 13px; padding: 40px 14px 12px; }
  .show-tag b { font-size: 15px; }

  .rings { overflow: visible; flex-wrap: wrap; gap: 28px; margin: 0; padding: 6px 0 8px; }
  .ring { width: 124px; }
  .ring-img { width: 112px; height: 112px; padding: 4px; }
  .ring span { font-size: 14px; }

  /* "Recién llegados" pasa de carrusel a cuadrícula */
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
  .card-body { padding: 14px 16px 16px; }
  .price { font-size: 18px; }

  .cat-controls { grid-template-columns: minmax(280px, 460px) 1fr; grid-template-areas: "search toolbar" "chips chips"; align-items: center; gap: 14px 20px; padding: 28px 0 20px; }
  .search-box { grid-area: search; }
  .toolbar { grid-area: toolbar; justify-content: flex-end; gap: 16px; }
  .chips { grid-area: chips; flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }

  .cart-layout { grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
  .cart-side { position: sticky; top: 96px; }
  .cart-side .panel:first-child { margin-top: 0; }
  .line { grid-template-columns: 96px 1fr; padding: 14px; gap: 16px; }
  .line img { width: 96px; height: 96px; }
  .line-name { font-size: 16px; }

  .store-layout { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .foot { margin-top: 72px; padding-bottom: 44px; }
}

/* ---------- animaciones ---------- */
@keyframes rise-sheet { from { transform: translateY(60px); opacity: .5; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { to { background-position: -230% 0; } }
@keyframes nudge { 30% { transform: translateY(-4px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes grow { from { transform: scaleX(0); } }
