/* =========================================================
   mimo-box · estilos
   6 mundos. Cada mundo define sus colores como variables
   (--brand, --brand2, --bg, --bg2, --ink, --muted, --line, --surface)
   y un modo: body[data-mode="claro"] o body[data-mode="oscuro"].
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; transition: background-color .6s ease, color .6s ease; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tokens ---------- */
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --brand: #ff0a6c; --brand2: #ff6fa8; --bg: #fff; --bg2: #f4f2f7; --ink: #17132b; --muted: #6d6880; --line: #ebe7f0; --surface: #fff;
}
body { font-family: "Nunito", system-ui, sans-serif; background: var(--bg); color: var(--ink); }
body[data-mode="claro"] {
  --surface: #ffffff; --brand-ink: #fff;
  --radius: 28px; --radius-sm: 18px;
  --shadow: 0 22px 44px -22px color-mix(in srgb, var(--brand) 60%, transparent);
  --display: "Fredoka", system-ui, sans-serif; --body: "Nunito", system-ui, sans-serif; --label: "Nunito", system-ui, sans-serif;
  font-family: var(--body);
}
body[data-mode="oscuro"] {
  --brand-ink: #fff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 0 0 1px color-mix(in srgb, var(--brand2) 40%, transparent), 0 18px 50px -18px color-mix(in srgb, var(--brand) 80%, transparent);
  --display: "Fredoka", system-ui, sans-serif; --body: "Space Grotesk", system-ui, sans-serif; --label: "Chakra Petch", system-ui, sans-serif;
  font-family: var(--body);
}

/* ---------- intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 18px; justify-items: center;
  background: #fff; transition: opacity .5s ease, visibility .5s;
}
#intro.out { opacity: 0; visibility: hidden; }
.intro-box { position: relative; width: 170px; height: 130px; animation: introBounce 1s var(--spring) infinite alternate; }
.intro-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: introCycle 2.4s steps(1) infinite; }
.intro-txt { font: 700 18px "Fredoka", sans-serif; color: #17132b; margin: 0; letter-spacing: .02em; }
.intro-txt span { animation: blink 1.2s infinite; }
.intro-txt span:nth-child(2) { animation-delay: .2s; } .intro-txt span:nth-child(3) { animation-delay: .4s; }
@keyframes introBounce { from { transform: translateY(6px) rotate(-4deg) scale(.96); } to { transform: translateY(-14px) rotate(4deg) scale(1.03); } }
@keyframes introCycle { 0% { opacity: 1; } 16.66% { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- wipe (transición entre mundos) ---------- */
#wipe {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center;
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); background: var(--wipe, #ff0a6c);
}
#wipe img { width: min(240px, 50vw); opacity: 0; transform: scale(.6) rotate(-12deg); transition: .45s var(--spring); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }
#wipe.cover { transition: clip-path .65s cubic-bezier(.7, 0, .3, 1); clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); pointer-events: all; }
#wipe.cover img { opacity: 1; transform: scale(1) rotate(0); transition-delay: .25s; }
#wipe.uncover { transition: clip-path .7s cubic-bezier(.7, 0, .3, 1); clip-path: circle(0 at 50% 50%); }

/* =========================================================
   efectos de fondo (compartidos por inicio y tiendas)
   ========================================================= */
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.parts span { position: absolute; bottom: -40px; animation: rise linear infinite; opacity: 0; will-change: transform; color: var(--brand); }
.m-oscuro .parts span, .wcard.oscuro .parts span { color: var(--brand2); text-shadow: 0 0 10px currentColor; }
@keyframes rise {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .7; }
  100% { transform: translateY(-115vh) rotate(var(--r, 180deg)) translateX(var(--dx, 30px)); opacity: 0; }
}
.fx-burbujas .parts span { animation-duration: 18s !important; opacity: .5; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(10px); opacity: .7; animation: morph 12s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); }
  33% { border-radius: 63% 37% 41% 59% / 58% 63% 37% 42%; transform: translate(20px, -30px) rotate(40deg); }
  66% { border-radius: 37% 63% 56% 44% / 49% 37% 63% 51%; transform: translate(-25px, 15px) rotate(-20deg); }
}
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background-image: linear-gradient(color-mix(in srgb, var(--brand2) 40%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand2) 40%, transparent) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 40%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  animation: gridMove 2.4s linear infinite;
}
@keyframes gridMove { to { background-position: 0 60px, 0 0; } }
.stripes {
  position: absolute; inset: -20%; opacity: .14;
  background: repeating-linear-gradient(-55deg, var(--brand) 0 22px, transparent 22px 64px);
  animation: stripes 3s linear infinite;
}
@keyframes stripes { to { background-position: 136px 0; } }
.speed span {
  position: absolute; left: 0; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand2));
  box-shadow: 0 0 12px var(--brand); animation: speed linear infinite;
}
@keyframes speed { 0% { transform: translateX(110vw); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateX(-40vw); opacity: 0; } }

/* =========================================================
   INICIO · 6 mundos
   ========================================================= */
