:root {
  --bg: #0c0a12;
  --bg-2: #13101b;
  --surface: #191523;
  --surface-2: #211c2e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f7f4ff;
  --muted: #a7a0bb;
  --pink: #ff3d8b;
  --violet: #8b5cff;
  --lime: #d4ff3a;
  --cyan: #3de0ff;
  --kofi: #ff5e5b;
  --ok: #3ee08f;
  --warn: #ffb547;
  --grad: linear-gradient(110deg, var(--pink), var(--violet) 55%, var(--cyan));
  --radius: 22px;
  --radius-sm: 14px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* grano sutil */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ─── Botones ─── */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 1.3em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { --h: 54px; padding: 0 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); background-size: 160% 100%; color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 61, 139, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(139, 92, 255, .8); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .07); }
.btn-kofi { background: var(--kofi); color: #fff; box-shadow: 0 10px 30px -12px var(--kofi); }
.btn-kofi:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(90deg); }
.chip-btn {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: .3em .9em;
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.chip-btn:hover { background: rgba(255, 255, 255, .08); }
.link-btn { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 700; text-decoration: none; }
.link-btn:hover { color: var(--text); }

/* ─── Anuncio y navegación ─── */
.announce {
  background: var(--lime); color: #12091f; text-align: center; font-weight: 800; font-size: .82rem;
  padding: 8px var(--gutter); letter-spacing: .01em;
}
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter);
  background: rgba(12, 10, 18, .72); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; background: var(--grad); flex: none;
  box-shadow: 0 0 24px -4px var(--pink); position: relative;
}
.brand-mark::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--lime) inset; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cart-btn {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 800;
  transition: border-color .2s, transform .2s;
}
.cart-btn:hover { border-color: var(--pink); }
.cart-btn.bump { animation: bump .5s var(--ease); }
.cart-count {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--lime); color: #12091f; font-size: .8rem; font-weight: 900;
}
@keyframes bump { 30% { transform: scale(1.12) rotate(-3deg); } 60% { transform: scale(.96); } }

/* ─── Hero ─── */
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 110px) var(--gutter) clamp(50px, 7vw, 100px); min-height: min(88vh, 860px);
  isolation: isolate;
}
.blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 46vw; height: 46vw; background: var(--pink); top: -16vw; right: -8vw; }
.blobs i:nth-child(2) { width: 38vw; height: 38vw; background: var(--violet); bottom: -14vw; left: -10vw; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 22vw; height: 22vw; background: var(--cyan); top: 30%; left: 40%; opacity: .25; animation-delay: -12s; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.15); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); font-weight: 700; font-size: .85rem;
  backdrop-filter: blur(10px);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.6rem); font-weight: 900; margin: 22px 0 20px; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% 0; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust b { color: var(--text); }
.trust-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }

.hero-art { position: relative; height: clamp(360px, 46vw, 560px); }
.float-card {
  position: absolute; width: 58%; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .03);
  animation: float 7s ease-in-out infinite; cursor: pointer;
  transition: transform .5s var(--ease);
}
.float-card img, .float-card .ph { width: 100%; height: 100%; object-fit: cover; }
.float-card:nth-child(1) { left: 2%; top: 14%; rotate: -9deg; animation-delay: -1s; }
.float-card:nth-child(2) { right: 0; top: 0; rotate: 7deg; z-index: 2; animation-delay: -3s; }
.float-card:nth-child(3) { left: 26%; bottom: -2%; rotate: -2deg; z-index: 3; width: 50%; animation-delay: -5s; }
.float-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px; background: rgba(12, 10, 18, .7); backdrop-filter: blur(12px);
  font-weight: 800; font-size: .85rem;
}
.float-tag span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-tag .price-pill { flex: none; }
@keyframes float { 50% { transform: translateY(-14px); } }
.sticker {
  position: absolute; z-index: 5; right: 6%; bottom: 10%; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--lime); color: #12091f;
  font: 900 .78rem/1.15 var(--display); text-transform: uppercase; rotate: 12deg;
  box-shadow: 0 20px 40px -14px rgba(212, 255, 58, .6); animation: spin 18s linear infinite;
}
@keyframes spin { to { rotate: 372deg; } }

