/* =========================================================
   mía — tienda
   Sistema: lienzo blanco, tarjetas muy redondeadas, un solo acento violeta.
   ========================================================= */
:root {
  /* Tokens del sistema (Shop) */
  --color-canvas-mist: #f2f4f5; --color-pure-white: #ffffff; --color-ink-black: #0b1630; --color-faint-border: #ebebeb;
  --color-muted-gray: #787574; --color-cool-stone: #cccccc; --color-warm-fog: #acb0aa; --color-shop-violet: #2f6bff;
  --color-violet-wash: #c9d8ff; --color-slate-ink: #2b3550; --color-ash-veil: #665a54;
  --text-caption: 11px; --text-body-sm: 12px; --text-body: 14px; --text-body-lg: 16px; --leading: 1.33;
  --spacing-4: 4px; --spacing-6: 6px; --spacing-8: 8px; --spacing-10: 10px; --spacing-12: 12px; --spacing-16: 16px;
  --spacing-20: 20px; --spacing-24: 24px; --spacing-32: 32px; --spacing-40: 40px; --spacing-48: 48px; --spacing-64: 64px;
  --radius-md: 4px; --radius-lg: 8px; --radius-xl: 11.4046px; --radius-2xl: 17.1064px; --radius-2xl-2: 20px;
  --radius-2xl-3: 22.8092px; --radius-3xl: 28px; --radius-3xl-2: 32px; --radius-full: 9999px;
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 2px 8px 0px;
  --shadow-sm-2: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-lg: rgba(0, 0, 0, 0.12) 0px 4px 24px 0px;
  --shadow-lg-2: rgba(47, 107, 255, 0.34) 0px 4px 24px 0px;
  --page-max-width: 1200px; --section-gap: 64px; --element-gap: 12px;
  --canvas: #f2f4f5;
  --surface: #ffffff;
  --ink: #0b1630;
  --ink-2: #2b3550;
  --muted: #787574;
  --line: #ebebeb;
  --stone: #cccccc;
  --fog: #acb0aa;
  --violet: #2f6bff;
  --orange: #ff6b1a;
  --orange-press: #e85a0c;
  --orange-tint: #fff1e8;
  --navy: #0b1630;
  --violet-press: #1d4fe0;
  --violet-wash: #c9d8ff;
  --violet-tint: #eef3ff;
  --img-bg: #f4f4f2;          /* igual al fondo de estudio de las fotos */
  --ok: #1f7a4d;
  --ok-tint: #e7f4ec;
  --warn: #8a5a00;
  --warn-tint: #fdf3dc;
  --err: #b42318;
  --err-tint: #fdecea;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-card: 28px;
  --r-inner: 20px;
  --r-tile: 22px;
  --r-sm: 12px;
  --pill: 9999px;

  --sh-sm: var(--shadow-sm);
  --sh-card: var(--shadow-sm-2);
  --sh-lg: var(--shadow-lg);
  --sh-violet: var(--shadow-lg-2);
  --sh-float: 0 24px 48px -12px rgba(11, 22, 48, .18), 0 4px 10px rgba(0, 0, 0, .05);

  --rail: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.38 var(--font); letter-spacing: -0.031em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.05em; line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--violet-wash); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; letter-spacing: -0.014em; }