.home { min-height: 100vh; background: radial-gradient(80% 60% at 50% 0%, #fff 0%, #f6f3f8 100%); color: #17132b; padding-bottom: 60px; }
.home-top { text-align: center; padding: 46px 20px 34px; display: grid; justify-items: center; gap: 8px; }
.logo-cycle { position: relative; width: min(360px, 74vw); aspect-ratio: 900 / 470; }
.logo-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease, transform .6s var(--spring); transform: scale(.94) rotate(-2deg); }
.logo-cycle img.on { opacity: 1; transform: none; }
.home-top h1 { font: 700 clamp(30px, 4.4vw, 52px)/1.05 "Fredoka", sans-serif; margin: 10px 0 0; letter-spacing: -.01em; }
.home-top h1 .rot { display: inline-block; min-width: 4ch; transition: color .5s; }
.home-top p { margin: 0; color: #6d6880; font-size: 17px; }
.worlds { width: min(1240px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wcard {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; min-height: 440px; padding: 26px 26px 24px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: radial-gradient(120% 90% at 80% 0%, var(--bg2) 0%, var(--bg) 70%); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: 0 20px 40px -30px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: transform .6s var(--spring), box-shadow .5s;
  opacity: 0; animation: cardIn .8s var(--ease) forwards; animation-delay: var(--d, 0s);
}
@keyframes cardIn { from { opacity: 0; translate: 0 40px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.wcard.oscuro { background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--brand) 30%, var(--bg)) 0%, var(--bg) 70%); border-color: color-mix(in srgb, var(--brand2) 30%, transparent); }
.wcard:hover { transform: translateY(-10px) rotate(-.5deg); box-shadow: 0 34px 60px -28px color-mix(in srgb, var(--brand) 80%, transparent); }
.wcard .w-mascot { position: absolute; z-index: 1; top: 20px; right: 16px; width: 50%; max-width: 210px; animation: floaty 5s ease-in-out infinite; animation-delay: var(--fd, 0s); transition: transform .6s var(--spring); }
.wcard.oscuro .w-mascot { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .7)) drop-shadow(0 0 26px color-mix(in srgb, var(--brand) 55%, transparent)); }
.wcard:hover .w-mascot { transform: scale(1.12) rotate(-8deg); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.wcard > *:not(.fx):not(.w-mascot) { position: relative; z-index: 2; }
.wcard h2 { font: 700 clamp(30px, 3vw, 40px)/1 "Fredoka", sans-serif; margin: 0; }
.wcard h2 em { font-style: normal; color: var(--brand); }
.wcard.oscuro h2 { font-family: "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.wcard.oscuro h2 em { color: var(--brand2); text-shadow: 0 0 20px color-mix(in srgb, var(--brand2) 60%, transparent); }
.wcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 30ch; }
.w-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; width: min(100%, 330px); margin: 6px 0 10px; }
.w-chips span {
  --tone: var(--brand); display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 10px 1px; border-radius: 99px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 800 14px/1 "Poppins", "Fredoka", sans-serif; letter-spacing: -.01em; color: #fff; background: var(--tone);
  box-shadow: 0 8px 16px -10px var(--tone); transition: transform .45s var(--spring);
  transition-delay: calc(var(--i) * 40ms);
}
.w-chips span:nth-child(4n+2) { --tone: color-mix(in srgb, var(--brand) 72%, var(--brand2)); }
.w-chips span:nth-child(4n+3) { --tone: color-mix(in srgb, var(--brand) 70%, #000); }
.w-chips span:nth-child(4n+4) { --tone: color-mix(in srgb, var(--brand) 86%, #000); }
.wcard:hover .w-chips span { transform: translateY(-3px); }
.wcard.oscuro .w-chips span { border-radius: 8px; }
.w-cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 12px 20px; border-radius: 99px; font-weight: 800; font-size: 15px; background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px var(--brand); transition: transform .4s var(--spring); }
.wcard.oscuro .w-cta { border-radius: 8px; font-family: "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.w-cta .arr { transition: transform .4s var(--spring); }
.wcard:hover .w-cta { transform: translateY(-2px) scale(1.04); }
.wcard:hover .w-cta .arr { transform: translateX(5px); }
.home-foot { text-align: center; color: #6d6880; font-size: 14px; margin-top: 40px; }

/* =========================================================
   TIENDA · estructura compartida
   ========================================================= */
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background .4s, box-shadow .4s; }
.nav.scrolled { backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); background: color-mix(in srgb, var(--bg) 84%, transparent); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px color-mix(in srgb, var(--brand) 50%, transparent); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 46px; width: auto; transition: transform .4s var(--spring); }
.nav-logo:hover img { transform: rotate(-4deg) scale(1.06); }
.wsw-row { display: flex; gap: 6px; }
.wsw {
  --c: var(--brand); position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 4px;
  border-radius: 99px; text-decoration: none; font-weight: 800; font-size: 13px; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 2px solid transparent; transition: transform .35s var(--spring), border-color .3s, background .3s;
}
.wsw img { width: 32px; height: 32px; object-fit: contain; transition: transform .5s var(--spring); }
.wsw span { display: none; padding-right: 8px; }
.wsw:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 22%, transparent); }
.wsw:hover img { transform: rotate(-14deg) scale(1.15); }
.wsw.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
.wsw.on span { display: inline; }
.wsw::after {
  content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 5px 9px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap;
}
.wsw:not(.on):hover::after { opacity: 1; translate: -50% 0; }
.m-oscuro .wsw img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)); }
.search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 99px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.m-oscuro .search input { border-radius: 8px; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; opacity: .55; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand); color: var(--brand-ink); transition: transform .35s var(--spring);
}
.m-oscuro .cart-btn { border-radius: 10px; box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 60%, transparent); }
.cart-btn:hover { transform: scale(1.08); }
.cart-btn.bump { animation: bump .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.9) rotate(6deg); } }
.cart-btn .count {
  position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font: 800 12px/22px var(--body); text-align: center; transform: scale(0); transition: transform .4s var(--spring);
}
.cart-btn .count.on { transform: scale(1); }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.m-claro .hero { background: radial-gradient(90% 80% at 85% 30%, var(--bg2) 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--bg2) 60%, var(--bg)) 0%, transparent 60%); }
.m-oscuro .hero { background: radial-gradient(70% 70% at 80% 30%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%), radial-gradient(50% 50% at 0% 0%, color-mix(in srgb, var(--brand2) 14%, transparent), transparent 70%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: calc(100vh - 76px); max-height: 860px; padding: 40px 0 90px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 13px var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.m-oscuro .kicker { color: var(--brand2); }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { font: 700 clamp(48px, 7.4vw, 104px)/.95 var(--display); margin: 0 0 22px; letter-spacing: -.02em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .w { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; }
@keyframes wordUp { to { transform: none; } }
.m-claro .hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.m-claro .hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em; border-radius: 99px; background: var(--brand2); opacity: .4; z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: underline .9s var(--ease) 1s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.m-oscuro .hero h1 { font-family: var(--label); text-transform: uppercase; }
.m-oscuro .hero h1 .line:first-child .w { color: #fff; text-shadow: 0 0 40px color-mix(in srgb, var(--brand2) 50%, transparent); }
.m-oscuro .hero h1 em {
  font-style: normal; font-family: var(--display); text-transform: none; background: linear-gradient(90deg, var(--brand2), var(--brand), var(--brand2));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--brand); animation: glitch 5s infinite steps(1); }
.glitch::after { color: var(--brand2); animation: glitch 5s infinite steps(1) .1s; }
@keyframes glitch {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; }
  93% { opacity: .8; transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
  95% { opacity: .8; transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); }
  97% { opacity: .8; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
/* toque deportivo: títulos en itálica dinámica */
.w-deportes .hero h1 .line { transform: skewX(-8deg); }
.w-deportes .hero h1 { text-transform: uppercase; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 0 32px; opacity: 0; animation: fadeUp .8s var(--ease) .7s forwards; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s var(--ease) .85s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px;
  font-weight: 800; font-size: 16px; text-decoration: none; border-radius: 99px; position: relative; overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .35s, background .3s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { border: 2px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.m-oscuro .btn { border-radius: 8px; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-mascot { position: relative; z-index: 2; width: min(420px, 88%); animation: heroFloat 6s ease-in-out infinite; }
.hero-mascot.wink { animation: wink .7s var(--spring); }
.m-oscuro .hero-mascot { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7)) drop-shadow(0 0 40px color-mix(in srgb, var(--brand2) 45%, transparent)); }
@keyframes heroFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes wink { 30% { transform: scale(1.12) rotate(-8deg); } 60% { transform: scale(.95) rotate(5deg); } }
.m-claro .hero-art::before {
  content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--brand2) 45%, #fff) 70%);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--brand) 55%, transparent); animation: morph 14s ease-in-out infinite;
}
.m-oscuro .hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; z-index: 0; border: 1.5px dashed color-mix(in srgb, var(--brand2) 50%, transparent); animation: spin 30s linear infinite; }
.m-oscuro .hero-art::after { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; z-index: 0; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); filter: blur(10px); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
.orbit { position: absolute; inset: 0; z-index: 3; pointer-events: none; animation: spin 24s linear infinite; }
.orbit span { position: absolute; font-size: 38px; animation: spin 24s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; opacity: 0; animation: fadeUp .8s var(--ease) 1s forwards; }
.hero-stats b { display: block; font: 700 32px var(--display); color: var(--ink); }
.m-oscuro .hero-stats b { font-family: var(--label); }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 700; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 99px; opacity: .6; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--muted); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.scanlines { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.cursor-glow { position: fixed; z-index: 0; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; left: 0; top: 0; translate: -50% -50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); transition: transform .15s linear; }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; padding: 16px 0; position: relative; z-index: 2; color: #fff; }
.marquee-track { display: inline-flex; gap: 40px; animation: marq 30s linear infinite; padding-left: 40px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 700 17px var(--display); display: inline-flex; gap: 40px; align-items: center; }
@keyframes marq { to { transform: translateX(-50%); } }
.m-claro .marquee { background: var(--brand); transform: rotate(-1.4deg); margin: -26px -10px 0; }
.w-deportes .marquee { transform: rotate(-2.5deg) skewX(-10deg); }
.m-oscuro .marquee { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000), var(--brand)); border-block: 1px solid var(--brand2); box-shadow: 0 0 40px color-mix(in srgb, var(--brand) 50%, transparent); }
.m-oscuro .marquee span { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.w-autos .marquee { border-block: 6px solid transparent; border-image: repeating-linear-gradient(90deg, #fff 0 12px, #111 12px 24px) 6; }

/* secciones */
.section { padding: 100px 0 40px; position: relative; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { font: 700 clamp(32px, 4vw, 50px)/1 var(--display); margin: 0; letter-spacing: -.01em; }
.sec-head h2 em { font-style: normal; color: var(--brand); }
.m-oscuro .sec-head h2 em { color: var(--brand2); }
.sec-head p { margin: 8px 0 0; color: var(--muted); }

/* categorías */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  display: grid; justify-items: center; gap: 10px; padding: 22px 8px 18px; text-align: center; font-weight: 800; font-size: 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .45s var(--spring), border-color .3s, box-shadow .3s, background .3s;
}
.cat .ic { font-size: 38px; line-height: 1; transition: transform .5s var(--spring); }
.cat:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.cat:hover .ic { transform: scale(1.25) rotate(-10deg); }
.cat.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.m-oscuro .cat { font-family: var(--label); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 99px; font-weight: 800; font-size: 14px; border: 1.5px solid var(--line); background: var(--surface);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-oscuro .chip { border-radius: 6px; font-family: var(--label); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.m-oscuro .chip.active { background: var(--brand); border-color: var(--brand2); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 60%, transparent); }
.sort { margin-left: auto; height: 42px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.m-oscuro .sort { border-radius: 8px; }
.m-oscuro .sort option { background: var(--bg2); }
.results { font-size: 14px; color: var(--muted); font-weight: 700; }

/* grilla */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty img { width: 140px; margin: 0 auto 16px; opacity: .85; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid var(--line); transition: transform .5s var(--spring), box-shadow .4s, border-color .4s; transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.m-claro .card { box-shadow: 0 10px 30px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.m-claro .card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow); }
.tile {
  position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; overflow: hidden; cursor: pointer; isolation: isolate;
  background: var(--tile, var(--bg2));
}
.tile::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: rgba(255, 255, 255, .55); transition: transform .7s var(--spring); }
.m-oscuro .tile::before { background: radial-gradient(circle, color-mix(in srgb, var(--brand2) 45%, transparent), transparent 65%); }
.card:hover .tile::before { transform: scale(1.18); }
.tile .em { font-size: clamp(76px, 7vw, 96px); line-height: 1; transition: transform .6s var(--spring); filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .18)); }
.tile img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .tile .em { transform: scale(1.14) rotate(-8deg) translateY(-6px); }
.card:hover .tile img.ph { transform: scale(1.06); }
.m-oscuro .tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand2) 25%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.m-oscuro .card:hover .tile::after { opacity: 1; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 11px; font: 800 12px var(--label); border-radius: 99px; background: var(--brand); color: #fff; letter-spacing: .03em; }
.m-oscuro .badge { border-radius: 4px; text-transform: uppercase; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--brand2); border: 1px solid var(--brand2); backdrop-filter: blur(6px); }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); font-size: 18px; transition: transform .4s var(--spring); }
.m-oscuro .fav { background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); border-radius: 8px; }
.fav:hover { transform: scale(1.15); }
.fav.on { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.45); } }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font: 800 11px var(--label); text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
.m-oscuro .card-cat { color: var(--brand2); }
.card h3 { margin: 0; font: 700 19px/1.2 var(--display); cursor: pointer; }
.m-oscuro .card h3 { font-family: var(--body); font-size: 18px; }
.stars { font-size: 13px; color: #f5a524; font-weight: 800; }
.stars small { color: var(--muted); font-weight: 700; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { min-width: 0; }
.price b { display: block; font: 700 23px var(--display); letter-spacing: -.01em; white-space: nowrap; }
.m-oscuro .price b { font-family: var(--label); font-size: 22px; }
.price s { font-size: 13px; color: var(--muted); }
.price small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.add { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 22px; transition: transform .4s var(--spring), box-shadow .3s; box-shadow: var(--shadow); }
.m-oscuro .add { border-radius: 10px; }
.add:hover { transform: scale(1.12) rotate(90deg); }
.add.done { animation: bump .6s var(--spring); }
.m-oscuro .card::before, .m-oscuro .card::after { content: ""; position: absolute; width: 16px; height: 16px; z-index: 3; pointer-events: none; transition: .4s var(--ease); opacity: 0; }
.m-oscuro .card::before { top: 8px; left: 8px; border-top: 2px solid var(--brand2); border-left: 2px solid var(--brand2); }
.m-oscuro .card::after { bottom: 8px; right: 8px; border-bottom: 2px solid var(--brand2); border-right: 2px solid var(--brand2); }
.m-oscuro .card:hover::before { opacity: 1; top: 4px; left: 4px; }
.m-oscuro .card:hover::after { opacity: 1; bottom: 4px; right: 4px; }
.m-oscuro .card.tilting { transition: transform .12s linear, box-shadow .4s, border-color .4s; }
.m-oscuro .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* promo */
.promo {
  margin: 100px 0 0; border-radius: calc(var(--radius) + 8px); padding: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px;
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 80%, #000), var(--brand) 55%, var(--brand2));
}
.m-oscuro .promo { box-shadow: 0 0 0 1px var(--brand2), 0 30px 80px -30px color-mix(in srgb, var(--brand) 90%, transparent); }
.promo h2 { font: 700 clamp(32px, 4.2vw, 56px)/1 var(--display); margin: 0 0 14px; }
.promo p { margin: 0 0 26px; max-width: 52ch; line-height: 1.6; opacity: .92; font-size: 17px; }
.promo .btn-primary { background: #fff; color: #111; }
.promo-art { width: 260px; animation: heroFloat 5s ease-in-out infinite; filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .25)); }
.promo .parts span { color: rgba(255, 255, 255, .8) !important; text-shadow: none !important; }

/* beneficios */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 80px 0 20px; }
.perk { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); }
.perk .ic { font-size: 28px; width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); }
.m-oscuro .perk .ic { border-radius: 10px; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.perk b { display: block; font-size: 15px; }
.perk span { font-size: 13px; color: var(--muted); }

/* otros mundos (al pie de cada tienda) */
.more { padding: 90px 0 10px; }
.more-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.more a {
  --c: var(--brand); display: grid; justify-items: center; gap: 6px; padding: 18px 10px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 800;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .45s var(--spring), box-shadow .3s;
}
.more a img { width: 74px; transition: transform .5s var(--spring); }
.more a:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -18px var(--c); }
.more a:hover img { transform: rotate(-10deg) scale(1.12); }
.m-oscuro .more a img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)); }