/* ─── Marquesina ─── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; rotate: -1.2deg; margin: 0 -10px; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font: 800 clamp(1rem, 2vw, 1.5rem) var(--display); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--pink); }
.marquee-track span:nth-child(even) { -webkit-text-stroke: 1px var(--muted); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Secciones ─── */
section { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head.center { justify-content: center; text-align: center; }
.kicker { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }

/* ─── Tienda ─── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; min-width: min(320px, 100%);
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--violet); }
.search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; color: var(--text); }
select {
  height: 48px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background-color: var(--surface);
  appearance: none; cursor: pointer; font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a7a0bb' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  font-weight: 800; font-size: .88rem; color: var(--muted); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-selected='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { opacity: .6; margin-left: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 61, 139, .5); box-shadow: 0 30px 60px -30px rgba(255, 61, 139, .55); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img, .card:hover .card-media .ph { transform: scale(1.06); }
.card.soldout .card-media { filter: grayscale(.85) brightness(.7); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: var(--lime); color: #12091f; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
}
.stock-pill {
  position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: .75rem;
  background: rgba(12, 10, 18, .75); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
}
.stock-pill.low { color: var(--warn); border-color: rgba(255, 181, 71, .4); }
.stock-pill.out { color: #fff; background: rgba(255, 61, 139, .85); border-color: transparent; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-name { font: 700 1.02rem/1.25 var(--display); letter-spacing: -.01em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font: 800 1.25rem var(--display); }
.price-pill { background: var(--text); color: var(--bg); padding: 3px 10px; border-radius: 999px; font: 800 .82rem var(--display); }
.add-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.4rem; font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.add-btn:hover { transform: rotate(90deg) scale(1.08); box-shadow: 0 0 0 6px rgba(255, 61, 139, .18); }
.add-btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.add-btn.added { animation: pop .5s var(--ease); background: var(--ok); }
@keyframes pop { 40% { transform: scale(1.25); } }
.ph {
  display: grid; place-items: center; font: 900 clamp(3rem, 8vw, 5rem) var(--display); color: rgba(255, 255, 255, .92);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}
.skeleton { min-height: 380px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; cursor: default; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 700; }

/* ─── Cómo funciona ─── */
.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .4s var(--ease);
}
.step:hover { transform: translateY(-4px); }
.step::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .18; }
.step-n { font: 900 3.4rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.4rem; margin: 18px 0 10px; }
.step p { color: var(--muted); margin: 0; }
.step b { color: var(--text); }

/* ─── FAQ ─── */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 800; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 700 1.5rem/1 var(--display); color: var(--pink); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); white-space: pre-line; }

/* ─── Seguimiento ─── */
.track-card {
  max-width: 1100px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 255, .45), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(255, 61, 139, .35), transparent 55%), var(--surface);
  border: 1px solid var(--line-2); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
}
.track-card p { color: var(--muted); margin: 12px 0 0; }
.track-form { display: flex; gap: 10px; }
.track-form input {
  flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12, 10, 18, .6);
  font: 800 1rem var(--display); text-transform: uppercase; letter-spacing: .06em;
}
.track-form input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; }
.my-orders { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
.my-orders a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--text); font-family: var(--display); font-size: .8rem; }
.my-orders a:hover { border-color: var(--lime); }

/* ─── Pie ─── */
.footer {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
  padding: 40px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand b { color: var(--text); font-family: var(--display); }
.footer-brand p { margin: 2px 0 0; }
.footer-pay { display: flex; gap: 8px; }
.pay-logo { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 900; font-size: .8rem; color: var(--text); }
.footer-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-weight: 700; text-decoration: none; color: var(--text); }

