/* =========================================================
   MOO CHUU · tienda en línea (demo)
   ========================================================= */

:root {
  --ink: #141416;
  --ink-soft: #57535e;
  --cream: #fff7ef;
  --blush: #ffe4ee;
  --pink: #ff3d8b;
  --pink-deep: #d6176c;
  --yellow: #ffd23f;
  --yellow-tint: #fff4c7;
  --lime: #a3e05a;
  --navy: #1e2f6e;
  --line: rgba(20, 20, 22, .12);
  --white: #fff;

  --display: "Anton", Impact, sans-serif;
  --script: "Caveat", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.02; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.hand { margin: 0 0 4px; font-family: var(--script); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--pink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px;
  border: 0; border-radius: 40px;
  background: var(--ink); color: var(--white);
  font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--pink { background: var(--pink); box-shadow: 0 14px 30px -14px rgba(214, 23, 108, .7); }
.btn--pink:hover { background: var(--pink-deep); }
.btn--line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 30px; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Avisos ---------- */
.announce { position: relative; height: 38px; overflow: hidden; background: var(--ink); color: var(--white); font-size: .84rem; text-align: center; }
.announce span { position: absolute; inset: 0; display: block; line-height: 38px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: .5s var(--ease); white-space: nowrap; }
.announce span.is-on { opacity: 1; transform: none; }
.announce b { color: var(--yellow); }

/* ---------- Encabezado ---------- */
.head { position: sticky; top: 0; z-index: 30; background: rgba(255, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 38px; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: .92; color: var(--ink); letter-spacing: .02em; }
.logo small { display: block; font-size: .6em; letter-spacing: .16em; }
.logo--light b { color: var(--white); }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav a { position: relative; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: none; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); }
.cart-btn__n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 12px; background: var(--pink); font-size: .74rem; font-weight: 700; line-height: 22px; }
.cart-btn.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-8deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #f9c9cf; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__in { position: relative; min-height: 560px; padding: 70px 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); max-width: 7em; margin-bottom: 18px; }
.hero h1 span { color: var(--pink-deep); }
.hero__lead { max-width: 27em; font-size: 1.1rem; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__from { margin: 18px 0 0; font-size: .95rem; color: var(--ink); }
.hero__from b { font-size: 1.15rem; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: -32px auto 0; padding: 0; list-style: none; position: relative; z-index: 2; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--white); box-shadow: 0 18px 40px -26px rgba(20, 20, 22, .35); font-weight: 500; color: var(--ink); font-size: .94rem; }
.perks span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blush); }
.perks li:nth-child(2) span { background: var(--yellow-tint); }
.perks li:nth-child(3) span { background: #edf9de; }

/* ---------- Secciones ---------- */
.sec { padding: 90px 0; }
.sec--blush { background: var(--blush); }
.sec--yellow { background: var(--yellow-tint); }
.sec__head { max-width: 640px; margin-bottom: 38px; }
.sec__head p:last-child { font-size: 1.05rem; }

/* ---------- Configurador ---------- */
.builder { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.builder__view { position: sticky; top: 96px; display: grid; justify-items: center; gap: 12px; padding: 30px; border-radius: 30px; background: radial-gradient(circle at 50% 40%, #fff 0, var(--blush) 70%); }
.preview { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.preview svg { width: 100%; height: 100%; filter: drop-shadow(0 24px 22px rgba(20, 20, 22, .18)); animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.96) rotate(-1deg); opacity: .6; } }
.preview__name { margin: 0; font-family: var(--script); font-weight: 700; font-size: 1.7rem; color: var(--ink); text-align: center; line-height: 1.1; }

.chip { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 30px; background: var(--white); font-weight: 500; font-size: .9rem; transition: .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip--ghost { background: transparent; border-color: var(--ink); }

.builder__opts { display: grid; gap: 22px; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 700; color: var(--ink); }
.step legend > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-family: var(--display); font-weight: 400; font-size: .95rem; }
.step__val { font-weight: 400; color: var(--ink-soft); }
.step__hint { margin-left: auto; font-weight: 500; font-size: .84rem; color: var(--pink-deep); }
.step__error { margin: 8px 0 0; color: var(--pink-deep); font-weight: 500; font-size: .9rem; }
.link { margin-left: auto; padding: 0; border: 0; background: none; color: var(--pink-deep); font-weight: 500; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; font-size: .76rem; color: var(--ink-soft); }
.swatch i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(20, 20, 22, .12); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .12); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.swatch:hover i { transform: scale(1.08); }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.swatch[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.swatches--sm { margin-top: 12px; }
.swatches--sm .swatch i { width: 32px; height: 32px; }
.swatches--sm[hidden] { display: none; }

.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.styles button, .pins button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 10px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); font-size: .82rem; font-weight: 500; color: var(--ink); transition: .2s var(--ease); }
.styles svg { width: 44px; height: 60px; }
.styles button:hover, .pins button:hover { border-color: var(--ink); }
.styles button[aria-pressed="true"], .pins button[aria-pressed="true"] { border-color: var(--pink); background: var(--blush); box-shadow: 0 0 0 1px var(--pink); }
.pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pins svg { width: 30px; height: 30px; }

.sizes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.sizes button { height: 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 700; color: var(--ink); transition: .2s var(--ease); }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sizes.is-error button { border-color: var(--pink); }

.gift { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--white); border: 1.5px dashed rgba(214, 23, 108, .4); cursor: pointer; color: var(--ink); }
.gift input { width: 20px; height: 20px; accent-color: var(--pink); }