/* footer */
.foot { margin-top: 80px; padding: 50px 0 40px; border-top: 1.5px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.foot img { height: 54px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--brand); }
.foot small { display: block; width: 100%; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.m-oscuro .rv { transform: translateY(34px) scale(.97); filter: blur(4px); transition-property: opacity, transform, filter; }
.m-oscuro .rv.in { transform: none; filter: none; }

/* =========================================================
   carrito
   ========================================================= */
#scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10, 6, 20, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
#scrim.on { opacity: 1; }
#cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); transform: translateX(105%); transition: transform .55s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4);
}
body[data-mode="oscuro"] #cart { background: var(--bg2); border-left: 1px solid var(--line); }
#cart.on { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1.5px solid var(--line); }
.cart-head h2 { margin: 0; font: 700 24px var(--display, "Fredoka"); }
.cart-head h2 span { color: var(--brand); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--bg2); transition: transform .3s var(--spring); }
.icon-btn:hover { transform: rotate(90deg); }
#cart-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart-list { flex: 1; overflow-y: auto; padding: 10px 24px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeUp .4s var(--ease) both; }
.ci-tile { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: var(--tile); overflow: hidden; }
.ci-tile img { width: 100%; height: 100%; object-fit: cover; }
.ci h4 { margin: 0 0 2px; font-size: 15px; line-height: 1.25; }
.ci small { color: var(--muted); font-size: 12px; display: block; }
.ci small i { font-style: normal; font-weight: 800; color: var(--c, var(--brand)); }
.ci .pr { font-weight: 800; font-size: 15px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty button { width: 30px; height: 30px; font-weight: 800; }
.qty button:hover { background: var(--bg2); color: var(--brand); }
.qty span { min-width: 24px; text-align: center; font-weight: 800; font-size: 14px; }
.rm { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 6px; display: block; }
.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; gap: 10px; }
.cart-empty img { width: 150px; animation: heroFloat 5s ease-in-out infinite; }
.cart-empty p { color: var(--muted); margin: 0 0 10px; }
.cart-foot { padding: 20px 24px 26px; border-top: 1.5px solid var(--line); display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; font-size: 15px; }
.row.total { font: 700 22px var(--display, "Fredoka"); margin-top: 4px; }
.ship-bar { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 4px 0 2px; }
body[data-mode="oscuro"] .ship-bar { background: var(--bg); }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: inherit; transition: width .6s var(--ease); }
.ship-msg { font-size: 13px; color: var(--muted); font-weight: 700; }
.cart-foot .btn { width: 100%; margin-top: 8px; }
.wa-btn { background: #25d366 !important; color: #fff !important; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .7) !important; }
.checkout { padding: 10px 24px 24px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.checkout label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.checkout input, .checkout select, .checkout textarea { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; outline: none; font-size: 15px; font-weight: 600; }
body[data-mode="oscuro"] .checkout select option { background: var(--bg2); }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--brand); }
.back-link { font-size: 14px; font-weight: 800; color: var(--brand); justify-self: start; }
.ok-screen { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px; }
.ok-screen img { width: 170px; animation: wink .8s var(--spring) 2; }
.ok-screen h3 { font: 700 28px var(--display, "Fredoka"); margin: 0; }
.ok-screen p { color: var(--muted); margin: 0 0 12px; }

/* =========================================================
   modal producto
   ========================================================= */
#modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10, 6, 20, .5); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#modal.on { opacity: 1; visibility: visible; }
.modal-card {
  width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); color: var(--ink); border-radius: calc(var(--radius) + 6px); transform: translateY(30px) scale(.96); transition: transform .5s var(--spring); position: relative;
}
body[data-mode="oscuro"] .modal-card { background: var(--bg2); border: 1px solid var(--brand2); box-shadow: 0 0 60px color-mix(in srgb, var(--brand) 40%, transparent); }
#modal.on .modal-card { transform: none; }
.modal-card .tile { aspect-ratio: auto; min-height: 420px; border-radius: 0; }
.modal-card .tile .em { font-size: 160px; animation: heroFloat 5s ease-in-out infinite; }
.m-body { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.m-body h3 { font: 700 32px/1.1 var(--display); margin: 0; }
.m-body p { margin: 0; color: var(--muted); line-height: 1.6; }
.m-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 9px 15px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; transition: .25s; }
.opt:hover { border-color: var(--brand); }
.opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
body[data-mode="oscuro"] .opt { border-radius: 6px; }
.m-label { font: 800 12px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 10px; }
.m-buy .qty { height: 54px; } .m-buy .qty button { width: 42px; height: 52px; font-size: 18px; }
.m-buy .btn { flex: 1; }
.m-price b { font: 700 36px var(--display); }
.m-price s { color: var(--muted); margin-left: 8px; }
.m-price small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.m-perks { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 700; padding: 14px 0 0; border-top: 1.5px solid var(--line); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 95; translate: -50% calc(100% + 60px); visibility: hidden; padding: 14px 20px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; display: flex; gap: 10px; align-items: center;
  transition: translate .5s var(--spring), visibility .5s; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); white-space: nowrap;
}
body[data-mode="oscuro"] #toast { border-radius: 10px; background: var(--bg2); color: var(--ink); border: 1px solid var(--brand2); box-shadow: 0 0 30px color-mix(in srgb, var(--brand) 60%, transparent); }
#toast.on { translate: -50% 0; visibility: visible; }
.flyer { position: fixed; z-index: 99; pointer-events: none; font-size: 44px; line-height: 1; will-change: transform; }
.burst { position: fixed; z-index: 99; pointer-events: none; font-size: 16px; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1080px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-in { flex-wrap: wrap; gap: 10px; padding: 10px 0; min-height: 0; }
  .search { display: none; }
  .search.mobile { display: block; max-width: none; margin: 0 0 18px; }
  .nav-logo { margin-right: auto; }
  .wsw-row { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .wsw-row::-webkit-scrollbar { display: none; }
  .wsw { height: 38px; flex: none; }
  .wsw img { width: 28px; height: 28px; }
  .wsw span { display: inline; }
  .wsw::after { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; max-height: none; padding: 30px 0 80px; text-align: center; }
  .hero-art { order: -1; min-height: 280px; }
  .hero-mascot { width: min(300px, 75%); }
  .hero p.lead { margin-inline: auto; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .kicker { justify-content: center; }
  .kicker::before { display: none; }
  .promo { grid-template-columns: 1fr; padding: 36px 26px; text-align: center; }
  .promo p { margin-inline: auto; }
  .promo-art { width: 180px; margin: 0 auto; order: -1; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-card .tile { min-height: 260px; }
  .modal-card .tile .em { font-size: 120px; }
  .m-body { padding: 26px 22px; }
}
@media (min-width: 821px) { .search.mobile { display: none; } }
@media (max-width: 620px) {
  .worlds { grid-template-columns: 1fr; gap: 16px; width: calc(100% - 28px); }
  .wcard { min-height: 0; padding: 40px 20px 20px; }
  .wcard .w-mascot { width: 40%; top: 18px; right: 10px; }
  .wcard h2, .wcard p { max-width: 58%; }
  .w-chips span { height: 30px; padding: 0 8px 1px; font-size: 12.5px; }
    .home-top { padding: 30px 16px 24px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { padding: 14px 4px 12px; font-size: 11px; }
  .cat .ic { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card h3 { font-size: 15px !important; }
  .price b { font-size: 16px !important; }
  .price s { font-size: 11px; }
  .price small { display: none; }
  .badge { top: 10px; left: 10px; font-size: 10px; padding: 5px 8px; }
  .fav { width: 34px; height: 34px; font-size: 15px; }
  .add { width: 40px; height: 40px; font-size: 18px; }
  .tile .em { font-size: 60px; }
  .perks { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-logo img { height: 38px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 24px; }
  .sort { margin-left: 0; width: 100%; }
  .section { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .parts, .orbit, .grid-floor, .stripes, .speed { display: none; }
}

/* =========================================================
   LANDING DE PRODUCTO (#/p/<slug>)
   ========================================================= */
.tile.has-photo { background: #fff; }
.tile.has-photo::before { display: none; }
.pdp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 18px 0 70px; }
.m-claro .pdp-hero { background: radial-gradient(70% 70% at 90% 10%, var(--bg2), transparent 60%), radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--bg2) 70%, var(--bg)), transparent 60%); }
.m-oscuro .pdp-hero { background: radial-gradient(60% 60% at 80% 20%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%); }
.pdp-hero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; margin: 6px 0 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.pdp-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: start; }

/* galería */
.gal { position: sticky; top: 96px; display: grid; gap: 14px; opacity: 0; animation: fadeUp .8s var(--ease) .1s forwards; }
.gal-main {
  position: relative; aspect-ratio: 1; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #fff; cursor: zoom-in; touch-action: pan-y;
  border: 1.5px solid var(--line); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--brand) 60%, transparent);
}
.gal-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease), opacity .25s ease, filter .25s ease; user-select: none; -webkit-user-drag: none; }
.gal-main img.swap { opacity: 0; filter: blur(6px); transform: scale(1.03); }
.gal-main.zoom img { transform: scale(1.9); }
.gal-main .badge { z-index: 3; top: 18px; left: 18px; font-size: 13px; padding: 7px 13px; }
.gal-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #222; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .3s, transform .3s var(--spring);
}
.gal-nav.prev { left: 14px; } .gal-nav.next { right: 14px; }
.gal-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:hover { transform: scale(1.1); }
.gal-count { position: absolute; right: 16px; bottom: 14px; z-index: 3; padding: 5px 11px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 800; }
.gal-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.gal-th { flex: none; width: 74px; height: 74px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .65; transition: opacity .25s, border-color .25s, transform .3s var(--spring); }
.gal-th img { width: 100%; height: 100%; object-fit: cover; }
.gal-th:hover { opacity: 1; transform: translateY(-3px); }
.gal-th.on { opacity: 1; border-color: var(--brand); }

/* bloque de compra */
.buy { padding-top: 6px; }
.buy .kicker { margin-bottom: 12px; }
.buy h1 { font: 700 clamp(44px, 5.6vw, 78px)/.95 var(--display); margin: 0 0 12px; letter-spacing: -.02em; }
.buy h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.buy h1 .w { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; }
.m-claro .buy h1 em { font-style: normal; color: var(--brand); }
.pdp-name { font: 800 17px/1.35 var(--body); margin: 0 0 8px; color: var(--ink); opacity: .85; }
.buy .lead { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 10px 0 16px; opacity: 0; animation: fadeUp .8s var(--ease) .45s forwards; }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.pdp-chips span {
  --tone: var(--brand); display: inline-flex; align-items: center; height: 34px; padding: 0 15px 1px; border-radius: 99px; color: #fff; background: var(--tone);
  font: 800 14px/1 "Poppins", "Fredoka", sans-serif; text-transform: lowercase; opacity: 0; animation: chipIn .6s var(--spring) forwards; animation-delay: calc(.55s + var(--i) * 70ms);
}
.pdp-chips span:nth-child(4n+2) { --tone: color-mix(in srgb, var(--brand) 72%, var(--brand2)); }
.pdp-chips span:nth-child(4n+3) { --tone: color-mix(in srgb, var(--brand) 70%, #000); }
.pdp-chips span:nth-child(4n+4) { --tone: color-mix(in srgb, var(--brand) 86%, #000); }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.pdp-price { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); margin-bottom: 16px; }
.pdp-price s { color: var(--muted); font-size: 15px; }
.pdp-price div { display: flex; align-items: center; gap: 12px; }
.pdp-price b { font: 700 44px/1.05 var(--display); letter-spacing: -.02em; }
.pdp-price .off { padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 900; font-size: 14px; }
.pdp-price small { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-top: 4px; }
.buy .m-buy { margin: 0 0 10px; padding: 0; }
.btn-buy-now { width: 100%; background: var(--ink); color: var(--bg); }
.btn-buy-now:hover { transform: translateY(-2px); }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.trust li span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); font-size: 16px; }

/* beneficios */
.pdp-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pben { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); transition: transform .5s var(--spring), box-shadow .4s; }
.pben:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow); }
.pben .ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-size: 28px; background: var(--bg2); margin-bottom: 16px; transition: transform .5s var(--spring); }
.pben:hover .ic { transform: rotate(-10deg) scale(1.12); }
.pben h3 { margin: 0 0 6px; font: 700 21px var(--display); }
.pben p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

/* bloques foto + texto */
.pdp-rows .wrap { display: grid; gap: 70px; }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prow.flip .prow-img { order: 2; }
.prow-img { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--brand) 60%, transparent); }
.prow-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.prow:hover .prow-img img { transform: scale(1.05); }
.prow-img.rv { transform: translateX(-50px) rotate(-2deg); }
.prow.flip .prow-img.rv { transform: translateX(50px) rotate(2deg); }
.prow-img.rv.in, .prow.flip .prow-img.rv.in { transform: none; }
.prow-n { display: inline-block; font: 700 56px/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--brand); margin-bottom: 8px; }
.prow-txt h3 { font: 700 clamp(30px, 3.4vw, 44px)/1.05 var(--display); margin: 0 0 14px; }
.prow-txt p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 17px; max-width: 44ch; }

/* pasos */
.pdp-steps-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--brand), var(--brand2)); opacity: .35; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px 20px 0; position: relative; }
.steps li b { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 24px var(--display); color: #fff; background: var(--brand); box-shadow: 0 0 0 6px var(--bg), var(--shadow); position: relative; z-index: 1; }
.steps li h3 { margin: 6px 0 4px; font: 700 21px var(--display); }
.steps li p { margin: 0; color: var(--muted); line-height: 1.55; }
.steps-img img { width: 100%; border-radius: calc(var(--radius) + 6px); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--brand) 60%, transparent); }

/* ficha + cuidados */
.pdp-spec { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.spec-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); overflow: hidden; }
.spec-card h3 { margin: 0 0 16px; font: 700 26px var(--display); }
.spec-card dl { margin: 0; display: grid; }
.spec-card dl div { display: grid; grid-template-columns: 45% 55%; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-card dl div:last-child { border-bottom: 0; }
.spec-card dt { color: var(--muted); font-weight: 700; font-size: 14.5px; }
.spec-card dd { margin: 0; font-weight: 800; font-size: 14.5px; }
.spec-card ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); line-height: 1.5; }
.spec-card ul li::marker { color: var(--brand); }
.spec-card img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 82%; }

/* preguntas frecuentes */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 18px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--brand); font-size: 20px; transition: transform .4s var(--spring), background .3s, color .3s; }
.faq details[open] summary span { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.65; animation: fadeUp .4s var(--ease); }

.pdp-promo-img { border-radius: 28px; width: 240px; aspect-ratio: 1; object-fit: cover; background: #fff; }
.pdp .more .sec-head { align-items: center; }

/* barra de compra fija */
.sticky-buy {
  position: fixed; left: 50%; bottom: 18px; z-index: 50; width: min(760px, calc(100% - 24px)); translate: -50% 140%;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); transition: translate .6s var(--spring);
}
.sticky-buy.on { translate: -50% 0; }
.sticky-buy img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: #fff; flex: none; }
.sb-txt { flex: 1; min-width: 0; display: grid; }
.sb-txt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-txt span { font: 700 20px var(--display); }
.sb-txt i { font: 900 12px var(--body); font-style: normal; color: var(--brand); }
.sticky-buy .btn { height: 50px; padding: 0 22px; flex: none; }
body:has(.sticky-buy.on) #toast { bottom: 100px; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .gal { position: static; }
  .pdp-benefits { grid-template-columns: repeat(2, 1fr); }
  .prow, .pdp-steps-grid, .pdp-spec { grid-template-columns: 1fr; gap: 26px; }
  .prow.flip .prow-img { order: 0; }
  .steps-img { order: -1; }
}
@media (max-width: 560px) {
  .crumbs b { max-width: 20ch; }
  .gal-nav { opacity: 1; width: 38px; height: 38px; font-size: 22px; }
  .gal-th { width: 60px; height: 60px; border-radius: 12px; }
  .buy h1 { font-size: 46px; }
  .pdp-price b { font-size: 36px; }
  .pdp-benefits { grid-template-columns: 1fr; }
  .pdp-rows .wrap { gap: 46px; }
  .prow-n { font-size: 44px; }
  .prow-txt p { font-size: 16px; }
  .spec-card { padding: 22px; }
  .spec-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .sticky-buy { bottom: 10px; border-radius: 18px; gap: 10px; }
  .sticky-buy img { width: 44px; height: 44px; }
  .sb-txt b { font-size: 12.5px; }
  .sb-txt span { font-size: 17px; }
  .sticky-buy .btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .pdp-promo-img { width: 170px; }
}