.xs { font-size: 12px; letter-spacing: -0.017em; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ---------- Estructura ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0;
  background: var(--canvas);
}
.rail__logo { width: 40px; height: 40px; margin-bottom: 36px; display: grid; place-items: center; }
.rail__logo svg { width: 36px; height: 36px; transition: transform .5s var(--spring); }
.rail__logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.rail__nav { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.rail a.rail__item {
  position: relative; width: 48px; height: 48px; border-radius: 20px; display: grid; place-items: center;
  color: var(--ink); transition: background .2s, transform .2s var(--spring);
}
.rail a.rail__item:hover { background: #e7eaeb; }
.rail a.rail__item.is-active { background: var(--surface); box-shadow: var(--sh-sm); }
.rail a.rail__item:active { transform: scale(.92); }
.rail__item .tip {
  position: absolute; left: 58px; top: 50%; transform: translate(-4px, -50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.rail__item:hover .tip { opacity: 1; transform: translate(0, -50%); }
.rail__me { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 500; color: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--violet); color: #fff; font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--canvas);
}
.badge:empty, .badge[data-count="0"] { display: none; }
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.shell { padding: 12px 12px 12px var(--rail); min-height: 100vh; }
.panel {
  background: var(--surface); border-radius: var(--r-card); min-height: calc(100vh - 24px);
  overflow: clip; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
}
.panel > main { flex: 1; }

.announce {
  background: var(--ink); color: #fff; font-size: 13px; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 16px;
  text-align: center;
}
.announce a { display: inline-flex; align-items: center; gap: 6px; }
.announce .chip-dark { background: rgba(255, 255, 255, .14); padding: 3px 9px; border-radius: 99px; font-size: 12px; }
.announce .ic { width: 15px; height: 15px; transition: transform .2s; }
.announce a:hover .ic { transform: translateX(3px); }

.topbar { display: none; }
.msearch { display: none; }
.tabbar { display: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 56px 0 0; }
.section:last-child { padding-bottom: 72px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-title { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; letter-spacing: -0.05em; font-weight: 600; }
.sec-title .ic { width: 18px; height: 18px; transition: transform .2s; }
a.sec-title:hover .ic { transform: translateX(3px); }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stone); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em; box-shadow: var(--sh-sm);
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: #dcdcdc; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: var(--sh-violet); }
.btn--primary:hover { background: var(--violet-press); border-color: var(--violet-press); box-shadow: 0 6px 28px rgba(69, 36, 219, .42); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn--dark:hover { background: #222; border-color: #222; }
.btn--ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn--ghost:hover { background: var(--canvas); box-shadow: none; border-color: transparent; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; padding: 0 26px; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--wa { background: #fff; }
.btn--wa .dot, .btn--tg .dot, .btn--mail .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.btn--wa .dot { background: #25d366; color: #fff; }
.btn--tg .dot { background: #2aabee; color: #fff; }
.btn--mail .dot { background: var(--ink); color: #fff; }
.btn .dot .ic { width: 13px; height: 13px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 0;
  background: var(--surface); box-shadow: var(--sh-lg); transition: transform .2s var(--spring);
}
.icon-btn:hover { transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Chips / pills ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); font-size: 15px;
  transition: transform .2s var(--spring), box-shadow .2s, border-color .2s; white-space: nowrap;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.pill__ic { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; background: var(--canvas); }
.pill__ic img { width: 100%; height: 100%; object-fit: cover; }
.pill--plain { padding: 0 16px; }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; letter-spacing: -0.014em;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: #d6d6d6; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill);
  background: var(--canvas); font-size: 12px; letter-spacing: -0.017em; font-weight: 500; white-space: nowrap;
}
.tag--violet { background: var(--violet-tint); color: var(--violet); }
.tag--ok { background: var(--ok-tint); color: var(--ok); }
.tag--warn { background: var(--warn-tint); color: var(--warn); }
.tag--err { background: var(--err-tint); color: var(--err); }
.tag--dark { background: var(--ink); color: #fff; }
.tag--sale { background: var(--orange); color: var(--navy); font-weight: 700; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Búsqueda ---------- */
.search {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; height: 56px;
  background: var(--surface); border-radius: var(--pill); border: 1px solid rgba(5, 41, 77, .1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06); padding: 4px 4px 4px 22px; transition: box-shadow .25s, border-color .25s;
}
.search:focus-within { border-color: rgba(47, 107, 255, .35); box-shadow: 0 8px 30px rgba(47, 107, 255, .14); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 100%; }
.search input::placeholder { color: var(--muted); }
.search button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--violet); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-violet); transition: transform .2s var(--spring), background .2s;
}
.search button:hover { transform: scale(1.06); background: var(--violet-press); }
.search button .ic { stroke-width: 2.2; }
.search--sm { height: 46px; max-width: 380px; padding-left: 18px; box-shadow: none; }
.search--sm button { width: 36px; height: 36px; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 8px; text-align: center; overflow: hidden; }
.constellation { position: relative; height: 330px; max-width: 1080px; margin: 0 auto; pointer-events: none; }
.float {
  position: absolute; pointer-events: auto; background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--sh-float); padding: 8px; width: 150px;
  opacity: 0; transform: translateY(24px) scale(.94) rotate(var(--rot, 0deg));
  animation: float-in .9s var(--ease) forwards, drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s);
  transition: box-shadow .3s;
}
.float:hover { box-shadow: 0 30px 60px -12px rgba(16, 12, 40, .26); }
.float img, .float__meta { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.float.is-swap img, .float.is-swap .float__meta { opacity: 0; transform: scale(.94); }
.float img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-inner); background: var(--img-bg); }
.float__meta { padding: 8px 6px 4px; text-align: left; }
.float__meta b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float__meta span { font-size: 12px; color: var(--muted); }
.float--img { padding: 0; overflow: hidden; }
.float--img img { border-radius: var(--r-card); }
@keyframes float-in { to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot, 0deg)); } }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) * -0.4)); }
}
.f1 { left: 2%; top: 30px; width: 168px; --rot: -3deg; --d: .05s; }
.f2 { left: 19%; top: 86px; width: 104px; --rot: 6deg; --d: .2s; }
.f3 { left: 33%; top: 6px; width: 132px; --rot: -2deg; --d: .1s; }
.f4 { right: 33%; top: 26px; width: 118px; --rot: 3deg; --d: .3s; }
.f5 { right: 17%; top: 104px; width: 112px; --rot: -5deg; --d: .15s; }
.f6 { right: 1%; top: 22px; width: 168px; --rot: 2deg; --d: .25s; }

.wordmark {
  font-size: clamp(46px, 7.6vw, 100px); line-height: .9; letter-spacing: -0.075em; font-weight: 600; color: var(--violet);
  margin-top: -36px; position: relative; display: inline-block;
  opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) .35s forwards;
}
.wordmark .acc { display: inline-block; transform-origin: 50% 80%; animation: wiggle 1.1s var(--spring) 1.2s both; }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__tag { color: var(--muted); font-size: 17px; margin: 14px auto 26px; max-width: 520px; opacity: 0; animation: rise .8s var(--ease) .5s forwards; }
.hero .search { margin: 0 auto; opacity: 0; animation: rise .8s var(--ease) .6s forwards; }
.hero .pills { margin: 26px auto 0; max-width: 980px; opacity: 0; animation: rise .8s var(--ease) .75s forwards; }