.buy { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 20px; border-radius: 22px; background: var(--ink); color: rgba(255, 255, 255, .75); }
.buy__price strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--white); }
.buy__price span { font-size: .84rem; }
.buy__price b { color: var(--yellow); }
.qty { display: flex; align-items: center; border-radius: 30px; background: rgba(255, 255, 255, .1); }
.qty button { width: 40px; height: 44px; border: 0; background: none; color: var(--white); font-size: 1.2rem; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; color: var(--white); }
.buy__add { grid-column: 1 / -1; }

/* ---------- Favoritas ---------- */
.favs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fav { display: grid; gap: 4px; padding: 18px 18px 20px; border: 0; border-radius: var(--r); background: var(--white); text-align: left; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fav:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 50px -30px rgba(214, 23, 108, .45); }
.fav__img { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: 16px; background: var(--cream); }
.fav__img svg { width: 62%; height: 90%; }
.fav b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; color: var(--ink); }
.fav span { font-size: .88rem; }
.fav em { font-style: normal; font-weight: 700; color: var(--pink-deep); }

/* ---------- Grupos ---------- */
.groups { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.group { position: relative; overflow: hidden; border-radius: var(--r); min-height: 380px; background: var(--ink); }
.group img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.group:hover img { transform: scale(1.05); }
.group::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 22, .78)); }
.group div { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.group h3 { color: var(--white); margin: 10px 0 0; font-size: 1.6rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: center; margin-top: 22px; padding: 20px; border-radius: var(--r); background: var(--blush); }
.tiers div { padding: 6px 12px; }
.tiers b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); text-transform: uppercase; }
.tiers span { font-size: .9rem; }

