/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #eff1f8;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e4e7f0;
  --brand: #4f46e5;
  --brand-soft: #eceeff;
  --accent: #ff6b35;
  --success: #059669;
  --danger: #e11d48;
  --star: #f59e0b;
  --grad: linear-gradient(135deg, #4f46e5, #7c3aed);
  --ph-s: 85%;
  --ph-l1: 94%;
  --ph-l2: 84%;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 32px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, .25);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

[data-theme="dark"] {
  --bg: #0a0f1f;
  --surface: #131a30;
  --surface-2: #1b2440;
  --text: #e9edf9;
  --muted: #95a1bf;
  --border: #243055;
  --brand: #8b93ff;
  --brand-soft: #1e2655;
  --success: #34d399;
  --danger: #fb7185;
  --ph-s: 38%;
  --ph-l1: 24%;
  --ph-l2: 17%;
  --shadow: 0 10px 32px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 10px; }
.muted { color: var(--muted); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.2rem; border-radius: 12px; font-weight: 700; font-size: .93rem; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 70, 229, .5); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: var(--grad); color: #fff; }
.btn--ghost { background: var(--surface); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn--ghost[aria-pressed="true"] .icon { fill: currentColor; }
.btn--light { background: #fff; color: #1e1b4b; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.btn--light:hover { transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #05381b; }
.btn--wa:hover { background: #20bd5a; transform: translateY(-2px); }

.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  transition: background .2s, color .2s, transform .15s;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.92); }
.iconbtn .icon { width: 1.35rem; height: 1.35rem; }
.iconbtn.is-on { color: var(--danger); }
.iconbtn.is-on .icon { fill: currentColor; }
.count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(.95); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .35rem;
}
.eyebrow--light { color: #fcd34d; }

/* ==========================================================================
   Barra superior + encabezado
   ========================================================================== */
.topbar { background: #0f1235; color: #e0e4ff; font-size: .82rem; font-weight: 600; }
.topbar__inner { display: grid; place-items: center; height: 38px; overflow: hidden; }
.topbar__msg { transition: opacity .35s, transform .35s; }
.topbar__msg.is-out { opacity: 0; transform: translateY(-10px); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s, background .3s;
}
.header.is-stuck { box-shadow: var(--shadow); }
.header__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: .8rem 0; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 42px; width: auto; transition: transform .3s var(--ease); }
.logo:hover .logo__img { transform: scale(1.03); }
.logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }

.search { position: relative; width: min(640px, 100%); justify-self: center; }
.search form { display: flex; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; transition: .25s; }
.search form:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: .8rem 1rem; font: inherit; font-size: .95rem; color: inherit; outline: 0; }
.search input::placeholder { color: var(--muted); }
.search form button { padding: 0 1rem; color: var(--muted); }
.search form button:hover { color: var(--brand); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 5;
}
.suggest.is-open { display: block; animation: pop .2s var(--ease); }
.suggest__item { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .65rem .9rem; text-align: left; }
.suggest__item:hover, .suggest__item:focus-visible { background: var(--surface-2); }
.suggest__thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.suggest__name { font-weight: 600; font-size: .92rem; line-height: 1.25; flex: 1; }
.suggest__price { font-weight: 800; color: var(--brand); font-size: .9rem; }
.suggest__all { display: block; width: 100%; padding: .75rem; text-align: center; font-weight: 700; font-size: .88rem; color: var(--brand); border-top: 1px solid var(--border); }
.suggest__all:hover { background: var(--brand-soft); }
.suggest__none { padding: 1rem; color: var(--muted); font-size: .9rem; text-align: center; }

.actions { display: flex; align-items: center; gap: .25rem; }

.catnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.catnav__row { display: flex; gap: .35rem; overflow-x: auto; padding: .55rem 0; scrollbar-width: none; }
.catnav__row::-webkit-scrollbar { display: none; }
.catlink { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); transition: .2s; }
.catlink:hover { background: var(--surface-2); color: var(--text); }
.catlink.is-active { background: var(--brand-soft); color: var(--brand); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 1.25rem 0 .5rem; }
.hero__wrap { position: relative; border-radius: 30px; overflow: hidden; min-height: 450px; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.hero__slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem;
  padding: 3rem clamp(1.5rem, 6vw, 5rem) 4rem; background: linear-gradient(120deg, var(--from), var(--to));
  opacity: 0; visibility: hidden; transform: scale(1.03); overflow: hidden;
  transition: opacity .8s, visibility .8s, transform 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__slide::before, .hero__slide::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero__slide::before { width: 520px; height: 520px; right: -140px; top: -160px; background: rgba(255, 255, 255, .13); }
.hero__slide::after { width: 340px; height: 340px; left: -100px; bottom: -160px; background: rgba(0, 0, 0, .14); }
.hero__text { max-width: 560px; }
.hero__text > * { opacity: 0; }
.hero__slide.is-active .hero__text > * { animation: rise .8s var(--ease) both; }
.hero__slide.is-active .hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__slide.is-active .hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__slide.is-active .hero__text > :nth-child(4) { animation-delay: .3s; }
.hero__tag { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.hero__h { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin-bottom: 1rem; }
.hero__text p { font-size: clamp(1rem, 1.5vw, 1.15rem); opacity: .92; margin-bottom: 1.75rem; max-width: 46ch; }

.art { position: relative; height: 340px; display: grid; place-items: center; }
.art__orb {
  width: 270px; height: 270px; border-radius: 50%; display: grid; place-items: center; font-size: 8rem;
  background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, .15), 0 30px 60px rgba(0, 0, 0, .2); animation: float 6s ease-in-out infinite;
}
.art__chip { position: absolute; display: flex; align-items: center; gap: .5rem; background: #fff; color: #1e1b4b; border-radius: 14px; padding: .6rem .95rem; font-weight: 800; font-size: .85rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); animation: float 5s ease-in-out infinite; }
.art__chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.art__chip--a { top: 12%; left: 0; animation-delay: -1s; }
.art__chip--b { bottom: 12%; right: 0; animation-delay: -3s; }
.art__bubble { position: absolute; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 2rem; animation: float 7s ease-in-out infinite; }
.art__bubble--a { top: 4%; right: 8%; animation-delay: -2s; }
.art__bubble--b { bottom: 4%; left: 12%; animation-delay: -4s; }

.hero__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; z-index: 3; transition: .2s; opacity: 0; }
.hero__wrap:hover .hero__arrow, .hero__arrow:focus-visible { opacity: 1; }
.hero__arrow:hover { background: rgba(255, 255, 255, .4); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }
.hero__dots { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; display: flex; gap: .5rem; z-index: 3; }
.hero__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: .35s var(--ease); }
.hero__dot.is-active { width: 34px; background: #fff; }

/* ==========================================================================
   Beneficios, secciones
   ========================================================================== */
.perks { padding: 1.25rem 0 0; }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.perk { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; transition: transform .25s var(--ease), box-shadow .25s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.perk__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.perk h3 { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.perk p { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.section { padding: 4rem 0; }
.section--tight { padding: 1.5rem 0; }
.section--soft { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section__head--center { justify-content: center; text-align: center; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cat::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: hsl(var(--h) 85% 60% / .14); transition: transform .5s var(--ease); }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: hsl(var(--h) 70% 60% / .6); }
.cat:hover::after { transform: scale(2.2); }
.cat__emoji { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: linear-gradient(135deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(var(--h) var(--ph-s) var(--ph-l2))); transition: transform .35s var(--ease); }
.cat:hover .cat__emoji { transform: scale(1.12) rotate(-6deg); }
.cat b { font-size: 1.02rem; }
.cat small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.cat .icon { position: absolute; top: 1.25rem; right: 1.1rem; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: .3s; z-index: 1; }
.cat:hover .icon { opacity: 1; transform: none; }

/* Ofertas */
.deals { position: relative; background: linear-gradient(135deg, #1b1a5e, #3b2a9e 55%, #6d28d9); color: #fff; border-radius: 30px; padding: clamp(1.25rem, 3vw, 2.25rem); overflow: hidden; isolation: isolate; }
.deals::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255, 255, 255, .08); z-index: -1; }
.deals__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.countdown { display: flex; align-items: center; gap: .9rem; }
.countdown__label { font-size: .85rem; font-weight: 700; opacity: .8; }
.countdown__boxes { display: flex; gap: .5rem; }
.countdown__boxes div { min-width: 58px; text-align: center; padding: .45rem .5rem; border-radius: 12px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.countdown__boxes b { display: block; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__boxes small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.deals__wrap { position: relative; }
.deals__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px, 260px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: none; }
.deals__row::-webkit-scrollbar { display: none; }
.deals__row > * { scroll-snap-align: start; color: var(--text); }
.deals__arrow { position: absolute; top: 40%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1e1b4b; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 2; transition: .2s; }
.deals__arrow:hover { transform: scale(1.1); }
.deals__arrow--prev { left: -14px; }
.deals__arrow--next { right: -14px; }

/* ==========================================================================
   Catálogo
   ========================================================================== */
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .15rem; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .55rem 1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--surface); border: 1.5px solid var(--border); transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .35); }
.chip small { opacity: .7; margin-left: .25rem; font-weight: 600; }
.toolbar__controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.price { display: grid; gap: .1rem; font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 170px; }
.price b { color: var(--text); }
.price input { width: 100%; accent-color: var(--brand); cursor: pointer; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding: .75rem 2.4rem .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: inherit; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.select select:hover { border-color: var(--brand); }
.select .icon { position: absolute; right: .8rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }

.resultbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; font-weight: 600; min-height: 28px; }
.resultbar button { color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.resultbar button:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.25rem; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(var(--h) var(--ph-s) var(--ph-l2))); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3.5rem, 7vw, 5rem); transition: transform .5s var(--ease); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18)); }
.card:hover .ph { transform: scale(1.15) rotate(-5deg); }
.badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; z-index: 2; }
.badge { padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #0f172a; color: #fff; letter-spacing: .02em; }
.badge--off { background: var(--accent); }
.badge--low { background: #fef3c7; color: #92400e; }
.badge--out { background: var(--muted); }
.wish { position: absolute; top: .6rem; right: .6rem; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2; transition: transform .2s, color .2s; color: var(--muted); }
.wish:hover { transform: scale(1.12); color: var(--danger); }
.wish.is-on { color: var(--danger); }
.wish.is-on .icon { fill: currentColor; animation: heart .45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.4); } }
.quick { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; padding: .6rem; border-radius: 12px; background: rgba(15, 23, 42, .85); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: .4rem; transform: translateY(150%); transition: transform .35s var(--ease); z-index: 2; }
@media (hover: hover) { .card:hover .quick { transform: none; } }
@media (hover: none) { .quick { display: none; } }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title:hover { color: var(--brand); }
.rating { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); font-weight: 600; min-height: 20px; }
.stars { --p: calc(var(--r) / 5 * 100%); font-size: .95rem; letter-spacing: 1px; background: linear-gradient(90deg, var(--star) var(--p), var(--border) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding-top: .25rem; }
.now { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.was { color: var(--muted); text-decoration: line-through; font-size: .85rem; font-weight: 600; }
.card .btn { margin-top: .6rem; }
.card.is-out { opacity: .75; }

/* Cargando / vacío */
.loadmore { display: grid; place-items: center; margin-top: 2rem; }
.empty { text-align: center; padding: 4rem 1rem; background: var(--surface); border: 2px dashed var(--border); border-radius: 24px; }
.empty__emoji { font-size: 3.5rem; margin-bottom: .5rem; }
.empty h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.25rem; }

/* Pasos, FAQ, CTA */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: .3s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; box-shadow: 0 8px 20px rgba(79, 70, 229, .35); }
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .94rem; }