/* ---------- Hero: marquesina de productos ---------- */
.marquee {
  position: relative; height: 360px; overflow: hidden; margin: 0 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee__track {
  display: flex; align-items: flex-start; width: max-content; padding-top: 14px;
  animation: marquee 70s linear infinite; will-change: transform;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mcard {
  --w: 170px; flex: none; width: var(--w); margin-right: 26px;
  transform: translateY(var(--y)) rotate(var(--r)); transition: transform .45s var(--spring);
  opacity: 0; animation: mcard-in .9s var(--ease) forwards; animation-delay: calc(var(--d) * -0.08);
}
@keyframes mcard-in { to { opacity: 1; } }
.mcard--s { --w: 126px; }
.mcard--m { --w: 156px; }
.mcard--l { --w: 196px; }
.mcard--img { --w: 140px; }
.mcard__in {
  display: block; background: var(--color-pure-white); border-radius: var(--radius-3xl); padding: 8px;
  box-shadow: var(--shadow-sm-2), 0 18px 40px -18px rgba(20, 16, 50, .18);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d);
}
.mcard--img .mcard__in { padding: 6px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.mcard img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-2xl-2); background: var(--img-bg); }
.mcard__meta { display: block; padding: 9px 6px 4px; text-align: left; }
.mcard__meta b { display: block; font-size: var(--text-body); font-weight: 600; letter-spacing: -0.014em; line-height: 1.14;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-ink-black); }
.mcard__meta span { font-size: var(--text-body-sm); color: var(--color-muted-gray); letter-spacing: -0.017em; }
.mcard__meta s { font-size: var(--text-caption); }
.mcard:hover { transform: translateY(calc(var(--y) - 10px)) rotate(0deg) scale(1.04); z-index: 2; }
.hero .wordmark { margin-top: -6px; }
@media (max-width: 900px) {
  .marquee { height: 250px; margin: 0 -16px 2px; }
  .marquee__track { animation-duration: 55s; padding-top: 8px; }
  .mcard { margin-right: 16px; --y-s: .62; transform: translateY(calc(var(--y) * .62)) rotate(var(--r)); }
  .mcard--s { --w: 92px; } .mcard--m { --w: 112px; } .mcard--l { --w: 138px; } .mcard--img { --w: 100px; }
  .mcard__in { border-radius: 22px; padding: 6px; }
  .mcard img { border-radius: 16px; }
  .mcard__meta { padding: 6px 4px 2px; }
  .mcard__meta b { font-size: 12px; } .mcard__meta span { font-size: 11px; }
  .mcard:hover { transform: translateY(calc(var(--y) * .62)) rotate(var(--r)); }
  .hero .wordmark { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- Bandas de categorías ---------- */
.rail-scroll { position: relative; }
.hscroll {
  display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 32px 16px; margin: 0 -32px; overscroll-behavior-x: contain;
  scroll-padding: 0 32px;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.scroll-arrow { position: absolute; top: calc(50% - 28px); z-index: 2; width: 40px; height: 40px; }
.scroll-arrow--next { right: -14px; }
.scroll-arrow--prev { left: -14px; }
.scroll-arrow[hidden] { display: none; }

.band { width: 312px; }
.band__head { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.05em; margin: 0 0 12px 2px; }
.band__head .ic { width: 16px; height: 16px; transition: transform .2s; }
.band__head:hover .ic { transform: translateX(3px); }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--r-card); overflow: hidden; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--img-bg); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__label {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); z-index: 1;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--color-ink-black); font-size: 12px; font-weight: 600; letter-spacing: -0.017em; line-height: 1.2;
  padding: 6px 9px; border-radius: var(--radius-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Mosaico por género ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mosaic--few { grid-template-columns: repeat(2, 1fr); }
.mosaic--few a { aspect-ratio: 4/3; }
.mosaic a { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3/4; background: #f4f4f2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); opacity: 1; }
.mosaic span { position: absolute; left: 18px; top: 16px; color: var(--ink); font-size: 28px; font-weight: 600; letter-spacing: -0.06em; }
.mosaic em { position: absolute; left: 18px; bottom: 16px; color: var(--ink); background: #fff; padding: 6px 12px; border-radius: 99px; box-shadow: var(--sh-sm); font-style: normal; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden; background: var(--img-bg);
  isolation: isolate;
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s, transform .8s var(--ease); }
.card__media .alt { opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card:hover .card__media .alt { opacity: 1; }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.card__badges .tag { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.card__badges .tag--dark { background: var(--ink); }
.fav {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); display: grid; place-items: center;
  transition: transform .25s var(--spring); box-shadow: var(--sh-sm);
}
.fav .ic { width: 18px; height: 18px; }
.fav:hover { transform: scale(1.1); }
.fav.is-on .ic { fill: var(--ink); }
.fav.pop { animation: bump .45s var(--spring); }
.card__body { padding: 10px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.card__brand { font-size: 12px; color: var(--muted); letter-spacing: -0.017em; }
.card__name { font-size: 15px; letter-spacing: -0.025em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 500; }
.card__price s { color: var(--muted); font-weight: 400; font-size: 13px; }
.card__avail { font-size: 11px; color: var(--muted); letter-spacing: -0.01em; }
.pdp__avail { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-top: -12px; }
.card__ask { font-size: 14px; color: var(--violet); font-weight: 500; }
.card__out { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); display: grid; place-items: center; z-index: 1; }

.card--rail { width: 210px; }

/* ---------- Pasos “cómo comprar” ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.step { background: var(--canvas); border-radius: var(--r-card); padding: 22px 20px 24px; position: relative; overflow: hidden; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--sh-sm); font-size: 14px; font-weight: 600; margin-bottom: 36px;
}
.step h3 { font-size: 17px; letter-spacing: -0.04em; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); letter-spacing: -0.014em; line-height: 1.45; }
.step--accent { background: var(--ink); color: #fff; }
.step--accent p { color: rgba(255, 255, 255, .7); }
.step--accent::before { background: var(--violet); color: #fff; box-shadow: none; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 22px; border: 1px solid var(--line); }
.trust .ic { width: 22px; height: 22px; margin-top: 1px; }
.trust b { display: block; font-weight: 500; font-size: 15px; }
.trust span { font-size: 13px; color: var(--muted); letter-spacing: -0.014em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; margin-top: 72px; padding: 56px 0 28px; border-radius: var(--r-card) var(--r-card) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); letter-spacing: -0.01em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__brand p { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 14px; max-width: 290px; line-height: 1.5; }
.footer__legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .5); }
.footer .logo-word { color: #fff; }
.pay-marks { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pay-marks span { font-size: 12px; border: 1px solid rgba(255, 255, 255, .2); padding: 5px 10px; border-radius: 99px; color: rgba(255, 255, 255, .8); }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo svg { width: 30px; height: 30px; }
.logo-shop { font-weight: 400; }
/* Logo Shopico (SVG): "Shop" y la figura usan currentColor; la bolsa y "co" van en rosa */
.wm { display: block; height: 30px; width: auto; aspect-ratio: 4.4081; color: var(--violet); overflow: visible; }
.wm--light { color: #fff; }
.topbar .logo .wm { width: auto; height: 27px; }
.footer .logo .wm { width: auto; height: 34px; }
.wordmark .wm { height: 1.02em; width: auto; }
.wm-shop { font-weight: 400; letter-spacing: -0.06em; }
.logo-word { font-size: 26px; font-weight: 600; letter-spacing: -0.075em; color: var(--violet); line-height: 1; }

/* ---------- Catálogo ---------- */
.page-head { padding: 32px 0 8px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 12px; height: 12px; }
.page-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.06em; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-top: 20px; }
.filters { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 500; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.fgroup[open] summary .ic { transform: rotate(180deg); }
.fgroup .opts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.fgroup .list { display: grid; gap: 4px; padding-top: 10px; max-height: 260px; overflow: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; letter-spacing: -0.014em; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--stone); display: grid; place-items: center; margin: 0; transition: background .15s, border-color .15s; flex: none; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.price-range { display: flex; gap: 8px; align-items: center; padding-top: 12px; }
.price-range input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 10px; font-size: 14px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--stone); position: relative; transition: background .2s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar__left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select { position: relative; }
.select select {
  appearance: none; height: 40px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface);
  padding: 0 38px 0 16px; font-size: 14px; cursor: pointer; box-shadow: var(--sh-sm);
}
.select .ic { position: absolute; right: 14px; top: 12px; width: 16px; height: 16px; pointer-events: none; }
.filter-btn { display: none; }
.only-sm { display: none; }
.scrim { display: none; }
.empty { text-align: center; padding: 64px 20px; border-radius: var(--r-card); background: var(--canvas); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--muted); stroke-width: 1.3; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; padding: 0 12px; font-size: 14px; border: 1px solid var(--line); }
.pager .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }

/* ---------- Producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-top: 24px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-self: start; position: sticky; top: 16px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--img-bg); transition: border-color .2s, opacity .2s; opacity: .7; }
.gallery__thumbs button.is-on { border-color: var(--ink); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--img-bg); aspect-ratio: 1; }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; }
.gallery__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: none; justify-content: center; gap: 6px; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.25); transition: width .3s var(--ease), background .3s; }
.gallery__dots i.is-on { width: 18px; background: var(--ink); }
.pdp__info { display: flex; flex-direction: column; gap: 22px; padding-bottom: 20px; }
.pdp__brand { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pdp__name { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.055em; line-height: 1.08; margin-top: 6px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }
.pdp__price s { font-size: 17px; color: var(--muted); font-weight: 400; }
.pdp__price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: -0.01em; }
.staffbox { border: 1.5px dashed var(--violet-wash); background: var(--violet-tint); border-radius: 18px; padding: 14px 16px; font-size: 14px; }
.staffbox > b { display: flex; gap: 6px; align-items: center; font-weight: 500; color: var(--violet); margin-bottom: 8px; }
.staffbox dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; margin: 0 0 8px; }
.staffbox dt { color: var(--muted); }
.staffbox dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.askbox { background: var(--canvas); border-radius: 22px; padding: 18px; }
.askbox h3 { font-size: 18px; letter-spacing: -0.04em; margin-bottom: 4px; }
.askbox p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: grid; place-items: center; min-width: 54px; height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line);
  font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s var(--spring);
}
.size span:hover { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.04); }
.size input:disabled + span { color: var(--stone); background: repeating-linear-gradient(135deg, transparent 0 6px, #f4f4f4 6px 7px); cursor: not-allowed; text-decoration: line-through; }
.size input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: var(--pill); padding: 0 4px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--canvas); }
.qty input { width: 34px; border: 0; text-align: center; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 38px; }
.qty--sm button { width: 30px; height: 30px; }
.perks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.perks div { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; font-size: 14px; letter-spacing: -0.014em; }
.perks div + div { border-top: 1px solid var(--line); }
.perks b { font-weight: 500; display: block; font-size: 15px; letter-spacing: -0.02em; }
.perks span { color: var(--muted); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; cursor: pointer; font-size: 16px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .25s var(--ease); }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc .acc__body { padding: 0 2px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.specs { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.login-hint { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.97); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; animation: fade .2s; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 20px; }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; }
@keyframes fade { from { opacity: 0; } }

.sticky-buy { display: none; }

/* ---------- Carrito / checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 24px; align-items: start; }
.summary { position: sticky; top: 16px; background: var(--canvas); border-radius: var(--r-card); padding: 24px; display: grid; gap: 14px; }
.summary h3 { font-size: 20px; letter-spacing: -0.05em; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; gap: 12px; }
.sum-row.total { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; padding-top: 14px; border-top: 1px solid #dfe2e3; }
.cart-id {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border-radius: 16px;
  padding: 10px 10px 10px 14px; font-size: 13px; color: var(--muted);
}
.cart-id b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); font-weight: 500; letter-spacing: .02em; font-size: 14px; }
.line { display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .3s, transform .3s; }
.line:first-child { padding-top: 0; }
.line.is-removing { opacity: 0; transform: translateX(-20px); }
.line__img { width: 104px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--img-bg); }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-size: 16px; letter-spacing: -0.03em; }
.line__meta { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.line__actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.line__price { font-size: 16px; font-weight: 500; text-align: right; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.remove:hover { color: var(--ink); }

.form-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-size: 20px; letter-spacing: -0.05em; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.form-card h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; letter-spacing: 0; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fields > .f { grid-column: span 6; }
.fields > .f--3 { grid-column: span 3; }
.fields > .f--2 { grid-column: span 2; }
.fields > .f--4 { grid-column: span 4; }
.auth__box form { grid-template-columns: minmax(0, 1fr); }
.f label { font-size: 13px; color: var(--ink-2); letter-spacing: -0.014em; }
.input, .f input:not([type=checkbox]):not([type=radio]):not([type=file]), .f select, .f textarea {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--surface);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; outline: 0;
}
.f textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.f select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.input:focus, .f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
.f.has-err input, .f.has-err select, .f.has-err textarea { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; letter-spacing: -0.017em; }
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s; height: 100%;
}
.choice > span:hover { border-color: #d0d0d0; }
.choice input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.choice .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--stone); flex: none; margin-top: 1px; display: grid; place-items: center; transition: border-color .2s; }
.choice input:checked + span .radio { border-color: var(--ink); }
.choice input:checked + span .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: bump .3s var(--spring); }
.choice b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; letter-spacing: -0.014em; line-height: 1.4; }
.choice .ic-lg { margin-left: auto; color: var(--muted); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.agree input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--stone); flex: none; margin: 1px 0 0; display: grid; place-items: center; }
.agree input:checked { background: var(--ink); border-color: var(--ink); }
.agree input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), opacity .3s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.is-open { grid-template-rows: 1fr; opacity: 1; }
.collapse.is-open > div { padding-top: 16px; }
.mini-items { display: grid; gap: 12px; max-height: 300px; overflow: auto; }
.mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini__img { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--img-bg); position: relative; }
.mini__img img { width: 100%; height: 100%; object-fit: contain; }
.mini__qty { position: absolute; top: -2px; right: -2px; background: var(--ink); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.mini__name { line-height: 1.3; }
.mini__name small { display: block; color: var(--muted); font-size: 12px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--canvas); font-size: 14px; line-height: 1.45; letter-spacing: -0.014em; }
.note .ic { margin-top: 1px; }
.note--violet { background: var(--violet-tint); }
.note--warn { background: var(--warn-tint); }
.note--ok { background: var(--ok-tint); }

/* ---------- Pedido ---------- */
.order-hero { border-radius: var(--r-card); background: var(--ink); color: #fff; padding: 32px; position: relative; overflow: hidden; }
.order-hero .tag { background: rgba(255,255,255,.14); color: #fff; }
.order-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.06em; margin: 12px 0 6px; }
.order-hero p { color: rgba(255,255,255,.7); }
.order-hero .code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .02em; }
.order-hero .copy { background: rgba(255,255,255,.12); color: #fff; border: 0; box-shadow: none; }
.order-hero .copy:hover { background: rgba(255,255,255,.2); }
.order-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: var(--violet); opacity: .9; filter: blur(0); transform: scale(0); animation: blob 1.2s var(--spring) .2s forwards;
}
.order-hero > * { position: relative; z-index: 1; }
@keyframes blob { to { transform: scale(1); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .pt { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); color: var(--muted); }
.timeline .pt .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.timeline li.is-done .pt { background: var(--ink); color: #fff; }
.timeline li.is-done::before { background: var(--ink); }
.timeline li.is-now .pt { background: var(--violet); color: #fff; box-shadow: 0 0 0 6px var(--violet-tint); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(47, 107, 255, .08); } }
.timeline b { font-weight: 500; font-size: 15px; display: block; padding-top: 3px; }
.timeline small { color: var(--muted); font-size: 13px; }
.bank { display: grid; gap: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bank div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.bank div + div { border-top: 1px solid var(--line); }
.bank span { color: var(--muted); }
.bank b { font-weight: 500; font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0; font-size: 14px; text-align: right; word-break: break-all; }
.copy-btn { border: 0; background: var(--canvas); border-radius: 10px; padding: 6px 10px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; flex: none; }
.copy-btn:hover { background: #e6e9ea; }
.copy-btn .ic { width: 13px; height: 13px; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border: 1.5px dashed var(--stone); border-radius: 20px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px;
}
.drop:hover, .drop.is-over { border-color: var(--violet); background: var(--violet-tint); }
.drop input { display: none; }
.drop .ic { width: 28px; height: 28px; color: var(--violet); }
.drop b { font-weight: 500; }

.orders-list { display: grid; gap: 12px; }
.order-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.order-row:hover { border-color: #d4d4d4; transform: translateY(-2px); box-shadow: var(--sh-card); }
.stack { display: flex; }
.stack img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; border: 2px solid #fff; background: var(--canvas); }
.stack img + img { margin-left: -16px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); }
.auth__art { position: relative; background: var(--canvas); overflow: hidden; display: grid; place-items: center; }
.auth__art .stack-art { position: relative; width: 340px; height: 420px; }
.auth__art .float { position: absolute; animation-iteration-count: 1, infinite; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth__box h1 { font-size: 34px; letter-spacing: -0.06em; }
.auth__box > p { color: var(--muted); margin-top: -6px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn-wrap { min-height: 44px; display: flex; justify-content: center; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }

/* ---------- Mensajes ---------- */
.flashes { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; padding: 12px 14px 12px 16px;
  border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); font-size: 14px; letter-spacing: -0.014em;
  animation: toast-in .45s var(--spring);
}
.toast.is-out { animation: toast-out .3s var(--ease) forwards; }
.toast img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex: none; background: #333; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-body small { display: block; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast a.t-act { background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; flex: none; }
.toast--error { background: var(--err); }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; flex: none; }
.toast .ok .ic { width: 13px; height: 13px; stroke-width: 2.6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(.97); } }
.flyer { position: fixed; z-index: 110; border-radius: 16px; object-fit: cover; pointer-events: none; box-shadow: var(--sh-lg); transition: transform .75s cubic-bezier(.5, -.3, .3, 1), opacity .75s, width .75s, height .75s; }

.cookie {
  position: fixed; left: calc(var(--rail) + 28px); bottom: 24px; z-index: 80; max-width: 420px; background: var(--surface);
  border-radius: 22px; box-shadow: var(--sh-lg); padding: 18px; font-size: 13px; line-height: 1.5; letter-spacing: -0.014em;
  display: none; gap: 12px; animation: toast-in .5s var(--spring);
}
.cookie.is-on { display: grid; }
.cookie a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal / texto largo ---------- */
.prose-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; padding-top: 24px; }
.prose-nav { position: sticky; top: 16px; align-self: start; display: grid; gap: 4px; }
.prose-nav a { padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.prose-nav a:hover { color: var(--ink); background: var(--canvas); }
.prose-nav a.is-on { color: var(--ink); background: var(--canvas); }
.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); letter-spacing: -0.02em; }
.prose h1 { font-size: 38px; letter-spacing: -0.06em; color: var(--ink); margin-bottom: 8px; }
.prose h2 { font-size: 21px; color: var(--ink); margin: 36px 0 10px; letter-spacing: -0.045em; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 22px 0 6px; letter-spacing: -0.03em; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); }
.prose .box { background: var(--canvas); border-radius: 18px; padding: 16px 18px; margin: 16px 0; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
img.lazy-fade { opacity: 0; transition: opacity .5s; }
img.lazy-fade.is-loaded { opacity: 1; }
.card__media .alt.lazy-fade.is-loaded { opacity: 0; }
.card:hover .card__media .alt.lazy-fade.is-loaded { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f1, .f6 { width: 140px; }
  .steps, .trust { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 210px 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  body { background: var(--surface); }
  .rail { display: none; }
  .shell { padding: 0; }
  .panel { border-radius: 0; min-height: 100vh; box-shadow: none; overflow: visible; }
  .announce { font-size: 12px; min-height: 34px; padding: 7px 14px; }
  .announce .hide-sm { display: none; }

  .topbar {
    display: flex; position: sticky; top: 0; z-index: 50; align-items: center; gap: 8px; height: 58px; padding: 0 12px 0 16px;
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
  }
  .topbar.is-scrolled { border-color: var(--line); }
  .topbar .logo { margin-right: auto; }
  .topbar .logo svg { width: 28px; height: 28px; }
  .topbar .logo-word { font-size: 24px; }
  .topbar a.tb-btn, .topbar button.tb-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; }
  .topbar .badge { top: 3px; right: 2px; box-shadow: 0 0 0 2px #fff; }
  .msearch { display: none; padding: 8px 16px 12px; position: sticky; top: 58px; z-index: 49; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
  .msearch.is-open { display: block; animation: fade .2s; }
  .msearch .search { max-width: none; height: 48px; box-shadow: none; }
  .msearch .search button { width: 40px; height: 40px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60; height: 64px; border-radius: 24px; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 10px 40px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0,0,0,.04);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--muted); letter-spacing: -0.01em; transition: color .2s; }
  .tabbar a .ic { width: 22px; height: 22px; transition: transform .25s var(--spring); }
  .tabbar a.is-active { color: var(--ink); }
  .tabbar a.is-active .ic { transform: translateY(-1px); stroke-width: 2; }
  .tabbar a:active .ic { transform: scale(.85); }
  .tabbar .badge { top: 6px; right: calc(50% - 20px); box-shadow: 0 0 0 2px #fff; }
  main { padding-bottom: 92px; }
  .footer { margin-top: 48px; padding-bottom: 110px; border-radius: 28px 28px 0 0; }

  .wrap { padding: 0 16px; }
  .section { padding-top: 40px; }
  .hscroll { padding: 4px 16px 12px; margin: 0 -16px; scroll-padding: 0 16px; gap: 12px; }
  .scroll-arrow { display: none; }

  .hero { padding-top: 18px; }
  .constellation { height: 230px; }
  .float { width: 110px !important; padding: 6px; border-radius: 22px; }
  .float img { border-radius: 16px; }
  .float__meta { display: none; }
  .f1 { left: -14px; top: 30px; }
  .f2 { left: 22%; top: 104px; width: 84px !important; }
  .f3 { left: 30%; top: 0; width: 96px !important; }
  .f4 { right: 23%; top: 20px; width: 92px !important; }
  .f5 { display: none; }
  .f6 { right: -14px; top: 74px; }
  .wordmark { margin-top: -20px; }
  .hero .search { width: calc(100% - 32px); }
  .mosaic--few a { aspect-ratio: 3/4; }
  .hero__tag { font-size: 15px; margin: 10px auto 20px; padding: 0 12px; }
  .hero .pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 20px -16px 0; padding: 4px 16px 8px; }
  .hero .pills::-webkit-scrollbar { display: none; }

  .band { width: 76vw; max-width: 320px; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mosaic span { font-size: 22px; left: 14px; top: 12px; }
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .card__name { font-size: 14px; }
  .card__media { border-radius: 18px; }
  .fav { width: 32px; height: 32px; right: 8px; top: 8px; }
  .card--rail { width: 44vw; max-width: 200px; }
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 16px; }
  .trust { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .catalog { grid-template-columns: 1fr; padding-top: 12px; }
  .filters {
    position: fixed; inset: auto 0 0 0; max-height: 86vh; z-index: 95; background: var(--surface); border-radius: 28px 28px 0 0;
    padding: 10px 20px calc(96px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .4s var(--ease);
    box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  }
  .filters.is-open { transform: none; }
  .filters::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--stone); margin: 0 auto 14px; }
  .filters__foot.only-sm { display: flex; }
  .filters__foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; display: flex; gap: 10px; border-top: 1px solid var(--line); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 94; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.is-on { opacity: 1; pointer-events: auto; }
  .filter-btn { display: inline-flex; }
  .page-head { padding-top: 18px; }

  .pdp { grid-template-columns: 1fr; gap: 20px; padding-top: 4px; }
  .gallery { grid-template-columns: 1fr; position: static; margin: 0 -16px; }
  .gallery__thumbs { display: none; }
  .gallery__main { border-radius: 0; aspect-ratio: 1; }
  .gallery__dots { display: flex; }
  .sticky-buy {
    display: flex; gap: 10px; align-items: center; position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55;
    background: rgba(255,255,255,.94); backdrop-filter: blur(16px); padding: 8px 8px 8px 16px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.14);
    transform: translateY(160%); transition: transform .4s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy .p { flex: 1; min-width: 0; font-size: 13px; }
  .sticky-buy .p b { display: block; font-size: 16px; font-weight: 500; }
  .sticky-buy .p span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  .two-col { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .summary { position: static; padding: 20px; }
  .line { grid-template-columns: 84px 1fr; gap: 12px; }
  .line__img { width: 84px; }
  .line__price { grid-column: 2; text-align: left; margin-top: -6px; }
  .form-card { padding: 20px 16px; border-radius: 24px; }
  .fields > .f--3, .fields > .f--2, .fields > .f--4 { grid-column: span 6; }
  .fields > .f--half-sm { grid-column: span 3; }
  .choices--2 { grid-template-columns: 1fr; }
  .order-hero { padding: 24px 20px; border-radius: 24px; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row .stack { display: none; }

  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth__art { display: none; }
  .auth__form { padding: 28px 16px 40px; align-items: flex-start; }

  .prose-wrap { grid-template-columns: 1fr; gap: 16px; }
  .prose-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .prose-nav a { white-space: nowrap; background: var(--canvas); }
  .prose h1 { font-size: 30px; }
  .cookie { left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); max-width: none; }
  .flashes { top: 66px; }
}

@media (max-width: 380px) {
  .tabbar a { font-size: 9.5px; }
  .grid, .grid--3 { gap: 16px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cotización y verificación de documentos ---------- */
.quote-btn { margin-top: 10px; background: var(--color-pure-white); border: 1px solid var(--color-faint-border); }
.quote-btn:hover { border-color: var(--violet); color: var(--violet); }
.verify { padding: 56px 16px 80px; display: grid; place-items: center; }
.verify__card { width: 100%; max-width: 520px; background: var(--color-pure-white); border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg); padding: 36px 32px; text-align: center; }
.verify__card h1 { font-size: 28px; letter-spacing: -0.04em; margin: 6px 0 8px; }
.verify__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted-gray); margin: 14px 0 0; }
.verify__badge { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; }
.verify__badge .ic { width: 30px; height: 30px; }
.verify__badge.is-ok { background: #e5f6ec; color: #0f8a4b; }
.verify__badge.is-wait { background: var(--orange-tint); color: #c2410c; }
.verify__badge.is-off { background: var(--color-canvas-mist); color: var(--color-muted-gray); }
.verify__badge.is-bad { background: #fdeaea; color: #c62828; }
.verify__list { margin: 22px 0 0; text-align: left; border-top: 1px solid var(--color-faint-border); }
.verify__list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--color-faint-border); }
.verify__list dt { color: var(--color-muted-gray); font-size: 14px; }
.verify__list dd { margin: 0; font-size: 14px; text-align: right; }
.verify .btn { margin-top: 18px; }

/* ---------- Animaciones de la "i" del logo (4 que se van turnando; las dispara app.js) ---------- */
.wm-fig, .wm-head, .wm-arm, .wm-bag, .wm-spark { transform-box: fill-box; }
.wm-fig, .wm-head { transform-origin: 50% 100%; }
.wm-arm { transform-origin: 0% 100%; }
.wm-bag { transform-origin: 50% 0%; }
.wm-spark { opacity: 0; transform-origin: 50% 50%; }
/* 1 · Presume su compra */
.wm.play-a .wm-arm { animation: wm-a-arm 1.9s cubic-bezier(.34, 1.56, .64, 1); }
.wm.play-a .wm-bag, .wm.play-c .wm-bag { animation: wm-swing 1.9s ease-in-out; }
@keyframes wm-a-arm { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 60% { transform: rotate(-4deg); } }
@keyframes wm-swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(14deg); } 48% { transform: rotate(-10deg); } 66% { transform: rotate(6deg); } 84% { transform: rotate(-3deg); } }
/* 2 · Salto de alegría */
.wm.play-b .wm-fig { animation: wm-b-jump 1.5s cubic-bezier(.34, 1.56, .64, 1); }
.wm.play-b .wm-arm { animation: wm-b-arm 1.5s ease-in-out; }
.wm.play-b .wm-head { animation: wm-b-head 1.5s ease-in-out; }
@keyframes wm-b-jump { 0%, 100% { transform: none; } 16% { transform: scale(1.06, .9); } 42% { transform: translateY(-14%) scale(.97, 1.04); } 66% { transform: scale(1.04, .95); } 84% { transform: none; } }
@keyframes wm-b-arm { 0%, 100% { transform: rotate(0); } 42% { transform: rotate(-14deg); } 66% { transform: rotate(-3deg); } }
@keyframes wm-b-head { 0%, 100% { transform: rotate(0); } 42% { transform: rotate(-8deg); } 66% { transform: rotate(4deg); } }
/* 3 · Destellos de compra */
.wm.play-c .wm-arm { animation: wm-c-arm 1.9s ease-in-out; }
.wm.play-c .wm-spark { animation: wm-c-spark 1.9s ease-out; }
.wm.play-c .s1 { animation-delay: .12s; } .wm.play-c .s2 { animation-delay: .24s; }
@keyframes wm-c-arm { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } }
@keyframes wm-c-spark { 0%, 12% { opacity: 0; transform: scale(0) translate(-40%, 60%); } 32% { opacity: 1; transform: scale(1.3); } 62%, 100% { opacity: 0; transform: scale(.4) translate(30%, -60%); } }
/* 4 · Saluda */
.wm.play-d .wm-head { animation: wm-d-head 2s ease-in-out; }
.wm.play-d .wm-arm { animation: wm-d-arm 2s ease-in-out; }
.wm.play-d .wm-bag { animation: wm-swing 2s ease-in-out; }
@keyframes wm-d-head { 0%, 100% { transform: rotate(0); } 17% { transform: rotate(-10deg); } 37% { transform: rotate(8deg); } 57% { transform: rotate(0); } }
@keyframes wm-d-arm { 0%, 100% { transform: rotate(0); } 17% { transform: rotate(-16deg); } 31% { transform: rotate(4deg); } 46% { transform: rotate(-12deg); } 60% { transform: rotate(2deg); } 74% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .wm .wm-fig, .wm .wm-fig * { animation: none !important; } }