/* ---------- Tallas ---------- */
.sizing { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.howto { padding-left: 20px; margin: 0 0 22px; display: grid; gap: 6px; color: var(--ink); }
.finder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; color: var(--ink); }
.finder input { width: 110px; height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-size: 1.2rem; font-weight: 700; }
.finder__out { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--white); color: var(--ink); }
.finder__out b { color: var(--pink-deep); font-size: 1.15rem; }
.size-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; background: var(--white); font-size: .95rem; }
.size-table caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 10px; }
.size-table th, .size-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--ink); color: var(--white); font-weight: 500; font-size: .82rem; }
.size-table tr.is-hit td { background: var(--blush); font-weight: 700; color: var(--ink); }
.size-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Reseñas y FAQ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reviews blockquote { margin: 0; padding: 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.reviews p { font-size: 1.02rem; color: var(--ink); }
.reviews cite { font-style: normal; font-size: .86rem; font-weight: 700; color: var(--pink-deep); }
.demo-note { margin-top: 14px; font-size: .8rem; opacity: .7; }
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.faq details { padding: 18px 22px; margin-bottom: 10px; border-radius: 18px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }

/* ---------- Pie ---------- */
.foot { padding: 50px 0 60px; background: var(--ink); color: rgba(255, 255, 255, .7); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot .hand { color: var(--yellow); margin: 0; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-logos span { padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 700; letter-spacing: .04em; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 40px; background: #25d366; color: var(--white); font-weight: 700; font-size: .9rem; box-shadow: 0 16px 30px -12px rgba(37, 211, 102, .7); }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 22, .45); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--cream); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 10px; }
.drawer__head h2 { margin: 0; font-size: 1.8rem; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); font-size: 1rem; color: var(--ink); }
.ship { margin: 0 22px 12px; padding: 14px 16px; border-radius: 16px; background: var(--white); font-size: .9rem; color: var(--ink); }
.ship p { margin: 0 0 8px; }
.ship b { color: var(--pink-deep); }
.ship__bar { height: 8px; border-radius: 8px; background: var(--blush); overflow: hidden; }
.ship__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .6s var(--ease); }
.ship.is-free .ship__bar span { background: var(--lime); }
.drawer__items { flex: 1; overflow-y: auto; padding: 4px 22px; }
.empty { padding: 50px 10px; text-align: center; }
.empty .hand { font-size: 2rem; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item__img { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; background: var(--white); }
.item__img svg { width: 80%; height: 86%; }
.item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.item p { margin: 0; font-size: .8rem; line-height: 1.45; }
.item__qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.item__qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 1rem; }
.item__qty span { min-width: 16px; text-align: center; font-weight: 700; font-size: .9rem; }
.item__side { display: grid; justify-items: end; align-content: space-between; }
.item__side b { color: var(--ink); }
.item__rm { padding: 0; border: 0; background: none; font-size: .78rem; text-decoration: underline; color: var(--ink-soft); }
.drawer__foot { padding: 18px 22px 22px; background: var(--white); border-top: 1px solid var(--line); }
.drawer__foot[hidden] { display: none; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 14px; font-size: .94rem; }
.sum dt, .sum dd { margin: 0; }
.sum dd { text-align: right; color: var(--ink); font-weight: 500; }
.sum .is-save { color: #16803c; }
.sum .is-total { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.secure { margin: 10px 0 0; text-align: center; font-size: .78rem; }

/* ---------- Modales y checkout ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 22, .5); animation: fade .3s; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(460px, 100%); padding: 34px 30px 30px; border-radius: 28px; background: var(--cream); animation: rise .4s var(--ease); }
.modal__box--wide { width: min(940px, 100%); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.modal__box > .x { position: absolute; top: 16px; right: 16px; }
.modal__box h2 { font-size: 1.9rem; padding-right: 40px; }

.co-steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; font-size: .84rem; font-weight: 700; }
.co-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--white); color: var(--ink-soft); }
.co-steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blush); color: var(--ink); }
.co-steps li.is-on { background: var(--ink); color: var(--white); }
.co-steps li.is-on::before { background: var(--yellow); }
.co-steps li.is-done::before { content: "✓"; background: var(--lime); }

.co { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.co__pane[hidden] { display: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.f { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.f--full { grid-column: 1 / -1; }
.f input { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 400; font-size: 1rem; }
.f input:focus { border-color: var(--ink); outline: 0; }
.f input.is-bad { border-color: var(--pink); background: #fff5f9; }
.co__err { color: var(--pink-deep); font-weight: 500; font-size: .9rem; }
.methods { display: grid; gap: 10px; margin-bottom: 14px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer; transition: .2s var(--ease); }
.method:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); background: #fff8fb; }
.method input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); }
.method b { display: block; color: var(--ink); }
.method small { font-size: .84rem; }
.co__demo { padding: 10px 14px; border-radius: 12px; background: var(--yellow-tint); font-size: .8rem; }
.co__row { display: flex; justify-content: space-between; gap: 10px; }
.co__summary { padding: 20px; border-radius: 22px; background: var(--white); font-size: .9rem; }
.co__summary h3 { font-size: 1.1rem; }
.co__summary ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.co__summary li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.co__summary li > span:first-child { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cream); }
.co__summary li svg { width: 80%; height: 86%; }
.co__summary small { display: block; line-height: 1.3; }
.co__done { text-align: center; }
.done__icon { font-size: 3rem; }
.co__done .btn { margin-top: 10px; }
.done__wa { font-size: .9rem; }
.oxxo { margin: 10px 0 16px; padding: 18px; border-radius: 18px; background: var(--white); border: 2px dashed #e30613; }
.oxxo__label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e30613; }
.oxxo__ref { margin: 4px 0 10px; font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.barcode { display: flex; justify-content: center; height: 56px; gap: 0; }
.barcode i { display: block; height: 100%; background: var(--ink); }
.oxxo__amt { margin: 10px 0 0; font-size: .9rem; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 40px; background: var(--ink); color: var(--white); font-weight: 500; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); transition: transform .45s var(--ease), opacity .3s; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .builder { grid-template-columns: 1fr; }
  .builder__view { position: relative; top: 0; padding: 18px; }
  .preview { max-width: 320px; }
  .favs { grid-template-columns: repeat(2, 1fr); }
  .groups { grid-template-columns: 1fr 1fr; }
  .group--big { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tiers .btn { grid-column: 1 / -1; }
  .sizing, .faq { grid-template-columns: 1fr; gap: 30px; }
  .co { grid-template-columns: 1fr; }
  .co__summary { order: -1; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .announce { font-size: .76rem; }
  .head__in { height: 64px; }
  .hero__img { object-position: 78% 50%; opacity: .55; }
  .hero__in { min-height: 0; padding: 50px 0 70px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks li { padding: 12px; font-size: .84rem; gap: 8px; }
  .perks span { width: 32px; height: 32px; }
  .sec { padding: 64px 0; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .sizes { grid-template-columns: repeat(5, 1fr); }
  /* barra de compra fija abajo en celular */
  .buy { position: sticky; bottom: 10px; z-index: 5; box-shadow: 0 20px 40px -16px rgba(20, 20, 22, .6); grid-template-columns: 1fr auto; padding: 14px 16px; }
  .buy__price strong { font-size: 1.7rem; }
  .favs, .reviews { grid-template-columns: 1fr; }
  .fav__img { aspect-ratio: 16 / 9; }
  .groups { grid-template-columns: 1fr; }
  .group { min-height: 300px; }
  .tiers { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .fields { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal__box { border-radius: 26px 26px 0 0; padding: 28px 18px 22px; max-height: 100dvh; overflow-y: auto; }
  .co__row .btn { flex: 1; padding: 0 12px; }
}

/* Celular: legibilidad del hero y que nada tape la barra de compra */
.hero__in { z-index: 1; }
.wa-float { transition: opacity .3s, transform .3s var(--ease); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 640px) {
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 240, 244, .55), rgba(255, 240, 244, .88) 60%, rgba(255, 240, 244, .7)); }
  .hero__img { opacity: 1; }
  body:has(.pnav) .buy { bottom: 82px; }
  body:has(.pnav) .wa-float { bottom: 88px; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 236, 240, .94) 0, rgba(255, 236, 240, .8) 42%, rgba(255, 236, 240, 0) 72%); }
}

/* =========================================================
   v2 · catálogo con fotos, configurador con pins, más color
   ========================================================= */

/* Stickers del hero */
.sticker { position: absolute; z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; font-family: var(--display); font-size: 1.15rem; line-height: 1; text-align: center; text-transform: uppercase; box-shadow: 0 16px 30px -16px rgba(20, 20, 22, .5); animation: wobble 4s ease-in-out infinite; }
.sticker--a { right: 34%; top: 16%; background: var(--yellow); color: var(--ink); transform: rotate(-12deg); }
.sticker--b { right: 4%; bottom: 10%; width: 90px; height: 90px; background: var(--lime); color: var(--ink); animation-delay: -2s; }
@keyframes wobble { 50% { transform: rotate(8deg) scale(1.05); } }

/* Cinta de colores */
.tape { overflow: hidden; margin-top: 30px; padding: 14px 0; background: var(--pink); color: var(--white); transform: rotate(-1.2deg); }
.tape__in { display: flex; gap: 26px; width: max-content; animation: tape 28s linear infinite; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; white-space: nowrap; }
.tape i { font-style: normal; color: var(--yellow); }
.tape i:nth-of-type(2n) { color: var(--lime); }
@keyframes tape { to { transform: translateX(-50%); } }

/* Secciones con fondo de color */
.sec--catalog { background: radial-gradient(circle at 8% 12%, rgba(255, 210, 63, .35) 0 90px, transparent 91px), radial-gradient(circle at 95% 80%, rgba(163, 224, 90, .3) 0 120px, transparent 121px), var(--cream); }
.sec--builder { background: var(--blush); }
.sec--pins { background: var(--ink); color: rgba(255, 255, 255, .75); }
.sec--pins h2, .sec--pins h3 { color: var(--white); }
.sec--pins .hand { color: var(--yellow); }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 9px 16px; border: 2px solid var(--ink); border-radius: 30px; background: var(--white); font-weight: 700; font-size: .86rem; }
.filters button.is-on { background: var(--ink); color: var(--white); }