/* ─── Carrito ─── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 9, .6); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 16px; }
.drawer-head h2 { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.total-row b { font: 900 1.6rem var(--display); }
.fine { color: var(--muted); font-size: .82rem; margin: 6px 0 14px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); animation: rise .4s var(--ease) both; }
.line-img { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; }
.line-img img, .line-img .ph { width: 100%; height: 100%; object-fit: cover; font-size: 1.6rem; }
.line-name { font-weight: 800; line-height: 1.25; font-size: .95rem; }
.line-price { color: var(--muted); font-size: .85rem; font-weight: 700; }
.line-side { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 700; text-decoration: underline; }
.remove:hover { color: var(--pink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 36px; }
.qty button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.1rem; font-weight: 800; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 900; }
.cart-empty { text-align: center; margin: auto; padding: 40px 10px; color: var(--muted); }
.cart-empty .big { font-size: 3rem; display: block; margin-bottom: 10px; }

/* ─── Modales ─── */
.modal {
  border: 1px solid var(--line-2); border-radius: 28px; padding: 0; background: var(--bg-2); color: var(--text);
  width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9);
}
.modal::backdrop { background: rgba(5, 4, 9, .7); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.product-modal[open] { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow-x: hidden; }
.pm-gallery { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pm-main { aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--surface); }
.pm-main img, .pm-main .ph { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pm-thumbs button { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .6; }
.pm-thumbs button.on { border-color: var(--pink); opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 44px 34px 34px 20px; display: flex; flex-direction: column; }
.pm-info h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.pm-price-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pm-price { font: 900 2rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-price-row .stock-pill { position: static; }
.pm-desc { color: var(--muted); white-space: pre-line; margin: 0 0 24px; }
.pm-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.pm-actions .qty { height: 54px; }
.pm-actions .qty button { width: 44px; }
.pm-actions .btn { flex: 1; }
.pm-perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.pm-perks b { color: var(--text); }

/* ─── Compra ─── */
.checkout { width: min(560px, calc(100% - 24px)); padding: 30px clamp(18px, 4vw, 34px) 34px; }
.checkout h2 { font-size: 1.7rem; margin-bottom: 18px; }
.co-steps { display: flex; gap: 6px; margin-bottom: 22px; padding-right: 40px; }
.co-steps span { flex: 1; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--surface-2); transition: all .3s; }
.co-steps span.on { color: var(--text); border-color: var(--pink); }
.co-summary { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; }
.co-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); font-weight: 600; }
.co-summary .row.total { color: var(--text); font-weight: 900; border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 10px; font-size: 1.05rem; }
.fields { display: grid; gap: 14px; }
.fields label { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; }
.fields small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.fields input, .fields textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.fields input:focus, .fields textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .2); }
.fields input.invalid { border-color: var(--pink); }
.pay-methods { border: 0; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pay-methods legend { font-weight: 800; font-size: .88rem; margin-bottom: 8px; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line-2);
  background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; font-weight: 900;
}
.pay-opt small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.pay-opt input:checked + span { border-color: var(--pink); background: rgba(255, 61, 139, .08); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-error { color: #ff8db5; background: rgba(255, 61, 139, .1); border: 1px solid rgba(255, 61, 139, .35); padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem; margin: 16px 0 0; }
#coSubmit { margin-top: 20px; }
.order-code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; margin-bottom: 18px;
  background: repeating-linear-gradient(-45deg, rgba(212, 255, 58, .06) 0 10px, transparent 10px 20px), var(--surface); border: 1px dashed var(--lime);
}
.order-code > span { width: 100%; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.order-code b { font: 900 1.7rem var(--display); letter-spacing: .04em; color: var(--lime); margin-right: auto; }
.lead { font-size: 1.05rem; }
.paypal-box { min-height: 150px; margin: 14px 0 4px; border-radius: 16px; background: #fff; padding: 14px; color-scheme: light; }
.kofi-steps { padding-left: 20px; margin: 0 0 18px; display: grid; gap: 8px; color: var(--muted); }
.kofi-steps b { color: var(--text); }
.waiting { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 16px; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--lime); animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.done { text-align: center; }
.done-burst {
  width: 92px; height: 92px; margin: 34px auto 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #06240f; font: 900 2.6rem var(--display); animation: pop .7s var(--ease);
  box-shadow: 0 0 0 12px rgba(62, 224, 143, .15), 0 0 0 26px rgba(62, 224, 143, .06);
}

/* ─── Avisos ─── */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--text); color: var(--bg);
  font-weight: 800; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7); animation: toastIn .4s var(--ease);
}
.toast.error { background: var(--pink); color: #fff; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ─── Página de pedido ─── */
.order-page { max-width: 760px; margin: 0 auto; padding: clamp(30px, 6vw, 70px) var(--gutter) 80px; }
.order-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin: 6px 0 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 900; font-size: .85rem; }
.status-pill.pendiente { background: rgba(255, 181, 71, .14); color: var(--warn); }
.status-pill.pagado { background: rgba(61, 224, 255, .14); color: var(--cyan); }
.status-pill.enviado { background: rgba(62, 224, 143, .14); color: var(--ok); }
.status-pill.cancelado { background: rgba(255, 255, 255, .08); color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline li { position: relative; text-align: center; font-weight: 800; font-size: .88rem; color: var(--muted); padding-top: 50px; }
.timeline li::before {
  content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2); z-index: 1;
}
.timeline li::after { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--grad); border-color: transparent; }
.timeline li.done::after { background: var(--pink); }
.timeline li.current::before { box-shadow: 0 0 0 8px rgba(255, 61, 139, .18); }
.timeline small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 22px; margin-top: 16px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.order-lines { display: grid; gap: 10px; }
.order-lines .line { animation: none; background: var(--bg-2); }
.notice { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-weight: 600; }
.notice b { color: var(--text); }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .track-card { grid-template-columns: 1fr; }
  .product-modal[open] { grid-template-columns: 1fr; }
  .pm-info { padding: 10px 22px 26px; }
}
@media (max-width: 560px) {
  .cart-label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .hero-art { height: 340px; }
  .sticker { width: 88px; height: 88px; font-size: .62rem; }
  .toolbar, .search { width: 100%; }
  .toolbar select { flex: 1; }
  .track-form { flex-direction: column; }
  .track-form .btn { height: 54px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 12px; }
  .badge, .stock-pill { top: 8px; font-size: .66rem; padding: 4px 8px; }
  .badge { left: 8px; }
  .stock-pill { right: 8px; }
  .badge + .stock-pill { top: 36px; left: 8px; right: auto; }
  .card-name { font-size: .88rem; }
  .price { font-size: 1rem; }
  .add-btn { width: 38px; height: 38px; }
  .skeleton { min-height: 260px; }
  .timeline li { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