/* ---------- landing: "Así llega tu mimo" (caja animada + video) ---------- */
.unbox { overflow: hidden; }
.unbox-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.lift-wrap { position: relative; }
.lift-wrap::before {
  content: ""; position: absolute; inset: 8% 6% 0; border-radius: 50%; z-index: 0; filter: blur(40px);
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%);
}
.lift { position: relative; z-index: 1; aspect-ratio: 1402 / 1122; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--brand) 70%, transparent); }
.lift img { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-prod { animation: liftUp 5.2s cubic-bezier(.45, 0, .2, 1) infinite; transform-origin: 48% 78%; will-change: transform; }
@keyframes liftUp {
  0%, 14% { transform: translateY(0) rotate(0); }
  34% { transform: translateY(-14%) rotate(-3deg); }
  46% { transform: translateY(-11.5%) rotate(2deg); }
  58% { transform: translateY(-13.5%) rotate(-1deg); }
  78% { transform: translateY(1.2%) rotate(0); }
  86%, 100% { transform: translateY(0) rotate(0); }
}
.spark { position: absolute; z-index: 3; color: var(--brand); font-size: clamp(16px, 2vw, 28px); opacity: 0; text-shadow: 0 0 12px #fff; animation: spark 5.2s ease-in-out infinite; pointer-events: none; }
.spark.s1 { left: 30%; top: 28%; } .spark.s2 { left: 64%; top: 22%; animation-delay: .15s; }
.spark.s3 { left: 70%; top: 40%; animation-delay: .3s; } .spark.s4 { left: 26%; top: 46%; animation-delay: .45s; }
@keyframes spark { 0%, 24% { opacity: 0; transform: scale(.3) rotate(0); } 38% { opacity: 1; transform: scale(1.2) rotate(40deg); } 56% { opacity: .9; transform: scale(.9) rotate(80deg); } 70%, 100% { opacity: 0; transform: scale(.4) rotate(120deg); } }
.unbox-txt h2 { font: 700 clamp(40px, 5vw, 66px)/1 var(--display); margin: 0 0 16px; letter-spacing: -.02em; }
.unbox-txt h2 em { font-style: normal; color: var(--brand); }
.unbox-txt > p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 18px; max-width: 46ch; }
.unbox-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.unbox-list li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.unbox-list li span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.reel { position: relative; grid-column: 1 / -1; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: #000; box-shadow: 0 50px 90px -45px color-mix(in srgb, var(--brand) 80%, transparent); }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.reel.horizontal { aspect-ratio: 16 / 9; }
.reel.vertical { aspect-ratio: 9 / 16; width: min(100%, 380px); justify-self: center; }
.reel-sound {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; font-size: 20px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .35s var(--spring);
}
.reel-sound:hover { transform: scale(1.1); }
.reel-tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; font: 800 12px var(--label); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
@media (max-width: 980px) {
  .unbox-grid { grid-template-columns: 1fr; gap: 30px; }
  .unbox-txt { text-align: center; }
  .unbox-txt > p { margin-inline: auto; }
  .unbox-list { justify-content: center; }
  .unbox-list li { justify-content: center; }
  .unbox-txt .kicker { justify-content: center; }
}

/* ---------- landing: video que avanza con el scroll ---------- */
.scrolly { position: relative; height: var(--alto, 380vh); }
.scrolly-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 84px 20px 20px; }
.scrolly-stage {
  position: relative; width: min(1240px, 100%); height: 100%; max-height: 760px; border-radius: calc(var(--radius) + 10px); overflow: hidden;
  background: #efe6ea; box-shadow: 0 50px 100px -50px color-mix(in srgb, var(--brand) 80%, transparent);
}
.scrolly-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrolly-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
.sq-head { position: absolute; left: 30px; top: 26px; z-index: 2; max-width: 46%; }
.sq-head .kicker { margin: 0 0 8px; }
.sq-head h2 { margin: 0; font: 700 clamp(30px, 3.4vw, 50px)/1 var(--display); color: var(--ink); text-shadow: 0 2px 20px rgba(255, 255, 255, .7); }
.sq-head h2 em { font-style: normal; color: var(--brand); }
.sq-items { position: absolute; z-index: 3; right: 24px; top: 50%; translate: 0 -50%; width: min(390px, 38%); display: grid; gap: 12px; }
.sq-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1.5px solid color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: 0 20px 40px -24px rgba(60, 0, 30, .45);
  opacity: 0; transform: translateX(60px) scale(.94); transition: opacity .6s var(--ease), transform .7s var(--spring);
}
.sq-item.on { opacity: 1; transform: none; }
.sq-item img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; }
.sq-n { display: inline-block; font: 700 22px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: 4px; }
.sq-item h3 { margin: 0 0 4px; font: 700 18px/1.15 var(--display); }
.sq-item p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.sq-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3; padding: 9px 16px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); font-weight: 800; font-size: 13px; transition: opacity .4s; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); }
.sq-cue span { display: inline-block; animation: cueDown 1.4s ease-in-out infinite; }
@keyframes cueDown { 50% { transform: translateY(4px); } }
.sq-cue.off { opacity: 0; }
.sq-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.sq-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); transform-origin: left; transform: scaleX(0); }

@media (max-width: 820px) {
  .scrolly { height: calc(var(--alto, 380vh) * .9); }
  .scrolly-sticky { padding: 110px 12px 12px; }
  .scrolly-stage { max-height: none; }
  .scrolly-stage canvas { height: 54%; }
  .scrolly-stage::after { background: linear-gradient(180deg, transparent 40%, var(--bg) 56%); }
  .sq-head { left: 18px; top: 16px; max-width: 80%; }
  .sq-head h2 { font-size: 28px; }
  .sq-items { left: 12px; right: 12px; top: auto; bottom: 16px; translate: none; width: auto; gap: 8px; }
  .sq-item { grid-template-columns: 58px 1fr; gap: 10px; padding: 9px; border-radius: 16px; transform: translateY(30px) scale(.96); }
  .sq-item img { width: 58px; height: 58px; border-radius: 12px; }
  .sq-n { font-size: 17px; margin: 0; }
  .sq-item h3 { font-size: 15.5px; }
  .sq-item p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sq-cue { bottom: auto; top: 44%; }
}
body.sq-activo .sticky-buy.on { translate: -50% 140%; }
.sq-head .kicker { text-shadow: 0 1px 12px rgba(255, 255, 255, .9); }