/* ---------- Ficha de producto (estilo tarjeta) ---------- */
.pdp2 { gap: 18px; }
.pdp2__name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin: 0; }
.pdp2__sub { margin: 6px 0 0; font-size: 14px; color: var(--color-muted-gray); }
.pdp2__sub:empty { display: none; }
.pdp2__pricebox { display: grid; gap: 6px; }
.pdp2__price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.pdp2__price s { font-size: 19px; color: var(--color-muted-gray); font-weight: 400; letter-spacing: -0.02em; }
.pdp2__price b { font-size: clamp(34px, 4.2vw, 44px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--color-ink-black); }
.pdp2__off { background: var(--orange); color: var(--navy); font-weight: 700; font-size: 15px; padding: 5px 10px; border-radius: 8px; letter-spacing: -0.01em; }
.pdp2__pay { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: #0f8a4b; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.pdp2__note { margin: 0; font-size: 14px; color: var(--color-slate-ink); }
.pdp2 .buy { display: grid; gap: 16px; }
.pdp2__opt { display: grid; gap: 10px; }
.pdp2__optlabel { font-size: 15px; color: var(--color-slate-ink); }
.pdp2__optlabel b { font-weight: 600; color: var(--color-ink-black); }
.sizes--dots { gap: 10px; }
.sizes--dots .size span {
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--color-faint-border);
  background: var(--color-canvas-mist); font-size: 15px; font-weight: 500;
}
.sizes--dots .size span:hover { border-color: var(--color-cool-stone); background: #fff; }
.sizes--dots .size input:checked + span {
  background: #fff; color: var(--color-ink-black); border-color: #fff; transform: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-ink-black);
}
.pdp2__acc { display: grid; gap: 10px; }
.pdp2__acc details { border: 1px solid var(--color-faint-border); border-radius: 14px; background: #fff; transition: box-shadow .2s; }
.pdp2__acc details[open] { box-shadow: var(--shadow-sm); }
.pdp2__acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.pdp2__acc summary::-webkit-details-marker { display: none; }
.pdp2__acc summary .ic { color: var(--color-muted-gray); transition: transform .25s var(--ease); }
.pdp2__acc details[open] summary .ic { transform: rotate(45deg); }
.pdp2__acc .acc__body { padding: 0 18px 18px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.pdp2__acc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pdp2__acc li b { font-weight: 600; }
.pdp2__cta {
  width: 100%; height: 58px; border: 0; border-radius: 14px; background: var(--violet); color: #fff; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-lg-2); transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.pdp2__cta:hover { background: var(--violet-press); transform: translateY(-1px); }
.pdp2__cta:active { transform: scale(.98); }
.pdp2__cta:disabled { opacity: .7; cursor: progress; }
@media (max-width: 900px) {
  .gallery__main { aspect-ratio: 1 / .9; }
  .gallery__dots { position: static; padding: 12px 0 0; }
  .gallery__dots i { background: var(--color-cool-stone); }
  .gallery__main { overflow: visible; }
  .gallery__track { border-radius: 0; }
  .pdp2__price s { font-size: 17px; }
}
.pdp2__cta.is-loading { opacity: .75; pointer-events: none; }
.pdp2__hint { margin: -2px 0 0; } .pdp2__hint:empty { display: none; }

/* Cantidad + botón en la ficha */
.pdp2__buy { display: flex; gap: 10px; align-items: stretch; }
.pdp2__buy .pdp2__cta { flex: 1; width: auto; min-width: 0; }
.pdp2__qty { height: 58px; border-radius: 14px; border-color: var(--color-faint-border); background: #fff; flex: none; }
.pdp2__qty input { font-weight: 600; font-size: 17px; }
.pdp2__acc { margin-top: 18px; }
.sticky-buy .p s { color: var(--muted); }
.sticky-buy .qty--sm { background: #fff; flex: none; }
.sticky-buy .qty--sm input { width: 26px; font-weight: 600; }
@media (max-width: 900px) {
  .sticky-buy { padding: 8px 8px 8px 14px; gap: 8px; }
  .sticky-buy .btn { padding: 0 16px; height: 40px; }
}
@media (max-width: 380px) { .pdp2__cta { letter-spacing: .03em; font-size: 15px; } .sticky-buy .p span { display: none; } }

/* Celular: que nombre, precio, talla, cantidad y botón quepan sin desplazarse */
@media (max-width: 900px) {
  .pdp-crumbs { display: none; }
  .pdp { gap: 14px; }
  .gallery__main { aspect-ratio: 4 / 3; }
  .gallery__dots { padding-top: 8px; }
  .pdp2 { gap: 14px; }
  .pdp2__name { font-size: 24px; }
  .pdp2__price b { font-size: 34px; }
  .pdp2__pay { font-size: 15px; }
  .pdp2 .buy { gap: 12px; }
  .pdp2__qty button { width: 46px; height: 46px; }
}
.pdp2__after { display: grid; gap: 4px; }
.pdp2__after .pdp2__pay { margin: 0; }
@media (max-width: 900px) {
  .gallery__main { aspect-ratio: 16 / 10; }
  .pdp2__qty button { width: 40px; height: 40px; }
  .pdp2__qty input { width: 30px; }
  .pdp2__cta { font-size: 15px; letter-spacing: .02em; gap: 8px; padding: 0 10px; }
}
/* Producto completo, sin recorte */
.gallery__track img { padding: 2%; box-sizing: border-box; }
.gallery__thumbs img, .line__img img, .mini__img img, .stack img, .toast img { background: #fff; }
@media (max-width: 900px) { .gallery__main { aspect-ratio: 4 / 3; } }

/* Sello "by m³" (mcubica) */
.logo--by { flex-direction: column; align-items: flex-end; gap: 3px; }
.by-m3 { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; line-height: 1; color: var(--color-muted-gray, #8a8a99); letter-spacing: 0; }
.by-m3 img { width: 15px; height: 15px; display: block; }
.by-m3--light { color: rgba(255, 255, 255, .55); font-size: 12px; }
.by-m3--light img { width: 19px; height: 19px; }
.wordmark { text-align: right; }
.wordmark .by-m3--hero { display: flex; justify-content: flex-end; font-size: 14px; letter-spacing: 0; margin-top: 4px; font-weight: 500; }
.by-m3--hero img { width: 22px; height: 22px; }
@media (max-width: 900px) { .topbar .logo--by { gap: 2px; } .by-m3 { font-size: 10px; } .by-m3 img { width: 13px; height: 13px; } }

/* ===== Logo "Shop": S de cubitos + p mujer con bolsa, siempre en movimiento ===== */
.wm2 { aspect-ratio: 1.954; color: #0b1630; }
.wm2.wm--light { color: #fff; }
.topbar .logo .wm2 { height: 34px; }
.footer .logo .wm2 { height: 44px; }
.wordmark .wm2 { height: 1.25em; }
.wm2 .sx, .wm2 .sp-head, .wm2 .sp-bag, .wm2 .sp-dress, .wm2 .sp-tail { transform-box: fill-box; }
/* la S: una ola que recorre los cubitos */
.wm2 .sx { animation: sx-wave 2.8s ease-in-out infinite; animation-delay: calc(var(--k) * .09s); }
@keyframes sx-wave { 0%, 40%, 100% { transform: translateY(0); } 18% { transform: translateY(-22%); } }
/* la mujer: se balancea, mueve la cabeza y la bolsa */
.wm2 .sp-dress { transform-origin: 50% 100%; animation: sp-sway 2.4s ease-in-out infinite; }
.wm2 .sp-head { transform-origin: 50% 100%; animation: sp-head 2.4s ease-in-out infinite; }
.wm2 .sp-tail { transform-origin: 100% 60%; animation: sp-tail 1.2s ease-in-out infinite; }
.wm2 .sp-bag { transform-origin: 0% 30%; animation: sp-bag 2.4s ease-in-out infinite; }
@keyframes sp-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes sp-head { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6%); } }
@keyframes sp-tail { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@keyframes sp-bag { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .wm2 * { animation: none !important; } }
/* Víbora que arma la S (solo portada) */
.wm2.snaking .sx { opacity: 0; animation: none; }
.wm2.snaking .sx.on { opacity: 1; animation: sx-pop .28s cubic-bezier(.34, 1.56, .64, 1); }
.wm2.snaking .sx.head { filter: brightness(1.18) drop-shadow(0 0 30px rgba(255, 107, 26, .55)); }
@keyframes sx-pop { from { transform: scale(.3); } to { transform: scale(1); } }
.wm2 .sx { transform-origin: 50% 50%; }
.sx-food { fill: #2f6bff; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.sx-food.pop { opacity: 1; animation: sx-food .17s ease-out; }
@keyframes sx-food { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }
