/* ==========================================================
   OkiDoki — estilos de la web pública
   Paleta y tipografías según el Manual de Marca 2026
   ========================================================== */

/* Si la tienda instala las fuentes oficiales (Sugo Pro Display / Cocomat Pro) se usan solas;
   si no, entran las alternativas gratuitas parecidas (Barlow Condensed / Quicksand). */
@font-face { font-family: "Sugo Pro Display"; src: local("Sugo Pro Display"), local("SugoProDisplay-Regular"); font-display: swap; }
@font-face { font-family: "Cocomat Pro"; src: local("Cocomat Pro"), local("CocomatPro-Regular"); font-display: swap; }

:root {
  --sky: #22bae1;
  --crimson: #e7255b;
  --orange: #f7a929;
  --olive: #bacf02;
  --aqua: #78d0d9;
  --lime: #bcf900;
  --white: #ffffff;
  --ink: #1b0a35;
  --paper: #fafaff;
  --tint: #eefbff;

  --f-display: "Sugo Pro Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Cocomat Pro", "Quicksand", system-ui, sans-serif;

  --r-lg: 32px;
  --r-md: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 800 1.12rem/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), filter .2s;
  box-shadow: 0 6px 0 rgba(27, 10, 53, .22);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 0 rgba(27, 10, 53, .22); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(27, 10, 53, .22); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--crimson { --bg: var(--crimson); --fg: #fff; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--sm { padding: .7em 1.2em; font-size: 1rem; box-shadow: 0 4px 0 rgba(27, 10, 53, .22); }
.btn[hidden] { display: none; }

/* ---------- Cabecera ---------- */
.topbar { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.topbar__in {
  pointer-events: auto; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px; padding: 8px 12px 8px 24px; box-shadow: 0 8px 30px rgba(27, 10, 53, .12);
  transition: transform .4s var(--ease), box-shadow .3s;
}
.topbar.is-scrolled .topbar__in { box-shadow: 0 10px 34px rgba(27, 10, 53, .2); }
.topbar__logo img { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  text-decoration: none; padding: .55em 1em; border-radius: 999px; font-family: var(--f-display); font-weight: 700;
  font-size: 1.1rem; letter-spacing: .03em; text-transform: uppercase; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--lime); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sky); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .topbar__in { padding: 8px 8px 8px 20px; }
  .topbar .btn { display: none; }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 10px); flex-direction: column; gap: 2px;
    background: #fff; border-radius: var(--r-md); padding: 10px; box-shadow: 0 16px 40px rgba(27, 10, 53, .22);
    opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; transition: opacity .25s, transform .35s var(--spring);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .8em 1em; font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--sky); padding: 110px var(--gutter) 130px; overflow: hidden; isolation: isolate; }