/* Tarjetas de producto */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { overflow: hidden; border-radius: 26px; background: var(--white); box-shadow: 0 24px 50px -36px rgba(20, 20, 22, .45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(214, 23, 108, .5); }
.card__img { position: relative; aspect-ratio: 1; background: #f4f1ec; cursor: pointer; overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card__alt { opacity: 0; }
.card__img:hover .card__alt { opacity: 1; }
.card__img:hover img { transform: scale(1.04); }
.card__badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 12px; border-radius: 30px; background: var(--yellow); font-size: .74rem; font-weight: 700; color: var(--ink); transform: rotate(-4deg); }
.card:nth-child(2n) .card__badge { background: var(--pink); color: var(--white); }
.card__body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.card__body p { margin: 0; font-size: .92rem; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__row h3 { margin: 0; font-size: 1.6rem; }
.card__row > b { font-size: 1.15rem; color: var(--ink); }
.dots { display: flex; gap: 8px; }
.dot { width: 28px; height: 28px; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: linear-gradient(135deg, var(--s) 50%, var(--t) 50%); box-shadow: 0 0 0 1px var(--line); }
.dot.is-on { box-shadow: 0 0 0 2px var(--ink); }
.stars { color: #f5a400; font-size: .86rem; white-space: nowrap; }
.stars small { color: var(--ink-soft); }

/* Configurador con foto */
.builder__view { background: var(--white); box-shadow: 0 30px 60px -40px rgba(214, 23, 108, .5); }
.stage { position: relative; width: 100%; max-width: 520px; touch-action: none; user-select: none; -webkit-user-select: none; }
.shot { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #f4f1ec; }
.shot__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pin { position: absolute; width: 9%; aspect-ratio: 1; padding: 0; border: 0; background: none; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.pin img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
button.pin { cursor: grab; transition: transform .2s var(--ease); }
button.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
button.pin.is-drag { cursor: grabbing; transform: translate(-50%, -50%) scale(1.25); z-index: 3; transition: none; }
button.pin.is-new { animation: drop .5s var(--ease); }
@keyframes drop { from { transform: translate(-50%, -160%) scale(1.6); opacity: 0; } }
.stage__hint { margin: 2px 0 0; font-size: .84rem; }
.stage__tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.mirror { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.mirror input { width: 18px; height: 18px; accent-color: var(--pink); }

.models { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.models button { display: grid; gap: 2px; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--white); font-size: .78rem; font-weight: 700; color: var(--ink); transition: .2s var(--ease); }
.models img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.models small { font-weight: 400; color: var(--ink-soft); }
.models button:hover { border-color: var(--line); }
.models button[aria-pressed="true"] { border-color: var(--pink); background: #fff8fb; }

.colorways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.colorways button { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px; border: 2px solid transparent; border-radius: 16px; background: var(--white); text-align: left; transition: .2s var(--ease); }
.colorways img { grid-row: span 2; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.colorways span { display: flex; gap: 4px; }
.colorways i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.colorways small { font-size: .74rem; line-height: 1.25; color: var(--ink); }
.colorways button[aria-pressed="true"] { border-color: var(--pink); background: #fff8fb; }

.tray { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 14px; border-radius: 20px; background: var(--white); border: 2px dashed rgba(214, 23, 108, .35); }
.tray__pin { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border: 0; border-radius: 14px; background: var(--cream); transition: transform .2s var(--ease), background .2s; }
.tray__pin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.tray__pin:hover { transform: translateY(-3px) rotate(-6deg); background: var(--blush); }
.tray.is-full .tray__pin { opacity: .45; }
.link--left { margin: 10px 0 0; }

/* Paquetes de pins */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pack { overflow: hidden; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.packimg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px; background: #f4f1ec; }
.packimg img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.pack:nth-child(2n) .packimg { background: var(--blush); }
.pack:nth-child(3n) .packimg { background: var(--yellow-tint); }
.pack__body { padding: 16px 18px 18px; }
.pack__body h3 { margin: 0 0 4px; font-size: 1.35rem; }
.pack__body p { margin: 0 0 10px; font-size: .9rem; }
.pack__body b { font-size: 1.2rem; color: var(--yellow); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .84rem; background: var(--pink); }

/* Miniaturas en carrito y checkout */
.item__img { overflow: hidden; padding: 0; }
.item__img .shot, .co__summary .shot { border-radius: 12px; width: 100%; height: 100%; }
.item__img .packimg, .co__summary .packimg { padding: 8px; gap: 3px; width: 100%; height: 100%; align-content: center; }
.co__summary li > span:first-child { overflow: hidden; padding: 0; }

@media (max-width: 1000px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(3, 1fr); }
  .sticker--a { right: 8%; top: 8%; }
}
@media (max-width: 640px) {
  .catalog { grid-template-columns: 1fr; }
  .sticker { width: 80px; height: 80px; font-size: .9rem; }
  .sticker--a { right: 2%; top: 4%; }
  .sticker--b { display: none; }
  .colorways { grid-template-columns: 1fr; }
  .tray { grid-template-columns: repeat(5, 1fr); }
  .tape__in { font-size: 1.15rem; }
}
