/* Tienda Gregorian: tarjetas de color, producto flotando y transiciones entre listado y ficha. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .85, .2, 1); }

body.shop { --card: #fff; --card-ln: #e6eaf0; --spring: cubic-bezier(.34, 1.56, .64, 1); --navy: #14324f; --gold-c: #c9a24a; }
[data-theme="dark"] body.shop { --card: #132232; --card-ln: #1f3148; }

/* ---------- Cabecera ---------- */
.sh { position: relative; overflow: hidden; color: #eef2f6; padding-block: clamp(34px, 6vw, 72px) clamp(40px, 6vw, 80px);
  background: radial-gradient(60% 90% at 85% 10%, rgb(47 134 204 / .35), transparent 60%), radial-gradient(40% 70% at 10% 100%, rgb(201 162 74 / .22), transparent 60%), linear-gradient(160deg, #183a5c, #0d1d2e); }
[data-theme="dark"] .sh { background: radial-gradient(60% 90% at 85% 10%, rgb(47 134 204 / .22), transparent 60%), radial-gradient(40% 70% at 10% 100%, rgb(201 162 74 / .14), transparent 60%), #08111b; }
.sh-mark { position: absolute; inset: auto 0 6% 0; display: flex; width: max-content; pointer-events: none; animation: sh-slide 60s linear infinite; }
.sh-mark span { font: 900 clamp(4rem, 11vw, 9.5rem)/1 Archivo, sans-serif; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgb(255 255 255 / .09); }
@keyframes sh-slide { to { transform: translateX(-50%); } }
.sh-in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: end; }
.sh-logo { width: 120px; height: auto; margin-bottom: 14px; animation: sh-pop .9s .1s var(--spring) both; }
.sh h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); line-height: .98; letter-spacing: -.03em; margin: 0 0 16px; color: #fff; }
.sh h1 > * { display: inline-block; animation: sh-up .9s var(--spring) both; }
.sh h1 > :nth-child(2) { animation-delay: .12s; } .sh h1 > :nth-child(3) { animation-delay: .24s; }
.sh h1 em { font-style: normal; background: linear-gradient(100deg, #e2bd6e 20%, #fff3cf 40%, #e2bd6e 60%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sh-up .9s .12s var(--spring) both, sh-shine 4s 1.2s ease-in-out infinite; }
@keyframes sh-up { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }
@keyframes sh-pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes sh-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.sh-copy p { color: #c9d5e2; max-width: 46ch; margin: 0; animation: sh-up .9s .32s var(--ease) both; }
.sh-search { position: relative; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(10px);
  animation: sh-up .9s .4s var(--spring) both; transition: background .3s, box-shadow .3s; }
.sh-search:focus-within { background: rgb(255 255 255 / .16); box-shadow: 0 0 0 4px rgb(226 189 110 / .35); }
.sh-search svg { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; fill: none; stroke: #c9d5e2; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.sh-search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px 0 46px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 1rem; outline: none; }
.sh-search input::placeholder { color: #9fb2c6; }
.sh-search .btn { border-radius: 999px; min-height: 50px; padding-inline: 24px; }

/* ---------- Destacados (carrusel) ---------- */
.sf { padding-top: clamp(30px, 5vw, 56px); overflow: hidden; }
.sf-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sf-head h2 { margin: 0; font-size: var(--fs-h2); letter-spacing: -.02em; }
.sf-nav { display: flex; gap: 8px; }
.sf-nav button, .sc-go, .pd-back, .pd-qty button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .35s var(--spring), background .25s, color .25s, border-color .25s; }
.sf-nav button:hover, .sc-go:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.08); }
.sf-nav svg, .sc-go svg, .sc-add svg, .pd-back svg, .pd-qty svg, .sf-go svg, .pd-feats svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 330px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none;
  padding: 10px max(16px, calc((100vw - var(--wrap)) / 2 + 20px)) 26px; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2 + 20px)); }
.sf-rail::-webkit-scrollbar { display: none; }
.sf-card { --mx: 0; --my: 0; position: relative; display: block; height: 400px; border-radius: 30px; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: var(--on, #fff);
  background: var(--tone); box-shadow: 0 24px 40px -22px color-mix(in srgb, var(--tone) 80%, #000); animation: sf-in .9s calc(.15s + var(--i) * 90ms) var(--spring) both; transition: transform .45s var(--spring); }
.sf-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.sf-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 70% 65%, rgb(255 255 255 / .28), transparent 70%); }
@keyframes sf-in { from { opacity: 0; transform: translateX(80px) scale(.9) rotate(4deg); } }
.sf-txt { position: relative; z-index: 2; display: grid; gap: 4px; padding: 24px 24px 0; }
.sf-txt b { font-size: 1.55rem; line-height: 1.05; letter-spacing: -.02em; max-width: 12ch; }
.sf-txt span { font-weight: 700; opacity: .85; }
.sf-txt small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.sf-ring { position: absolute; right: -18%; bottom: -14%; width: 88%; aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor; opacity: .14; animation: ring 6s ease-in-out infinite; }
.sf-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: currentColor; opacity: .5; }
@keyframes ring { 50% { transform: scale(1.08); } }
.sf-card .sp-fig { position: absolute; z-index: 1; right: 4%; bottom: 6%; width: 80%; height: 54%; translate: calc(var(--mx) * 14px) calc(var(--my) * 10px); transition: translate .3s ease-out; }
.sf-card .sp-fig img { animation: bob 5s calc(var(--i) * -.7s) ease-in-out infinite; transform-origin: 50% 80%; }
.sf-card:hover .sp-fig img { animation-play-state: paused; transform: rotate(-8deg) scale(1.08); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
.sf-go { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--on, #fff); color: var(--tone); transition: width .45s var(--spring); }
.sf-card:hover .sf-go { width: 74px; border-radius: 99px; }
.sf-dots { display: flex; justify-content: center; gap: 6px; }
.sf-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .45s var(--spring), background .3s; }
.sf-dots i.on { width: 26px; background: var(--im); }
@supports (animation-timeline: view()) {
  .sf-card { animation: sf-focus linear both; animation-timeline: view(inline); animation-range: entry 0% exit 100%; }
  @keyframes sf-focus { 0% { scale: .88; opacity: .55; } 22%, 70% { scale: 1; opacity: 1; } 100% { scale: .9; opacity: .6; } }
}

/* ---------- Pestañas de categorías ---------- */
.ss { padding-block: clamp(30px, 5vw, 60px); }
.st { position: relative; display: flex; gap: clamp(20px, 3.5vw, 40px); overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.st::-webkit-scrollbar { display: none; }
.st a { flex: none; display: grid; text-decoration: none; color: var(--ink); opacity: .32; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 780; letter-spacing: -.02em; line-height: 1.1; transition: opacity .3s, transform .45s var(--spring); }
.st a:hover { opacity: .65; }
.st a[aria-current] { opacity: 1; transform: translateY(-2px); }
.st small { font-size: .72rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.st small::after { content: " productos"; }
.st-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--w, 0); border-radius: 3px; background: linear-gradient(90deg, var(--im), var(--gold-c)); transform: translateX(var(--x, 0)); transition: transform .55s var(--spring), width .55s var(--spring); }
.ss-note { color: var(--muted); font-size: .9rem; margin: 14px 0 22px; } .ss-note b { color: var(--ink); }

/* ---------- Tarjetas ---------- */
.sg { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.sc { display: flex; flex-direction: column; border-radius: 26px; background: var(--card); overflow: hidden; box-shadow: 0 1px 0 var(--card-ln), 0 14px 34px -20px rgb(20 39 61 / .35); transition: transform .45s var(--spring), box-shadow .35s; }
.js .sc { opacity: 0; transform: translateY(30px) scale(.96); }
.js .sc.in { opacity: 1; transform: none; transition: opacity .7s calc(var(--i) * 70ms) var(--ease), transform .8s calc(var(--i) * 70ms) var(--spring), box-shadow .35s; }
.sc.in:hover { transform: translateY(-8px); box-shadow: 0 1px 0 var(--card-ln), 0 26px 40px -22px color-mix(in srgb, var(--tone) 70%, #000); }
.sc[hidden] { display: none; }
.sc-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .92; overflow: hidden; background: #eef2f6; background: color-mix(in srgb, var(--tone) 20%, var(--card)); }
.sc-blob { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--tone); opacity: .9; transform: scale(.75) translate(18%, 22%); transition: transform .7s var(--spring); }
.sc:hover .sc-blob { transform: scale(1.9); }
.sp-fig { position: relative; display: grid; place-items: center; width: 80%; height: 80%; }
.sp-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .6s var(--spring); }
.sp-fig.is-cut img { filter: drop-shadow(0 18px 16px rgb(10 20 30 / .3)); }
.sp-fig.is-photo img { border-radius: 18px; background: #fff; box-shadow: 0 16px 30px -12px rgb(10 20 30 / .45); transform: rotate(-3deg); }
.sc:hover .sp-fig.is-cut img { transform: translateY(-10px) rotate(-7deg) scale(1.08); }
.sc:hover .sp-fig.is-photo img { transform: rotate(0) scale(1.05); }
.sc-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.sc-body small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.sc-body h3 { margin: 0; font-size: 1.06rem; line-height: 1.2; } .sc-body h3 a { text-decoration: none; color: var(--ink); }
.sc-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sc-price { flex: 1; margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.sc-add { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tone); color: var(--on, #fff); cursor: pointer; transition: transform .4s var(--spring); }
.sc-add:hover { transform: rotate(90deg) scale(1.1); }
.sc-add:active { transform: scale(.85); }
.sc-go { width: 44px; height: 44px; }
.sc-go svg { transition: transform .4s var(--spring); } .sc:hover .sc-go svg { transform: translateX(3px); }

/* ---------- Ficha de producto ---------- */
.pd { padding-block: clamp(18px, 4vw, 52px) 10px; }
.pd-in { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pd-stage { --mx: 0; --my: 0; position: sticky; top: 90px; display: grid; place-items: center; aspect-ratio: 1 / 1.02; border-radius: 34px; overflow: hidden; isolation: isolate;
  background: color-mix(in srgb, var(--tone) 16%, var(--card)); }
.pd-blob { position: absolute; z-index: -1; width: 125%; aspect-ratio: 1; border-radius: 50%; top: -52%; right: -38%; background: var(--tone); animation: blob-in 1.1s var(--spring) both; }
.pd-blob::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 2px solid var(--on, #fff); opacity: .18; animation: ring 7s ease-in-out infinite; }
@keyframes blob-in { from { transform: scale(0) rotate(-40deg); } }
.pd-word { position: absolute; z-index: -1; left: 2%; top: 50%; writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%; font: 900 clamp(4rem, 9vw, 8.5rem)/.8 Archivo, sans-serif; letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--tone) 45%, transparent); white-space: nowrap; animation: word-in 1.2s .2s var(--ease) both; }
@keyframes word-in { from { opacity: 0; translate: 0 -30%; } }
.pd-shot { width: 74%; height: 74%; display: grid; place-items: center; translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); transition: translate .3s ease-out; }
.pd-shot .sp-fig { position: relative; width: 100%; height: 100%; }
.pd-shot .sp-fig img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.pd-shot .sp-fig img { animation: bob 6s ease-in-out infinite; transition: opacity .3s, transform .3s; }
.pd-shot .sp-fig.is-cut img { filter: drop-shadow(0 34px 26px rgb(10 20 30 / .35)); }
.pd-shot.swap img { opacity: 0; transform: scale(.85); }
.pd-shot::after { content: ""; position: absolute; left: 50%; bottom: 10%; width: 46%; height: 18px; translate: -50% 0; border-radius: 50%; background: rgb(10 20 30 / .22); filter: blur(10px); animation: shadow 6s ease-in-out infinite; z-index: -1; }
@keyframes shadow { 50% { transform: scaleX(.8); opacity: .6; } }
.pd-back { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgb(255 255 255 / .85); border: 0; color: #14202c; }
.pd-back:hover { transform: translateX(-3px); }
.pd-thumbs { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.pd-thumbs button { width: 62px; height: 62px; padding: 5px; border-radius: 16px; background: #fff; border: 2px solid transparent; cursor: pointer; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .3); transition: transform .35s var(--spring), border-color .2s; }
.pd-thumbs button:hover { transform: translateY(-3px); }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info > * { animation: sh-up .8s calc(.08s * var(--n, 0)) var(--spring) both; }
.pd-info > :nth-child(2) { --n: 1; } .pd-info > :nth-child(3) { --n: 2; } .pd-info > :nth-child(4) { --n: 3; } .pd-info > :nth-child(5) { --n: 4; } .pd-info > :nth-child(6) { --n: 5; } .pd-info > :nth-child(n+7) { --n: 6; }
.pd h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1; letter-spacing: -.03em; margin: 10px 0 14px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.pd-price b { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); letter-spacing: -.02em; }
.pd-av { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 700; background: color-mix(in srgb, #3d8a37 14%, transparent); color: #2f6f2a; text-transform: capitalize; }
[data-theme="dark"] .pd-av { color: #8fd18a; }
.pd-av i { width: 8px; height: 8px; border-radius: 50%; background: #3d8a37; animation: dot 1.8s infinite; }
.pd-av:not(.disponible) { background: color-mix(in srgb, #c9a24a 18%, transparent); color: var(--gold-ink); } .pd-av:not(.disponible) i { background: #c9a24a; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgb(61 138 55 / .55); } 100% { box-shadow: 0 0 0 9px rgb(61 138 55 / 0); } }
.pd-lead { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 16px; max-width: 54ch; }
.pd-feats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.pd-feats li { display: flex; gap: 10px; align-items: center; font-weight: 550; animation: feat .6s calc(.45s + var(--i) * 90ms) var(--spring) both; }
.pd-feats svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tone); color: var(--on, #fff); stroke-width: 3; }
@keyframes feat { from { opacity: 0; transform: translateX(-24px); } }
.pd-var { display: grid; gap: 8px; margin-bottom: 20px; } .pd-var > span { font-weight: 700; font-size: .9rem; }
.pd-var div { display: flex; flex-wrap: wrap; gap: 8px; } .pd-var b { min-width: 48px; padding: 9px 12px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 650; }
.pd-var small { color: var(--muted); }
.pd-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 14px; }
.pd-qty { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; border: 1.5px solid var(--line); }
.pd-qty button { width: 42px; height: 42px; border: 0; background: color-mix(in srgb, var(--tone) 16%, transparent); }
.pd-qty button:active { transform: scale(.85); }
.pd .pd-qty input { width: 52px; min-height: 42px; padding: 0; border: 0; background: transparent; text-align: center; font: 800 1.1rem Archivo, sans-serif; color: var(--ink); -moz-appearance: textfield; box-shadow: none; }
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-swipe { --dx: 0px; position: relative; flex: 1 1 260px; height: 62px; padding: 0 20px 0 70px; border: 0; border-radius: 99px; overflow: hidden; cursor: pointer; touch-action: pan-y;
  background: #14324f; color: #fff; font: 700 1rem Archivo, sans-serif; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
[data-theme="dark"] .pd-swipe { background: #e2bd6e; color: #13202f; }
.pd-swipe::before { content: ""; position: absolute; inset: 0; width: calc(62px + var(--dx)); border-radius: 99px; background: linear-gradient(90deg, #c9a24a, #3d8a37); opacity: .9; transition: width .2s; }
.pd-swipe.drag::before { transition: none; }
.pd-knob { position: absolute; z-index: 1; left: 6px; top: 6px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #14324f; transform: translateX(var(--dx)); transition: transform .45s var(--spring); box-shadow: 0 6px 14px -4px rgb(0 0 0 / .4); }
.pd-swipe.drag .pd-knob { transition: none; }
.pd-knob svg { width: 24px; height: 24px; }
.pd-label { position: relative; z-index: 1; }
.pd-chev { position: relative; z-index: 1; letter-spacing: -.1em; font-size: 1.4rem; background: linear-gradient(90deg, currentColor 30%, transparent 50%, currentColor 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chev 1.8s linear infinite; opacity: .8; }
@keyframes chev { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.pd-swipe.done::before { width: 100%; background: #3d8a37; }
.pd-swipe.done .pd-knob { transform: translateX(calc(var(--w, 300px) - 62px)) rotate(360deg); color: #3d8a37; }
.pd-swipe.done .pd-label { color: #fff; } .pd-swipe.done .pd-chev { opacity: 0; }
.pd-wa { margin: 0 0 10px; }
.pd-rel { padding-top: 10px; }

/* Producto que vuela al carrito y carrito que salta */
.fly { position: fixed; z-index: 90; pointer-events: none; object-fit: contain; border-radius: 14px; }
.cart-link.bump { animation: bump .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.35) rotate(-12deg); } 60% { transform: scale(.9) rotate(6deg); } }

@media (max-width: 860px) {
  .sh-in, .pd-in { grid-template-columns: 1fr; }
  .pd-stage { position: relative; top: 0; aspect-ratio: 1 / .95; border-radius: 28px; }
  .sf-card { height: 360px; }
}
@media (max-width: 560px) {
  .sh h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .sh-search { flex-direction: column; border-radius: 26px; }
  .sh-search svg { top: 32px; }
  .sh-search .btn { width: 100%; }
  .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sc { border-radius: 20px; }
  .sc-body { padding: 10px 12px 12px; } .sc-body h3 { font-size: .94rem; } .sc-price { font-size: 1rem; }
  .sc-row { gap: 6px; } .sc-add, .sc-go { width: 38px; height: 38px; } .sc-go { display: none; }
  .sf-head h2 { font-size: 1.6rem; }
  .pd-thumbs button { width: 52px; height: 52px; }
  .pd-swipe { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .sc { opacity: 1; transform: none; } .sh-mark { animation: none; } }

/* Productos flotando en la cabecera */
.sh-in { align-items: center; }
.sh-search { margin-top: 26px; max-width: 520px; }
.sh-art { position: relative; height: clamp(300px, 34vw, 430px); }
.sh-sun { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgb(226 189 110 / .5), rgb(47 134 204 / .18) 55%, transparent 70%); animation: ring 6s ease-in-out infinite; }
.sh-orbit { position: absolute; left: 50%; top: 50%; width: 82%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .2); animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.sh-p { position: absolute; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: #fff; animation: sh-drop 1.1s var(--spring) both; }
.sh-p .sp-fig { width: 100%; height: auto; aspect-ratio: 1; }
.sh-p .sp-fig img { animation: bob 5.5s ease-in-out infinite; }
.sh-tag { display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(8px); transition: background .3s; }
.sh-tag b { color: #e2bd6e; }
.sh-p:hover .sh-tag { background: var(--tone); }
.sh-p:hover .sp-fig img { animation-play-state: paused; transform: scale(1.1) rotate(-6deg); }
.sh-p0 { width: 40%; left: 2%; top: 30%; animation-delay: .35s; } .sh-p0 .sp-fig img { animation-delay: -1s; }
.sh-p1 { width: 44%; left: 30%; top: -2%; animation-delay: .2s; z-index: 1; }
.sh-p2 { width: 40%; right: 0; top: 36%; animation-delay: .5s; } .sh-p2 .sp-fig img { animation-delay: -2.6s; }
@keyframes sh-drop { from { opacity: 0; transform: translateY(-60px) scale(.6) rotate(-14deg); } }
@media (max-width: 860px) { .sh-art { height: 300px; max-width: 460px; width: 100%; margin-inline: auto; } }
@media (max-width: 560px) { .sh-art { height: 230px; } .sh-tag { font-size: .7rem; padding: 4px 9px; } }

/* v0.7 · líneas de la tienda, filtros por tipo, disponibles y orden */
.st a { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.st a small { grid-column: 2; }
.st-ic { grid-row: 1 / span 2; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.st a[aria-current] .st-ic { transform: rotate(-8deg) scale(1.12); color: var(--gold-ink, var(--gold)); }
.sx { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 4px; }
.sx-kinds { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; padding: 2px; }
.sx-kinds button { flex: none; font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.sx-kinds button:hover { border-color: var(--ink); }
.sx-kinds button:active { transform: scale(.96); }
.sx-kinds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sx-opt { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sx-opt select { font: inherit; color: var(--ink); background: var(--paper-2, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.sx-opt input { accent-color: var(--ink); width: 17px; height: 17px; }
.sh h1 em { background: none; color: inherit; -webkit-background-clip: initial; background-clip: initial; }

.sh-mark b { font-weight: inherit; margin-right: 1.4em; }

.sx-b2b { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .25s var(--spring), box-shadow .25s; }
.sx-b2b:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgb(20 32 44 / .6); }
.sx-b2b:active { transform: scale(.98); }
.sx-b2b svg { flex: none; width: 26px; height: 26px; padding: 9px; box-sizing: content-box; border-radius: 12px; background: rgb(215 180 106 / .16); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sx-b2b span { display: grid; gap: 2px; } .sx-b2b small { color: #b8c2cc; font-size: .85rem; }

/* v0.10 · Catálogo dividido por línea */
.sgrp { margin: 0 0 clamp(34px, 5vw, 56px); scroll-margin-top: 90px; }
.sgrp-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sgrp-h .st-ic { width: 34px; height: 34px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--ink); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sgrp-h h2 { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: -.02em; }
.sgrp-h small { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.sg-soon { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.sg-soon:hover { border-color: var(--ink); background: var(--paper-2); }
.sg-soon .st-ic { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--im); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sg-soon span { display: grid; gap: 2px; } .sg-soon small { color: var(--muted); }
.st small::after { content: ""; }

/* v0.11 · Celular: líneas de la tienda en lista y filtros visibles completos */
@media (max-width: 760px) {
  .st { display: grid; gap: 6px; overflow: visible; padding: 0; margin: 0 0 14px; border: 0; }
  .st-bar { display: none; }
  .st a { grid-template-columns: 28px 1fr auto; grid-template-rows: auto; align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
    font-size: 1rem; font-weight: 700; letter-spacing: -.01em; opacity: 1; color: var(--ink); background: var(--paper); transform: none; transition: background .2s, border-color .2s, color .2s; }
  .st a:hover { opacity: 1; }
  .st a .st-ic { grid-row: auto; width: 24px; height: 24px; }
  .st a small { grid-column: 3; font-size: .78rem; font-weight: 600; }
  .st a:first-child { grid-template-columns: 1fr auto; }
  .st a:first-child small { grid-column: 2; }
  .st a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; }
  .st a[aria-current] small { color: #b8c2cc; }
  .st a[aria-current] .st-ic { color: var(--gold); transform: none; }
  .sx { margin-top: 4px; }
  .sx-kinds { flex-wrap: wrap; overflow: visible; }
  .sx-kinds button { padding: 7px 13px; font-size: .84rem; }
  .sx-opt { font-size: .86rem; }
}
@media (max-width: 760px) { [data-theme="dark"] .st a { background: transparent; color: #eef1f4; border-color: #2c3f57; } [data-theme="dark"] .st a[aria-current] { background: #eef1f4; color: var(--ink); } }

/* v0.12 · Celular primero: productos en la primera pantalla, carrusel rápido y nada que trabe a un equipo lento.
   Se quitan efectos que gastan batería (desenfoques, brillos, animaciones infinitas) y la cabecera se vuelve corta. */
@media (max-width: 760px) {
  .sh { padding-block: 18px 20px; background: linear-gradient(160deg, #183a5c, #0d1d2e); }
  .sh-mark, .sh-art, .sh-logo, .sh-copy p { display: none; }
  .sh h1 { font-size: 1.9rem; line-height: 1.05; margin: 0 0 12px; }
  .sh h1 > *, .sh-copy p, .sh-search { animation: none; }
  .sh-search { margin-top: 0; flex-direction: row; border-radius: 999px; backdrop-filter: none; background: rgb(255 255 255 / .12); }
  .sh-search svg { top: 50%; }
  .sh-search input { min-height: 44px; }
  .sh-search .btn { width: auto; min-height: 44px; padding-inline: 18px; }

  .sf { padding-top: 18px; }
  .sf-head { margin-bottom: 4px; }
  .sf-head h2 { font-size: 1.25rem; }
  .sf-nav { display: none; }
  .sf-rail { grid-auto-columns: 72vw; gap: 14px; padding-block: 12px 26px; scroll-padding-inline: 16px; }
  .sf-card { height: 270px; border-radius: 24px; overflow: visible; }
  .sf-card::before, .sf-ring { display: none; }
  .sf-card .sp-fig { right: 0; bottom: 4%; width: 72%; height: 60%; translate: none; transition: transform .3s; }
  .sf-card .sp-fig img { animation: none; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: 50% 100%; }
  .sf-card:active .sp-fig { transform: scale(.96) rotate(-3deg); }
  .sf-card:hover { transform: none; }
  .sf-txt { padding: 18px 18px 0; }
  .sf-txt b { font-size: 1.2rem; max-width: 11ch; }
  .sf-txt small { display: none; }
  .sf-go { width: 42px; height: 42px; left: 16px; bottom: 16px; }
  /* Entrada rápida: las tarjetas llegan desde la derecha y el producto salta (menos de medio segundo) */
  .sf-card { animation: sf-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i), 2) * 60ms); }
  .sf-card .sp-fig { animation: sf-pop .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i), 2) * 60ms + 120ms); }
  @keyframes sf-in { from { opacity: 0; transform: translateX(40px); } }
  @keyframes sf-pop { from { opacity: 0; transform: translate(30px, 10px) rotate(8deg) scale(.9); } }

  /* Líneas de la tienda como pestañas que se deslizan con el dedo */
  .st { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 2px 16px; }
  .st::-webkit-scrollbar { display: none; }
  .st a { flex: none; display: inline-flex; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
  .st a .st-ic { width: 18px; height: 18px; }
  .st a small { font-size: .75rem; }
  .sx-kinds { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; }
  .sx-b2b { padding: 12px 14px; margin-bottom: 16px; }

  .sc-tile .sp-fig img, .sc-blob { animation: none !important; }
}
@media (max-width: 760px) {
  .pd-shot .sp-fig img, .pd-shot::after { animation: none; }
  .pd-word { display: none; }
}
/* Recortes: la foto siempre cabe en su caja, sea vertical u horizontal */
.sp-fig.is-cut img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }


/* v0.14 · Cabecera de la tienda centrada, con los productos desfilando debajo (sin precios) */
@media (min-width: 761px) {
  .sh { padding-bottom: 0; }
  .sh-mark { display: none; }
  .sh-in { display: block; text-align: center; }
  .sh-copy { display: grid; justify-items: center; }
  .sh-logo { margin-inline: auto; }
  .sh-copy p { margin-inline: auto; }
  .sh-search { width: min(100%, 560px); }
  .fan-shop { margin-top: 26px; }
}
@media (max-width: 760px) { .fan-shop { display: none; } }
/* v0.19 · Unidades en stock (vienen del inventario) */
.sc-stock { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #1d7a43; background: rgb(29 122 67 / .1); vertical-align: middle; }
.sc-stock.low { color: #b3541e; background: rgb(179 84 30 / .12); }
[data-theme="dark"] .sc-stock { color: #6fd29a; } [data-theme="dark"] .sc-stock.low { color: #f0a070; }