.hero__mark { position: absolute; right: -6%; top: 6%; width: min(62vw, 760px); opacity: .55; z-index: -1; pointer-events: none; }
.hero__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(8px, 3vw, 40px); align-items: center; min-height: min(78vh, 720px); }
.eyebrow {
  display: inline-block; font: 700 1.05rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: .6em 1.1em; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow--ink { background: var(--ink); color: #fff; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); color: var(--ink); text-wrap: balance; }
.hl { position: relative; display: inline-block; color: #fff; z-index: 0; padding: 0 .12em; }
.hl::before { content: ""; position: absolute; inset: 8% -2% 0; background: var(--crimson); border-radius: .22em; transform: rotate(-2deg); z-index: -1; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34ch; margin-top: 22px; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Escenario del inicio: los niños de OkiDoki ----------
   La foto se usa con su lienzo ORIGINAL (1360x768, solo se quitó el fondo) y NUNCA se deforma:
   solo se mueve, rota un poco o salta. Los niños miden ~90 % del alto del escenario y se centran en él. */
.stage { position: relative; height: clamp(460px, 74vh, 760px); isolation: isolate; }
.stage__blob {
  position: absolute; left: var(--kx, 50%); bottom: 7%; width: min(56%, 440px); aspect-ratio: 1 / 1.02; translate: calc(-50% + var(--px, 0) * -14px) 0; z-index: -1;
  background: var(--aqua); border-radius: 58% 42% 55% 45% / 52% 58% 42% 48%; animation: blob 9s ease-in-out infinite;
}
@keyframes blob { 50% { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; transform: rotate(4deg); } }
.kids {
  position: absolute; left: var(--kx, 50%); bottom: calc(var(--kb, -6.4) * 1%); height: calc(var(--kh, 112.8) * 1%); aspect-ratio: 1360 / 768; translate: -51.25% 0; pointer-events: none; z-index: 2;
  animation: kids-in 1s var(--spring) .2s both;
}
.kids__img {
  display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; transform-origin: 51.25% 91.7%;
  filter: drop-shadow(0 10px 16px rgba(27, 10, 53, .2)); translate: calc(var(--px, 0) * 10px) 0; animation: kids-bob 3.8s ease-in-out 1.2s infinite;
}
.kids__shadow { position: absolute; left: 51.25%; top: 90.6%; width: 27%; height: 3.6%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(27, 10, 53, .32), transparent); }
@keyframes kids-in { from { opacity: 0; transform: translateY(46px) scale(.94); } }
@keyframes kids-bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }
.kids.is-hop .kids__img { animation: kids-hop .85s var(--spring); }
@keyframes kids-hop { 0% { transform: translateY(0); } 28% { transform: translateY(-34px) rotate(-1.4deg); } 52% { transform: translateY(0); } 74% { transform: translateY(-15px) rotate(1.2deg); } 100% { transform: translateY(0); } }
/* zona tocable = solo donde están los niños (el resto del lienzo es transparente y no estorba) */
.kids__hit { position: absolute; left: 36.8%; top: 11%; width: 28.8%; height: 81.8%; border: 0; padding: 0; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.kids__hit:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; border-radius: 18px; }

.kids__say {
  position: absolute; top: -6%; z-index: 2; background: #fff; color: var(--ink); border-radius: 22px; padding: .55em .95em;
  font: 800 1.45rem/1.05 var(--f-display); letter-spacing: .03em; white-space: nowrap; box-shadow: 0 6px 0 rgba(27, 10, 53, .18);
  opacity: 0; transform: scale(.4) translateY(12px); transition: transform .5s var(--spring), opacity .25s; pointer-events: none;
}
.kids__say::after { content: ""; position: absolute; bottom: -9px; left: 26px; width: 20px; height: 20px; background: #fff; transform: rotate(45deg); border-radius: 0 0 5px 0; }
.kids__say--l { left: -27%; transform-origin: 30% 100%; }
.kids__say--r { right: -33%; transform-origin: 70% 100%; }
.kids__say--r::after { left: auto; right: 26px; }
.kids__say.is-on { opacity: 1; transform: none; }
.hand { display: inline-block; transform-origin: 70% 75%; animation: hand-wave 1.5s ease-in-out infinite; }
@keyframes hand-wave { 0%, 55%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-12deg); } 48% { transform: rotate(10deg); } }

@media (max-width: 720px) { .kids__say { font-size: 1.05rem; padding: .5em .8em; top: -8%; } .kids__say--l { left: -20%; } .kids__say--r { right: -22%; } }

.bubbles i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c);
  z-index: -1; animation: drift 7s ease-in-out infinite; animation-delay: calc(var(--v) * -3s);
  translate: 0 calc(var(--sy, 0) * var(--v) * -0.12px);
}
@keyframes drift { 50% { transform: translate(10px, -18px) scale(1.08); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); fill: var(--lime); }