.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--muted); }

.cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px; color: #fff; background: linear-gradient(120deg, #4338ca, #7c3aed 60%, #c026d3); box-shadow: var(--shadow); }
.cta p { opacity: .9; margin-top: .35rem; }

/* ==========================================================================
   Pie
   ========================================================================== */
.footer { margin-top: 3rem; background: #0b0f2b; color: #b9c0e0; padding-top: 3.5rem; }
.footer .logo { margin-bottom: .9rem; }
.footer .logo__img { height: 46px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand p { max-width: 34ch; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer a:hover { color: #fff; }
.contact li { display: flex; gap: .6rem; align-items: flex-start; }
.contact .icon { margin-top: .2rem; color: #8b93ff; }
.social { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.social a { padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 600; font-size: .82rem; transition: .2s; }
.social a:hover { background: rgba(255, 255, 255, .2); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1.25rem 0 5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.pay { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay span { padding: .25rem .65rem; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 600; }

/* Flotantes */
.fabs { position: fixed; right: 1.1rem; bottom: 1.1rem; display: flex; flex-direction: column; gap: .75rem; z-index: 40; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); transition: transform .25s var(--ease), opacity .3s; }
.fab:hover { transform: translateY(-3px) scale(1.06); }
.fab .icon { width: 1.5rem; height: 1.5rem; }
.fab--wa { background: #25d366; color: #fff; animation: pulse 2.6s infinite; }
.fab--up { background: var(--surface); border: 1px solid var(--border); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--up.is-show { opacity: 1; pointer-events: auto; transform: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 12px 30px rgba(0, 0, 0, .28); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 12px 30px rgba(0, 0, 0, .28); } }

/* ==========================================================================
   Capas: overlay, carrito, modales
   ========================================================================== */
.overlay { position: fixed; inset: 0; background: rgba(8, 11, 32, .6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(450px, 100%); background: var(--surface); z-index: 100; display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem 1rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer__head h3 { font-size: 1.15rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer__foot { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface); display: grid; gap: .75rem; }
.ship { padding: .9rem 1.4rem; background: var(--brand-soft); font-size: .86rem; font-weight: 600; }
.ship__bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 18%, transparent); margin-top: .5rem; overflow: hidden; }
.ship__bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }
.ship.is-done { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.ship.is-done .ship__bar i { background: var(--success); }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line__thumb { position: relative; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(var(--h) var(--ph-s) var(--ph-l2))); }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__thumb .ph { font-size: 2.2rem; }
.line__name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.line__unit { font-size: .8rem; color: var(--muted); font-weight: 600; margin: .1rem 0 .5rem; }
.line__total { font-weight: 800; font-size: .98rem; text-align: right; }
.line__del { margin-top: .5rem; color: var(--muted); display: inline-flex; padding: .25rem; border-radius: 8px; }
.line__del:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; transition: background .15s; }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: .92rem; }
.stepper--lg button { width: 42px; height: 44px; }

.sum { display: grid; gap: .4rem; font-size: .92rem; }
.sum div { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.sum .total { color: var(--text); font-size: 1.2rem; font-weight: 800; padding-top: .6rem; margin-top: .2rem; border-top: 1px dashed var(--border); }
.sum .free { color: var(--success); }

.cart-empty { display: grid; place-items: center; text-align: center; gap: .5rem; padding: 3rem 1rem; height: 100%; }
.cart-empty__emoji { font-size: 4rem; animation: float 4s ease-in-out infinite; }
.cart-empty p { color: var(--muted); margin-bottom: .75rem; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 1rem; z-index: 100; pointer-events: none; visibility: hidden; transition: visibility .35s; }
.modal.is-open { visibility: visible; }
.modal__panel { position: relative; pointer-events: auto; width: min(560px, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .4s var(--ease); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel--wide { width: min(980px, 100%); }
.modal__panel--checkout { width: min(620px, 100%); }
.modal__close { position: absolute; top: .8rem; right: .8rem; z-index: 5; background: var(--surface); box-shadow: var(--shadow-sm); }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd__gallery { padding: 1.25rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .75rem; }
.pd__main { position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(var(--h) var(--ph-s) var(--ph-l2))); }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__main .ph { font-size: clamp(6rem, 14vw, 9rem); }
.pd__thumbs { display: flex; gap: .5rem; }
.pd__thumbs button { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: .2s; }
.pd__thumbs button.is-active { border-color: var(--brand); opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: 2rem 2rem 1.75rem; display: flex; flex-direction: column; gap: .8rem; }
.pd__info h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); padding-right: 2.5rem; }
.pd__price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pd__price .now { font-size: 2rem; }
.pd__desc { color: var(--muted); }
.pd__specs { display: grid; gap: .4rem; }
.pd__specs li { display: flex; gap: .55rem; align-items: center; font-size: .92rem; font-weight: 500; }
.pd__specs .icon { color: var(--success); width: 1.05rem; height: 1.05rem; }
.pd__stock { font-size: .85rem; font-weight: 700; color: var(--success); display: flex; align-items: center; gap: .4rem; }
.pd__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd__stock.is-low { color: #d97706; }
.pd__stock.is-out { color: var(--danger); }
.pd__buy { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.pd__buy .btn--primary { flex: 1; }
.pd__trust { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); font-weight: 600; }
.pd__trust span { display: inline-flex; align-items: center; gap: .4rem; }

.co { padding: 2rem; }
.co h2 { font-size: 1.5rem; margin-bottom: .25rem; padding-right: 2.5rem; }
.co > p { color: var(--muted); margin-bottom: 1.25rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; font-size: .95rem; transition: .2s; }
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input:user-invalid { border-color: var(--danger); }
.co__sum { margin: 1.25rem 0 1rem; padding: 1rem; border-radius: 16px; background: var(--surface-2); }
.co__list { display: grid; gap: .35rem; font-size: .88rem; margin-bottom: .8rem; max-height: 130px; overflow: auto; }
.co__list div { display: flex; justify-content: space-between; gap: 1rem; }
.co__note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .75rem; }
.done { text-align: center; padding: 2.5rem 2rem; }
.done__check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 15%, var(--surface)); color: var(--success); animation: pop .5s var(--ease); }
.done__check .icon { width: 2.4rem; height: 2.4rem; stroke-width: 2.5; }
.done h2 { padding: 0; margin-bottom: .5rem; }
.done p { color: var(--muted); margin-bottom: 1.5rem; }
.done .btn + .btn { margin-top: .6rem; }

/* Avisos */
.toasts { position: fixed; left: 50%; bottom: 1.25rem; translate: -50% 0; display: grid; gap: .5rem; z-index: 200; width: min(420px, calc(100% - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 14px; background: #0f172a; color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease) both; }
.toast.is-out { animation: toastOut .3s ease-in forwards; }
.toast__ico { width: 26px; height: 26px; border-radius: 50%; background: var(--success); display: grid; place-items: center; flex: none; }
.toast__ico .icon { width: .9rem; height: .9rem; stroke-width: 3; }
.toast--warn .toast__ico { background: #f59e0b; }
.toast span:nth-child(2) { flex: 1; line-height: 1.3; }
.toast button { color: #a5b4fc; font-weight: 800; font-size: .85rem; padding: .25rem .4rem; }
.toast button:hover { color: #fff; }

/* ==========================================================================
   Animaciones
   ========================================================================== */
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.95); } }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__slide { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: 2.5rem; gap: 1rem; }
  .hero__text p { margin-inline: auto; }
  .art { height: 240px; order: -1; width: min(100%, 440px); }
  .art__orb { width: 190px; height: 190px; font-size: 5.5rem; }
  .art__bubble { width: 52px; height: 52px; font-size: 1.6rem; }
  .art__bubble--a { top: 0; right: 14%; }
  .art__bubble--b { bottom: 0; left: 18%; }
  .art__chip { font-size: .78rem; padding: .5rem .75rem; }
  .art__chip--a { top: 22%; }
  .art__chip--b { bottom: 22%; }
  .hero__wrap { min-height: 640px; }
  .pd { grid-template-columns: 1fr; }
  .pd__main { aspect-ratio: 16 / 9; max-height: 240px; }
  .pd__gallery { padding: 1rem; gap: .5rem; }
}
@media (max-width: 760px) {
  .header__row { grid-template-columns: 1fr auto; gap: .6rem 1rem; padding: .65rem 0; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .deals__arrow { display: none; }
  .toolbar__controls { width: 100%; }
  .price { flex: 1 1 100%; }
  .select { flex: 1; }
  .select select { width: 100%; }
  .section { padding: 2.75rem 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card__body { padding: .8rem .8rem .9rem; }
  .card__title { font-size: .92rem; }
  .now { font-size: 1.08rem; }
  .card .btn { padding: .65rem .5rem; font-size: .85rem; }
  .form { grid-template-columns: 1fr; }
  .co { padding: 1.5rem 1.25rem; }
  .pd__info { padding: 1.5rem 1.25rem; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { border-radius: 26px 26px 0 0; max-height: 94dvh; width: 100% !important; }
  .footer__bottom { padding-bottom: 6rem; }
}
@media (max-width: 520px) {
  .perks__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .countdown { width: 100%; justify-content: space-between; }
  .hero__arrow { display: none; }
  .cta { text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Ajustes finales
   ========================================================================== */
.card__open { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.badges, .wish { z-index: 3; }
.card__title button { font: inherit; text-align: left; color: inherit; }
.line.is-new { animation: rise .45s var(--ease) both; }
.wishbtn { width: 52px; height: auto; border: 1.5px solid var(--border); border-radius: 12px; color: var(--muted); }
.wishbtn:hover { border-color: var(--danger); color: var(--danger); }
.suggest__thumb { position: relative; background: linear-gradient(135deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(var(--h) var(--ph-s) var(--ph-l2))); }
.suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest__thumb .ph { font-size: 1.6rem; filter: none; }
.pd__buy .stepper { align-self: stretch; }
.pd__buy .stepper--lg { height: auto; }
html.no-scroll .toasts { bottom: auto; top: 1rem; }
.ph { font-size: clamp(4rem, 8vw, 5.75rem); }
@media (max-width: 760px) {
  .logo__img { height: 36px; }
  .footer .logo__img { height: 40px; }
}

/* ==========================================================================
   Shopify: variantes y carga de productos
   ========================================================================== */
.from { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.pd__opts { display: grid; gap: .5rem; }
.pd__optlabel { font-size: .82rem; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .5rem 1rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: .88rem; transition: .2s; }
.pill:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pill.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pill:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

.card--skeleton { pointer-events: none; }
.card--skeleton .card__media, .card--skeleton i { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.card--skeleton i { display: block; height: 14px; border-radius: 8px; }
.card--skeleton i.short { width: 55%; }
.card--skeleton .card__body { gap: .7rem; padding-bottom: 1.4rem; }
@keyframes shimmer { to { background-position: -220% 0; } }