/* ---------- escena con scroll armada con fotos (landings automáticas) ---------- */
.scrolly.fotos .scrolly-stage { background: var(--bg2); }
.scrolly.fotos .scrolly-stage::after { display: none; }
.sf-bg { position: absolute; inset: -60px; z-index: 0; overflow: hidden; }
.sf-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.25); opacity: .6; transform: scale(1.1); transition: opacity .6s; }
.sf-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--bg) 25%, transparent), color-mix(in srgb, var(--bg) 70%, transparent)); }
.sf-frame {
  position: absolute; z-index: 1; left: 5%; top: 50%; translate: 0 -50%; height: 84%; aspect-ratio: 1; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: #fff; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .45), 0 0 0 6px color-mix(in srgb, var(--surface) 70%, transparent);
}
.sf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; transform-origin: 50% 50%; }
.scrolly.fotos .sq-head { left: auto; right: 24px; top: 30px; width: min(390px, 38%); max-width: none; }
.scrolly.fotos .sq-items { top: auto; bottom: 34px; translate: none; }
.m-oscuro .scrolly.fotos .sf-frame { background: #0b0b14; }
@media (max-width: 820px) {
  .scrolly.fotos .scrolly-stage canvas { height: auto; }
  .sf-frame { left: 50%; top: 86px; translate: -50% 0; height: auto; width: min(calc(100% - 48px), 40svh); }
  .scrolly.fotos .sq-head { left: 18px; right: 18px; top: 16px; width: auto; }
  .scrolly.fotos .sq-items { bottom: 14px; }
}
/* carrito siempre a la derecha del menú (también en las landings, que no tienen buscador) */
.nav-in > .cart-btn { margin-left: auto; }
.nav-in > .search + .cart-btn { margin-left: 0; }

/* ---------- inicio: video de fondo ---------- */
.home-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-bg video { width: 100%; height: 100%; object-fit: cover; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(250, 246, 249, .6) 45%, rgba(246, 243, 248, .78) 100%); }
.home { position: relative; z-index: 1; background: transparent; }
.home-top h1, .home-top p { text-shadow: 0 2px 18px rgba(255, 255, 255, .9); }
.home-top p { color: #3d3850; font-weight: 700; }
.home-foot { color: #3d3850; font-weight: 700; }
@media (max-width: 620px) { .home-bg::after { background: rgba(250, 246, 249, .82); } }

/* Autos: "MIMOS" chico arriba y "a fondo" bien grande */
.w-autos .hero h1 .line:first-child { font-size: .55em; letter-spacing: .04em; }
.w-autos .hero h1 .line:nth-child(2) { font-size: 1.3em; line-height: .9; }

/* =========================================================
   LANDING INMERSIVA (cepillo): toda la página dentro del video
   ========================================================= */
.pdp.inmersiva .nav:not(.scrolled) { background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent); }
.imm { position: relative; height: var(--alto, 600vh); margin-top: calc(-1 * var(--navh, 76px)); }
.imm-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #efe8ec; }
.imm canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.imm-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 246, 249, .86) 0%, rgba(255, 246, 249, .5) 34%, rgba(255, 246, 249, 0) 58%),
              linear-gradient(0deg, rgba(255, 246, 249, .55) 0%, rgba(255, 246, 249, 0) 22%);
}
.imm-intro[data-show], .imm-final[data-show] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .8s var(--spring); pointer-events: none; }
.imm-intro[data-show].on, .imm-final[data-show].on { opacity: 1; transform: none; pointer-events: auto; }
/* secciones 01 / 02 / 03 en grande dentro del video, una por vez */
.imm-rows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.imm-row {
  position: absolute; left: 50%; top: calc(50% + var(--navh, 76px) / 2); translate: -50% -50%;
  width: min(1160px, calc(100% - 64px)); display: grid; grid-template-columns: min(46%, calc(100svh - var(--navh, 76px) - 150px)) 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center;
  padding: clamp(18px, 2.2vw, 30px); border-radius: 38px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 50px 90px -50px rgba(90, 0, 45, .55); border: 1.5px solid rgba(255, 255, 255, .6);
  opacity: 0; transform: translateY(46px) scale(.96); pointer-events: none;
  transition: opacity .55s var(--ease), transform .8s var(--spring);
}
.imm-row.on { opacity: 1; transform: none; pointer-events: auto; }
.imm-row.flip .imm-row-img { order: 2; }
.imm-row-img { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--brand) 60%, transparent);
  transform: translateX(-50px) rotate(-2deg); transition: transform 1s var(--spring) .05s; }
.imm-row.flip .imm-row-img { transform: translateX(50px) rotate(2deg); }
.imm-row.on .imm-row-img { transform: none; }
.imm-row-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.imm-row-txt { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease) .15s, transform .8s var(--spring) .15s; }
.imm-row.on .imm-row-txt { opacity: 1; transform: none; }
.imm-row-txt h3 { font: 700 clamp(30px, 3.4vw, 48px)/1.05 var(--display); margin: 0 0 14px; color: var(--ink); }
.imm-row-txt p { margin: 0; color: var(--muted); line-height: 1.7; font-size: clamp(16px, 1.3vw, 18px); max-width: 44ch; }
.imm-intro { position: absolute; z-index: 2; left: max(28px, 6vw); top: 50%; translate: 0 -46%; width: min(540px, 44vw); }
.imm-intro .kicker { margin-bottom: 14px; }
.imm-intro h1 { font: 700 clamp(54px, 7vw, 112px)/.92 var(--display); margin: 0 0 18px; letter-spacing: -.02em; color: var(--ink); }
.imm-intro h1 .line { display: block; }
.imm-intro h1 em { font-style: normal; color: var(--brand); }
.imm-intro .lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: #4b2a3a; margin: 0 0 26px; max-width: 44ch; }
.imm-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.imm-price b { display: block; font: 700 42px/1 var(--display); color: var(--ink); }
.imm-price small { color: var(--muted); font-weight: 700; font-size: 13px; }
.imm-final {
  position: absolute; z-index: 3; left: 50%; bottom: 9vh; translate: -50% 0; width: min(640px, calc(100% - 32px)); text-align: center;
  padding: 26px 28px; border-radius: 28px; background: color-mix(in srgb, #fff 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(80, 0, 40, .45);
}
.imm-final h2 { font: 700 clamp(34px, 4vw, 54px)/1 var(--display); margin: 0 0 10px; color: var(--ink); }
.imm-final h2 em { font-style: normal; color: var(--brand); }
.imm-final p { margin: 0 0 18px; color: var(--muted); }
.imm-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.imm-ctas .btn-buy-now { width: auto; }
.imm .sq-cue { z-index: 3; }
.imm .sq-bar { z-index: 3; }
@media (max-width: 820px) {
  .imm-veil { background: linear-gradient(0deg, rgba(255, 246, 249, .94) 0%, rgba(255, 246, 249, .75) 34%, rgba(255, 246, 249, 0) 60%); }
  .imm-intro { left: 20px; right: 20px; width: auto; top: auto; bottom: 7vh; translate: none; }
  .imm-intro h1 { font-size: 50px; }
  .imm-intro .lead { font-size: 15px; margin-bottom: 16px; }
  .imm-price b { font-size: 32px; }
  .imm-final { bottom: 5vh; padding: 20px; }
  .imm-row { top: calc(var(--navh, 64px) + 10px); translate: -50% 0; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 18px; border-radius: 26px; text-align: center; }
  .imm-row.flip .imm-row-img { order: 0; }
  .imm-row-img { width: min(100%, calc(100svh - var(--navh, 64px) - 330px)); margin: 0 auto; transform: translateY(-24px) rotate(-2deg); }
  .imm-row.flip .imm-row-img { transform: translateY(-24px) rotate(2deg); }
  .imm-row-txt .prow-n { font-size: 36px; margin-bottom: 4px; }
  .imm-row-txt h3 { font-size: 25px; margin-bottom: 8px; }
  .imm-row-txt p { font-size: 14.5px; line-height: 1.55; margin: 0 auto; }
  .imm .sq-cue { top: 27%; bottom: auto; }
}
body.sq-activo .pdp.inmersiva .nav.scrolled { background: rgba(255, 255, 255, .3); box-shadow: none; }
/* Autos: "MIMOS" con tipografía de carreras */
.w-autos .hero h1 .line:first-child { font-family: "Racing Sans One", var(--label); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: .62em; }

/* =========================================================
   MASCOTA ANIMADA POR MUNDO
   ========================================================= */
.ms { position: relative; z-index: 2; width: min(480px, 94%); aspect-ratio: 1; }
.ms .hero-mascot { width: 100%; animation: none; }
.ms .hero-mascot.wink { animation: wink .7s var(--spring); }

/* ---- Autos: la caja arriba de un auto de carrera ---- */
.ms-autos .ms-ride { position: absolute; left: 4%; right: 4%; bottom: 13%; height: 78%; animation: msRumble .28s ease-in-out infinite alternate; }
.ms-car { position: absolute; left: 0; bottom: 0; width: 100%; overflow: visible; }
.ms-wheel { transform-box: fill-box; transform-origin: center; animation: msWheel .32s linear infinite; }
@keyframes msWheel { to { transform: rotate(360deg); } }
.ms-autos .ms-top { position: absolute; left: 19%; width: 64%; bottom: 27%; transform-origin: 50% 100%; animation: msTop .56s ease-in-out infinite alternate; }
@keyframes msTop { from { transform: rotate(-1deg); } to { transform: rotate(.6deg); } }
@keyframes msRumble { to { transform: translateY(-1.6%); } }
.ms-road { position: absolute; left: -12%; right: -12%; bottom: 8%; height: 6px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 34px, transparent 34px 68px); animation: msRoad .3s linear infinite; opacity: .6; }
@keyframes msRoad { to { background-position: -68px 0; } }
.ms-speed { position: absolute; inset: 0; pointer-events: none; }
.ms-speed i { position: absolute; right: 0; height: 3px; width: 34%; border-radius: 3px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand2) 80%, #fff)); animation: msSpeed .7s linear infinite; opacity: 0; }
.ms-speed i:nth-child(1) { top: 30%; animation-delay: -.1s; }
.ms-speed i:nth-child(2) { top: 48%; width: 24%; animation-delay: -.35s; }
.ms-speed i:nth-child(3) { top: 62%; animation-delay: -.55s; }
.ms-speed i:nth-child(4) { top: 74%; width: 44%; animation-delay: -.2s; }
.ms-speed i:nth-child(5) { top: 40%; width: 20%; animation-delay: -.62s; }
@keyframes msSpeed { 0% { transform: translateX(40%); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateX(-300%); opacity: 0; } }
.ms-puff { position: absolute; left: -2%; bottom: 14%; }
.ms-puff i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(200, 200, 210, .55); animation: msPuff .9s ease-out infinite; }
.ms-puff i:nth-child(2) { animation-delay: -.3s; } .ms-puff i:nth-child(3) { animation-delay: -.6s; }
@keyframes msPuff { from { transform: translate(0, 0) scale(.4); opacity: .9; } to { transform: translate(-90px, -14px) scale(1.8); opacity: 0; } }