@media (max-width: 900px) {
  .hero { padding-top: 100px; padding-bottom: 110px; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .stage { height: clamp(380px, 62vh, 560px); }
}

/* ---------- Cinta ---------- */
.ribbon { background: var(--lime); border-block: 4px solid var(--ink); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg) scale(1.03); margin: -6px 0 30px; position: relative; z-index: 2; }
.ribbon__track { display: flex; gap: 28px; width: max-content; white-space: nowrap; font: 800 clamp(1.5rem, 3.4vw, 2.3rem)/1 var(--f-display); text-transform: uppercase; animation: marquee 32s linear infinite; }
.ribbon__track b { color: var(--crimson); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(56px, 9vw, 120px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.sec--tint { max-width: none; background: var(--tint); }
.sec--tint > * { max-width: var(--max); margin-inline: auto; }
.sec__head { text-align: center; margin-bottom: clamp(28px, 5vw, 56px); }
.sec__head h2 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.sec__head .eyebrow { margin-bottom: 18px; }
.sec__sub { margin-top: 14px; color: rgba(27, 10, 53, .78); }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.cat {
  --tx: 0deg; --ty: 0deg;
  position: relative; border-radius: var(--r-lg); padding: 28px 28px 30px; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; overflow: hidden; background: var(--bg); color: var(--fg);
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .25s var(--ease), box-shadow .3s;
  box-shadow: 0 10px 0 rgba(27, 10, 53, .14); isolation: isolate; cursor: pointer; border: 0; text-align: left; font: inherit;
}
.cat:hover { box-shadow: 0 16px 0 rgba(27, 10, 53, .18); }
.cat svg { position: absolute; top: 26px; right: 0; left: 0; margin: auto; width: 54%; max-width: 230px; transition: transform .5s var(--spring); z-index: -1; filter: drop-shadow(0 14px 0 rgba(27,10,53,.12)); }
.cat:hover svg { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.cat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .18); z-index: -2; }
.cat h3 { font-size: clamp(2.2rem, 4vw, 3rem); }
.cat p { margin-top: 8px; font-weight: 700; max-width: 26ch; }
.cat .go { margin-top: 16px; display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--bg); align-items: center; justify-content: center; font-size: 1.5rem; transition: transform .3s var(--spring); }
.cat:hover .go { transform: translateX(6px) rotate(-8deg); }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 400px; } .cat svg { width: 46%; max-width: 210px; } }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 3px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: .55em 1.2em; cursor: pointer;
  font: 800 1.1rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; transition: transform .3s var(--spring), background .2s;
}
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-note { text-align: center; background: #fff7d6; border: 2px dashed var(--orange); border-radius: 16px; padding: 12px 18px; margin: 0 auto 28px; max-width: 640px; font-size: .98rem; }
.empty { text-align: center; padding: 40px 0; font-size: 1.2rem; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.card {
  --tx: 0deg; --ty: 0deg; --cat: var(--sky);
  background: #fff; border-radius: var(--r-md); overflow: hidden; cursor: pointer; text-align: left; border: 0; padding: 0; font: inherit; color: inherit;
  box-shadow: 0 8px 0 rgba(27, 10, 53, .12), 0 0 0 3px var(--cat) inset;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .25s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 14px 0 rgba(27, 10, 53, .16), 0 0 0 3px var(--cat) inset; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card.is-out .card__media img { filter: grayscale(.85); opacity: .7; }
.badge {
  display: inline-block; padding: .45em .9em; border-radius: 999px; background: var(--cat, var(--sky)); color: var(--on, #fff);
  font: 800 .98rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
}
.card__media .badge { position: absolute; top: 12px; right: 12px; }
.card__media .badge--stock { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(27, 10, 53, .16); }
.card__cat { display: inline-flex; align-items: center; gap: .5em; font: 800 .95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(27, 10, 53, .7); }
.card__cat i { width: .8em; height: .8em; border-radius: 50%; background: var(--cat); }
.badge--low { background: var(--orange) !important; color: var(--ink) !important; }
.badge--out { background: var(--ink) !important; color: #fff !important; }
.card__media .badge--demo { top: auto; right: auto; bottom: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.7rem; line-height: 1.02; }
.card__meas { font-size: .95rem; color: rgba(27, 10, 53, .72); }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.price { font: 800 1.9rem/1 var(--f-display); color: var(--crimson); }
.more { font: 800 1.05rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 999px; transition: transform .3s var(--spring), background .2s; }
.card:hover .more { transform: translateX(4px) rotate(-2deg); background: var(--crimson); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 38px 28px 30px; position: relative; box-shadow: 0 8px 0 rgba(27, 10, 53, .12); }
.steps li:nth-child(1) { --c: var(--sky); } .steps li:nth-child(2) { --c: var(--orange); } .steps li:nth-child(3) { --c: var(--crimson); }
.steps__n { position: absolute; top: -22px; left: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 2rem/1 var(--f-display); box-shadow: 0 5px 0 rgba(27, 10, 53, .18); }
.steps h3 { font-size: 2.2rem; margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Contacto ---------- */
.contact { background: var(--crimson); color: #fff; padding: clamp(60px, 9vw, 120px) var(--gutter); position: relative; overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; }
.contact::before { width: 320px; height: 320px; background: var(--orange); left: -110px; top: -120px; }
.contact::after { width: 220px; height: 220px; background: var(--lime); right: -60px; bottom: -80px; }
.contact__in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(3rem, 8vw, 6rem); }
.contact .lead { color: #fff; margin: 14px auto 0; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__list li { background: #fff; color: var(--ink); border-radius: 999px; padding: .7em 1.3em; font-weight: 700; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__cta { margin-top: 30px; }

/* ---------- Pie ---------- */
.foot { background: var(--sky); color: var(--ink); text-align: center; padding: 48px var(--gutter) 40px; }
.foot img { margin: 0 auto 14px; width: 130px; height: auto; }
.foot p { font-weight: 700; }
.foot__small { margin-top: 8px; font-size: .92rem; opacity: .85; }

/* ---------- Ventana de producto ---------- */
.pm { border: 0; padding: 0; margin: auto; width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 30px 80px rgba(27, 10, 53, .4); }
.pm[open] { display: grid; grid-template-columns: 1.1fr 1fr; animation: pop .45s var(--spring); }
.pm::backdrop { background: rgba(27, 10, 53, .62); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes fade { from { opacity: 0; } }
.pm__close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: transform .3s var(--spring); }
.pm__close:hover { transform: rotate(90deg) scale(1.08); background: var(--crimson); }
.pm__gallery { padding: 14px; background: var(--tint); display: flex; flex-direction: column; gap: 10px; }
.pm__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: #fff; touch-action: pan-y; }
.pm__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.pm__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 rgba(27,10,53,.18); transition: transform .3s var(--spring); }
.pm__nav:hover { transform: scale(1.1); }
.pm__nav--prev { left: 10px; } .pm__nav--next { right: 10px; }
.pm__count { position: absolute; bottom: 10px; left: 10px; background: var(--ink); color: #fff; padding: .35em .8em; border-radius: 999px; font: 700 .95rem/1 var(--f-display); letter-spacing: .06em; }
.pm__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.pm__thumbs button { flex: 0 0 72px; height: 72px; border-radius: 14px; border: 3px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: #fff; transition: transform .25s var(--spring); }
.pm__thumbs button:hover { transform: translateY(-3px); }
.pm__thumbs button[aria-current="true"] { border-color: var(--crimson); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__info { padding: 56px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.pm__info .badge { align-self: flex-start; }
.pm__info h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.pm__price { font: 800 2.4rem/1 var(--f-display); color: var(--crimson); }
.pm__desc { white-space: pre-line; }
.pm__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 16px; border-radius: var(--r-md); background: var(--tint); }
.pm__facts dt { font: 800 1.05rem/1.5 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.pm__facts dd { margin: 0; }
.pm__actions { margin-top: auto; padding-top: 6px; }
.pm__actions .btn { width: 100%; }
.pm__nowa { text-align: center; opacity: .8; }
@media (max-width: 760px) {
  .pm[open] { grid-template-columns: 1fr; }
  .pm__info { padding: 22px 18px 22px; }
  .pm__main { aspect-ratio: 4 / 3; }
}

/* ---------- Asistente de WhatsApp (avatar + botón + globo) ---------- */
.wa { position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: 0; z-index: 45; width: clamp(150px, 15vw, 205px); pointer-events: none; }
.wa > * { pointer-events: auto; }
.wa__stack { position: relative; }
.wa__avatar {
  display: block; position: relative; width: 100%; -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 100%; transform: translateY(115%);
  transition: transform .9s var(--spring);
}
.wa.is-in .wa__avatar { transform: none; animation: wa-sway 4.2s ease-in-out 1s infinite; }
.wa__avatar img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(27, 10, 53, .28)); -webkit-user-drag: none; }
.wa.is-in .wa__avatar:hover { animation: none; transform: scale(1.06) rotate(-2deg); transition: transform .35s var(--spring); }
@keyframes wa-sway { 0%, 100% { transform: rotate(-1.6deg) translateY(0); } 50% { transform: rotate(1.6deg) translateY(-5px); } }

.wa__btn {
  position: absolute; left: -10px; bottom: 14px; width: clamp(52px, 5vw, 64px); aspect-ratio: 1; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 0 rgba(27, 10, 53, .22), 0 10px 22px rgba(37, 211, 102, .45);
  transform: scale(0); transition: transform .6s var(--spring) .55s, box-shadow .3s; -webkit-tap-highlight-color: transparent;
}
.wa.is-in .wa__btn { transform: scale(1); }
.wa__btn svg { width: 56%; height: 56%; fill: #fff; }
.wa__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; animation: wa-ping 2.4s ease-out 1.8s infinite; }
.wa__btn:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 9px 0 rgba(27, 10, 53, .22), 0 14px 26px rgba(37, 211, 102, .55); }
.wa__btn:active { transform: translateY(3px) scale(.98); }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.wa__bubble {
  position: absolute; right: 4px; bottom: calc(100% - 22px); width: max-content; max-width: min(250px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: 22px 22px 6px 22px; padding: 14px 34px 14px 16px;
  font: 700 1rem/1.35 var(--f-body); box-shadow: 0 8px 0 rgba(27, 10, 53, .14), 0 12px 28px rgba(27, 10, 53, .22);
  transform-origin: 90% 100%; transform: scale(0) translateY(10px); opacity: 0; transition: transform .5s var(--spring), opacity .25s;
  cursor: pointer;
}
.wa__bubble::after { content: ""; position: absolute; right: 26px; bottom: -11px; width: 22px; height: 22px; background: #fff; transform: rotate(45deg); border-radius: 0 0 6px 0; }
.wa.show-bubble .wa__bubble { transform: none; opacity: 1; }
.wa__bubble p { margin: 0; }
.wa__bubble p.is-swap { animation: wa-swap .45s var(--ease); }
@keyframes wa-swap { from { opacity: 0; transform: translateY(8px); } }
.wa__x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.wa__x:hover { background: var(--crimson); color: #fff; transform: rotate(90deg); }
.wa.no-bubble .wa__bubble { display: none; }

@media (max-width: 720px) {
  .wa { width: 128px; right: 6px; }
  .wa__btn { left: -8px; bottom: 10px; width: 50px; }
  .wa__bubble { font-size: .92rem; padding: 12px 32px 12px 14px; max-width: min(215px, calc(100vw - 20px)); }
}
@media print { .wa { display: none; } }

/* ---------- Confeti 2D y revelado ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.js [data-reveal] { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .7s var(--ease), transform .8s var(--spring); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- Carrito, cantidades y precio al mayor ---------- */
.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: .45em; border: 0; cursor: pointer; background: var(--ink); color: #fff;
  border-radius: 999px; padding: .62em 1.1em .62em .95em; font: 800 1.02rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(27, 10, 53, .22); transition: transform .3s var(--spring); -webkit-tap-highlight-color: transparent;
}
.cartbtn svg { width: 1.3em; height: 1.3em; fill: currentColor; }
.cartbtn:hover { transform: translateY(-2px) rotate(-1deg); }
.cartbtn__n { position: absolute; top: -9px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--crimson); color: #fff; font: 800 .9rem/24px var(--f-display); text-align: center; box-shadow: 0 2px 0 rgba(27, 10, 53, .25); }
.cartbtn.is-bump { animation: cart-bump .55s var(--spring); }
@keyframes cart-bump { 40% { transform: scale(1.14) rotate(-4deg); } }
@media (max-width: 860px) { .cartbtn { margin-left: auto; padding: .7em .85em; } .cartbtn__t { display: none; } .burger { margin-left: 0; } }

.qty { display: inline-flex; align-items: center; background: var(--tint); border-radius: 999px; padding: 4px; align-self: flex-start; }
.qty button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 rgba(27, 10, 53, .14); transition: transform .25s var(--spring); }
.qty button:hover:not(:disabled) { transform: scale(1.1); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty input { width: 62px; text-align: center; border: 0; background: transparent; font: 800 1.5rem/1 var(--f-display); color: var(--ink); padding: .2em; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline: 3px solid var(--ink); border-radius: 10px; }
.qty--sm button { width: 32px; height: 32px; font-size: 1.2rem; }
.qty--sm input { width: 46px; font-size: 1.15rem; }

.pm__price small, .price small { font: 700 .9rem/1 var(--f-body); color: rgba(27, 10, 53, .7); }
.pm__mayor { background: #fff7d6; border: 2px dashed var(--orange); border-radius: 16px; padding: 10px 14px; font-size: .98rem; }
.pm__buy { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.pm__buy .btn { width: 100%; }
.pm__sub { line-height: 1.55; }
.pm__total { font: 800 1.7rem/1 var(--f-display); color: var(--crimson); }
.pm__hint { font-size: .92rem; color: rgba(27, 10, 53, .75); }
.pm__added { background: #e6fbd1; border-radius: 14px; padding: 10px 14px; font-weight: 700; animation: pop .4s var(--spring); }
.tag-mayor { display: inline-block; font-style: normal; background: var(--lime); color: var(--ink); border-radius: 999px; padding: .15em .65em; font: 800 .85rem/1.3 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.card__mayor { font-size: .92rem; font-weight: 700; background: #fff7d6; border-radius: 10px; padding: .3em .6em; margin-top: 2px; }
.btn--wa { --bg: #25d366; --fg: var(--ink); }
.btn--wa svg { flex: none; }

.cart { border: 0; padding: 0; margin: auto; width: min(580px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 30px 80px rgba(27, 10, 53, .4); }
.cart[open] { display: flex; flex-direction: column; animation: pop .45s var(--spring); }
.cart::backdrop { background: rgba(27, 10, 53, .62); backdrop-filter: blur(4px); animation: fade .3s; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 14px 22px; background: var(--sky); }
.cart__head h3 { font-size: 2.2rem; }
.cart .pm__close { position: static; }
.cart__body { overflow: auto; padding: 4px 18px; flex: 1; min-height: 120px; }
.cart__empty { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.muted { color: rgba(27, 10, 53, .7); }
.crow { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 2px dashed rgba(27, 10, 53, .12); }
.crow img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--tint); grid-row: span 2; }
.crow__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; grid-column: 2; }
.crow__info strong { font: 800 1.3rem/1.05 var(--f-display); }
.crow__unit { font-size: .92rem; color: rgba(27, 10, 53, .78); }
.crow__hint { font-style: normal; color: var(--crimson); font-weight: 700; }
.crow .qty { grid-column: 2; justify-self: start; }
.crow__total { grid-column: 3; grid-row: 2; font: 800 1.45rem/1 var(--f-display); color: var(--crimson); text-align: right; }
.crow__x { grid-column: 3; grid-row: 1; justify-self: end; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.crow__x:hover { background: var(--crimson); color: #fff; transform: rotate(90deg); }
.cart__foot { padding: 14px 22px 20px; border-top: 3px solid var(--tint); display: flex; flex-direction: column; gap: 10px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.4rem/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.cart__total small { font: 700 .9rem/1 var(--f-body); text-transform: none; letter-spacing: 0; color: rgba(27, 10, 53, .7); }
.cart__total strong { font: 800 2.6rem/1 var(--f-display); color: var(--crimson); letter-spacing: 0; }
.cart__note { font-size: .92rem; color: rgba(27, 10, 53, .78); }
.cart__note:empty { display: none; }
.cart__foot .btn { width: 100%; }
.cart__clear { background: none; border: 0; color: rgba(27, 10, 53, .7); text-decoration: underline; cursor: pointer; font: inherit; align-self: center; }
@media (max-width: 560px) {
  .crow { grid-template-columns: 56px 1fr auto; }
  .crow img { width: 56px; height: 56px; }
}


/* ===== Refinamiento de diseño: menos ruido, un solo foco por pantalla ===== */
:root { --shadow-soft: 0 1px 2px rgba(27, 10, 53, .06), 0 14px 30px -14px rgba(27, 10, 53, .32); }

/* tarjetas con profundidad suave (en vez de bloques duros) */
.card { box-shadow: 0 0 0 3px var(--cat) inset, var(--shadow-soft); }
.card:hover { box-shadow: 0 0 0 3px var(--cat) inset, 0 24px 44px -18px rgba(27, 10, 53, .45); }
.cat { box-shadow: var(--shadow-soft); }
.cat:hover { box-shadow: 0 24px 44px -18px rgba(27, 10, 53, .45); }
.steps li { box-shadow: var(--shadow-soft); }
.crow { border-bottom-style: solid; }
.btn { box-shadow: 0 5px 0 rgba(27, 10, 53, .18); }
.sec__head { margin-bottom: clamp(24px, 4vw, 44px); }
.sec__head h2 { text-wrap: balance; }
.lead { max-width: 33ch; text-wrap: pretty; }

@media (max-width: 720px) {
  /* inicio: cabe en una pantalla y se lee en orden: titular → botón → niños */
  .hero { padding: 90px var(--gutter) 64px; }
  .hero__in { gap: 6px; }
  .hero h1 { font-size: clamp(2.7rem, 12.4vw, 3.4rem); }
  .lead { font-size: 1.04rem; margin-top: 14px; max-width: 28ch; }
  .hero__cta { margin-top: 22px; }
  .stage { height: clamp(300px, 52svh, 470px); }
  .hero__mark { width: 92vw; right: -26%; top: 34%; opacity: .32; }
  .bubbles i:nth-child(n+4) { display: none; }
  .kids__say { top: -1%; font-size: .98rem; padding: .45em .8em; }
  .kids__say--l { left: 2%; }
  .kids__say--r { right: 0; }

  /* WhatsApp: en celular es una burbuja compacta (cara + insignia verde), no un busto que tape a los niños */
  .wa { width: 66px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa__avatar { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--lime); border: 3px solid #fff; box-shadow: 0 12px 24px -8px rgba(27, 10, 53, .55); }
  .wa.is-in .wa__avatar { animation: none; }
  .wa__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: none; filter: none; }
  .wa__btn { left: auto; right: -6px; bottom: -4px; width: 28px; box-shadow: 0 3px 8px rgba(0, 0, 0, .28), 0 0 0 2px #fff; }
  .wa__btn::after { display: none; }
  .wa__bubble { right: 0; bottom: calc(100% + 12px); max-width: min(236px, calc(100vw - 28px)); padding: 12px 32px 12px 14px; font-size: .95rem; }
  .wa__bubble::after { right: 24px; }
}


/* ===== Tienda por páginas: inicio, productos y producto ===== */
a.card { text-decoration: none; }
.card__media .badge--feat { right: auto; left: 12px; background: var(--orange); color: var(--ink); padding: .4em .6em; }
.card__media .badge--video { top: auto; bottom: 12px; right: 12px; background: var(--ink); color: #fff; }
.card__media .badge--demo { left: 12px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--crimson); font: 800 1.05rem/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 12px 0 4px; }
.foot__nav a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* categorías del inicio (las crea el dueño) */
.cats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: var(--max); margin-inline: auto; }
.cat { min-height: 320px; }
.cat svg { width: 44%; max-width: 160px; top: 22px; }
.cat h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 230px; padding: 20px; } .cat svg { width: 56%; } }

/* destacados: hasta 5 en fila; en celular se desliza de lado */
.feat { --g: clamp(14px, 1.8vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); max-width: var(--max); margin-inline: auto; }
.feat > .card { flex: 0 1 calc((100% - 4 * var(--g)) / 5); min-width: 0; }
.feat__more { display: flex; justify-content: center; margin-top: 30px; }
@media (max-width: 1100px) { .feat > .card { flex-basis: calc((100% - 2 * var(--g)) / 3); } }
@media (max-width: 760px) {
  .feat { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feat::-webkit-scrollbar { display: none; }
  .feat > .card { flex: 0 0 min(74%, 290px); scroll-snap-align: start; }
}

/* páginas interiores */
.page { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 104px var(--gutter) 70px; min-height: 70vh; }
.pagehead h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-wrap: balance; }
.pagehead__sub { color: rgba(27, 10, 53, .7); margin-top: 6px; min-height: 1.5em; }
.tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 18px 0 26px; }
.searchbox { position: relative; flex: 1 1 260px; max-width: 440px; display: block; }
.searchbox svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: rgba(27, 10, 53, .55); pointer-events: none; }
.searchbox input { width: 100%; border: 3px solid rgba(27, 10, 53, .16); border-radius: 999px; padding: .75em 1em .75em 2.9em; font: inherit; font-weight: 600; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.searchbox input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(34, 186, 225, .25); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters--scroll { justify-content: flex-start; margin: 0; flex: 1 1 100%; }
.chip small { font: 700 .8rem/1 var(--f-body); opacity: .65; margin-left: .3em; }
@media (max-width: 720px) {
  .searchbox { max-width: none; flex-basis: 100%; }
  .filters--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .filters--scroll::-webkit-scrollbar { display: none; }
  .filters--scroll .chip { flex: none; }
  .page { padding-top: 92px; }
}

/* página de producto */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .95rem; margin-bottom: 18px; color: rgba(27, 10, 53, .7); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:last-child { font-weight: 700; color: var(--ink); }
.pp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 52px); align-items: start; }
.pp .pm__gallery { padding: 0; background: transparent; position: sticky; top: 96px; }
.pp .pm__main { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.pp__stage { position: absolute; inset: 0; }
.pp__stage img, .pp__stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.pp__stage video { background: #000; }
.pp .pm__info { padding: 4px 0 0; }
.pp .pm__info h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.pm__thumbs button { position: relative; }
.pm__thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; font-size: .65rem; padding-left: 2px; pointer-events: none; }
.pp__share { align-self: flex-start; margin-top: 4px; }
.related { margin-top: 56px; border-radius: var(--r-lg); padding-inline: clamp(16px, 3vw, 36px); }
@media (max-width: 860px) {
  .pp { grid-template-columns: minmax(0, 1fr); }
  .pp .pm__gallery { position: static; }
  .pp .pm__main { aspect-ratio: 4 / 3; }
}

.pp__stage img.is-ph { object-fit: cover; }

.pp .pm__count { bottom: auto; top: 12px; }


/* ===== Subcategorías, opciones del producto (colores, tallas…) y zoom ===== */
/* tienda: dentro de una categoría solo se ven sus subcategorías */
.backlink { display: inline-flex; align-items: center; gap: .35em; margin-bottom: 6px; color: var(--crimson); font: 800 1.05rem/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.backlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip__more { margin-left: .35em; font-size: 1.15em; line-height: 0; }
.filters--sub .chip:first-child { border-color: var(--crimson); }
.filters--sub .chip:first-child[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); }
.crumbs a#crumbCat:has(+ #crumbSubSep[hidden]) { font-weight: 700; color: var(--ink); }

/* tarjeta: muestra de colores u opciones */
.card__opts { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.card__opts i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(27, 10, 53, .2); }
.card__opts small { font: 700 .85rem/1 var(--f-body); color: rgba(27, 10, 53, .7); margin-left: 2px; }
.card__opts--txt { display: block; font-size: .9rem; color: rgba(27, 10, 53, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* página del producto: elegir color, talla, tamaño… */
.opts { display: flex; flex-direction: column; gap: 14px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 8px; font: 800 1.05rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.opt legend b { font: 700 1rem/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
.opt.is-need legend b { color: var(--crimson); }
.opt.is-need .opt__vals { animation: optShake .45s var(--ease); }
@keyframes optShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 3px; background: #fff; cursor: pointer; box-shadow: 0 0 0 2px rgba(27, 10, 53, .14); transition: box-shadow .2s, transform .25s var(--spring); }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(27, 10, 53, .16); }
.sw--img { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; }
.sw--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.sw--img i { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; box-shadow: 0 0 0 2px #fff; }
.sw:hover:not(:disabled) { transform: translateY(-2px); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--crimson); }
.pill { border: 2px solid rgba(27, 10, 53, .18); background: #fff; color: var(--ink); border-radius: 12px; min-width: 48px; min-height: 44px; padding: .45em .9em; cursor: pointer; font: 700 1rem/1.1 var(--f-body); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color .2s, background .2s, transform .25s var(--spring); }
.pill small { font: 700 .8rem/1 var(--f-body); color: var(--crimson); }
.pill:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); }
.pill[aria-pressed="true"] { border-color: var(--crimson); background: #fff0f4; box-shadow: inset 0 0 0 1px var(--crimson); }
.sw:disabled, .pill:disabled { cursor: not-allowed; opacity: .45; }
.sw:disabled::after, .pill:disabled::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: rgba(27, 10, 53, .7); transform: rotate(-35deg); }
.pill { position: relative; }
.sw:focus-visible, .pill:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* carrito: opción elegida */
.crow__opt { font-size: .88rem; font-weight: 700; color: rgba(27, 10, 53, .75); }

/* zoom con el mouse en la foto del producto (solo computador) */
.pm__main.can-zoom .pp__stage img:not(.is-ph) { cursor: zoom-in; transition: transform .22s var(--ease); will-change: transform; }
.pm__main.is-zoom .pp__stage img { transform: scale(2.4); cursor: crosshair; }
@media (prefers-reduced-motion: reduce) { .pm__main.can-zoom .pp__stage img { transition: none; } }

/* ===== Foto en grande (celular/tablet): tocar la foto la abre a pantalla completa ===== */
.pm__expand { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 rgba(27, 10, 53, .18); }
.pm__expand svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .pm__expand { display: none; } }
.lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(27, 10, 53, .96); color: #fff; overflow: hidden; }
.lb[open] { animation: fade .25s; }
.lb::backdrop { background: rgba(27, 10, 53, .96); }
html:has(.lb[open]) { overflow: hidden; }
.lb__stage { position: absolute; inset: 0; display: grid; place-items: center; touch-action: none; overflow: hidden; }
.lb__stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center; will-change: transform; }
.lb__stage img.is-anim { transition: transform .28s var(--ease); }
.lb.is-zoomed .lb__stage { cursor: grab; }
.lb__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb__count { position: absolute; top: max(20px, calc(env(safe-area-inset-top) + 8px)); left: 14px; z-index: 2; background: rgba(255, 255, 255, .16); color: #fff; padding: .4em .85em; border-radius: 999px; font: 700 .95rem/1 var(--f-display); letter-spacing: .06em; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: opacity .2s; }
.lb__nav--prev { left: 8px; } .lb__nav--next { right: 8px; }
.lb.is-zoomed .lb__nav { opacity: 0; pointer-events: none; }
.lb__hint { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 2; margin: 0; padding: .55em 1em; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .92rem; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.lb__hint.is-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lb__stage img.is-anim { transition: none; } .lb[open] { animation: none; } }