/* ---- Tech: aparece en un televisor con glitches ---- */
.ms-tech { display: grid; place-items: center; }
.ms-tv { position: relative; width: 96%; margin-top: 8%; padding: 5.5% 5.5% 4%; border-radius: 34px; background: linear-gradient(160deg, #2a2160, #120e33); border: 3px solid #0a0820;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand2) 40%, transparent), 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 70px color-mix(in srgb, var(--brand) 40%, transparent); }
.ms-ant { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.ms-ant i { position: absolute; bottom: 0; width: 4px; height: 90px; border-radius: 4px; background: #b9b4e6; transform-origin: 50% 100%; }
.ms-ant i::after { content: ""; position: absolute; top: -8px; left: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 14px var(--brand2); }
.ms-ant i:first-child { rotate: -32deg; } .ms-ant i:last-child { rotate: 28deg; animation: msAnt 3s ease-in-out infinite; }
@keyframes msAnt { 50% { rotate: 36deg; } }
.ms-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 26px / 30px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #2b2a8a 0%, #11103a 60%, #06051a 100%); box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), inset 0 0 0 3px #05041a; }
.ms-screen .hero-mascot { width: 80%; filter: none !important; animation: msGlitch 3.2s steps(1) infinite; }
.ms-g { position: absolute; width: 80%; mix-blend-mode: screen; opacity: 0; pointer-events: none; animation: msGhost 3.2s steps(1) infinite; }
.ms-gr { filter: brightness(.7) sepia(1) saturate(9) hue-rotate(-40deg); }
.ms-gb { filter: brightness(.7) sepia(1) saturate(9) hue-rotate(150deg); animation-name: msGhost2; }
@keyframes msGlitch {
  0%, 100% { transform: none; clip-path: none; }
  8% { transform: translateX(-4%) skewX(8deg); clip-path: inset(0 0 55% 0); }
  9% { transform: translateX(3%); clip-path: inset(40% 0 0 0); }
  10% { transform: none; clip-path: none; }
  46% { transform: translate(2%, -1%); clip-path: inset(20% 0 35% 0); }
  47% { transform: translateX(-3%) scaleY(1.05); clip-path: none; }
  48% { transform: none; }
  74% { transform: translateX(5%) skewX(-10deg); clip-path: inset(60% 0 5% 0); }
  75% { transform: none; clip-path: none; }
}
@keyframes msGhost { 0%, 100% { opacity: 0; } 8% { opacity: .85; transform: translateX(-6%); clip-path: inset(10% 0 50% 0); } 11% { opacity: 0; } 46% { opacity: .8; transform: translateX(5%); clip-path: inset(45% 0 20% 0); } 49% { opacity: 0; } 74% { opacity: .9; transform: translateX(-4%); clip-path: inset(0 0 70% 0); } 76% { opacity: 0; } }
@keyframes msGhost2 { 0%, 100% { opacity: 0; } 8% { opacity: .85; transform: translateX(6%); clip-path: inset(30% 0 30% 0); } 11% { opacity: 0; } 46% { opacity: .8; transform: translateX(-5%); clip-path: inset(5% 0 60% 0); } 49% { opacity: 0; } 74% { opacity: .9; transform: translateX(4%); clip-path: inset(50% 0 10% 0); } 76% { opacity: 0; } }
.ms-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px); animation: msFlicker 4s steps(1) infinite; }
@keyframes msFlicker { 0%, 100% { opacity: 1; } 47% { opacity: .5; } 48% { opacity: 1; } 75% { opacity: .6; } 76% { opacity: 1; } }
.ms-noise { position: absolute; inset: -50%; pointer-events: none; opacity: .14; mix-blend-mode: screen;
  background: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 73% 61%, #fff 0 1px, transparent 1px 4px); animation: msNoise .25s steps(4) infinite; }
@keyframes msNoise { 0% { transform: translate(0, 0); } 25% { transform: translate(-7%, 4%); } 50% { transform: translate(5%, -6%); } 75% { transform: translate(-3%, -3%); } 100% { transform: translate(6%, 5%); } }
.ms-roll { position: absolute; left: 0; right: 0; height: 18%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(180, 160, 255, .16), transparent); animation: msRoll 4.5s linear infinite; }
@keyframes msRoll { from { top: -20%; } to { top: 110%; } }
.ms-panel { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 3.5%; padding-right: 3%; }
.ms-panel i { width: 16px; height: 16px; border-radius: 50%; background: #5a52a6; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }
.ms-panel b { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; margin-left: 6px; animation: pulse 1.6s ease-in-out infinite; }
.ms-legs { position: relative; width: 60%; height: 22px; }
.ms-legs i { position: absolute; top: 0; width: 10px; height: 26px; border-radius: 0 0 6px 6px; background: #2a2160; }
.ms-legs i:first-child { left: 12%; rotate: 14deg; } .ms-legs i:last-child { right: 12%; rotate: -14deg; }

/* Tech: monitor gamer (reemplaza la tele) */
.ms-tech { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ms-rgb { position: absolute; left: 6%; right: 6%; top: 22%; height: 46%; border-radius: 30px; filter: blur(34px); opacity: .85; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, #9b5cff 0, #7c3aed 45%, rgba(124, 58, 237, 0) 75%); animation: msGlowV 4s ease-in-out infinite; }
@keyframes msGlowV { 50% { opacity: .55; transform: scale(.96); } }
.ms-monitor { width: 100%; margin-top: 0; padding: 2.2% 2.2% 0; border-radius: 16px; background: linear-gradient(180deg, #17133d, #0b0920); border: 2px solid #050414;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brand2) 55%, transparent), 0 30px 60px -24px rgba(0, 0, 0, .85); }
.ms-monitor .ms-screen { aspect-ratio: 16 / 9; border-radius: 6px; }
.ms-chin { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.ms-chin i { width: 46px; height: 4px; border-radius: 2px; background: var(--brand2); box-shadow: 0 0 10px var(--brand); }
.ms-chin b { position: absolute; right: 16px; width: 6px; height: 6px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 8px #3dff9a; }
.ms-stand { width: 62%; margin-top: -2px; overflow: visible; }
.ms-monitor .ms-ch-logo img { width: 56%; }
.ms-monitor .ms-ch-box .hero-mascot, .ms-monitor .ms-g { width: 58%; }
/* Tech: la tele se prende (aparece el logo), muestra la caja con glitches y se apaga */
.ms-crt { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 50% 50%; animation: msCrt 10s linear infinite; }
.ms-ch { position: absolute; inset: 0; display: grid; place-items: center; }
.ms-ch-logo img { width: 74%; animation: msLogoJit 10s steps(1) infinite; }
.ms-ch-logo { animation: msChLogo 10s steps(1) infinite; }
.ms-ch-box { opacity: 0; animation: msChBox 10s steps(1) infinite; }
@keyframes msCrt {
  0% { transform: scale(0, .004); filter: brightness(1); }
  2% { transform: scale(1, .006); } 4.5% { transform: scale(1, 1); filter: brightness(1.8); } 8% { filter: brightness(1); }
  85% { transform: scale(1, 1); filter: brightness(1); } 88% { transform: scale(1, .006); filter: brightness(2); }
  90.5% { transform: scale(0, .006); } 91%, 100% { transform: scale(0, 0); }
}
@keyframes msChLogo { 0%, 33% { opacity: 1; } 33.5% { opacity: 0; } 34% { opacity: 1; } 34.5%, 100% { opacity: 0; } }
@keyframes msChBox { 0%, 33% { opacity: 0; } 33.5% { opacity: 1; } 34% { opacity: 0; } 34.5%, 100% { opacity: 1; } }
@keyframes msLogoJit { 0%, 100% { transform: none; clip-path: none; } 16% { transform: translateX(-4%) skewX(10deg); clip-path: inset(0 0 50% 0); } 16.6% { transform: translateX(3%); clip-path: inset(50% 0 0 0); } 17.2% { transform: none; clip-path: none; } 30% { transform: translateX(5%); clip-path: inset(30% 0 30% 0); } 31% { transform: none; clip-path: none; } }
.ms-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: msFlash 10s linear infinite; }
@keyframes msFlash { 0%, 2% { opacity: 1; } 6% { opacity: 0; } 85% { opacity: 0; } 88%, 91% { opacity: 1; } 91.1%, 100% { opacity: 0; } }
.ms-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(200, 180, 255, .9); opacity: 0; animation: msDot 10s ease-out infinite; }
@keyframes msDot { 0%, 90% { opacity: 0; transform: scale(1); } 91% { opacity: 1; transform: scale(1.2); } 97%, 100% { opacity: 0; transform: scale(.1); } }
.ms-ch-box .hero-mascot { width: 80%; }
/* ---- Deco: se sube a la mesa ratona ---- */
.ms-rug { position: absolute; left: 4%; right: 0; bottom: 3%; height: 15%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--brand2) 55%, #fff) 0 55%, transparent 72%); }
.ms-table { position: absolute; right: 0; bottom: 6%; width: 74%; }
.ms-hopx { position: absolute; left: 40%; bottom: 27%; width: 50%; animation: msHopX 8s cubic-bezier(.45, 0, .3, 1) infinite; }
.ms-hopy { animation: msHopY 8s linear infinite; }
.ms-hopy .hero-mascot { transform-origin: 50% 100%; animation: msSquash 8s linear infinite; }
@keyframes msHopX { 0%, 16% { transform: translateX(-78%); } 34%, 80% { transform: translateX(0); } 96%, 100% { transform: translateX(-78%); } }
@keyframes msHopY {
  0% { transform: translateY(58%); } 5% { transform: translateY(48%); } 10% { transform: translateY(58%); }
  16% { transform: translateY(58%); animation-timing-function: cubic-bezier(.2, .7, .4, 1); } 25% { transform: translateY(-38%); animation-timing-function: cubic-bezier(.6, 0, .8, .3); } 34% { transform: translateY(0); }
  40% { transform: translateY(-6%); } 45%, 80% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  88% { transform: translateY(-30%); animation-timing-function: cubic-bezier(.6, 0, .8, .3); } 96%, 100% { transform: translateY(58%); }
}
@keyframes msSquash {
  0%, 14% { transform: scale(1) rotate(-3deg); } 16% { transform: scale(1.08, .9) rotate(-3deg); } 19% { transform: scale(.94, 1.08) rotate(4deg); }
  34% { transform: scale(1.12, .86); } 38% { transform: scale(.97, 1.04) rotate(-2deg); } 42% { transform: none; }
  55% { transform: rotate(-4deg); } 62% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } 80% { transform: none; }
  96% { transform: scale(1.1, .88); } 100% { transform: scale(1) rotate(-3deg); }
}
.ms-pot { position: absolute; z-index: 0; right: 5%; bottom: 29.4%; width: 12%; overflow: visible; }
.ms-deco .ms-hopx { z-index: 1; }
.ms-lamp { position: absolute; z-index: 0; left: 27.5%; bottom: 29.3%; width: 19%; overflow: visible; }
.ms-lamp-glow { transform-box: fill-box; transform-origin: center; animation: msLamp 3.6s ease-in-out infinite; }
@keyframes msLamp { 50% { opacity: .55; } }

/* ---- Relax: en una hidro con burbujas ---- */
.ms-tub { position: absolute; left: 0; bottom: 4%; width: 100%; overflow: visible; }
.ms-tub-front { z-index: 3; }
.ms-bob { position: absolute; z-index: 2; left: 20%; width: 60%; bottom: 31%; animation: msBob 4s ease-in-out infinite; }
@keyframes msBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(4%) rotate(3deg); } }
.ms-wave { animation: msWave 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes msWave { 50% { transform: scaleX(1.03) translateY(3px); } }
.ms-bubbles { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.ms-bubbles i { position: absolute; left: var(--x); bottom: 36%; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, rgba(255, 255, 255, .25) 30%, rgba(143, 214, 247, .2) 70%); border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(29, 154, 216, .25); animation: msBubble var(--t) ease-in infinite var(--d); opacity: 0; }
@keyframes msBubble { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(10px, -110%) scale(1); } 85% { opacity: .9; } 100% { transform: translate(-6px, -420%) scale(1.15); opacity: 0; } }

/* ---- Deportes: arquero delante del arco, atajando la pelota ---- */
.ms-grass { position: absolute; left: -4%; right: -4%; bottom: 2%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #8fd27a 0, #5fb44f 55%, transparent 72%); opacity: .8; }
.ms-goal { position: absolute; left: 0; bottom: 6%; width: 100%; }
.ms-keeper { position: absolute; z-index: 2; left: 21%; width: 58%; bottom: 7%; transform-origin: 50% 90%; animation: msKeeper 4.2s ease-in-out infinite; }
@keyframes msKeeper {
  0% { transform: translate(0, 0) rotate(-3deg); } 9% { transform: translate(-4%, 0) rotate(-6deg); } 18% { transform: translate(4%, 0) rotate(2deg); }
  27% { transform: translate(2%, 3%) scale(1.04, .94) rotate(-2deg); }
  40% { transform: translate(-36%, -34%) rotate(-32deg); } 50% { transform: translate(-40%, -32%) rotate(-36deg); }
  64% { transform: translate(-22%, 4%) scale(1.06, .92) rotate(-16deg); } 76% { transform: translate(-8%, 0) rotate(-6deg); } 100% { transform: translate(0, 0) rotate(-3deg); }
}
.ms-ball { position: absolute; z-index: 3; width: 13%; left: 0; top: 0; translate: -50% -50%; opacity: 0; animation: msBall 4.2s linear infinite; filter: drop-shadow(0 10px 10px rgba(42, 22, 11, .3)); }
@keyframes msBall {
  0%, 24% { left: 94%; top: 98%; transform: scale(1.7); rotate: 0deg; opacity: 0; animation-timing-function: cubic-bezier(.3, .1, .6, 1); }
  27% { left: 90%; top: 93%; transform: scale(1.6); opacity: 1; }
  42% { left: 16%; top: 40%; transform: scale(.9); rotate: -620deg; opacity: 1; animation-timing-function: cubic-bezier(.2, .7, .5, 1); }
  60% { left: 64%; top: -4%; transform: scale(1.15); rotate: -980deg; opacity: 1; }
  68%, 100% { left: 76%; top: -14%; transform: scale(1.2); rotate: -1100deg; opacity: 0; }
}
.ms-hit { position: absolute; z-index: 4; left: 15%; top: 39%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  border: 5px solid #ffb000; box-shadow: 0 0 0 4px rgba(255, 90, 31, .4); opacity: 0; animation: msHit 4.2s ease-out infinite; }
@keyframes msHit { 0%, 41% { opacity: 0; transform: scale(.2); } 43% { opacity: 1; transform: scale(.5); } 54%, 100% { opacity: 0; transform: scale(1.5); } }
/* ---- Moda: las mejillas se maquillan ---- */
.ms-moda { aspect-ratio: auto; display: grid; place-items: center; min-height: 380px; }
.ms-float { position: relative; width: 100%; animation: heroFloat 6s ease-in-out infinite; }
.ms-moda .hero-mascot { display: block; }
.ms-blush { position: absolute; z-index: 3; width: 12.5%; aspect-ratio: 1.45; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, #ff2f86 0, #ff3d8f 34%, rgba(255, 70, 150, .55) 52%, rgba(255, 110, 170, 0) 72%); opacity: 0; }
.ms-blush::after { content: ""; position: absolute; left: 30%; top: 28%; width: 20%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, .85); filter: blur(1px); }
.ms-bl { left: 19.94%; top: 79.49%; animation: msBlushL 6s ease-in-out infinite; }
.ms-br { left: 58.25%; top: 75.18%; animation: msBlushR 6s ease-in-out infinite; }
@keyframes msBlushL { 0%, 11% { opacity: 0; transform: scale(.7); } 14% { opacity: .3; } 19% { opacity: .65; } 25%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes msBlushR { 0%, 43% { opacity: 0; transform: scale(.7); } 46% { opacity: .3; } 51% { opacity: .65; } 57%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
.ms-brush { position: absolute; width: 10%; left: 0; top: 0; translate: -50% -2%; transform-origin: 50% 2%; pointer-events: none; z-index: 4; animation: msBrush 6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(80, 0, 40, .3)); }
@keyframes msBrush {
  0% { left: 4%; top: 112%; rotate: 50deg; opacity: 0; }
  6% { opacity: 1; }
  11% { left: 18.5%; top: 80%; rotate: 34deg; } 14% { left: 22%; top: 78.6%; rotate: 22deg; } 17% { left: 17.6%; top: 80.4%; rotate: 40deg; }
  20% { left: 22%; top: 79%; rotate: 24deg; } 23% { left: 18%; top: 80%; rotate: 36deg; } 25% { left: 20%; top: 79.5%; rotate: 30deg; }
  35% { left: 42%; top: 96%; rotate: 20deg; }
  43% { left: 56.5%; top: 75.8%; rotate: 24deg; } 46% { left: 60.4%; top: 74.6%; rotate: 38deg; } 49% { left: 56%; top: 76%; rotate: 22deg; }
  52% { left: 60.4%; top: 74.6%; rotate: 38deg; } 55% { left: 56.8%; top: 75.6%; rotate: 26deg; } 57% { left: 58.3%; top: 75.2%; rotate: 30deg; }
  66% { left: 78%; top: 96%; rotate: 40deg; opacity: 1; } 72%, 100% { left: 88%; top: 110%; rotate: 50deg; opacity: 0; }
}
}
}
.ms-spark { position: absolute; z-index: 4; font-size: clamp(18px, 3vw, 26px); color: #fff; text-shadow: 0 0 10px #ff6fa8, 0 0 2px #ff0a6c; opacity: 0; pointer-events: none; }
.ms-s1 { left: 13%; top: 66%; animation: msSpark 6s ease-in-out infinite; }
.ms-s2 { left: 64%; top: 62%; animation: msSpark 6s ease-in-out infinite 1.9s; }
@keyframes msSpark { 0%, 24% { opacity: 0; transform: scale(0) rotate(0); } 30% { opacity: 1; transform: scale(1.2) rotate(45deg); } 40%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }

@media (max-width: 860px) {
  .ms { width: min(330px, 86%); }
  .ms-moda { min-height: 0; }
  .ms-ant i { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms *, .ms *::before, .ms *::after { animation: none !important; }
  .ms-hopx { transform: none; } .ms-brush, .ms-spark, .ms-g { display: none; } .ms-blush { opacity: 1; }
}

.ms-monitor .ms-ch-box .hero-mascot, .ms-monitor .ms-g { width: 58%; }

/* íconos de categoría en línea, del color del texto */
.cat .ic .ico { width: 40px; height: 40px; display: block; color: var(--brand); }
.cat.active .ic .ico { color: currentColor; }
.chip .ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 620px) { .cat .ic .ico { width: 30px; height: 30px; } }

/* Tech: teclado y mouse gamer delante del monitor */
.ms-desk { display: flex; align-items: flex-end; justify-content: center; gap: 4%; width: 96%; margin-top: 1.5%; }
.ms-kb { width: 74%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(155, 92, 255, .35)); }
.ms-mouse { width: 8.5%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.ms-tech .ms-stand { width: 54%; }
